Some time in the last few months I can no longer set the lid switch to NONE on CURRENT. # sysctl hw.acpi.lid_switch_state=NONE hw.acpi.lid_switch_state: s2mem sysctl: hw.acpi.lid_switch_state=NONE: value is not available # uname -ap FreeBSD dell7390 16.0-CURRENT FreeBSD 16.0-CURRENT #6 main-n281431-5a739b74650b: Sun Oct 26 12:39:54 EDT 2025 root@dell7390:/usr/obj/usr/src/amd64.amd64/sys/GENERIC-NODEBUG amd64 amd64
I looked at this during the bug squash call on Friday and it looks to be a regression with how state names are handled. I'm not sure how Aymeric wants to handle this and I've assigned it to him
Sorry for taking so long to fix this! https://reviews.freebsd.org/D53909
A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=eeaa865edba685545ac22c378b35552e09bf1b41 commit eeaa865edba685545ac22c378b35552e09bf1b41 Author: Aymeric Wibo <obiwac@FreeBSD.org> AuthorDate: 2025-11-25 19:34:34 +0000 Commit: Aymeric Wibo <obiwac@FreeBSD.org> CommitDate: 2025-11-28 14:42:54 +0000 acpi: Fix setting sleep state sysctls to NONE This restores the functionality as it was pre-97d152698f48. A stopgap was committed by glebius@ in 34dfccc64f47 ("acpi: in acpi_stype_sysctl() use same logic as in acpi_sleep_state_sysctl()"). PR: 290651 Reviewed by: thj, emaste Approved by: thj Fixes: 97d152698f48 ("acpi: Use sleep types defined in sys/power.h") Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D53909 sys/dev/acpica/acpi.c | 39 ++++++++++++++++++++++++--------------- 1 file changed, 24 insertions(+), 15 deletions(-)