yavdr-ansible/roles/yavdr-xorg/tasks
Alexander Grothe ce24cedf53 Replace nouveau driver with nvidia driver on first run
According to https://nouveau.freedesktop.org/wiki/KernelModeSetting/
it ist possible to unload the noveau and kms drivers an replace them
with the nvidia driver.

Warning: This causes the console output to freeze until
the next reboot (which shouldn't matter much because we want to output
via Xorg).

The yavdr-xorg role performs the equivalent of those command if
the module nouveau is loaded:

echo 0 > /sys/class/vtconsole/vtcon1/bind
rmmod nouveau
rmmod ttm
rmmod drm_kms_helper
rmmod drm
modprobe nvidia
systemctl start nvidia-persistenced

TODO: is the variable first_run still needed?
2019-05-06 18:23:27 +02:00
..
desktop-session.yml Allow autospawning of pulseaudio 2018-01-21 10:03:18 +01:00
detect-xorg.yml Replace nouveau driver with nvidia driver on first run 2019-05-06 18:23:27 +02:00
main.yml Create own role for yavdr-desktop 2018-02-12 08:48:12 +01:00
setup-xorg.yml Don't install intel drivers and libs if a nvidia card has been detected 2019-04-08 22:36:38 +02:00