From ArchWiki
Jump to navigation Jump to search

Tips and Tricks

High resolution console via Unified Kernel Image generated by dracut

Always backup your working kernel image!

Create the following files.

Warning: The single space at the beginning and end of the string in += settings are extremely important. Without them your unified kernel image will not build and/or boot.
add_drivers+=" nvidia nvidia_modeset nvidia_uvm nvidia_drm "

Change the console-mode setting in /etc/loader/loader.conf to max.

Either customize existing or create new pacman hooks to rebuild the kernel on either of the following methods.

Note: There is likely already an existing hook or set of hooks to trigger dracut rebuilds. As they vary between path-based and package-based triggers, both are included here for ease of integration.
Type = Path
Operation = Install
Operation = Upgrade
Target = usr/lib/modules/*/nvidia*
Type = Package
Operation = Install
Operation = Upgrade
Target = nvidia