Kodi Community Forum

Full Version: Cannot get root display. Is X11 running and is your DISPLAY variable set?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
After a fresh install of hardy, updated vga driver using envy, installed latest XBMC via PPA (SVN), when I try to launch xbmc, I get the following error message:

Cannot get root display. Is X11 running and is your DISPLAY variable set?
CRITSEC[0x8bb5184]: Trying to enter destroyed section.
CRITSEC[0x8bb5184]: Some other thread trying to leave our critical section.

I have no idea, where I did it wrong. Does anybody have?

Thank you!
Same with HARDY PPA and SVN PPA (daily builds) version as well Sad
are you running it from SSH ? try running it directly from you HTPC.
No, I am trying directly from the HTPC
olympia:

What happens if you type "xclock" from the same terminal you are attempting to invoke xbmc from?

If xclock also fails to open you are dealing with a more general linux problem than what is suitable for these forums...:confused2:
[email protected]:/usr/share/xbmc# xclock
Error: Can't open display:

Shocked
Try not running it as root

Also, are you running this as a chroot?
WOW, it is running, while not running as a root! Thank you! I would have never figured it out by myself. Interesting...

Earlier versions was running as root, I am pretty sure about that.
If you want to run it as root, try export DISPLAY first:

export DISPLAY=:0.0
You DON'T want to run it as root.

Also, randomly throwing root access at "problems" is a very good way to get yourself in trouble. Best to find out what the real problem is.
JackieBrown Wrote:Try not running it as root

Also, are you running this as a chroot?


sorry but im getting the same thing here on hardy. every now and then im thrown out to prompt and when i type exit it sort of restart xbmc and runs it but if i try to type xbmc at prompt i get the same feedback olympia stated at the beginning of this thread
Code:
Cannot get root display. Is X11 running and is your DISPLAY variable set?
CRITSEC[0x8bb5184]: Trying to enter destroyed section.
CRITSEC[0x8bb5184]: Some other thread trying to leave our critical section.

what do you mean by not running it as root?
Actually if you when you get that error you hit ctl-altf7 you will see that xbmc is in fact running. Then if you check your xorg.log you will see (EE) error in there that is looking for and cannot find something to do with the xdriver you are running, I have seen this happen with the glx driver and not the actual NVIDIA downloaded driver. another thing, if you are dwnlding the glx driver from ubuntu make sure you specify the driver you want ie

sudo apt-get install nvidia-glx-177 or nvidia-glx-180 and if you have already installed the 180.22 driver from the NVIDIA site DO not try and install the glx overtop of it. You must run

sudo sh NVIDIA-Linux-x86-180.22-pkg1.run --uninstall first.

my command line above may not be correct I am going by memory but I am sure you know what line I mean.

you can also try this when you get that error

sudo nvidia-xconfig

and let it overwrite the current xorg file with a new one. Your old one will get backed up once you find the error you can change back.

Regards,

Dave