For systemd-boot:
If you have an nvidia card then you should only need to apply changes to: /etc/kernel/cmdline
sudo nano /etc/kernel/cmdline
Add these to the line of text:
nvidia-drm.modeset=1 nvidia-drm.fbdev=1
Hold ctrl
and tap x
. Select Yes to save changed buffer.
You can write the text using _
or -
. Both will work.
Some add:
initcall_blacklist=simpledrm_platform_driver_init
But the above should not be necessary
Don’t forget to:
sudo reinstall-kernels
After editing.
For Grub:
sudo nano /etc/default/grub
Add these to the line of text:
nvidia-drm.modeset=1 nvidia-drm.fbdev=1
Hold ctrl
and tap x
. Select Yes to save changed buffer.
You can write the text using _ or - . Both will work.
Some add:
initcall_blacklist=simpledrm_platform_driver_init
But the above should not be necessary
Don’t forget to rebuild grub after editing:
sudo grub-mkconfig -o /boot/grub/grub.cfg