Ask Your Question

nvidia-settings not running

asked 2017-11-25 05:29:32 -0600

berkozel1911 gravatar image

Hi! I installed Fedora 27 to my laptop today. I have hybrid graphics trouble on other linux distros so i installed first Intel HD Graphics driver using Intel Graphics Update Tool for Linux.

And i installed my Nvidia driver using this guide

Fedora Nvidia Guide

I completed installation without error. And i realised hardware acceleration enabled, because Gnome's window effect working after installation.

Now the system running on Nvidia card, but Settings > Details showing me Graphics : Intel HD Graphics 530 Skylake GT2. I can understand which GPU is running for graphics in my laptop. If power button's led is red, means Nvidia is running. If it's blue, Intel HD is running for grahpcs.

The PC is running now some hot. So i want to switch Intel HD Graphics for daily-using, battery life and warm. I trying switch on sudo nvidia-settings and it's showing up:

[sanjarkhan@sanjarkhan ~]$ sudo nvidia-settings
[sudo] password for sanjarkhan: 
No protocol specified
Unable to init server: Could not connect: Connection refused

ERROR: The control display is undefined; please run `nvidia-settings --help`
       for usage information.

My PC is MSI GP62-6QE. Intel Core i7-6700HQ. NVIDIA GTX 950m. 8G DDR4 RAM.

edit retag flag offensive close merge delete

4 Answers

Sort by ยป oldest newest most voted

answered 2017-11-25 06:08:14 -0600

FeRDNYC gravatar image

Because it communicates with the graphics card being used to display the currently logged-in desktop, nvidia-settings needs to be run as the logged-in user, not root. You shouldn't launch it with sudo. (And as you're seeing, with the introduction of Wayland as a replacement for Xorg, no GUI apps can be run as root through sudo or any other method. They don't have permission to access the logged-in user's display server.)

I'm not sure that nvida-settings would be able to switch your laptop's hybrid graphics over to the Intel chip, anyway. Its function is to monitor and configure Nvidia GPUs, and I would expect it to know nothing about the Intel side of things. I could be wrong, and I'll disclaim that I've never used one of these setups, but to configure / switch your laptop's Nvidia Optimus hybrid graphics, my best guess is that you'd want to get the Bumblebee software installed and configured. At which point (according to the docs) the Nvidia GPU should automatically stay disabled, unless it's specifically requested by/for an application which needs it.

edit flag offensive delete link more

answered 2017-11-25 08:16:25 -0600

scottro gravatar image

Someone had a similar issue on Fedora Forums, but Leigh, who I believe maintains NVidia for rpmfusion (though I could be wrong) gave an answer.

Apparently it's not working with Wayland.

edit flag offensive delete link more

answered 2017-11-25 11:31:32 -0600

berkozel1911 gravatar image

@FeRDNYC i tried already in non-root permissions.

@scottro so, how can i use Intel HD?

Installed fedora-prime-select ran command fedora-prime-select intel but not worked.

edit flag offensive delete link more


Please post the error message or other output you get running nvidia-settings as the user logged in to the desktop session. The output of glxinfo might also be informative, again run as the session owner.

Also, unless there's something preventing you from doing so (limited new-user rights?), it's preferred if you respond to posted answers by leaving a Comment on the answer, not by posting a new, separate answer. Thanks.

FeRDNYC gravatar imageFeRDNYC ( 2017-11-25 20:10:35 -0600 )edit

answered 2017-11-25 12:22:34 -0600

scottro gravatar image

Sorry, I don't know the answer of how to only use the Intel card, I've not worked with a machine that has two video cards. Your question just caught my eye because I'd seen that similar issue on the forums. Hopefully, someone experienced with hybrid graphics can answer. (It might be worth asking a separate question for it?)

edit flag offensive delete link more

Question Tools


Asked: 2017-11-25 05:29:32 -0600

Seen: 1,444 times

Last updated: Nov 25 '17