I have an HP Envy 15-ep0142TX, i7-10750H, GeForce RTX 2060 with Max-Q Design, NVIDIA Drivers 460.73.01. The question is long, but please kindly help me out here.
Preface
I had dual booted my laptop (Windows 10 Home + Xubuntu 20.04) long ago. Initially, I faced an issue of vertical lines in the bottom half of my laptop screen. This did not appear on any external display connected through the HDMI (or thunderbolt ports). To save my laptop’s AMOLED display, I set the system to boot with nomodeset
(thinking that it may have been a video driver issue during boot). To accomplish this, in my /etc/default/grub
, I set GRUB_CMDLINE_LINUX_DEFAULT="nomodeset"
and did sudo update-grub
. It caused a different problem altogether (while partially fixing this issue). In the Additional Drivers
, I set my graphics card to use nvidia-driver-460
because my work needed NVIDIA drivers.
Main Issue
Boot on Laptop Display only - No Desktop
When I boot my laptop, with no external display connected, I boot into a blank screen (it goes blank after the Starting Light Desktop Manager
message at boot). I can enter a console using Ctrl + Alt + F1
, but cannot start a desktop. I try to run startx
, but the command just freezes without giving an error. I’m guessing that it’s an Xorg issue.
I ran startx -- -logverbose 6
in tty1
, it was unsuccessful and got stuck (no error) and then ran sudo nvidia-bug-report.sh
in tty2
. The generated log is in nvidia-bug-report-nogui.log.gz
(log file at the bottom, I renamed the file generated as there are multiple logs attached here).
External Display connected - Desktop
When I boot my laptop with an external display attached to the HDMI port, only the external display functions as the desktop. The laptop display doesn’t even get detected. I even check with the Display app (output below)
The Samsung 23''
is the external display. I think the laptop display is not getting recognized. If I attach another external display through the thunderbolt port, it too gets recognized and I can use it as I normally would. Only the laptop’s display doesn’t seem work (blank, but the back light seems on).
I booted the computer with the external display attached and ran sudo nvidia-bug-report.sh
. The results are in nvidia-bug-report.log.gz
(log file at the bottom). I can use the computer through this display, but it makes mobile work very difficult (I can’t access a desktop when using NVIDIA drivers).
Nouveau - Laptop display works (no external display)
When I set the graphics card drivers to xserver-xorg-video-nouveau
(in Additional Drivers
), the laptop display works well after boot (no vertical lines error). But, the system does not detect any display connected to either of the Thunderbolt ports (they have DisplayPort) or the HDMI. So I cannot use any external display if I want to use my laptop display. Additionally, as I cannot access NVIDIA drivers, I cannot do some parts of my work.
Conclusion
My work would become a lot easier if I could use my laptop display (without half of it showing vertical lines) and an external display. I do not experience this issue on my Windows partition (where both the displays - my laptop and any external ones I attach - work fine).
Another weird thing is that the touchscreen of my laptop display works (even when only the external display is working / showing a desktop). I can actually tap somewhere and the cursor moves there (corresponding location on the external display). So I really do not know why or how would that happen, but it means that the OS knows that the display is there.
Supplementary material
- Output of
sudo lshw -html
inlshw.html
(attached in the end)
Command outputs
nvidia-smi
gives
Sat May 22 00:15:26 2021
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 460.73.01 Driver Version: 460.73.01 CUDA Version: 11.2 |
|-------------------------------+----------------------+----------------------+
| 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 RTX 206... Off | 00000000:01:00.0 On | N/A |
| N/A 44C P8 9W / N/A | 198MiB / 5934MiB | 5% Default |
| | | N/A |
+-------------------------------+----------------------+----------------------+
+-----------------------------------------------------------------------------+
| Processes: |
| GPU GI CI PID Type Process name GPU Memory |
| ID ID Usage |
|=============================================================================|
| 0 N/A N/A 989 G /usr/lib/xorg/Xorg 182MiB |
| 0 N/A N/A 1457 G xfwm4 2MiB |
| 0 N/A N/A 3708 G /usr/lib/firefox/firefox 1MiB |
| 0 N/A N/A 3858 G /usr/lib/firefox/firefox 1MiB |
| 0 N/A N/A 4047 G /usr/lib/firefox/firefox 1MiB |
| 0 N/A N/A 4235 G /usr/lib/firefox/firefox 1MiB |
| 0 N/A N/A 5041 G /usr/lib/firefox/firefox 1MiB |
+-----------------------------------------------------------------------------+
nvidia-smi -L
gives
GPU 0: GeForce RTX 2060 with Max-Q Design (UUID: GPU-608b17a0-0b01-ab7d-4e56-2ee5e2734f57)
xrandr
gives (when NVIDIA driver is being used, external display connected)
Screen 0: minimum 8 x 8, current 1920 x 1080, maximum 32767 x 32767
DP-0 disconnected (normal left inverted right x axis y axis)
DP-1 disconnected (normal left inverted right x axis y axis)
HDMI-0 connected 1920x1080+0+0 (normal left inverted right x axis y axis) 521mm x 293mm
1920x1080 60.00*+ 59.94 50.00
1680x1050 59.95
1600x900 60.00
1440x900 59.89
1280x1024 60.02
1280x800 59.81
1280x720 60.00 59.94 50.00
1024x768 70.07 60.00
800x600 72.19 60.32 56.25
720x576 50.00
720x480 59.94
640x480 72.81 59.94
DP-2 disconnected (normal left inverted right x axis y axis)
DP-3 disconnected (normal left inverted right x axis y axis)
This one is particularly surprising, as it doesn’t even list eDP-1
uname -a
gives
Linux talos 5.8.0-53-generic #60~20.04.1-Ubuntu SMP Thu May 6 09:52:46 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
lsb_release -a
gives
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 20.04.2 LTS
Release: 20.04
Codename: focal
Please help me out here. Thanking you in advance.
nvidia-bug-report-nogui.log.gz (245.2 KB)
nvidia-bug-report.log.gz (255.9 KB)
lshw.html (111.4 KB)