Monitors connected to on-board HMDI and VGA ports shows blank after installing Nvidia Driver | Fedora 32

Greetings all :slight_smile:

I am using a desktop with 3 monitors.

2 x 21-inch Dell monitors
1 x 34-inch LG monitor

The 2 Dell monitors, one is connected to the VGA port on-board, and the second one is connected to the onboard HDMI port.

The third and the large monitor 34 inches LG is connected to the HDMI port of NVIDIA GeForce GTX 1650 SUPER.

The system was using Windows 10, but I replaced it with Fedora 32 KDE last week, also installed Nvidia driver and CUDA successfully then. It has been working well until today, but I have no idea what really happened in the system or if some system update has undergone without my knowledge, when I tried to boot up the machine today morning, all I can see only the large 32inch LG monitor connected to Nvidia graphic card is showing up. The system is showing disconnected status for the rest two Dell monitors connected on-board VGA and HDMI ports which are using Intel onboard integrated GPU.

Have you guys faced the same issue?.

^ john @ fedora ~ > $ lspci | grep VGA
00:02.0 VGA compatible controller: Intel Corporation HD Graphics 510 (rev 06)
01:00.0 VGA compatible controller: NVIDIA Corporation TU116 [GeForce GTX 1650 SUPER] (rev a1)

^ john @ fedora ~ > $ sudo xrandr 
Screen 0: minimum 8 x 8, current 2560 x 1080, maximum 32767 x 32767
DVI-D-0 disconnected (normal left inverted right x axis y axis)
HDMI-0 connected primary 2560x1080+0+0 (normal left inverted right x axis y axis) 798mm x 334mm
   2560x1080     59.98*+  74.99    50.00  
   1920x1080     75.00    60.00    59.94    50.00  
   1680x1050     59.95  
   1600x900      60.00  
   1280x1024     75.02    60.02  
   1280x800      59.81  
   1280x720      60.00    59.94    50.00  
   1152x864      60.00  
   1024x768      75.03    60.00  
   800x600       75.00    60.32  
   720x576       50.00  
   720x480       59.94  
   640x480       75.00    59.93    59.94  
DP-0 disconnected (normal left inverted right x axis y axis)
DP-1 disconnected (normal left inverted right x axis y axis)

^ john @ fedora ~ > $ sudo lsmod | grep 'i915\|nvidia\|nouveau'
i2c_nvidia_gpu         16384  0
nvidia_drm             57344  9
nvidia_modeset       1216512  24 nvidia_drm
nvidia              27701248  1286 nvidia_modeset
i915                 2621440  1
i2c_algo_bit           16384  1 i915
drm_kms_helper        262144  2 nvidia_drm,i915
cec                    61440  2 drm_kms_helper,i915
drm                   626688  13 drm_kms_helper,nvidia_drm,i915
video                  53248  2 asus_wmi,i915

^ john @ fedora ~ > $ sudo nvidia-smi 
Mon Oct 12 18:14:56 2020       
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 455.28       Driver Version: 455.28       CUDA Version: 11.1     |
|-------------------------------+----------------------+----------------------+
| GPU  Name        Persistence-M| Bus-Id        Disp.A | Volatile Uncorr. ECC |
| Fan  Temp  Perf  Pwr:Usage/Cap|         Memory-Usage | GPU-Util  Compute M. |
|                               |                      |               MIG M. |
|===============================+======================+======================|
|   0  GeForce GTX 165...  Off  | 00000000:01:00.0  On |                  N/A |
|  0%   49C    P8    12W / 100W |    465MiB /  3911MiB |      4%      Default |
|                               |                      |                  N/A |
+-------------------------------+----------------------+----------------------+
                                                                               
+-----------------------------------------------------------------------------+
| Processes:                                                                  |
|  GPU   GI   CI        PID   Type   Process name                  GPU Memory |
|        ID   ID                                                   Usage      |
|=============================================================================|
|    0   N/A  N/A      1366      G   /usr/libexec/Xorg                 183MiB |
|    0   N/A  N/A      1563      G   /usr/bin/kwin_x11                  86MiB |
|    0   N/A  N/A      1566      G   /usr/bin/plasmashell               64MiB |
|    0   N/A  N/A      1842      G   ...akonadi_archivemail_agent        2MiB |
|    0   N/A  N/A      1853      G   .../akonadi_mailfilter_agent        2MiB |
|    0   N/A  N/A      1860      G   ...n/akonadi_sendlater_agent        2MiB |
|    0   N/A  N/A      1862      G   ...nadi_unifiedmailbox_agent        2MiB |
|    0   N/A  N/A      2060      G   ...AAAAAAAAA= --shared-files      113MiB |
+-----------------------------------------------------------------------------+


^ john @ fedora ~ > $ echo $XDG_SESSION_TYPE
x11

^ john @ fedora ~ > $ sudo grep GRUB_CMDLINE_LINUX /etc/sysconfig/grub
GRUB_CMDLINE_LINUX="resume=/dev/mapper/fedora_fedora-swap rd.lvm.lv=fedora_fedora/root rd.lvm.lv=fedora_fedora/swap rhgb quiet rd.driver.blacklist=nouveau modprobe.blacklist=nouveau nvidia-drm.modeset=1"

^ john @ fedora ~ > $ cat /etc/modprobe.d/blacklist.conf 
blacklist nouveau
options nouveau modeset=0
options nvidia-drm modeset=1

^ john @ fedora ~ > $ cat /etc/X11/xorg.conf
# nvidia-xconfig: X configuration file generated by nvidia-xconfig
# nvidia-xconfig:  version 455.28


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

