Score:0

Set nouveau.modeset=0 and now doesn't boot

bs flag

I was experiencing problems with Ubuntu at the time of booting, apparently it was/is the Nvidia Drivers as my laptop has a 970M. One solution I found and worked well was every time before booting press e in Ubuntu and then editing the Linux part to nouveau.modeset=0. However, as this was tedious, I tried to set this to be automatic when booting, a solution was editing /etc/default/grub and then sudo update-grub, and the rebooting. After rebooting I can no longer enter to Ubuntu, and the command nouveau.modeset=0 does not work anymore as it gets stucked in a blank screen.

I would really appreciate help as there is my masters thesis.

Angelo Espinoza avatar
bs flag
P.S the recovery mode is not working neither it gets stucked in Loading initial ramdisk
sudodus avatar
jp flag
It seems to me that your automatic setting is doing something different from what you did manually (maybe because of a typing error or a misunderstood command). Can you boot into the grub menu? In that case try to edit it manually. Otherwise you need to repair your system when booted from another system, for example from a USB pendrive with Ubuntu live: Edit the file `grub.cfg` that belongs to the installed system. After booting into it, fix `/etc/default/grub` to avoid the problem the next time `sudo update-grub` is run (manually or automatically).
Angelo Espinoza avatar
bs flag
@sudodus you mean pressing again ```e``` in ```Ubuntu```? I can do that, actually there is the command nouveau.modeset=0 not misspelled in fact. But if I try to delete or place at the end does not work as it did. As for the Ubuntu live, you mean installing Ubuntu then run wih the Try Ubuntu, and then mount the disk in order to edit again ```/etc/default/grub```?
sudodus avatar
jp flag
If your system does not work as before, when the grub commands look exactly the same, something else has changed (maybe an upgrade of the kernel, that brings another kernel driver, maybe something else). - And yes, run Try Ubuntu from USB. But you should not need to do that, when you have access to the grub menu. - But if that does not help, and there is another problem, maybe you should run Try Ubuntu from USB in order to backup (save) all files that you do not want to lose and then consider a fresh installation.
sudodus avatar
jp flag
I suggest that you try to fix the current system, but do not spend too much time and effort on it, because reinstallation may be easier and faster.
sudodus avatar
jp flag
Maybe you have one or more old kernels available and possible to select in the grub menu. In that case please try if Ubuntu works better with one of those kernels.
Angelo Espinoza avatar
bs flag
@sudodus how can I do that?
sudodus avatar
jp flag
1. Look for boot alternatives via grub (a submenu may contain older versions of kernels); 2. Look in the boot directory of the installed system (files numbers indicates which kernel they belong to); 3. But you should really consider a re-installation, because that way you will get rid of whatever is destroying your current installed system (unless some hardware is failing).
Angelo Espinoza avatar
bs flag
Apparently I have 2 but none of them work. I have reinstalled Ubuntu multiple times due to the first problem I mentioned, until I figured out the ```nouveau.modeset=0```. Very strange since the only line I modified was the ```GRUB_CMDLINE_LINE_DEFAULT="quiet splash"``` to ```GRUB_CMDLINE_LINE_DEFAULT="quiet splash nouveau.modeset=0"``` in ```/etc/default/grub```, and then ```sudo update-grub```. Just as in https://askubuntu.com/questions/1053150/nouveau-modeset0?newreg=444e841d08ac4464924b081efb179adf.
sudodus avatar
jp flag
4. Please specify the computer: brand name and model; 5. Check in the BIOS if you can turn on/off the nvidia card (and use built-in graphics in the CPU); 6. Please download and clone some other Ubuntu iso files: 20.04 LTS and 22.04 LTS (and if the computer is very new 23.04 LTS). Try these live (booted from USB) with and without an extra boot option (you may try `nomodeset` as well as `nouveau.modeset=0` directly from the grub menu.
Angelo Espinoza avatar
bs flag
The brand name is Razer the model is a Blade RZ09-0130. No option is available in the BIOS to turn on/off the Nvidia card.
Angelo Espinoza avatar
bs flag
Finally got it working after following what @sudodus suggested. I boot through a Ubuntu live USB pendrive, mount the driver, accessed as a root, and deleted the line ```nouveau.modeset=0``` from ```/etc/default/grub```, then simply ```update-grub``` in ```/boot/grub```. After that everything went back just as before. Of course, I currently have to access Ubuntu through ```nouveau.modeset=0``` typed manually. Yet I have not tried any other solution to make it automatic.
sudodus avatar
jp flag
Thanks for sharing your solution, or maybe we should call it 'workaround'. Do you want to continue debugging in order to find a more convenient solution? For example, maybe the delay, when you add `nouveau.modeset=0` help by letting something get settled, maybe there is something else that is hard to find. Have you tried to install any proprietary driver for your nvidia graphics yet?
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.