0

I currently have nomodeset enabled every time I boot up (I added it using sudo /etc/default/grub and then sudo update-grub) in order to fix a blackscreen issue regarding my nvidia gfx card.

Now,I have problems with suspend mode not working and brightness controller not functioning which is expected. Using e in the grub bootloader and changing nomodeset to nouveau.modeset=0 fixed all of these problems (no blackscreen too), but now I have a new one: I can't seem to remove nomodeset permanently from grub. I was able to add nouveau.modeset=0 successfully, but nomodeset still stays as a boog flag even after using sudo grub-update. What's even more weird is if I view /etc/default/grub in nano, nomodeset isn't shown here, yet it's flag is still present in the grub bootloader when pressing e. Is there any way to completely remove nomodeset from my boot flags? nano shown here

ODV
  • 21
  • 1
    You remove it the same way you added it.Edit sudo nano /etc/default/grub and then sudo update-grub. With nVidia you should only need nomodeset until you install correct nVidia driver from Ubuntu repository. https://askubuntu.com/questions/61396/how-do-i-install-the-nvidia-drivers – oldfred Nov 04 '18 at 17:36
  • Like I said, and as you can see in the picture above, nomodeset doesn't show up there so I can't remove it ... I'm looking for a different way. I thought about removing all nomodeset manually from /boot/grub/grub.cfg since I can see nomodeset entries there, and then run update-grub. Is it safe? – ODV Nov 04 '18 at 17:38
  • The sudo update-grub command rewrites grub.cfg every time it is run based on what is in /etc/default/grub and the scripts in /etc/grub.d. You do not edit /boot/grub/grub.cfg. – oldfred Nov 04 '18 at 18:39
  • I see. The problem is I can't see nomodeset flag in /etc/default/grub using nano in order to remove it...you can see that in the picture. Is there any other workaround to remove it? Thanks! – ODV Nov 04 '18 at 18:45
  • The command you neet to run is not sudo grub-update but sudo update-grub. – mook765 Nov 04 '18 at 19:09
  • That was a mistake, I was using sudo update-grub..it did not remove nomodeset, but I was able to add nouveau.modeset=0 that way. – ODV Nov 04 '18 at 19:11

0 Answers0