Nvidia and Sway
Sway requires KMS. For some reason this requires flag for kernel to be enabled:
In /etc/default/grub add to kernel list and reload grub with update-grub:
nvidia-drm.modeset=1
You can run cat /sys/module/nvidia_drm/parameters/modeset after reboot to see if it got enabled.
Sway needs to be started with --unsupported-gpu - nobody likes Nvidia.
Void Linux driver setup
xi linux-headers nvidia nvtop
- Make sure
linux-headersare installed and system is up-to-date (same kernel and headers version). - Install
nvidiapackage. Alsonvtopcomes handy - should how your card if driver is loaded correctly. - Use
xbps-reconfigure -f linux2.12to see if DKMS driver was build correctly (no warnings about it).