[Powerdevil] [Bug 358957] laptop won't hybrid-suspend when Plasma is running

2016-03-31 Thread David Smid via KDE Bugzilla
https://bugs.kde.org/show_bug.cgi?id=358957

--- Comment #5 from David Smid  ---
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.
___
Plasma-devel mailing list
Plasma-devel@kde.org
https://mail.kde.org/mailman/listinfo/plasma-devel


[Powerdevil] [Bug 358957] laptop won't hybrid-suspend when Plasma is running

2016-03-31 Thread David Smid via KDE Bugzilla
https://bugs.kde.org/show_bug.cgi?id=358957

--- Comment #4 from David Smid  ---
(In reply to Martin Gräßlin from comment #2)

> or maybe use HybridSuspend instead of Suspend if available. I am not sure
> whether it makes sense to expose such a fine grained difference to the user.

A "Use Hybrid-Suspend if available" checkbox in PowerDevil settings would be a
nice and simple way how to expose this feature.

-- 
You are receiving this mail because:
You are the assignee for the bug.
___
Plasma-devel mailing list
Plasma-devel@kde.org
https://mail.kde.org/mailman/listinfo/plasma-devel