Summary: | Sleep|Suspend does not work when triggered via plasma | ||
---|---|---|---|
Product: | [KDE Neon] neon | Reporter: | Arek Guzinski <kermit> |
Component: | general | Assignee: | Neon Bugs <neon-bugs> |
Status: | RESOLVED DOWNSTREAM | ||
Severity: | normal | CC: | carlosd.kde, fanzhuyifan, jr, neon-bugs, tapio.metsala |
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Neon | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: | |||
Attachments: |
output of journalctl -b
output of dmesg |
Description
Arek Guzinski
2024-08-09 12:01:29 UTC
Does systemctl suspend work? Could you enable debug messages and upload your journal logs through `journalctl -b` and kernel debug messages through dmesg? Thanks! Created attachment 172453 [details]
output of journalctl -b
To find relevant sections, search for "Next:".
I forgot to enable debug at first, so I redid the 3 tests - the last 3 should be the interesting ones.
I didn't know what exactly to enable debug for, so I enabled everything in kdebugsettings for this - I hope it's not too much.
`systemctl suspend` does not work.
Another interesting thing I noticed: when I trigger my sleep-workaround-script via Sleep button, the first wake up fails. The PC seems to start for a second or so - then goes to sleep again. This does not happen when triggered via command line.
Created attachment 172454 [details]
output of dmesg
Given that echo mem > /sys/power/state works but systemctl suspend does not, my guess would be that maybe some systemd sleep hook is blocking sleep. Sounds reasonable. But what could it be? /etc/systemd/sleep.conf has not been touched since 2022. /etc/systemd/system/sleep.target.wants and it's contents have a mtime in 2021. I don't think, I manually changed anything in /etc/systemd for years. And I'm pretty sure it worked some months ago. So this kind of looks like a problem with systemd - but judging from it's changelog the version in neon is from November 2023. This doesn't really fit either. Are there maybe some packages in neon that would modify the sleep hooks? btw: pm-suspend works, too. I also tried uncommenting the lines in /etc/systemd/sleep.conf: AllowSuspend=yes SuspendState=mem standby freeze No effect, as expected. I will try downgrading systemd tomorrow - let's see if that changes anything. I comment briefly that I just installed openSuse Tumbleweed and it has similar problem. At least in X11. Small update: * I did not downgrade systemd because of the dependency problems this would cause. * I searched the relevant systemd bugtrackers (github & ubuntu package) for this problem - found nothing. After doing a clean reinstall of the newly rebased Neon, this is working fine again. But I'm not convinced the problem is really gone until it has been working for at least a year.. Given that things work in a fresh install, this seems like a local configuration issue. So closing this for now. |