thank you. its work :)
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:
- Turned off TPM
- Turned off secure boot
- Turned off fast boot
- Made boot from usb first priority in boot order
- Converted Sata Config from RAID to AHCI
Ubuntu level settings:
- Created Bootable usb with rufus (performed this on my pre-installed windows)
- Performed partitioning shrinking
- 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.
- then on the screen where ubuntu wheel spins, i removed my usb and inserted it again, and I got the gui installer.
- provided proper partition space to ubuntu installation, swap-> 16gb, â/â â 300GB, â/bootâ â 1GB, â/dataâ â 50 GB(created this for personal data).
- The installer was successful
- 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) :
-
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).
-
By issuing command âubuntu-drivers devicesâ, i got that nvidia 460 is recommended for me.
-
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.
-
I also tried removing ânomodesetâ after nvidia drivers installation, still black screen.
-
I tried searching for xorg.conf to delete it, but it was not there in the first place
-
i blacklisted the nouveau drivers, still black screen
-
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.
-
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. -
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.
-
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.
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 :(
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).