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
Brightness
Make sure there's a folder
/sys/class/backlight/nvidia_0
. If its not (eg. acpi_video_0), it means nvidia driver isn't working properly.Then, do the following test (change to 50%):
Install
xbacklight
package and bind keys to the xbacklight commands, for eg on I3: