Black screen after install of nvidia driver ubuntu

thank you. its work :)

@generix , @amrits

Hello Team, I have just received my brand new Alienware m15 r4 with RTX 3070 and Intel® Core™ i7-10870H CPU @ 2.20GHz × 16 with 32 gb ram.

Goal: To run Ubuntu 20.04.2 LTS in dual boot mode with correct nvidia drivers installed.

After a lot of retries (50+), and continuous sitting of 18+ hours, I found the correct Steps to be Taken to install Ubuntu in dual boot mode:

BIOS level settings:

  1. Turned off TPM
  2. Turned off secure boot
  3. Turned off fast boot
  4. Made boot from usb first priority in boot order
  5. Converted Sata Config from RAID to AHCI

Ubuntu level settings:

  1. Created Bootable usb with rufus (performed this on my pre-installed windows)
  2. Performed partitioning shrinking
  3. To run the installer in grub successfully, I had to change some commands by pressing ‘e’ on the grub screen, i.e. i inserted live-media-path=/casper/ ignore_uuid nomodeset in the line starting with linux and then pressed ‘Ctrl X’ to boot it again with these settings.
  4. then on the screen where ubuntu wheel spins, i removed my usb and inserted it again, and I got the gui installer.
  5. provided proper partition space to ubuntu installation, swap-> 16gb, ‘/’ → 300GB, ‘/boot’ → 1GB, ‘/data’ → 50 GB(created this for personal data).
  6. The installer was successful
  7. Restarted Ubuntu (but was only able to see the screen if before booting i again inserted ‘nomodeset’ infront of ‘quiet splash’ and pressed ‘Ctrl X’), and i was inside my Ubuntu OS.

Nvidia Grphics drivers installation (Things starts to get ugly now) :

  1. Now the nouveau graphics were being used by default and in the system settings, name of my graphic card was this: ‘llvmpipe (LLVM 11.0.0, 256 bits)’ and not Nvidia rtx 3070 (as it shows in windows).

  2. By issuing command ‘ubuntu-drivers devices’, i got that nvidia 460 is recommended for me.

  3. I literally read all there is on internet , on this thread to install nvidia 460. I tried it with ubuntu software and updates, via command-line, with ppa repo, all ends up in black screen when i reboot.

  4. I also tried removing ‘nomodeset’ after nvidia drivers installation, still black screen.

  5. I tried searching for xorg.conf to delete it, but it was not there in the first place

  6. i blacklisted the nouveau drivers, still black screen

  7. I tried searching for stray nvidia blacklist file, found a file which had a conf:‘blacklist nvidiafb’, i removed that line from that file, still i get the black screen.

  8. The only way i could log into ubuntu after installing nvidia drivers, was by adding ‘acpi=off’ along with nomodeset
    before booting by pressing ‘e’, but this resulted in ubuntu system going haywire, touchpad was not working, everything was very slow, the fans were running at full speed. But I somehow managed to run ‘nvidia-smi’ and it gave the error like ‘drivers not installed or not running’. i tried nvidia prime-select command and it gave output as nvidia is already active, but i was not able to use anything normally and had to turn off my laptop before it flew away with it’s fans running at full speed.

  9. After multiple tries, i finally gave up , and have for the last time again installed ubuntu, and running it with nouveau drivers along with ‘nomodeset’ in boot config.

  10. I am literally begging for help now @generix , @amrits , i am out of things to try, please guide me what to do, and i’ll do it .
    And in some of your comments, i have seen that you suggest to run ‘nvidia-bug-report.sh’, but i assume that can only be run after installling nvidia drivers, ryt? Frankly i don’t know when to run it.
    But ryt now, I have a fresh installation of ubuntu, ready to be tinkered with again, so if you can tell me the best way according to you for installing nvidia drivers for rtx 3070 in ubuntu 20.04.2 (dual boot along with windows), i’ll perform that and maybe then i can provide you further details.

Please let me know how to proceed.

Waiting for your reply.

1 Like

Thanks @nishant.rajvanshi17 , you just saved me a lot of effort, @generix , I also have the same Laptop with the exact same config, although i have not tried everything @nishant.rajvanshi17 has, but I’ll definitely be waiting for the solution as well.

Please run nvidia-bug-report.sh as root and attach the resulting nvidia-bug-report.log.gz file to your post.

Hello @generix ,

Thanks for your attention. Here is my log file.nvidia-bug-report.log.gz (314.7 KB)

for your context: I installed nvidia drivers from ubuntu’s Software & Updates tool, and as soon as the installation finished, i ran the bug report command.
Waiting for your reply.
Thanks

Please remove the ‘nomodeset’ kernel parameter and reboot.

I did not used the nomodeset param and still I am getting the black screen. Attaching a photo for your reference.

Kindly suggest what to do next

Thanks

Please create a new nvidia-bug-report.log without the nomodeset parameter.

nvidia-bug-report.log.gz (183.2 KB)

@generix , here you go, i just had to add acpi=off in the kernel parameter (along with “ro quiet splash” which was already present there), to atleast get inside the tty6 terminal in order to somehow generate the log file for you.

Apart from this, when i did sudo shutdown, i got the below screen, which was new to me, it may provide you some more insight as to what is happening:

Thanks, waiting for your reply!

I guess your intel cpu is too new for the running 5.4 kernel. Please upgrade to kernel 5.8:
sudo apt install --install-recommends linux-generic-hwe-20.04

@generix , hi I am @nishant.rajvanshi17 from my friends id, as i was not able to post any reply back due to community guidelines not permitting new members to post more than 3 replies (strange).

Anyways I checked my kernel version and it’s already the latest, attaching a proof pic for you.

And I might create some new accounts as well, to communicate with you here, kindly don’t stop supporting me.

Eagerly waiting for your response.

Please just open a new thread.
There seems to be something wrong with the intel gpu which drives the internal screen, it doesn’t detect the display.
Did you have an external monitor connected on one boot?
Please disable the nvidia gpu
sudo prime-select nvidia
Disable X from starting
sudo systemctl disable display-manager
Remove acpi=off from kernel command line, then reboot. Log in on text console, then please post a dmesg output.
If you have internet connection, you can use pastebinit to upload it from console.

  • install pastebinit (sudo apt install pastebinit)
  • create dmesg log (sudo dmesg >dmesg.txt)
  • upload logfile (pastebinit -i dmesg.txt)
  • note down and post the url you’re given

Hello @generix , sure i will create another thread for it.

Meanwhile i did what u asked:

No there is no secondary screen, just the laptop

I ran sudo prime-select nvidia
It was already selected

Then i ran sudo systemctl disable display-manager
It deleted some file.
And then did a reboot, same black screen.
Now the thing is, if i use nomodeset, i can login into my os and run commands or another way of running commands is if i use acpi=off.
Without acpi=off i cannot get the tty6 terminal, so i rebooted again, added acpi=off in kernel parameter and then ran sudo dmesg,
The link is : Ubuntu Pastebin

Let me know if u need anything else

Sorry, I meant
sudo nvidia-prime intel
to suppress the nvidia driver errors.
but with acpi=off you’re disabling anything, so the dmesg is useless. Please try this:
switch to intel, remove acpi=off, reboot.
When hitting black screen, reboot, add ‘nomodeset’ to be able to login, then run
sudo journalctl -b-1 |grep kernel >journal.txt
and attach journal.txt.

Ok, forget about checking the intel gpu. I’ve taken a deeper looks at this and your notebook actually has no real hybrid graphics, the internal screen seems to be connected to the nvidia gpu and Dell just seems to have forgotten to disable the igpu.

Omg, okay, can you please advise next steps. I mean what should i do to-enable you for helping me :(

@generix

Hello. I have got the same problem after upgrading today from Ubuntu 18.04 to 20.04.
It’s an Dell G3 with Intel/Nvidia, it always worked.
The scenario is like this:

After upgrading i have the black screen.
I can boot if I add to the startup command ‘nomodeset’.
But then the laptop screen is just with the Dell vendor logo (default Ubuntu loading screen) but the external display on HDMI works.
If I remove the nvidia drivers and have only the nouveau drivers, I can login without the 'nomodeset` but now the external display doesn’t work.
I have tried blacklisting nouveau, reinstalling nvidia drivers, xorg.conf is deleted (it was deleted before) and also done this:
/lib/modprobe.d/nvidia-kms.conf: options nvidia-drm modeset=0
and deleted:
/etc/modprobe.d/blacklist-framebuffer.conf

Also I’ve read that the black screen is common on 460 so I have 450 now, It’s the same.

Nothing seems to work

nvidia-bug-report.log (669.9 KB)

@chemicalkosek Please uninstall the runfile driver by running it with --uninstall option, reinstall the repo driver using Software&Updates application and delete /etc/X11/xorg.conf

@nishant.rajvanshi17 Please try this:
create /etc/X11/xorg.conf just containing

Section Device
    Identifier     "nvidia"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
    BusID          "PCI:1:0:0"
    Option         "AllowEmptyInitialConfiguration"
EndSection

run
sudo prime-select nvidia
remove acpi=off and reboot.

Thank you for your answer. I’m sorry, but what runfile driver? I don’t believe I’ve ever installed anything from a runfile. I’ve already reinstalled the repo drivers couple of times, choosing 450 or 460. /etc/x11/xorg.conf is deleted (it always was).