Skip to content

Instantly share code, notes, and snippets.

@atweiden
Created June 23, 2016 16:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save atweiden/701d14375996cf4823d369ef51169580 to your computer and use it in GitHub Desktop.
Save atweiden/701d14375996cf4823d369ef51169580 to your computer and use it in GitHub Desktop.
Nvidia support
/* vim: ft=journal */
Enabling Nvidia Dedicated Graphics Support
==========================================
- “nvidia 364.16 adds support for DRM kernel mode setting. To
enable this feature, add the `nvidia-drm.modeset=1` kernel parameter,
and add `nvidia`, `nvidia_modeset`, `nvidia_uvm` and `nvidia_drm`
to your initramfs#MODULES.” [1]
```sh
pacman -S nvidia nvidia-libgl nvidia-utils
sed \
-i 's,^\(GRUB_CMDLINE_LINUX=.*\)"$,\1 nvidia-drm.modeset=1",' \
/etc/default/grub
sed \
-i 's,^\(MODULES=.*\)"$,\1 nvidia nvidia_modeset nvidia_uvm nvidia_drm",' \
/etc/mkinitcpio.conf
mkinitcpio -p linux
grub-mkconfig -o /boot/grub/grub.cfg
nvidia-xconfig
```
******************************************************************************
[1] https://wiki.archlinux.org/index.php/NVIDIA_
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment