[SOLVED] nvidia drivers issue- blank screen unless I use intel graphics

Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
jmercer
Level 1
Level 1
Posts: 2
Joined: Sat Oct 23, 2021 2:52 pm

[SOLVED] nvidia drivers issue- blank screen unless I use intel graphics

Post by jmercer »

I have installed Mint on a handful of machines and graphics drivers are always a pain, but this time I'm stumped.

I have tried a number of things, and the closest I've gotten it to working is this configuration:
- nvidia-driver-470 installed via the Driver Manager UI
- /etc/modules fix applied as described in viewtopic.php?p=1895521#p1895521 - I'm not actually sure if this is helping, but it doesn't seem to be hurting
- removed nomodeset from GRUB after it had previously helped me get in with nouveau
- changed nvidia prime setting to "intel" by way of "prime-select intel" from recovery mode

The above has allowed me to get into Mint through the graphical login and have stuff on my screen (hurray), but am presented with the warning "Check your video drivers. Your system is currently running without video hardware acceleration..." I want to enable nvidia graphics.

Now if I try to update to "prime-select nvidia" I am back to the "blank screen" issue I've seen in many threads on this forum. In particular, my boot sequence looks like this
1) POST screen comes and goes
2) GRUB screen shows (I updated my GRUB settings to show the splash screen for 10 seconds)
3) Select Linux Mint 20.2
4) Graphical prompt to decrypt hard drive shows (with Mint logo). I enter the password and hit Enter
5) Brief flash of textual login prompt
6) Black screen
7) Attempt to restart X as I've seen suggested elsewhere with ctrl + alt + backspace.
8 ) Cursor momentarily appears in top-left, but it quickly disappears and it's back to the void

Then if I reboot into recovery mode, run "prime-select intel" and reboot, I can get into Mint with the graphical login fine, but get the hardware acceleration warning mentioned above.

Any help would greatly be appreciated; pertinent details below. Thanks!

Laptop: Dell Precision 5560 - disabled Secure Boot in the BIOS
Linux Mint: 20.2 with full disk encryption

Code: Select all

$ inxi -Fxxxrz
System:    Kernel: 5.4.0-89-generic x86_64 bits: 64 compiler: gcc v: 9.3.0 Desktop: Cinnamon 5.0.6 wm: muffin 5.0.2 
           dm: LightDM 1.30.0 Distro: Linux Mint 20.2 Uma base: Ubuntu 20.04 focal 
Machine:   Type: Laptop System: Dell product: Precision 5560 v: N/A serial: <filter> Chassis: type: 10 serial: <filter> 
           Mobo: Dell model: 075FPW v: A00 serial: <filter> UEFI: Dell v: 1.3.2 date: 06/17/2021 
Battery:   ID-1: BAT0 charge: 84.3 Wh condition: 84.3/84.3 Wh (100%) volts: 13.2/11.4 model: SMP DELL 70N2F95 type: Li-poly 
           serial: <filter> status: Full 
CPU:       Topology: 8-Core model: 11th Gen Intel Core i7-11800H bits: 64 type: MT MCP arch: N/A L2 cache: 24.0 MiB 
           flags: avx avx2 lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx bogomips: 73728 
           Speed: 1151 MHz min/max: 800/4600 MHz Core speeds (MHz): 1: 1083 2: 987 3: 1027 4: 943 5: 1053 6: 1103 7: 802 
           8: 802 9: 1130 10: 802 11: 1149 12: 801 13: 1107 14: 1091 15: 1173 16: 1097 
Graphics:  Device-1: Intel vendor: Dell driver: N/A bus ID: 00:02.0 chip ID: 8086:9a60 
           Device-2: NVIDIA vendor: Dell driver: N/A bus ID: 01:00.0 chip ID: 10de:1fbc 
           Display: x11 server: X.Org 1.20.11 driver: fbdev unloaded: modesetting,vesa resolution: 1920x1200~77Hz 
           OpenGL: renderer: llvmpipe (LLVM 12.0.0 256 bits) v: 4.5 Mesa 21.0.3 compat-v: 3.1 direct render: Yes 
Audio:     Device-1: Intel vendor: Dell driver: snd_hda_intel v: kernel bus ID: 00:1f.3 chip ID: 8086:43c8 
           Sound Server: ALSA v: k5.4.0-89-generic 
Network:   Device-1: Intel driver: iwlwifi v: kernel port: 4000 bus ID: 00:14.3 chip ID: 8086:43f0 
           IF: wlp0s20f3 state: up mac: <filter> 
Drives:    Local Storage: total: 476.94 GiB used: 15.77 GiB (3.3%) 
           ID-1: /dev/nvme0n1 vendor: Micron model: 2300 NVMe 512GB size: 476.94 GiB speed: 31.6 Gb/s lanes: 4 
           serial: <filter> rev: 23000030 scheme: GPT 
