You are not logged in.

#1 2014-08-12 03:19:42

Alexmar
Member
Registered: 2010-10-08
Posts: 19

Random loss of conectivity to X as ”cannot open display :0”

This issue has been happening to me for quite a while, maybe 8 months.

I use normally the system for any amount of time (it can be from 10 minutes to 48 hours), then I am unable to open any graphical program for apparently no reason. I can use any already open program until I close it, then I won't be able to open it again until I log off and log in again.

I am using XFCE but in the last months have also experienced the same issue on KDE and Enlightenment, actually in the beginning I thought the problem was because of Enlightenment.

The only info I have is through journalctl in a different terminal, if I open a program when the problem has come, every attempt results in: “Invalid MIT-MAGIC-COOKIE-1 key” followed by a “GTK Warning: cannot open display :0”

So far the only hypothesis I have is that it has something to do with network connections, since I have noted these issues happen right after there is some disconnection or issue authenticating to the LAN, either via cable or wireless.

But I have no more ideas on how to diagnose this issue more correctly.

Is someone else having such issue here as well? May someone please give me a recommendation.

Last edited by Alexmar (2014-08-12 03:21:17)

Offline

#2 2014-08-12 10:36:50

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Random loss of conectivity to X as ”cannot open display :0”

I've been having these issues too, but IIRC they happened on xorg-server 1.15 and they went away with the update to 1.16.
I was starting programs from the terminal, so I got these error messages in the terminal, I didn't have to look for them in the journal.

Offline

#3 2014-08-12 11:17:43

loqs
Member
Registered: 2014-03-06
Posts: 19,113

Re: Random loss of conectivity to X as ”cannot open display :0”

Set_the_hostname
Similar thread https://bbs.archlinux.org/viewtopic.php?id=183951
You can check using hostnamectl or manually checking /etc/hostname

Offline

#4 2014-08-19 16:35:53

Alexmar
Member
Registered: 2010-10-08
Posts: 19

Re: Random loss of conectivity to X as ”cannot open display :0”

Yes, the problem was triggered by reconnections, then the hostname ended up as localhost.localdomain rather than localhost alone.
There should be a way to fix that unwanted hostname change.

Offline

Board footer

Powered by FluxBB