[Bug 286974] [ACPI] dev.acpi_lid.0.state: 1 when lid is closed after suspend/resume

From: <bugzilla-noreply_at_freebsd.org>
Date: Mon, 26 May 2025 13:22:24 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=286974

--- Comment #6 from Renato Botelho <garga@FreeBSD.org> ---
(In reply to obiwac from comment #5)
Let me try to clarify how and when the issue happens.

If I press power button and turn the laptop on, a fresh boot happens as
expected and I have hw.acpi.lid_switch_state=none, it means system is not going
to sleep automatically when I close the lid.

In this situation when I close / open the lid I can see the ACPI events
happening as expected like following lines:

acpi_lid0: Lid closed
acpi_lid0: Lid opened

I can do it multiple times and it keeps working.  In this moment I change
hw.acpi.lid_switch_state=s3 and close the lid.  I can see the lid close event
happening

acpi_lid0: Lid closed

and system goes to sleep.  So far everything happened just as expected, but I
see the following error messages

pci0: failed to set ACPI power state D3 on \134_SB_.PC00.GFX0: AE_BAD_PARAMETER
acpi0: cleared fixed power button status

When I open the lid to wake up the system, I DO NOT see the "acpi_lid0: Lid
opened", but the sysctl dev.acpi_lid.0.state get its value as 1, what means lid
is opened.

From this point, even if I return hw.acpi.lid_switch_state=none I can't see the
close or open acpi events when I close or open the lid.  It's like I was not
doing it.  So definitely the bug is triggered when I put system to sleep.

WRT GRP query failed message, I only see it if system never went to S3 since
last boot and I have the sysctl debug.acpi.suspend_bounce=1 and run `acpiconf
-s 3`.

If system went to S3 for real previously and I change bounce to 1 that message
never show up.

-- 
You are receiving this mail because:
You are the assignee for the bug.