Use chroot method to install void. or add nomodeset
in the installer screen (press "e" in grub menu)
For most up-to-date info, refer here.
Or simply do the following and let the other dependencies be computed:
sudo xbps-install nvidia
Set nvidia-drm.modeset=1
to kernel parameters in /etc/default/grub
.
Then run update-grub
It seems that there's an alternative which is adding nvidia.conf to /etc/modprobe.d with
options nvidia_drm modeset=1
Still, it is better documentation to do it at kernel parameters level.
Void uses dracut instead of mkinitcpio.
Create a file at /etc/dracut.conf.d/nvidia.conf
with the content:
add_drivers+=" nvidia nvidia_modeset nvidia_uvm nvidia_drm "
Note: surrounding space is important
Then run dracut --force
or dracut -f
Don't install xorg, but install xorg-minimal to prevent installing unrelated and potentially conflicting video drivers:
sudo xbps-install xorg-minimal xorg-server-devel xrdb xbacklight
-server-devel
is to provide package config for nvidia-xconfig
to work
xrdb
is needed for dpi settings
I also need this for changing keyboard repeat rate and swapping CAPSLOCK with ESCAPE key
sudo xbps-install xset setxkbmap
By now, /etc/X11
should not contain any xorg related configs.
Next, make sure nvidia drivers are already installed, then run:
sudo nvidia-xconfig
DPI settings
To change DPI, add this in
~/.Xresources
.and then
xrdb -merge ~/.Xresources
. This is because xorg is a server, and resources are stored in server. See https://wiki.archlinux.org/title/X_resources.Try the following values. Should be multiples of 96
96, 120 (25% higher), 144 (50% higher), 168 (75% higher), 192 (100% higher)
For best result, pair
Xft.dpi: 144
withexport GDK_DPI_SCALE=1.4