Partition: ID-1: / size: 466.30 GiB used: 15.56 GiB (3.3%) fs: ext4 dev: /dev/dm-1 
           ID-2: /boot size: 704.5 MiB used: 209.2 MiB (29.7%) fs: ext4 dev: /dev/nvme0n1p2 
           ID-3: swap-1 size: 980.0 MiB used: 0 KiB (0.0%) fs: swap dev: /dev/dm-2 
Sensors:   System Temperatures: cpu: 38.0 C mobo: N/A 
           Fan Speeds (RPM): N/A 
Repos:     No active apt repos in: /etc/apt/sources.list 
           Active apt repos in: /etc/apt/sources.list.d/official-package-repositories.list 
           1: deb https://mirrors.advancedhosters.com/linuxmint/packages uma main upstream import backport
           2: deb http://mirror.cc.vt.edu/pub2/ubuntu focal main restricted universe multiverse
           3: deb http://mirror.cc.vt.edu/pub2/ubuntu focal-updates main restricted universe multiverse
           4: deb http://mirror.cc.vt.edu/pub2/ubuntu focal-backports main restricted universe multiverse
           5: deb http://security.ubuntu.com/ubuntu/ focal-security main restricted universe multiverse
           6: deb http://archive.canonical.com/ubuntu/ focal partner
Info:      Processes: 341 Uptime: 24m Memory: 31.09 GiB used: 2.00 GiB (6.4%) Init: systemd v: 245 runlevel: 5 Compilers: 
           gcc: 9.3.0 alt: 9 Shell: bash v: 5.0.17 running in: gnome-terminal inxi: 3.0.38 
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 2 times in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
User avatar
SMG
Level 25
Level 25
Posts: 31971
Joined: Sun Jul 26, 2020 6:15 pm
Location: USA

Re: nvidia drivers issue- blank screen unless I use intel graphics

Post by SMG »

jmercer wrote: Sat Oct 23, 2021 3:44 pmAny help would greatly be appreciated; pertinent details below. Thanks!
Welcome to the forum, jmercer .

The 5.4 kernel is too old to have the necessary Intel graphics drivers for an 11th-gen Intel cpu. You need to update to at least the 5.11 kernel and maybe even newer.

Instructions for upgrading to the 5.11 kernel:
  • Open Update Manager.
  • Select View > Linux Kernels and click Continue.
  • Make sure 5.11 is selected on the left panel and then click the top-most option on the right panel. An "Install" button will appear.
  • Install the kernel and then reboot for it to become active.
See if that newer kernel replaces the Intel N/A with i915. If it does, you will likely get hardware rendering. If not, I can give you instructions for installing the 5.13-oem kernel (using a different method than the one described above).

Graphics: Device-1: Intel vendor: Dell driver: N/A bus ID: 00:02.0 chip ID: 8086:9a60
Device-2: NVIDIA vendor: Dell driver: N/A bus ID: 01:00.0 chip ID: 10de:1fbc
Display: x11 server: X.Org 1.20.11 driver: fbdev unloaded: modesetting,vesa resolution: 1920x1200~77Hz
OpenGL: renderer: llvmpipe (LLVM 12.0.0 256 bits) v: 4.5 Mesa 21.0.3 compat-v: 3.1 direct render: Yes
Image
A woman typing on a laptop with LM20.3 Cinnamon.
jmercer
Level 1
Level 1
Posts: 2
Joined: Sat Oct 23, 2021 2:52 pm

Re: nvidia drivers issue- blank screen unless I use intel graphics

Post by jmercer »

That fixed it! Thanks so much, SMG!

Just for everyone else's edification, here's what fixed it for me

1) updated the kernel to 5.11.0-38 per instructions above
2) rebooted just to be safe
3) ran "prime-select nvidia"
4) rebooted again

and now I'm good! New inxi output

Code: Select all

$ inxi -Fxxxrz
System:    Kernel: 5.11.0-38-generic x86_64 bits: 64 compiler: N/A Desktop: Cinnamon 5.0.6 wm: muffin 5.0.2 dm: LightDM 1.30.0 
           Distro: Linux Mint 20.2 Uma base: Ubuntu 20.04 focal 
Machine:   Type: Laptop System: Dell product: Precision 5560 v: N/A serial: <filter> Chassis: type: 10 serial: <filter> 
           Mobo: Dell model: 075FPW v: A00 serial: <filter> UEFI: Dell v: 1.3.2 date: 06/17/2021 
Battery:   ID-1: BAT0 charge: 60.4 Wh condition: 84.3/84.3 Wh (100%) volts: 12.0/11.4 model: SMP DELL 70N2F95 type: Li-poly 
           serial: <filter> status: Discharging 
