Skip to main content

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
  1. Make sure linux-headers are installed and system is up-to-date (same kernel and headers version).
  2. Install nvidia package. Also nvtop comes handy - should how your card if driver is loaded correctly.
  3. Use xbps-reconfigure -f linuxlinux2.12 to see if DKMS driver was build correctly (no warnings about it).