# Could not open X display

**URL:** <https://forums.developer.nvidia.com/t/could-not-open-x-display/50812>\
**Category:** Linux\
**Created:** [June 15, 2017, 6:27pm UTC](https://forums.developer.nvidia.com/t/could-not-open-x-display/50812 "2017-06-15T18:27:33Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![kodwick](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@kodwick](https://forums.developer.nvidia.com/u/kodwick)\
**Post date:** [June 15, 2017, 6:27pm UTC](https://forums.developer.nvidia.com/t/could-not-open-x-display/50812/1 "2017-06-15T18:27:33Z")

</div>

root@localhost X11]# nvidia-settings --page=“X Screen0”  
No protocol specified

\*\* (nvidia-settings:23438): WARNING \*\*: Could not open X display

ERROR: Unable to find display on any available system

After install nvidia proprietary driver 375.66 this error came((

---

<div class="post-metadata">

**Author:** ![towo](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@towo](https://forums.developer.nvidia.com/u/towo)\
**Post date:** [June 15, 2017, 7:09pm UTC](https://forums.developer.nvidia.com/t/could-not-open-x-display/50812/2 "2017-06-15T19:09:53Z")

</div>

root can’t use users x-server!  
why you want to start nvidia-settings as root?  
And if you really want it, do xhost + as user before.

Given you do this from a running x-session.

---

<div class="post-metadata">

**Author:** ![aplattner](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/aplattner/32/14043_2.png) [@aplattner](https://forums.developer.nvidia.com/u/aplattner)\
**Post date:** [June 20, 2017, 7:45pm UTC](https://forums.developer.nvidia.com/t/could-not-open-x-display/50812/3 "2017-06-20T19:45:40Z")

</div>

Don’t use “xhost +”, it allows anyone and everyone to connect to your X server!

You can either set the XAUTHORITY environment variable for the root shell to point at your user’s authority file, or do “xhost +si:localuser:root” to allow root to connect to the X server without the authority file.

If you’re using nvidia-settings to edit xorg.conf, I would recommend running it as a normal user, saving the new xorg.conf somewhere your user can write to, and then switching to root only to copy it to /etc/X11.

---

<div class="post-metadata">

**Author:** ![kodwick](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@kodwick](https://forums.developer.nvidia.com/u/kodwick)\
**Post date:** [June 21, 2017, 1:56am UTC](https://forums.developer.nvidia.com/t/could-not-open-x-display/50812/4 "2017-06-21T01:56:05Z")

</div>

Not gonna work, still tearing on nvidia gtx 870m.

---

<div class="post-metadata">

**Author:** ![kodwick](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@kodwick](https://forums.developer.nvidia.com/u/kodwick)\
**Post date:** [June 21, 2017, 1:57am UTC](https://forums.developer.nvidia.com/t/could-not-open-x-display/50812/5 "2017-06-21T01:57:02Z")

</div>

Not gonna work, still tearing on nvidia gtx 870m.