CPU:       Topology: 8-Core model: 11th Gen Intel Core i7-11800H bits: 64 type: MT MCP arch: N/A L2 cache: 24.0 MiB 
           flags: avx avx2 lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx bogomips: 73728 
           Speed: 1066 MHz min/max: 800/4600 MHz Core speeds (MHz): 1: 1114 2: 1795 3: 1179 4: 972 5: 1124 6: 877 7: 801 
           8: 1167 9: 1281 10: 918 11: 1141 12: 1143 13: 1198 14: 810 15: 1098 16: 905 
Graphics:  Device-1: Intel vendor: Dell driver: i915 v: kernel bus ID: 00:02.0 chip ID: 8086:9a60 
           Device-2: NVIDIA vendor: Dell driver: nvidia v: 470.74 bus ID: 01:00.0 chip ID: 10de:1fbc 
           Display: x11 server: X.Org 1.20.11 driver: modesetting,nvidia unloaded: fbdev,vesa alternate: nouveau 
           resolution: 1920x1200~60Hz 
           OpenGL: renderer: NVIDIA T1200 Laptop GPU/PCIe/SSE2 v: 4.6.0 NVIDIA 470.74 direct render: Yes 
Audio:     Device-1: Intel vendor: Dell driver: snd_hda_intel v: kernel bus ID: 00:1f.3 chip ID: 8086:43c8 
           Sound Server: ALSA v: k5.11.0-38-generic 
Network:   Device-1: Intel driver: iwlwifi v: kernel port: 4000 bus ID: 00:14.3 chip ID: 8086:43f0 
           IF: wlp0s20f3 state: up mac: <filter> 
Drives:    Local Storage: total: 476.94 GiB used: 15.44 GiB (3.2%) 
           ID-1: /dev/nvme0n1 vendor: Micron model: 2300 NVMe 512GB size: 476.94 GiB speed: 31.6 Gb/s lanes: 4 
           serial: <filter> rev: 23000030 scheme: GPT 
Partition: ID-1: / size: 466.30 GiB used: 15.33 GiB (3.3%) fs: ext4 dev: /dev/dm-1 
           ID-2: /boot size: 704.5 MiB used: 113.4 MiB (16.1%) fs: ext4 dev: /dev/nvme0n1p2 
           ID-3: swap-1 size: 980.0 MiB used: 0 KiB (0.0%) fs: swap dev: /dev/dm-2 
Sensors:   System Temperatures: cpu: 36.0 C mobo: N/A gpu: nvidia temp: 53 C 
           Fan Speeds (RPM): N/A 
Repos:     No active apt repos in: /etc/apt/sources.list 
           Active apt repos in: /etc/apt/sources.list.d/official-package-repositories.list 
           1: deb https://mirrors.advancedhosters.com/linuxmint/packages uma main upstream import backport
           2: deb http://mirror.cc.vt.edu/pub2/ubuntu focal main restricted universe multiverse
           3: deb http://mirror.cc.vt.edu/pub2/ubuntu focal-updates main restricted universe multiverse
           4: deb http://mirror.cc.vt.edu/pub2/ubuntu focal-backports main restricted universe multiverse
           5: deb http://security.ubuntu.com/ubuntu/ focal-security main restricted universe multiverse
           6: deb http://archive.canonical.com/ubuntu/ focal partner
Info:      Processes: 365 Uptime: 55m Memory: 31.09 GiB used: 1.49 GiB (4.8%) Init: systemd v: 245 runlevel: 5 Compilers: 
           gcc: 9.3.0 alt: 9 Shell: bash v: 5.0.17 running in: gnome-terminal inxi: 3.0.38 
 
And also nvidia-smi is now giving me good results, whereas before it complained that the nvidia driver wasn't running

Code: Select all

$ nvidia-smi
Sat Oct 23 19:13:53 2021       
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 470.74       Driver Version: 470.74       CUDA Version: 11.4     |
|-------------------------------+----------------------+----------------------+
| 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  NVIDIA T1200 La...  Off  | 00000000:01:00.0 Off |                  N/A |
| N/A   54C    P8     3W /  N/A |    379MiB /  3914MiB |     18%      Default |
|                               |                      |                  N/A |
+-------------------------------+----------------------+----------------------+
                                                                               
+-----------------------------------------------------------------------------+
| Processes:                                                                  |
|  GPU   GI   CI        PID   Type   Process name                  GPU Memory |
|        ID   ID                                                   Usage      |
|=============================================================================|
|    0   N/A  N/A      1236      G   /usr/lib/xorg/Xorg                165MiB |
|    0   N/A  N/A      1775      G   cinnamon                           51MiB |
|    0   N/A  N/A      3569      G   /usr/lib/firefox/firefox          157MiB |
|    0   N/A  N/A      3665      G   /usr/lib/firefox/firefox            3MiB |
+-----------------------------------------------------------------------------+
Thanks again!
Locked

Return to “Graphics Cards & Monitors”