Update Kernel arguments for better performance in Ubuntu 24.04
Here’s how you can apply these kernel parameters in Ubuntu 24.04:
- Edit GRUB Configuration File:
Open the GRUB configuration file in a text editor. For example, you can use
nano
:sudo nano /etc/default/grub
- Add Kernel Parameters:
Find the line that starts with
GRUB_CMDLINE_LINUX_DEFAULT
and add your parameters to the list. It should look something like this:GRUB_CMDLINE_LINUX_DEFAULT="quiet splash mitigations=off mem_sleep_default=s2idle nvidia-drm.modeset=1"
Ensure that all parameters are enclosed within the same set of quotes.
- Update GRUB:
After saving the changes, you need to update the GRUB configuration:
sudo update-grub
- Reboot:
Finally, reboot your system to apply the changes:
sudo reboot
This will apply the desired kernel parameters on all boot entries.