caffeine don't work on Ubuntu 14.04

Bug #1343770 reported by libuntu
100
This bug affects 23 people
Affects Status Importance Assigned to Milestone
Caffeine
Invalid
Undecided
Unassigned

Bug Description

Caffeine does not work in ubuntu 14.04 64 bits, when I run it through the terminal gives me this error:

<class 'Xlib.protocol.request.QueryExtension'>

and when I run it with sudo gives me this error:

Traceback (most recent call last):
  File "/usr/bin/caffeine", line 30, in <module>
    ewmh = EWMH()
  File "/usr/lib/python3/dist-packages/ewmh.py", line 51, in __init__
    self.display = _display or display.Display()
  File "/usr/lib/python3/dist-packages/Xlib/display.py", line 80, in __init__
    self.display = _BaseDisplay(display)
  File "/usr/lib/python3/dist-packages/Xlib/display.py", line 62, in __init__
    display.Display.__init__(*(self, ) + args, **keys)
  File "/usr/lib/python3/dist-packages/Xlib/protocol/display.py", line 129, in __init__
    raise error.DisplayConnectionError(self.display_name, r.reason)
Xlib.error.DisplayConnectionError: Can't connect to display ":0": b'No protocol specified\n'

I'm using the official developers ppa which is ppa:caffeine-developers/ppa

and the lastest version is the 2.7.2

Revision history for this message
libuntu (libuntu) wrote :
description: updated
Revision history for this message
libuntu (libuntu) wrote :
Revision history for this message
picccard (eskil-riera) wrote :

The message you get from running"cafffeine" is not a error, it just shows that the program is running.

"The latest Caffeine version (2.7.x), released back in May, no longer comes with an Ubuntu AppIndicator so you can't manually toggle it on/off any more, feature which was considered pretty important by many of its users. If you're one of them, you can now use Caffeine Plus, a Caffeine 2.7 fork which restores the Ubuntu AppIndicator icon, allowing you to manually toggle it on/off.

Like the original Caffeine, the fork also inhibits the screensaver / lock screen automatically if it detects a full-screen window."

-Written Alin Andrei (WebUpd8)
http://www.webupd8.org/2014/08/screensaver-lock-screen-inhibitor.html

Revision history for this message
GizmoChicken (gizmochicken) wrote :

For those who want the AppIndicator icon (and all of its functions) added back to Caffeine, please express your wishes in the following bug report:

https://bugs.launchpad.net/caffeine/+bug/1321750

Revision history for this message
Andy Balaam (mail-artificialworlds) wrote :

All my problems with Caffeine were fixed by installing the version from behda's ppa as described here:

https://bugs.launchpad.net/caffeine/+bug/1280449

sudo apt-add-repository ppa:behda/ppa
sudo apt-get remove caffeine
sudo apt-get update && sudo apt-get install caffeine

More info: https://launchpad.net/~behda/+archive/ppa

Revision history for this message
jmc_al (jmc-al) wrote :

Quicking off the indicator is an error.

If you want to inhibits the screensaver why you hide the options. In this case, is more confortable, disable the screensaver and you don't need an aplication to do it.

Why I said that, because This aplication doesn't work with all programs and website like youtube (flashplayer) doesn't work, sorry but it's true. And the indicator indicate, if caffeine is working or not. Now you must suppose it and if caffeine don't work, you must disable the screensaver. Well done.

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

To the original reporter: the message you get in the terminal is a warning, not an error. You should not be running Caffeine as root. There is no bug here (2.7.2 is working fine for me in Ubuntu 14.04).

Changed in caffeine:
status: New → Invalid
Revision history for this message
Tamir (sugip) wrote :

a similar problem when an error is triggered accounting system errors, so I think it's still a bug. Just what is the reason and how to solve the problem, I did not understand

Changed in caffeine:
status: Invalid → Confirmed
Revision history for this message
Tamir (sugip) wrote :

My report on this subject - https://bugs.launchpad.net/ubuntu/+source/indicator-bluetooth/+bug/1474684.
 If you need any technical information, I give them.

Revision history for this message
a903user (a903user) wrote :
Revision history for this message
libuntu (libuntu) wrote :

Caffeine don't work on Ubuntu 14.04.3, Attached image of the error

oriolpont (oriolpont)
Changed in caffeine:
status: Confirmed → Invalid
Revision history for this message
oriolpont (oriolpont) wrote :

The original description describes an error when running as sudo (which is not a bug; caffeine is not supposed to run as root).

However, the error message fits a different bug, #1460226 which is on the python3-xlib package. It looks like the later comments refer to that, as pointed by a903user.

Notice that the present bug is not really a duplicate of #1460226 (it is correct that python3-xlib throws error when run with sudo and xhost active).

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.