Black screen when configuring NVidia Driver

archwiki recommending to not use xorg.conf, but you can do so only make sure not have another conf in the .d directory like you have now :wink: you can merge the xorg.conf into the /etc/X11/xorg.conf.d/20-nvidia.conf but not needed…

ok thanks

I didn’t think there was an xorg.conf you said originally and I said create the /etc/X11/xorg.conf.d/20-nvidia.conf. Was this right or was I wrong?

No…I was saying if I have nvidia-settings generate the xorg.conf and reboot I would get the black screen.
When I was going through the online install and selected to install nvidia drivers, I would think after rebooting the nvidia driver would get set automaically but that obviously didn’t happen. I probably needed to run nvidia-install-dkms to have drivers installed.
Regardless, I took Beardedgeek72’s advise and re-installed without selecting nvidia-drivers during install and installed and ran nvidia-installer-dkms after booting into new system and so far it seems to run nice. I will further run more apps/games to check performance later today.

One thing I’ve noticed during install, the installer had the nvidia-installer-dkms checked-off to install but it never did install it. Weird!! So I had to install it manually.

Will update this later after running more tests.

Thanks everyone for the help.

I have never used nvidia-settings to generate the xorg.conf so i don’t know. Nice its working now.

Update…
So now I’m not getting good GPU performance. If I play BZFlag I’m only getting around 20 FPS and everything is very jittery. If I stretch my browser window it’s not very smooth. Not sure what to try next.
Am I not generating the 20-nvidia.conf file correctly? I’ve always used nvidia-settings to do so.

That’s not the case for me.
I left the existing “20-nvidia.conf” alone in said folder, generated a xorg.conf and put it directly into /etc/X11; working perfectly as i can verify the composition pipeline is set as desired.

@skaffen…Can you please post your settings?

Sure:

cat /etc/X11/xorg.conf
# nvidia-settings: X configuration file generated by nvidia-settings
# nvidia-settings:  version 455.45.01

Section "ServerLayout"
    Identifier     "Layout0"
    Screen      0  "Screen0" 0 0
    InputDevice    "Keyboard0" "CoreKeyboard"
    InputDevice    "Mouse0" "CorePointer"
    Option         "Xinerama" "0"
EndSection

Section "Files"
EndSection

Section "Module"
    Load           "dbe"
    Load           "extmod"
    Load           "type1"
    Load           "freetype"
    Load           "glx"
EndSection

Section "InputDevice"
    # generated from default
    Identifier     "Mouse0"
    Driver         "mouse"
    Option         "Protocol" "auto"
    Option         "Device" "/dev/psaux"
    Option         "Emulate3Buttons" "no"
    Option         "ZAxisMapping" "4 5"
EndSection

Section "InputDevice"
    # generated from default
    Identifier     "Keyboard0"
    Driver         "kbd"
EndSection

Section "Monitor"
    # HorizSync source: edid, VertRefresh source: edid
    Identifier     "Monitor0"
    VendorName     "Unknown"
    ModelName      "DELL P190S"
    HorizSync       30.0 - 81.0
    VertRefresh     56.0 - 76.0
    Option         "DPMS"
EndSection

Section "Device"
    Identifier     "Device0"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
    BoardName      "GeForce GTX 1060 6GB"
EndSection

Section "Screen"
    Identifier     "Screen0"
    Device         "Device0"
    Monitor        "Monitor0"
    DefaultDepth    24
    Option         "Stereo" "0"
    Option         "nvidiaXineramaInfoOrder" "DFP-6"
    Option         "metamodes" "DVI-D-0: nvidia-auto-select +1920+0 {rotation=left}, DP-4: 1920x1080_144 +0+0 {ForceCompositionPipeline=On, ForceFullCompositionPipeline=On}"
    Option         "SLI" "Off"
    Option         "MultiGPU" "Off"
    Option         "BaseMosaic" "off"
    SubSection     "Display"
        Depth       24
    EndSubSection
EndSection

How can I confirm my NVidia Drivers are being used?

inxi -Fxxxzac --no-host

shows it: driver: nvidia

Why is it showing nouveau end the end? Can I uninstall that?

there is nouveau modesetting driver included in the kernel, so you can not remove that and no need to do so, the package xf86-video-nouveau will not be installed.

Is this why I see this…modesetting failed?

[guido@endeavourOS Desktop]$ inxi -G
Graphics:
  Device-1: NVIDIA GM200 [GeForce GTX 980 Ti] driver: nvidia v: 455.45.01 
  Display: x11 server: X.org 1.20.10 driver: modesetting FAILED: nvidia 
  resolution: <missing: xdpyinfo> 
  Message: Unable to show advanced data. Required tool glxinfo missing.

yes as it seems currently try to use nouveau modesetting driver from kernel instead of the installed nvidia driver and then nvidia driver fails to run.
So you will need to force the nvidia driver to load early in boot process as we do show in the wiki:
https://endeavouros.com/docs/hardware-and-network/graphic-cards-gpu-driver-and-setup/nvidia/nvidia-optional-enhancements-and-troubleshooting/

One thing to try if nothing else helps is blacklist nouveau.

You can do that e.g. in file /etc/default/grub:

GRUB_CMDLINE_LINUX_DEFAULT="loglevel=3 quiet nowatchdog module_blacklist=nouveau"

and then regenerate grub.cfg and reboot.

I thought this was done automatically if you used the nvidia installer?

The advise from joekamprad worked. I’m going to blacklist nouveau reguardless.
Schweeet!

Thanks

1 Like

Yes it should. But at what stage, i can’t check now (using a tablet…).

1 Like