Summary: | acpi_lid: dev.acpi_lid.0.state: 0 after resume (lid opened) | ||
---|---|---|---|
Product: | Base System | Reporter: | Johannes Lundberg <johalun> |
Component: | kern | Assignee: | Hans Petter Selasky <hselasky> |
Status: | Closed FIXED | ||
Severity: | Affects Some People | CC: | acpi, hselasky, yuripv |
Priority: | --- | Flags: | koobs:
mfc-stable12?
koobs: mfc-stable11? |
Version: | CURRENT | ||
Hardware: | Any | ||
OS: | Any | ||
URL: | https://reviews.freebsd.org/D23724 |
Description
Johannes Lundberg
![]() ![]() Some more consistent test results. If lid switch does nothing, dev.acpi_lid.0.state updates as it should on lid open/close. If lid switch suspends, or if I wake up from suspend by opening the lid, state remains 0. A commit references this bug: Author: hselasky Date: Fri Feb 21 09:52:21 UTC 2020 New revision: 358219 URL: https://svnweb.freebsd.org/changeset/base/358219 Log: Make sure the ACPI lid state is updated during boot and after resume. While at it update the sysctl(9) description for the lid state. Differential Revision: https://reviews.freebsd.org/D23724 PR: 240881 Submitted by: Yuri Pankov <yuripv@yuripv.me> MFC after: 1 week Sponsored by: Mellanox Technologies Changes: head/sys/dev/acpica/acpi_lid.c Thanks for this Hans. Can/will this go to stable/11 ? I think so. A commit references this bug: Author: hselasky Date: Mon Feb 24 09:31:31 UTC 2020 New revision: 358270 URL: https://svnweb.freebsd.org/changeset/base/358270 Log: Always check return value from acpi_GetInteger() after r358219. If a failure happens reading the lid state, assume the lid is opened. Suggested by: cem @ Differential Revision: https://reviews.freebsd.org/D23724 PR: 240881 MFC after: 1 week Sponsored by: Mellanox Technologies Changes: head/sys/dev/acpica/acpi_lid.c A commit references this bug: Author: hselasky Date: Mon Mar 2 09:09:17 UTC 2020 New revision: 358534 URL: https://svnweb.freebsd.org/changeset/base/358534 Log: MFC r358219 and r358270: Make sure the ACPI lid state is updated during boot and after resume. While at it update the sysctl(9) description for the lid state. Always check return value from acpi_GetInteger(). If a failure happens reading the lid state, assume the lid is opened. Differential Revision: https://reviews.freebsd.org/D23724 PR: 240881 Submitted by: Yuri Pankov <yuripv@yuripv.me> Sponsored by: Mellanox Technologies Changes: _U stable/12/ stable/12/sys/dev/acpica/acpi_lid.c A commit references this bug: Author: hselasky Date: Mon Mar 2 09:16:49 UTC 2020 New revision: 358536 URL: https://svnweb.freebsd.org/changeset/base/358536 Log: MFC r358219 and r358270: Make sure the ACPI lid state is updated during boot and after resume. While at it update the sysctl(9) description for the lid state. Always check return value from acpi_GetInteger(). If a failure happens reading the lid state, assume the lid is opened. Differential Revision: https://reviews.freebsd.org/D23724 PR: 240881 Submitted by: Yuri Pankov <yuripv@yuripv.me> Sponsored by: Mellanox Technologies Changes: _U stable/11/ stable/11/sys/dev/acpica/acpi_lid.c Apparently committed Mon Mar 2 09:16:49 UTC 2020. |