From 26f9e8e4d4a06f735c4728f9509593bf7d36a7eb Mon Sep 17 00:00:00 2001 From: EndermanXD <82046100+EndermanCo@users.noreply.github.com> Date: Fri, 26 Jul 2024 11:51:41 +0330 Subject: [PATCH 1/2] Create envycontrol.sevice --- iso/airootfs/etc/systemd/system/envycontrol.sevice | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 iso/airootfs/etc/systemd/system/envycontrol.sevice diff --git a/iso/airootfs/etc/systemd/system/envycontrol.sevice b/iso/airootfs/etc/systemd/system/envycontrol.sevice new file mode 100644 index 0000000..2ede0e2 --- /dev/null +++ b/iso/airootfs/etc/systemd/system/envycontrol.sevice @@ -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 From ed947e0d02f6761228c7bfd58e6654232dcdf674 Mon Sep 17 00:00:00 2001 From: EndermanXD <82046100+EndermanCo@users.noreply.github.com> Date: Fri, 26 Jul 2024 13:13:31 +0330 Subject: [PATCH 2/2] Create envycontrol.sh --- iso/airootfs/etc/systemd/system/envycontrol.sh | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 iso/airootfs/etc/systemd/system/envycontrol.sh diff --git a/iso/airootfs/etc/systemd/system/envycontrol.sh b/iso/airootfs/etc/systemd/system/envycontrol.sh new file mode 100644 index 0000000..dd3b9fd --- /dev/null +++ b/iso/airootfs/etc/systemd/system/envycontrol.sh @@ -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 +