yavdr-ansible/roles/yavdr-xorg
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
..
defaults Allow overriding preferred refresh rate, resolution and connection 2018-05-10 22:04:45 +02:00
tasks Replace nouveau driver with nvidia driver on first run 2019-05-06 18:23:27 +02:00
templates Improve Compatibility with Python3 2019-02-24 18:42:46 +01:00