Comment 1 for bug 1700419

Revision history for this message
Reuben Thomas (rrt) wrote : Re: caffeine 2.9.4 isn't working on Ubuntu 16.04

Thanks for investigating this.

Unfortunately, I can't reproduce this on my fully updated GNOME Ubuntu 16.04 system; I'll check again next time I log out or reboot, as that may well make a difference.

The "Protocol error: bad 3 (Window)" suggests that an invalid window ID is being given. The only obvious way that can happen is if the full-screen window closes in the interval between caffeine getting its ID, and passing that ID to xdg-screensaver. However, since the error appears after the line

INFO:root:caffeine is inhibiting desktop idleness

which is only printed after xdg-screensaver has returned, it suggests that maybe the inhibition did work after all. Could you check whether the error appears at the same time as the INFO line? (It may just be a question of stderr vs stdout ordering.)

Secondly, can you confirm whether the xdg-screensaver command gives any error? If it doesn't, then it looks like there is at least a bug in xdg-screensaver.