commit
4261cc52c4
2 changed files with 15 additions and 0 deletions
8
iso/airootfs/etc/systemd/system/envycontrol.sevice
Normal file
8
iso/airootfs/etc/systemd/system/envycontrol.sevice
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
[Unit]
|
||||||
|
Description=Enable Nvidia mode for envycontrol
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
ExecStart=/bin/bash /etc/systemd/system/envycontrol.sh
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=multi-user.target
|
7
iso/airootfs/etc/systemd/system/envycontrol.sh
Normal file
7
iso/airootfs/etc/systemd/system/envycontrol.sh
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
#!/bin/bash
|
||||||
|
if [[ -f "/etc/modprobe.d/nvidia.conf" ]]; then
|
||||||
|
systemctl disable envycontrol.service
|
||||||
|
else
|
||||||
|
envycontrol -s nvidia --dm sddm
|
||||||
|
fi
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue