Comment 0 for bug 1482844

Revision history for this message
Waz (paviluf) wrote : Caffeine can't connect to display since updating to Vivid kernel and X (HWE)

I get the following error message when I start Caffeine since updating Ubuntu 14.04 to Vivid kernel and X (HWE) :

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

Traceback (most recent call last):
  File "/usr/bin/caffeine", line 36, in <module>
    ewmh = EWMH()
  File "/usr/lib/python3/dist-packages/ewmh.py", line 50, 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'Invalid MIT-MAGIC-COOKIE-1 key'

- Seems to happen because of this bug that has been fixed upstream
https://github.com/LiuLang/python3-xlib/issues/6

- I never got this error message on Ubuntu 15.04
- it only appeared, on Ubuntu 14.04, after updating to Vivid kernel and X stack
- installing "python3-xlib" from Vivid repository resolved the issue