Lock and suspend broke sometime in the last year and I’m getting around to trying to fix it.
I have installed xfce4-screensaver, and since that wasn’t working I also installed xlockmore and light-locker but these made no difference. xflock4 does not work. I can lock the screen on the command line using xfce4-screensaver-command --lock.
I tried several things in the Settings to troubleshoot this. I tried each of them with auto-suspend (after power manager timeout) and manual suspend (using the taskbar button).
There are three settings in the Power Manager:
- SUSPEND timeout on the System tab
- DISPLAY sleep timeout on Display tab (display power management must be enabled)
- LOCK checkbox on the System tab
SUSPEND no, DISPLAY no, LOCK no
- manual lock: broken (does nothing)
- manual suspend: correct (suspends but does not lock the screen)
- auto lock: disabled
- auto suspend: disabled
- makes no difference is “display power management” is toggled
SUSPEND no, DISPLAY no, LOCK yes
- manual lock: broken (does nothing)
- manual suspend: broken (displays dialog “failed to suspend session, failed to lock the screen”)
- auto lock: disabled
- auto suspend: disabled
- makes no difference is “display power management” is toggled
SUSPEND no, DISPLAY yes, LOCK no
- manual lock: broken (does nothing)
- manual suspend: broken (displays dialog “failed to suspend session, failed to lock the screen”)
- auto lock: yes (and locks screen)
- auto suspend: disabled
SUSPEND no, DISPLAY yes, LOCK yes
- manual lock: broken (does nothing)
- manual suspend: broken (displays dialog “failed to suspend session, failed to lock the screen”)
- auto lock: yes (and locks screen)
- auto suspend: disabled
SUSPEND yes, DISPLAY no, LOCK no
- manual lock: broken (does nothing)
- manual suspend: correct (suspends, does not lock screen)
- auto suspend: correct (suspends, does not lock screen)
SUSPEND yes, DISPLAY no, LOCK yes
- manual lock: broken
- manual suspend: broken (does nothing, displays dialog “failed to suspend session, failed to lock the screen”)
- auto suspend: broken (does not suspend, says “None of the screen tools ran successfully, the screen will not be locked. Do you still want to continue to suspend the system?”)
SUSPEND short, DISPLAY long, LOCK no, suspend kicks in first
- manual lock: broken
- manual suspend: correct
- auto suspend: works (suspends and doesn’t lock)
SUSPEND long, DISPLAY short, LOCK no, display kicks in first
- manual lock: broken
- manual suspend: broken (does nothing, displays dialog “failed to suspend session, failed to lock the screen”)
- auto lock: ok (locks)
- auto suspend: broken (suspends but also locks even though you said not to)
SUSPEND short, DISPLAY long, LOCK yes, suspend kicks in first
- manual lock: broken
- manual suspend: broken (does nothing, displays dialog “failed to suspend session, failed to lock the screen”)
- auto suspend: broken (locks but does not suspend, says “None of the screen tools ran successfully, the screen will not be locked. Do you still want to continue to suspend the system?”)
SUSPEND long, DISPLAY short, LOCK yes, display kicks in first
- manual lock: broken
- manual suspend: broken (does nothing, displays dialog “failed to suspend session, failed to lock the screen”)
- auto lock: ok (locks)
- auto suspend: broken (does nothing, says “None of the screen tools ran successfully, the screen will not be locked. Do you still want to continue to suspend the system?”)
Looking over these results:
- manual lock never works under any circumstances
- manual suspend works only if display power is disabled AND lock is disabled
- auto lock works if timeout is set
- auto suspend works if the “lock on suspend” button is disabled. If the auto lock kicks in first it will lock, otherwise it will not lock.
I am able to use the lock button in the whisker menu by setting the command to “xfce4-screensaver-command --lock”
This all seems horribly broken. Is there any way to get everything to work?