Re: dev.acpi_lid.0.state remains 1 when lid is closed after suspending/resuming once

From: Renato Botelho <garga_at_FreeBSD.org>
Date: Wed, 21 May 2025 20:40:37 UTC
On 21/05/25 15:36, Steven Harms (High-Security Mail) wrote:
> 
> On Wednesday, May 21st, 2025 at 10:24 AM, Renato Botelho <garga@FreeBSD.org> wrote:
> 
>> I've found an interesting bug after I installed FreeBSD 15.0-CURRENT on
>> my Lenovo ThinkPad E14.
>>
>> lid state sysctl is updated as expected when I close/open lid after a
>> fresh boot, but after suspending and resuming it once using acpiconf -s
>> 3 the sysctl remains with value 1 until next boot.
>>
>> I've created a Bugzilla ticket [1] with details case anyone with ACPI
>> knowledge is interested. I can help collecting any needed data and
>> testing possible patches.
>>
>> Thanks!
>>
>> [1] https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=286974
>> --
>> Renato Botelho
> 
> Does this laptop use the i915kms drm driver? If so, you might be a member of my club.
> 
> 
> https://github.com/freebsd/drm-kmod/pull/344
Yes, it has a core i5 11th gen and uses i915kms.

I'm going to take a look.  Thanks!

-- 
Renato Botelho