Summary: | On Framework laptop, while lid is closed, system does not stay asleep if power cable is connected | ||
---|---|---|---|
Product: | [Plasma] plasmashell | Reporter: | Jeremi Campagna <jeremi.campagna> |
Component: | Power management & brightness | Assignee: | Plasma Bugs List <plasma-bugs> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | natalie_clarius, nate, nicolas.fella, postix |
Priority: | NOR | ||
Version: | 6.2.4 | ||
Target Milestone: | 1.0 | ||
Platform: | Arch Linux | ||
OS: | Linux | ||
URL: | https://community.frame.work/t/tracking-framework-amd-ryzen-7040-series-lid-wakeup-behavior-feedback/39128/31 | ||
Latest Commit: | https://invent.kde.org/plasma/powerdevil/-/commit/9a3cd8b01868ab64dd69f93a73209d8711e8fdf8 | Version Fixed In: | 6.3.0 |
Sentry Crash Report: |
Description
Jeremi Campagna
2023-11-03 00:07:01 UTC
If the firmware behavior is intentional on the part of the hardware, then I guess we'll need to handle these unusual conditions in our code. That's not ideal at all as it will then be broken for people not using Plasma. From that link, it looks like the system needs to wake up and then immediately go back to sleep again? Yuck. :) (In reply to Nate Graham from comment #1) > If the firmware behavior is intentional on the part of the hardware, then I > guess we'll need to handle these unusual conditions in our code. That's not > ideal at all as it will then be broken for people not using Plasma. From > that link, it looks like the system needs to wake up and then immediately go > back to sleep again? Yuck. :) Yes, I agree. There's further discussion and there could be something in the firmware that causes Linux systems to just wake up and stay awake. Though waking up the system when it gets on AC is intended behaviour. The AC-DC cycling is not to worry about, I haven't seen it happen again recently, must have been a singled out oddity. Does the wakeup also happen when you set it to sleep while plugged and then unplug it? I just learned that my (non-Framework) Laptop also does this when plugging *in* the AC, but not when unplugging (In reply to Natalie Clarius from comment #3) > Does the wakeup also happen when you set it to sleep while plugged and then > unplug it? Yes. It happens more often that it wakes up when unplugging from AC. And then it fails to go back to sleep, more often than not. I am having some odd sleep behaviours too. Sometimes, it will fail to sleep or hibernate when there has not been a change in AC-DC status. (In reply to Jeremi Campagna from comment #5) > more often than not So sometimes it does go back to sleep? Immediately or after some period? (In reply to Natalie Clarius from comment #6) > (In reply to Jeremi Campagna from comment #5) > > > more often than not > > So sometimes it does go back to sleep? Immediately or after some period? If it does, it seems to be immediate. It's not exactly reliable. A possibly relevant merge request was started @ https://invent.kde.org/plasma/powerdevil/-/merge_requests/279 A possibly relevant merge request was started @ https://invent.kde.org/plasma/powerdevil/-/merge_requests/489 Git commit 030ca5683a290dd902f4a8c259d76d24cc0587d1 by Xaver Hugl. Committed on 10/01/2025 at 14:07. Pushed by zamundaaa into branch 'master'. actions/handlebuttonevents: also trigger suspend if we wake up with the lid closed ...and no external display connected. This works around firmware and hardware quirks, which trigger some laptops to wake up at random or on specific events (like power state changes); in that case we'd wait until the idle timeout until suspending again - if the user even has that configured. With this, after 10s the system simply suspends again. Related: bug 466025 M +24 -0 daemon/actions/bundled/handlebuttonevents.cpp M +5 -0 daemon/actions/bundled/handlebuttonevents.h https://invent.kde.org/plasma/powerdevil/-/commit/030ca5683a290dd902f4a8c259d76d24cc0587d1 Git commit 9a3cd8b01868ab64dd69f93a73209d8711e8fdf8 by Xaver Hugl. Committed on 10/01/2025 at 14:34. Pushed by zamundaaa into branch 'Plasma/6.3'. actions/handlebuttonevents: also trigger suspend if we wake up with the lid closed ...and no external display connected. This works around firmware and hardware quirks, which trigger some laptops to wake up at random or on specific events (like power state changes); in that case we'd wait until the idle timeout until suspending again - if the user even has that configured. With this, after 10s the system simply suspends again. Related: bug 466025 (cherry picked from commit 030ca5683a290dd902f4a8c259d76d24cc0587d1) Co-authored-by: Xaver Hugl <xaver.hugl@gmail.com> M +24 -0 daemon/actions/bundled/handlebuttonevents.cpp M +5 -0 daemon/actions/bundled/handlebuttonevents.h https://invent.kde.org/plasma/powerdevil/-/commit/9a3cd8b01868ab64dd69f93a73209d8711e8fdf8 |