Add laptop configuration to disable discrete GPU

This commit is contained in:
Sonny Bakker 2022-06-29 21:43:27 +02:00
parent 630f380b25
commit c025749069
3 changed files with 26 additions and 0 deletions

View file

@ -0,0 +1,4 @@
# {{ ansible_managed }} {{ ansible_date_time.time }} {{ ansible_date_time.date }}
blacklist nouveau
options nouveau modeset=0

4
templates/laptop/udev.j2 Normal file
View file

@ -0,0 +1,4 @@
# {{ ansible_managed }} {{ ansible_date_time.time }} {{ ansible_date_time.date }}
# Remove NVIDIA VGA/3D controller devices
ACTION=="add", SUBSYSTEM=="pci", ATTR{vendor}=="0x10de", ATTR{class}=="0x03[0-9]*", ATTR{power/control}="auto", ATTR{remove}="1"