ACPI: wrong notify value for closed laptop lid

On an Asus G501JW laptop running FreeBSD 13.0 I'm getting a wrong value for notify
when closing the lid. Here are the entries from /var/run/devd.pipe
after closing and reopening the lid:

Code:
!system=ACPI subsystem=Lid type=\_SB_.LID_ notify=0x01
!system=ACPI subsystem=Lid type=\_SB_.LID_ notify=0x01
!system=ACPI subsystem=Lid type=\_SB_.LID_ notify=0x01
!system=ACPI subsystem=Lid type=\_SB_.LID_ notify=0x01

In both cases the same value 0x01 describing an open lid state.
Any hints how this problem could be to fixed?
 
On an Asus G501JW laptop running FreeBSD 13.0 I'm getting a wrong value for notify
when closing the lid. Here are the entries from /var/run/devd.pipe
after closing and reopenning the lid:

Code:
!system=ACPI subsystem=Lid type=\_SB_.LID_ notify=0x01
!system=ACPI subsystem=Lid type=\_SB_.LID_ notify=0x01
!system=ACPI subsystem=Lid type=\_SB_.LID_ notify=0x01
!system=ACPI subsystem=Lid type=\_SB_.LID_ notify=0x01

In both cases the same value 0x01 describing an open lid state.
Any hints how this problem could be to fixed?
Does acpiconf -s 3 works?
 
acpiconf -s 3 works. But the resume still has problems.
Setting hw.hw.acpi.lid_switch_state=S3 and closing the lid
has no effect because of the wrong value for notify.
 
Usually, it's the acpi firmware that creates the notification. The kernel only catches it, and reports it to devd.

FreeBSD has very little acpi documentation.

Maybe patch /sys/dev/acpica/acpi_lid.c somewhere.
 
Back
Top