Bug 4636

Summary: Unable to open nvidia-settings (Control display is undefined)
Product: Fedora Reporter: Jones <jonespanicker>
Component: xorg-x11-drv-nvidiaAssignee: leigh scott <leigh123linux>
Status: RESOLVED FIXED    
Severity: normal CC: hans, kwizart, leigh123linux, negativo17
Priority: P1    
Version: unspecified   
Hardware: x86_64   
OS: GNU/Linux   
namespace:
Attachments: nvidia-bug-report-log

Description Jones 2017-08-19 12:48:49 CEST
Hi,

I did a fresh install of Fedora 26, and followed the instructions in https://rpmfusion.org/Howto/NVIDIA to install nvidia drivers.

The installation was successful, to see if my system is using nvidia-driver I tried to open nvidia-settings.

I get the following error:

ERROR: Unable to find display on any available system

I also tried running with sudo, I got the following error:

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


I am using ASUS R558U Laptop which has 930MX GPU, and also Intel integrated graphics card.

Note: I am trying Fedora now as I got fed up with Ubuntu (Mint with Cinnamon, Mate, KDE, Kubuntu 16.04, .10, 17.04) and nvidia-driver because my system was not resuming from sleep.

From many forums and discussions I realized that it might be due to optimus issues. Fedora 25 onwards, I read that, supports optimus out of the box...

No sleep-resume issues with Fedora 26, but I am not sure if nvidia-drivers are being used, and I can't open nvidia-settings.
Comment 1 leigh scott 2017-08-19 15:39:24 CEST
Post

xrandr
Comment 2 Jones 2017-08-19 16:55:00 CEST
[jonesp@localhost ~]$ xrandr
Screen 0: minimum 320 x 200, current 1920 x 1080, maximum 8192 x 8192
XWAYLAND0 connected 1920x1080+0+0 (normal left inverted right x axis y axis) 340mm x 190mm
   1920x1080     60.05*+
Comment 3 Jones 2017-08-19 17:05:41 CEST
In the instructions page I see the below now

"Wayland

Gnome with Wayland and NVIDIA doesn't work together at this point. There are probably issues around libglvnd, and mutter might need to enable support for egl-device (which is the NVIDIA API for buffer management as opposed to Mesa GBM). "

So what do I do? Alternative?

Should I do this? https://ask.fedoraproject.org/en/question/96134/how-can-i-set-xorg-as-a-default-on-fedora-25/
Comment 4 leigh scott 2017-08-19 17:11:22 CEST
(In reply to Jones from comment #3)

Yes, If you want to use nvidia.

> Should I do this?
> https://ask.fedoraproject.org/en/question/96134/how-can-i-set-xorg-as-a-
> default-on-fedora-25/

Or you could select 'gnome xorg' from gdm select session
Comment 5 Jones 2017-08-19 18:05:12 CEST
I wonder why the default in Fedora 26 is Wayland and it's not supported by Nvidia. In this case, it would be have been good if you gave a warning early, during driver installation I had not even gone down to read the Wayland warning. Even if I had, I would have thought it's for people who do other customization. Thought everything would just work out of the box.

Thanks anyway, I tried gnome xorg, I got the nvidia-settings GUI to run, but now it said xconfig file is missing, asked me to run nvidia-xconfig and restart. I did that, and then onwards I have not been able to log in to gnome xorg.

I decided to reinstall Nvidia drivers as per instructions from xorg gnome, for that I'm reinstalling Fedora from scratch.

Thanks for the support.
Comment 6 leigh scott 2017-08-19 18:52:37 CEST
(In reply to Jones from comment #5)
> I wonder why the default in Fedora 26 is Wayland and it's not supported by
> Nvidia. In this case, it would be have been good if you gave a warning

It's gnome/mutter that doesn't support nvidia wayland, I suspect your using optimus hardware or the nvidia kernel failed to compile.
Without any logs it's just a guess


> early, during driver installation I had not even gone down to read the
> Wayland warning. Even if I had, I would have thought it's for people who do
> other customization. Thought everything would just work out of the box.
> 
> Thanks anyway, I tried gnome xorg, I got the nvidia-settings GUI to run, but
> now it said xconfig file is missing, asked me to run nvidia-xconfig and
> restart. I did that, and then onwards I have not been able to log in to
> gnome xorg.

Running  nvidia-xconfig is guaranteed to break your install, nvidia-settings warning should be ignored.
The driver package already has the required conf files, FYI the file nvidia-settings is referring to has been obsolete since Fedora 12/13 release. 

Next time post the output file for 


sudo nvidia-bug-report.sh




> 
> I decided to reinstall Nvidia drivers as per instructions from xorg gnome,
> for that I'm reinstalling Fedora from scratch.
> 
> Thanks for the support.
Comment 7 leigh scott 2017-08-19 19:00:00 CEST
(In reply to leigh scott from comment #6)

> It's gnome/mutter that doesn't support nvidia wayland, I suspect your using
> optimus hardware or the nvidia kernel failed to compile.

Or maybe you have secure boot enabled?
Comment 8 Jones 2017-08-19 19:12:33 CEST
Next time I'll post the output of nvidia-bug-report. And I'll ignore warnings of nvidia-settings.

I don't know if secure boot is enabled. My BIOS settings has no such option, neither it has an option to turn off Optimus/integrated-graphics. (Tell if me there is something else I should try.)

I have reinstalled Fedora 26 and later will login gnome using xorg and install nvidia drivers. I hope everything will be fine then.

Thanks a lot for quick replies. :) Is it better to wait for me to install and see everything works fine and then mark this as solved? I'll update in a day. Or should we mark this solved and if something goes wrong I'll file a new bug report?
Comment 9 Jones 2017-08-20 09:16:56 CEST
Created attachment 1841 [details]
nvidia-bug-report-log
Comment 10 Jones 2017-08-20 09:25:40 CEST
I reinstalled, and now it's working. Thanks for the help.

But the same old suspend-resume-blackscreen problem is still there. This was the reason I tried Fedora, but now it seems like it's some other problem altogether.

This is not the bug I reported initially, but any suggestion on what I can do regarding this? The problem is, when using Nvidia driver, every single time I suspend the machine, it wakes up to black screen with fan working at high speed. I have to press power button for a few seconds to turn it off again. Please let me know if you can give any directions to fix this issue, or at least where I should be reporting this separate bug.

I have attached the nvidia-bug-report-log file generated.