You are not logged in.

#1 2011-05-04 09:23:46

vizipok
Member
Registered: 2011-03-26
Posts: 23

xsetroot: unable to open display ':0' \n No protocol specified[SOLVED]

This problem first occured on my laptop few months ago. I googled for it, and tried several possible solutions, without success.

I don't used to shutdown the computer, just suspend to ram. And i do it every day, without problem, sometimes the uptime is more than one month. But randomly, and not immediately after wake up, i realize, that i can't start any graphic application, and i get this error message on tty1:

xsetroot: unable to open display ':0'
No protocol specified

When this problem occures, my Xorg.0.log looks like this: http://pastebin.com/ivdYg32e

I tried to set and export the DISPLAY and XAUTHORITY variables, without any effect.

If i try to run xhost, i always get the answer:

# xhost +
No protocol specified
xhost:  unable to open display ":0.0"

My notebook has an intel graphic card:

# lspci
00:02.0 VGA compatible controller: Intel Corporation Mobile 945GM/GMS, 943/940GML Express Integrated Graphics Controller (rev 03)
00:02.1 Display controller: Intel Corporation Mobile 945GM/GMS/GME, 943/940GML Express Integrated Graphics Controller (rev 03)

And it's running 2.6.35 kernel, but with other kernels the same problem presents:

# uname -a
Linux  2.6.35-ARCH #1 SMP PREEMPT Sat Oct 30 19:57:05 UTC 2010 i686 Intel(R) Core(TM) Duo CPU L2500 @ 1.83GHz GenuineIntel GNU/Linux

I use dwm, if it does matter. I run also dbus, because wicd needs that.

And this problem comes up very rarely, in every few days, so if any solution suggested here, maybe i need to wait few days to try it. But i very appreciate any suggestions!

Last edited by vizipok (2011-11-04 15:40:24)

Offline

#2 2011-06-01 01:12:16

brianpcurran
Member
Registered: 2011-06-01
Posts: 1

Re: xsetroot: unable to open display ':0' \n No protocol specified[SOLVED]

I'm having this same problem on debian wheezy/testing with kernel 2.6.38. I'm running debian as well. nothing obviously wrong in Xorg.0.log.

I'll try starting X with -logverbose 99 and report back if the logs show anything.

Offline

#3 2011-06-02 07:04:04

vizipok
Member
Registered: 2011-03-26
Posts: 23

Re: xsetroot: unable to open display ':0' \n No protocol specified[SOLVED]

ok, i'm also trying this logverbose.

Offline

#4 2011-10-17 11:42:18

vizipok
Member
Registered: 2011-03-26
Posts: 23

Re: xsetroot: unable to open display ':0' \n No protocol specified[SOLVED]

Finally, this issue has been solved. The solution is very simple, but it took months for me to notice that. The hostname of the machine eventually happens to be unset, i don't know how and why. While there is no hostname (or hostname is empty string), the error described above comes, until i reset the original hostname manualy.

Offline

Board footer

Powered by FluxBB