Nvidia Grub Issue

This morning, there was a grub update in Pacman. The update caused an error when it attempted to update grub.cfg after install (no no additional grub.cfg updates will work until resolved). The error was because of a missing close " caused by the GRUB_CMDLINE_LINUX_DEFAULT="nvidia-drm.modeset=1 resume=UUID=***** line added in this document. https://endeavouros.com/docs/hardware-and-network/graphic-cards-gpu-driver-and-setup/nvidia/nvidia-optional-enhancements-and-troubleshooting/. I closed the quote, saved the grub file and was able to reinstall grub. It added duplicate grub entries that deeded removed on reboot, which I did. Everything is installed and running fine now, but on shut down and start up the Grub terminal stuff shows up which wasn’t happening before. Not sure if the command needs edited or what.

You mean the boot up and shutdown messages?

If you don’t want to see them, you could add quiet to GRUB_CMDLINE_LINUX_DEFAULT line in /etc/default/grub and update the grub: sudo grub-mkconfig -o /boot/grub/grub.cfg

and why do you add example into your real config? it says there you should add nvidia-drm.modeset=1 the resume=UUID=***** and all the rest of the example is there to show exactly the place where you should add the option…

Yes, and I figured as much about quiet. Just odd that they didn’t show before.

The rest of the info is added as well. It was just the missing quote that caused the error. Here is my full .cfg

# GRUB boot loader configuration

GRUB_CMDLINE_LINUX_DEFAULT="nvidia-drm.modeset=1 resume=UUID=*****"

# Preload both GPT and MBR modules so that they are not missed
GRUB_PRELOAD_MODULES="part_gpt part_msdos"

# Uncomment to enable booting from LUKS encrypted devices

# Set to 'countdown' or 'hidden' to change timeout behavior,
# press ESC key to display menu.

# Uncomment to use basic console

# Uncomment to disable graphical terminal

# The resolution used on graphical terminal
# note that you can use only modes which your graphic card supports via VBE
# you can see them in real GRUB with the command `vbeinfo'

# Uncomment to allow the kernel use the same resolution used by grub

# Uncomment if you want GRUB to pass to the Linux kernel the old parameter
# format "root=/dev/xxx" instead of "root=/dev/disk/by-uuid/xxx"

# Uncomment to disable generation of recovery mode menu entries

# Uncomment and set to the desired menu colors.  Used by normal and wallpaper
# modes only.  Entries specified as foreground/background.

# Uncomment one of them for the gfx desired, a image background or a gfxtheme

# Uncomment to get a beep at GRUB start
#GRUB_INIT_TUNE="480 440 1"

# Uncomment to make GRUB remember the last selection. This requires
# setting 'GRUB_DEFAULT=saved' above.

this is not your UUID and as i say it was anexample you have removed the settings that was there before and replaced them with example text that will not work for you you only need to add the option for nvidia: nvidia-drm.modeset=1 adding in additional what was there before, and not replacing anything…

GRUB_CMDLINE_LINUX_DEFAULT="quiet loglevel=3 nowatchdog"

is what it would look like per default without using swap and hibernate if you have enabled swap and hibernate it would look like this:

GRUB_CMDLINE_LINUX_DEFAULT="quiet loglevel=3 resume=UUID=the-uuid-of-your-swap-partition-here nowatchdog"

uuid is the unique id nr of a device:
you can check yours by this in a terminal:
ls -l /dev/disk/by-uuid/

this is the /etc/grub/default :wink:

so your line needs to be exactly that if you do not want to use hibernate sleep e.t.c.:
GRUB_CMDLINE_LINUX_DEFAULT="quiet nvidia-drm.modeset=1 loglevel=3 nowatchdog"
that is exactly one line and it has " to close the line after nowatchdog :wink:

Duh, I guess I did have the uuid in there originally. I’ll give this a try. Thanks!

Feel free to delete my idiot post. All is good.

1 Like

we do not believe in stupid questions :beers:


Is better a question asked than forgotten or never get an answer. Always wondering? :grinning:

1 Like