caffeine 2.9.7 isn't working on Ubuntu 20.04
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Caffeine |
Fix Released
|
Undecided
|
Unassigned | ||
caffeine (Debian) |
New
|
Undecided
|
Unassigned | ||
caffeine (Ubuntu) |
Expired
|
Undecided
|
Unassigned | ||
xdg-utils (Debian) |
Fix Released
|
Unknown
|
Bug Description
Recently I noticed that caffeine 2.9.4 wasn't working any more on my Ubuntu 16.04 box. In https:/
First, looking at caffeine stdout, I see the following:
INFO:root:caffeine is inhibiting desktop idleness
Protocol error: bad 3 (Window); Sequence Number 13
Opcode (20, 0) = GetProperty
Bad resource 0 (0x0)
at -e line 15.
Does that give you any info?
I also attempted to check xdg-screensaver as mentioned in the previous bug as follows:
Then, in a terminal, run
xdg-screensaver suspend `xwininfo | grep "Window id" | cut -d " " -f 4`
and click on the terminal window background. This should suspend the screensaver. Wait for the screensaver delay to check that the screen does not go off.
The screensaver was still enabled.
summary: |
- caffeine isn't working on Ubuntu 10.04 + caffeine isn't working on Ubuntu 16.04 |
summary: |
- caffeine isn't working on Ubuntu 16.04 + caffeine 2.9.4 isn't working on Ubuntu 16.04 |
description: | updated |
tags: | added: indeed |
Changed in caffeine: | |
status: | New → Incomplete |
Changed in caffeine (Ubuntu): | |
status: | New → Incomplete |
Changed in xdg-utils (Debian): | |
status: | Unknown → Fix Released |
Changed in caffeine: | |
status: | Confirmed → Fix Released |
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.