Section "Files"
EndSection

Section "InputDevice"

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

Section "InputDevice"

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

Section "Monitor"
    Identifier     "Monitor0"
    VendorName     "Unknown"
    ModelName      "Unknown"
    Option         "DPMS"
EndSection

Section "Device"
    Identifier     "Device0"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
EndSection

Section "Screen"
    Identifier     "Screen0"
    Device         "Device0"
    Monitor        "Monitor0"
    DefaultDepth    24
    SubSection     "Display"
        Depth       24
    EndSubSection
EndSection

nvidia-bug-report Dropbox - nvidia-bug-report.log.gz - Simplify your life

nvidia-settings Imgur: The magic of the Internet

What could be wrong here?.

Is the Nvidia 1650 the only nvidia graphics card installed?
Is the nvidia set to be the primary GPU?
Had you rebooted after installing the nvidia drivers before today?

On my laptop which has one HDMI port as well as the laptop display with the integrated intel GPU and an integrated nvidia 1660, I can use the intel GPU or the nvidia GPU but not both. I think it may be that the kernel cannot handle multiple GPUs and sends the display to the primary only.

You appear to have 2 display port connections on the nvidia card as well as the HDMI (xrandr shows DP0 and DP1) Maybe you can try connecting the other 2 monitors to the display ports and see if that works with all the monitors connected to the same GPU. It does on my desktop with a GeForce GTX 1050.

Hi @computersavvy , thanks for jumping in.

Is the Nvidia 1650 the only nvidia graphics card installed?

Yes, correct, that is the only Nvidia graphics installed. Other than that only onboard Intel graphics only exist there.

Is the nvidia set to be the primary GPU?
I don’t think I did that

These two files does not exist on my system, is that normal?. How do you set Nvidia as Primary GPU?.

^ john @ fedora ~ > $ sudo ls -l /usr/share/X11/xorg.conf.d/nvidia.conf /etc/X11/xorg.conf.d/nvidia.conf
ls: cannot access '/usr/share/X11/xorg.conf.d/nvidia.conf': No such file or directory
ls: cannot access '/etc/X11/xorg.conf.d/nvidia.conf': No such file or directory

Had you rebooted after installing the nvidia drivers before today?

Yes, indeed, many times, and there was not an issue at that time. All 3 monitors worked.

One thing I want to update is, I installed Nvidia driver and CUDA manually by downloading rpm/run files from their official websites. May be that is the issue?. Is this supposed to be installed only via rpmfusion’s Nvidia?.

From the following results, I think Nvidia is my primary GPU right?.

^ john @ fedora ~ > $ sudo glxinfo|egrep "OpenGL vendor|OpenGL renderer"
OpenGL vendor string: NVIDIA Corporation
OpenGL renderer string: GeForce GTX 1650 SUPER/PCIe/SSE2

c698cb5a94939fbda5f69c384fd5004207a0a066.png

I have seen several problems caused by installing from the nvidia site that were cleared up by removing the nvidia packages and reinstalling from rpmfusion. The instructions can be found here Howto/NVIDIA - RPM Fusion . Rpmfusion has tweaked the packages so they work with fedora, and updates them specifically with each kernel release.

Yes, it seems that is the only GPU active, but I don’t know how screenfetch works so can’t say for sure.

As I said earlier, I would suggest that you try attaching the other monitors to the display ports on that GPU and it should then work.

BTW, in my experience many MOBOs have onboard graphics but the bios usually disables the onboard and switches to a dedicated GPU when it is installed and the drivers become active.

Thank you :slight_smile:

I will give it a shot on rpmfusion’s Nvidia and see if it helps.

and thanks for the other suggestions too.

I will update here how it goes.

1 Like

ok, I fixed it now :slight_smile: and did not think it was that simple.

From Howto/NVIDIA - RPM Fusion

This is the key point to solution:

Please remember that once the driver is installed, there is no need to configure xorg.conf by default unless you are using an Optimus device. Changes will take effect after a full reboot on the newest kernel.

It was not an Optimus device in my case on the desktop, but on my dell laptop has got one.

^ john @ fedora ~ > $ sudo lspci -k | grep -A3 VGA
00:02.0 VGA compatible controller: Intel Corporation HD Graphics 510 (rev 06)
        DeviceName:  Onboard IGD
        Subsystem: ASUSTeK Computer Inc. Device 8694
        Kernel driver in use: i915
--
01:00.0 VGA compatible controller: NVIDIA Corporation TU116 [GeForce GTX 1650 SUPER] (rev a1)
        Subsystem: Gigabyte Technology Co., Ltd Device 401a
        Kernel driver in use: nvidia
        Kernel modules: nouveau, nvidia_drm, nvidia

^ john @ fedora ~ > $ sudo lspci -k | grep -A3 3D
^ john @ fedora ~ > $ 

Well, I guess at some point, the command " sudo nvidia-xconfig " was accidentally executed and it overwrote the xorg.conf which caused this issue.

To solve this, I simply moved the current file and touched a new blank one.

^ john @ fedora ~ > $ sudo mv -f /etc/X11/xorg.conf /etc/X11/xorg.conf_bak 
^ john @ fedora ~ > $ 
^ john @ fedora ~ > $ sudo touch /etc/X11/xorg.conf
^ john @ fedora ~ > $ 

Rebooted and now all looks good.

All 3 monitors are up and the middle 34 inch LG Monitor powered by Nvidia GPU, and the other two side Dell 21inch monitors powered by onboard Intel GPU.

Well, that is a bit odd that the file contained values that broke the displays. Glad that you found the fix though.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.