[Bug 246477] "When laptop lid closed: Sleep" in KDE results in suspend on AC power state change

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Fri May 15 23:39:00 BST 2020


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=246477

Colin Percival <cperciva at FreeBSD.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|New                         |In Progress
            Version|Latest                      |12.1-STABLE
            Product|Ports & Packages            |Base System
          Component|Individual Port(s)          |kern
           Assignee|kde at FreeBSD.org             |cperciva at FreeBSD.org

--- Comment #2 from Colin Percival <cperciva at FreeBSD.org> ---
Aha!  It's an ACPI issue.  If my laptop is suspended when I open the lid, it
unsuspends but does not send a "Lid Opened" ACPI notification.  As a result,
devd does not send a "Lid state changed" message, and upowerd does not update
its notion of whether the lid is open or not.

This actually causes two issues:

1. As noted before, if upowerd thinks that the lid is closed,
plugging/unplugging AC power results in KDE suspending the system.

2. If upowerd thinks that the lid is already closed, closing the lid *doesn't*
result in KDE suspending the system.

So in addition to the unexpected suspends from the AC power state changing,
closing the lid was only making KDE suspend the system every 2nd time.

I'm reclassifying this as "base system" and assigning to myself -- I think I
can see how to fix this in acpi_lid.c.

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


More information about the kde-freebsd mailing list