[Powerdevil] [Bug 358957] laptop won't hybrid-suspend when Plasma is running
David Smid via KDE Bugzilla
bugzilla_noreply at kde.org
Thu Mar 31 11:02:36 UTC 2016
https://bugs.kde.org/show_bug.cgi?id=358957
--- Comment #5 from David Smid <david at smidovi.eu> ---
An ugly workaround:
1. In PowerDevil settings, set lid close action to "Do nothing" in all profiles
2. Add this to /etc/systemd/logind.conf :
HandleLidSwitch=hybrid-sleep
3. Restart logind:
systemctl restart systemd-logind
4. Download fdmanage.py, make it executable and put in your PATH:
https://raw.githubusercontent.com/ticpu/tools/master/fdmanage.py
5. Add this to session autostart (edit /etc/sudoers to enable running as root
without password):
sudo fdmanage.py $(lsof -c kded5 2>/dev/null | grep
/run/systemd/inhibit/ | awk '{gsub("w",""); print $2 " " $4; exit}')
This will release PowerDevil's inhibit lock and will let logind to manage the
lid-close action instead.
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the Plasma-devel
mailing list