Red Hat Bugzilla – Bug 866660
RFE: Add "lock" action (and associated hooks) as an inhibitor action
Last modified: 2013-01-19 22:31:55 EST
In addition to suspend, halt, etc., it'd be nice to prevent/trigger locking the current session (via screenlockers for X or tlock for the TTY). The lid switch would be much better as 'lock' than 'ignored' here ('suspend' is a silly behavior IMO).
Probably needs things such as:
- Changes to screen lockers (tlock/xautolock is what I care about, but DE-level WMs would probably like this as well)
- Video players to inhibit the locking (systemd-inhibit is fine as a partial solution in the interim)
I imagine the simplest thing would be to create a client which has options which are commands to run for "lock" (this should work for both xautolock at least; probably DBus-enabled stuff as well; I don't know how well tlock works if it is run while something like vim or rtorrent is running though what tmux does for setting up lock-command seems to work fine).
This is fixed in git.
systemd-197-1.fc18.1 has been submitted as an update for Fedora 18.
systemd-197-1.fc18.1 has been pushed to the Fedora 18 stable repository. If problems still persist, please make note of it in this bug report.