# No matter which drivers I install, I cannot boot my ubuntu 20.04 LTS beyond a black screen

**URL:** <https://forums.developer.nvidia.com/t/no-matter-which-drivers-i-install-i-cannot-boot-my-ubuntu-20-04-lts-beyond-a-black-screen/127510>\
**Category:** Linux\
**Created:** [June 12, 2020, 9:59am UTC](https://forums.developer.nvidia.com/t/no-matter-which-drivers-i-install-i-cannot-boot-my-ubuntu-20-04-lts-beyond-a-black-screen/127510 "2020-06-12T09:59:38Z")\
**Posts on this page:** 18\
**Page:** 1

<div class="post-metadata">

**Author:** ![youssefe.fares](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@youssefe.fares](https://forums.developer.nvidia.com/u/youssefe.fares)\
**Post date:** [June 12, 2020, 9:59am UTC](https://forums.developer.nvidia.com/t/no-matter-which-drivers-i-install-i-cannot-boot-my-ubuntu-20-04-lts-beyond-a-black-screen/127510/1 "2020-06-12T09:59:38Z")

</div>

After installing nvidia drivers, my ubuntu boots to black screen or login screen that freezes.

I tried installing different driver versions. 440 and 390. I tried installing via the software & updates additional drivers GUI and with cmd via ppa.

I tried changing between gdm3 and lightdm.  
I tried different grub args.

Attached bug report [nvidia-bug-report.log.txt](https://forums.developer.nvidia.com/uploads/short-url/hE25iVoH1A7W2J0FtIqVrsSISSC.txt) (84.5 KB)

Can only boot in safemode or with nomodeset and nvidia blacklisted.

My graphics card is GTX 1050 ti alongside an intel UHD card on an HP pavilion laptop. I tried prime-select with different args as well.I am dual booting with windows with secure boot disabled, legacy boot enabled.

I tried disabling wayland when using gdm3. I also tried deleting the x11 file mentioned on multiple support sites.

I have been stuck on this for a day and need nvidia to work get so that I can develop on two screens.

---

<div class="post-metadata">

**Author:** ![generix](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/generix/32/16024_2.png) [@generix](https://forums.developer.nvidia.com/u/generix)\
**Post date:** [June 12, 2020, 12:47pm UTC](https://forums.developer.nvidia.com/t/no-matter-which-drivers-i-install-i-cannot-boot-my-ubuntu-20-04-lts-beyond-a-black-screen/127510/2 "2020-06-12T12:47:08Z")

</div>

Please run nvidia-bug-report.sh as root and attach the resulting nvidia-bug-report.log.gz file to your post. You will have to rename the file ending to something else since the forum software doesn’t accept .gz files (nifty!).

---

<div class="post-metadata">

**Author:** ![youssefe.fares](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@youssefe.fares](https://forums.developer.nvidia.com/u/youssefe.fares)\
**Post date:** [June 12, 2020, 2:08pm UTC](https://forums.developer.nvidia.com/t/no-matter-which-drivers-i-install-i-cannot-boot-my-ubuntu-20-04-lts-beyond-a-black-screen/127510/3 "2020-06-12T14:08:06Z")

</div>

Attached (This is ran from safe mode, can’t access ubuntu otherwise)  
[nvidia-bug-report.log.txt](https://forums.developer.nvidia.com/uploads/short-url/hE25iVoH1A7W2J0FtIqVrsSISSC.txt) (84.5 KB)

Also would like to note the lshw used to show my nvidia card but doesn’t anymore after a few purges and reinstalls.  
Also additional drivers now says no additional drivers available.

---

<div class="post-metadata">

**Author:** ![generix](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/generix/32/16024_2.png) [@generix](https://forums.developer.nvidia.com/u/generix)\
**Post date:** [June 12, 2020, 3:45pm UTC](https://forums.developer.nvidia.com/t/no-matter-which-drivers-i-install-i-cannot-boot-my-ubuntu-20-04-lts-beyond-a-black-screen/127510/4 "2020-06-12T15:45:16Z")

</div>

Please

- delete /usr/share/X11/xorg.conf.d/20-intel.conf
- remove kernel parameters nomodeset and module\_blacklist=nvidia
- run: sudo prime-select nvidia
- reboot
- post the output of: grep 10de /lib/udev/rules.d/\*

---

<div class="post-metadata">

**Author:** ![youssefe.fares](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@youssefe.fares](https://forums.developer.nvidia.com/u/youssefe.fares)\
**Post date:** [June 12, 2020, 3:51pm UTC](https://forums.developer.nvidia.com/t/no-matter-which-drivers-i-install-i-cannot-boot-my-ubuntu-20-04-lts-beyond-a-black-screen/127510/5 "2020-06-12T15:51:47Z")

</div>

Hey, thanks for the prompt reply.  
I am not sure where to remove the kernel parameters because I didn’t add them manually (Just checked my /etc/default/grub/), They may have been caused by the recovery mode boot? Any input there would be appreciated.  
Meanwhile, I’ll try to boot into a text based login without the recovery mode.

---

<div class="post-metadata">

**Author:** ![generix](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/generix/32/16024_2.png) [@generix](https://forums.developer.nvidia.com/u/generix)\
**Post date:** [June 12, 2020, 3:53pm UTC](https://forums.developer.nvidia.com/t/no-matter-which-drivers-i-install-i-cannot-boot-my-ubuntu-20-04-lts-beyond-a-black-screen/127510/6 "2020-06-12T15:53:53Z")

</div>

Might be caused by recovery mode, if those are not set in /etc/default/grub/  
Run sudo update-grub to make sure those are not some leftover.

---

<div class="post-metadata">

**Author:** ![youssefe.fares](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@youssefe.fares](https://forums.developer.nvidia.com/u/youssefe.fares)\
**Post date:** [June 12, 2020, 4:31pm UTC](https://forums.developer.nvidia.com/t/no-matter-which-drivers-i-install-i-cannot-boot-my-ubuntu-20-04-lts-beyond-a-black-screen/127510/7 "2020-06-12T16:31:01Z")

</div>

Ran sudo update-grub and restarted. Logged in in text mode with alt+ctrl+f4 and generated some files.  
[nvidia-bug-report.log](https://forums.developer.nvidia.com/uploads/short-url/qGLBM3zKmfSr2ajlKGOE4Az4JUa.log) (785.2 KB)  
A text search of the file shows nomodeset and module\_blacklist=nvidia are still present. Not sure how the script works though, these might be old logs so over to you.  
If they aren’t old, I think next step is to find the source of these kernel args.

The grep output requested [output\_text\_login.txt](https://forums.developer.nvidia.com/uploads/short-url/j691nqQ7DXw2ILg00evqdwI6ubu.txt) (1.5 KB)

Also lshw shows that intel card is claimed  
[lshw -C video output](https://forums.developer.nvidia.com/uploads/short-url/nQBqyZptlzsS5NOeDdIpbDQmpiS.txt) (488 Bytes)

---

<div class="post-metadata">

**Author:** ![youssefe.fares](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@youssefe.fares](https://forums.developer.nvidia.com/u/youssefe.fares)\
**Post date:** [June 12, 2020, 4:38pm UTC](https://forums.developer.nvidia.com/t/no-matter-which-drivers-i-install-i-cannot-boot-my-ubuntu-20-04-lts-beyond-a-black-screen/127510/8 "2020-06-12T16:38:08Z")

</div>

RE the blacklist thing, a grep on modprobe.d folder shows this file /lib/modprobe.d/blacklist-nvidia.conf  
# Do not modify  
# This file was generated by nvidia-prime  
blacklist nvidia  
blacklist nvidia-drm  
blacklist nvidia-modeset  
alias nvidia off  
alias nvidia-drm off  
alias nvidia-modeset off

Doesn’t look like it’s trying to make nvidia work.

---

<div class="post-metadata">

**Author:** ![generix](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/generix/32/16024_2.png) [@generix](https://forums.developer.nvidia.com/u/generix)\
**Post date:** [June 12, 2020, 4:41pm UTC](https://forums.developer.nvidia.com/t/no-matter-which-drivers-i-install-i-cannot-boot-my-ubuntu-20-04-lts-beyond-a-black-screen/127510/9 "2020-06-12T16:41:57Z")

</div>

The kernel parameters are gone, they’re just in an old logfile. Please

- switch to nvidia (again): sudo prime-select nvidia
- delete /lib/udev/rules.d/50-pm-nvidia.rules
- remove stray blacklist files (sudo rm /lib/modprobe.d/blacklist-nvidia.conf /etc/modprobe.d/blacklist-nvidia.conf)
- update the initrd (sudo update-initramfs -u)
- reboot  
If this doesn’t resolve the issue, please create a new nvidia-bug-report.log.

---

<div class="post-metadata">

**Author:** ![youssefe.fares](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@youssefe.fares](https://forums.developer.nvidia.com/u/youssefe.fares)\
**Post date:** [June 12, 2020, 4:47pm UTC](https://forums.developer.nvidia.com/t/no-matter-which-drivers-i-install-i-cannot-boot-my-ubuntu-20-04-lts-beyond-a-black-screen/127510/10 "2020-06-12T16:47:53Z")

</div>

Do I remove or keep this one?  
/etc/modprobe.d/blacklist-framebuffer.conf:blacklist nvidiafb

---

<div class="post-metadata">

**Author:** ![generix](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/generix/32/16024_2.png) [@generix](https://forums.developer.nvidia.com/u/generix)\
**Post date:** [June 12, 2020, 4:48pm UTC](https://forums.developer.nvidia.com/t/no-matter-which-drivers-i-install-i-cannot-boot-my-ubuntu-20-04-lts-beyond-a-black-screen/127510/11 "2020-06-12T16:48:22Z")

</div>

Yes, that’s needed. keep it.

---

<div class="post-metadata">

**Author:** ![youssefe.fares](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@youssefe.fares](https://forums.developer.nvidia.com/u/youssefe.fares)\
**Post date:** [June 12, 2020, 4:51pm UTC](https://forums.developer.nvidia.com/t/no-matter-which-drivers-i-install-i-cannot-boot-my-ubuntu-20-04-lts-beyond-a-black-screen/127510/12 "2020-06-12T16:51:06Z")

</div>

initramfs says  
I: The initramfs will attempt to resume from /dev/sda4  
I: (UUID=c7193a1d-222b-435a-be2b-8afc007acdbf)  
I: Set the RESUME variable to override this.

Anything we need to do about this?

---

<div class="post-metadata">

**Author:** ![generix](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/generix/32/16024_2.png) [@generix](https://forums.developer.nvidia.com/u/generix)\
**Post date:** [June 12, 2020, 4:56pm UTC](https://forums.developer.nvidia.com/t/no-matter-which-drivers-i-install-i-cannot-boot-my-ubuntu-20-04-lts-beyond-a-black-screen/127510/13 "2020-06-12T16:56:32Z")

</div>

No. it’s just an informational message.

---

<div class="post-metadata">

**Author:** ![youssefe.fares](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@youssefe.fares](https://forums.developer.nvidia.com/u/youssefe.fares)\
**Post date:** [June 12, 2020, 5:01pm UTC](https://forums.developer.nvidia.com/t/no-matter-which-drivers-i-install-i-cannot-boot-my-ubuntu-20-04-lts-beyond-a-black-screen/127510/14 "2020-06-12T17:01:09Z")

</div>

It’s working!  
Thank you a lot. I was about to purge and reinstall my entire OS. If this were reddit, I’d have definitely given you gold. Let me know if you have a patreon.

Can you explain like I am five what was going wrong?

 ![IMG_20200612_185903089](https://global.discourse-cdn.com/nvidia/original/3X/9/5/953c873cc491b74a65db402123567765ca43075e.jpeg)

---

<div class="post-metadata">

**Author:** ![generix](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/generix/32/16024_2.png) [@generix](https://forums.developer.nvidia.com/u/generix)\
**Post date:** [June 12, 2020, 5:11pm UTC](https://forums.developer.nvidia.com/t/no-matter-which-drivers-i-install-i-cannot-boot-my-ubuntu-20-04-lts-beyond-a-black-screen/127510/15 "2020-06-12T17:11:41Z")

</div>

You installed the “intel” driver package, which isn’t needed anyway and sets a fixed intel config. Common pitfall. Then there’s a bug with Ubuntu’s prime-select that sets a udev rule which removes the nvidia gpu completely and additionally sometimes forgets about the blacklist files.

---

<div class="post-metadata">

**Author:** ![BernalVarela](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@BernalVarela](https://forums.developer.nvidia.com/u/BernalVarela)\
**Post date:** [September 1, 2020, 7:55am UTC](https://forums.developer.nvidia.com/t/no-matter-which-drivers-i-install-i-cannot-boot-my-ubuntu-20-04-lts-beyond-a-black-screen/127510/16 "2020-09-01T07:55:50Z")

</div>

Hello, i’m new here, first of all thank you for you time.

I’m having more or less the same problem as the described in this post.

I have a thinkpad laptop with a nvidia gtx 1050ti. I have installed the latest nvidia driver 450.66 and the latest kernel 5.4.0-45-generic.

I have two screens and when i attach both to my computer one of them it’s not working, always black screen.

If i try to change the configuration to enable the one it’s not working nothing happens.

I have run the nvidia-bug-report.sh in my computer, it’s attached to the post.

Thank you and best regards!.[nvidia-bug-report.log.gz](https://forums.developer.nvidia.com/uploads/short-url/rH5KuuZ1uVRD8VTT4ql7v6jiUjq.gz) (482.7 KB)

P.S. I have read all the posts in the thread and followed all the steps described in generix responses.

---

<div class="post-metadata">

**Author:** ![anon231254125345145](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@anon231254125345145](https://forums.developer.nvidia.com/u/anon231254125345145)\
**Post date:** [November 1, 2020, 1:36am UTC](https://forums.developer.nvidia.com/t/no-matter-which-drivers-i-install-i-cannot-boot-my-ubuntu-20-04-lts-beyond-a-black-screen/127510/17 "2020-11-01T01:36:32Z")

</div>

I believe I am also experiencing the same problem; @BernalVarela I posted my issue in a [new thread here](https://forums.developer.nvidia.com/t/nvidia-drivers-do-not-boot-in-fresh-ubuntu-20-04-lts-with-egpu-that-works-well-with-default-nouveau-driver/158444).

---

<div class="post-metadata">

**Author:** ![nadeemm](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/nadeemm/32/367020_2.png) [@nadeemm](https://forums.developer.nvidia.com/u/nadeemm)\
**Post date:** [October 12, 2021, 6:29pm UTC](https://forums.developer.nvidia.com/t/no-matter-which-drivers-i-install-i-cannot-boot-my-ubuntu-20-04-lts-beyond-a-black-screen/127510/19 "2021-10-12T18:29:44Z")

</div>

Closed on October 12, 2021, 6:29pm UTC


