I have recently installed Fedora 32 on my machine -HP Zbook x360- with nouveau drivers working fine on the laptop screen and an external monitor.
As I want to use some python libraries that need to run from the GPU, it was recomended to install the most recent nVidia drivers. After some cumbersome hours (with some
rpm -e kernel in the meanwhile as things started to fail – I am almost new to both Linux and Fedora ), I got nvidia drivers installed and working on the laptop thanks to https://rpmfusion.org/Howto/NVIDIA.
However, the laptop screen is black, not showing anything (although it shows the grub and the previous kernel still works fine with nouveau drivers). Fedora only appears in the second monitor (connected by an HDMI) as if it were the “main” screen.
With the old nouveau drivers,
xrandr outputs the following:
(base) [callejonm@localhost ~]$ xrandr Screen 0: minimum 16 x 16, current 3840 x 1080, maximum 32767 x 32767 XWAYLAND0 connected 1920x1080+0+0 (normal left inverted right x axis y axis) 340mm x 190mm 1920x1080 59.96*+ ... XWAYLAND1 connected 1920x1080+1920+0 (normal left inverted right x axis y axis) 510mm x 290mm 1920x1080 59.96*+ 1440x1080 59.99 ....
With the new nVidia drivers it outputs the following:
(base) [callejonm@localhost ~]$ xrandr Screen 0: minimum 8 x 8, current 1920 x 1080, maximum 32767 x 32767 HDMI-0 connected primary 1920x1080+0+0 (normal left inverted right x axis y axis) 509mm x 286mm 1920x1080 60.00*+ 59.94 50.00 1680x1050 59.95 1600x1200 60.00 1440x900 59.89 1280x1024 60.02 1280x960 60.00 1280x720 60.00 59.94 50.00 1024x768 60.00 800x600 60.32 720x576 50.00 720x480 59.94 640x480 59.94 59.93 DP-0 disconnected (normal left inverted right x axis y axis) DP-1 disconnected (normal left inverted right x axis y axis)
I assume it has something to do with DP-0 and DP-1 being disconnected…
In the meanwhile, I got to configure it so the monitor was the main screen but the laptop screen was still detected. Tried to change it with
nvidia-settings , reboot, and it came back to this state again. I don’t know what to do at all, as I have already tried to modify xorg.config, followed this post https://discussion.fedoraproject.org/t/external-monitor-not-working-on-fedora-31/77906/7, which almost solved the issue.
As I don’t really know what I am doing, I would really appreciate if someone could help me with this issue.
Thank you so much beforehand!