Multiscreen laptop and HDMI
by leydar from LinuxQuestions.org on (#59CCX)
Hi,
I'm running Ubuntu 20.04.1 LTS with Gnome 3.36.3 on a Novatech laptop with Mesa Intel(R) HD Graphics 630 (KBL GT2) onboard and Nvidia GeForce GTX 1070.
A couple of days ago it crashed back to the graphical login screen after I logged in. I switched to a virtual terminal to try and figure out what was going on. I installed nvidia-driver-450 and rebooted. I alternated between installing the drivers in Gnome and from the CLI with apt-get. I purged nvidia* drivers and reinstalled and rebooted.
I'm now at a point where I can use prime-select to set the system to either intel or nvidia. If I select nvidia it will display correctly on an external monitor but not on the built in monitor. The external one only appears in settings/display. When I select intel and reboot it will display exclusively on the built in laptop screen and not the external monitor. It's also limited to 960*540 resolution. I'm thinking reinstalling the Intel drivers might help but I'd still have a configuration issue. I can't hotkey between screens and only the currently selected one is available via the settings GUI.
This configuration previously displayed on both internal and external screens without issue. I used to see both displays available in settings where now I only see whichever is set by prime-select.
nvidia-smi
Code:Tue Oct 20 21:20:38 2020
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 450.80.02 Driver Version: 450.80.02 CUDA Version: 11.0 |
|-------------------------------+----------------------+----------------------+
| 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 1070 Off | 00000000:01:00.0 On | N/A |
| N/A 45C P2 31W / N/A | 250MiB / 8119MiB | 0% Default |
| | | N/A |
+-------------------------------+----------------------+----------------------+
+-----------------------------------------------------------------------------+
| Processes: |
| GPU GI CI PID Type Process name GPU Memory |
| ID ID Usage |
|=============================================================================|
| 0 N/A N/A 1203 G /usr/lib/xorg/Xorg 35MiB |
| 0 N/A N/A 2196 G /usr/lib/xorg/Xorg 91MiB |
| 0 N/A N/A 2701 G /usr/bin/gnome-shell 70MiB |
| 0 N/A N/A 7702 G ...AAAAAAAAA= --shared-files 42MiB |
+-----------------------------------------------------------------------------+xrandr
Code: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) 520mm x 290mm
1920x1080 60.00*+ 59.94
1680x1050 59.95
1440x900 59.89
1280x1024 75.02 60.02
1280x960 60.00
1280x720 60.00 59.94
1024x768 75.03 70.07 60.00
800x600 75.00 72.19 60.32 56.25
720x480 59.94 59.94
640x480 75.00 72.81 59.94
DP-0 disconnected (normal left inverted right x axis y axis)
DP-1 disconnected (normal left inverted right x axis y axis)
DP-2 disconnected (normal left inverted right x axis y axis)
DP-3 disconnected (normal left inverted right x axis y axis)cat /etc/X11/xorg.conf
Code:# nvidia-xconfig: X configuration file generated by nvidia-xconfig
# nvidia-xconfig: version 450.80.02
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/psaux"
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"
HorizSync 28.0 - 33.0
VertRefresh 43.0 - 72.0
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


I'm running Ubuntu 20.04.1 LTS with Gnome 3.36.3 on a Novatech laptop with Mesa Intel(R) HD Graphics 630 (KBL GT2) onboard and Nvidia GeForce GTX 1070.
A couple of days ago it crashed back to the graphical login screen after I logged in. I switched to a virtual terminal to try and figure out what was going on. I installed nvidia-driver-450 and rebooted. I alternated between installing the drivers in Gnome and from the CLI with apt-get. I purged nvidia* drivers and reinstalled and rebooted.
I'm now at a point where I can use prime-select to set the system to either intel or nvidia. If I select nvidia it will display correctly on an external monitor but not on the built in monitor. The external one only appears in settings/display. When I select intel and reboot it will display exclusively on the built in laptop screen and not the external monitor. It's also limited to 960*540 resolution. I'm thinking reinstalling the Intel drivers might help but I'd still have a configuration issue. I can't hotkey between screens and only the currently selected one is available via the settings GUI.
This configuration previously displayed on both internal and external screens without issue. I used to see both displays available in settings where now I only see whichever is set by prime-select.
nvidia-smi
Code:Tue Oct 20 21:20:38 2020
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 450.80.02 Driver Version: 450.80.02 CUDA Version: 11.0 |
|-------------------------------+----------------------+----------------------+
| 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 1070 Off | 00000000:01:00.0 On | N/A |
| N/A 45C P2 31W / N/A | 250MiB / 8119MiB | 0% Default |
| | | N/A |
+-------------------------------+----------------------+----------------------+
+-----------------------------------------------------------------------------+
| Processes: |
| GPU GI CI PID Type Process name GPU Memory |
| ID ID Usage |
|=============================================================================|
| 0 N/A N/A 1203 G /usr/lib/xorg/Xorg 35MiB |
| 0 N/A N/A 2196 G /usr/lib/xorg/Xorg 91MiB |
| 0 N/A N/A 2701 G /usr/bin/gnome-shell 70MiB |
| 0 N/A N/A 7702 G ...AAAAAAAAA= --shared-files 42MiB |
+-----------------------------------------------------------------------------+xrandr
Code: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) 520mm x 290mm
1920x1080 60.00*+ 59.94
1680x1050 59.95
1440x900 59.89
1280x1024 75.02 60.02
1280x960 60.00
1280x720 60.00 59.94
1024x768 75.03 70.07 60.00
800x600 75.00 72.19 60.32 56.25
720x480 59.94 59.94
640x480 75.00 72.81 59.94
DP-0 disconnected (normal left inverted right x axis y axis)
DP-1 disconnected (normal left inverted right x axis y axis)
DP-2 disconnected (normal left inverted right x axis y axis)
DP-3 disconnected (normal left inverted right x axis y axis)cat /etc/X11/xorg.conf
Code:# nvidia-xconfig: X configuration file generated by nvidia-xconfig
# nvidia-xconfig: version 450.80.02
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/psaux"
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"
HorizSync 28.0 - 33.0
VertRefresh 43.0 - 72.0
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