Comment 1 for bug 1683022

Revision history for this message
Reuben Thomas (rrt) wrote :

This is unlikely to be a bug in Caffeine.

Caffeine simply inhibits desktop idleness. It's up to the rest of the system what that means.

There might be at least two separate problems here:

1. Suspend behaviour is affected when desktop idleness is inhibited.

2. Suspend behaviour is not restored when desktop idleness inhibition is switched off again.

This may be a bug in xdg-screensaver (this is responsible for controlling desktop idleness inhibition), or it may be a bug in your desktop environment, or a bad interaction with the hardware (I have a MacBookPro 11,1, and have always had problems with suspend).

Try running, in a terminal:

window_id=`xwininfo | grep "Window id" | cut -d " " -f 4`

Now click on the terminal window, and then run:

xdg-screensaver suspend $window_id
xdg-screensaver resume $window_id

This performs the same steps at a lower level as turning Caffeine on then off again manually. If this gives the same problem as using Caffeine, then the bug is definitely not in Caffeine.

Also, please check you're using the latest version of Caffeine (at this writing, 2.9.3), available from the PPA if it's not in your version of Ubuntu.