mirror of
https://github.com/rwinkhart/artix-install-script.git
synced 2026-09-05 16:37:17 -04:00
Do not automatically reboot after toggling between NVIDIA-FCKR modes
This commit is contained in:
@@ -28,14 +28,10 @@ ACTION=="add", SUBSYSTEM=="pci", ATTR{vendor}=="0x10de", ATTR{class}=="0x03[0-9]
|
|||||||
# disable GPU via acpi_call on next boot
|
# disable GPU via acpi_call on next boot
|
||||||
echo -e '#!/usr/bin/env bash\necho '"'\_SB.PCI0.GPP0.PG00._OFF'"' > /proc/acpi/call' > /etc/local.d/NVIDIA-FCKR.start
|
echo -e '#!/usr/bin/env bash\necho '"'\_SB.PCI0.GPP0.PG00._OFF'"' > /proc/acpi/call' > /etc/local.d/NVIDIA-FCKR.start
|
||||||
chmod +x /etc/local.d/NVIDIA-FCKR.start
|
chmod +x /etc/local.d/NVIDIA-FCKR.start
|
||||||
|
echo 'Following the next reboot, only the integrated GPU will be used.'
|
||||||
/usr/bin/reboot
|
|
||||||
|
|
||||||
elif [ "$1" == 'hybrid' ]; then
|
elif [ "$1" == 'hybrid' ]; then
|
||||||
rm -rf /etc/modprobe.d/NVIDIA-FCKR.conf /lib/udev/rules.d/50-NVIDIA-FCKR.rules /etc/local.d/NVIDIA-FCKR.start
|
rm -rf /etc/modprobe.d/NVIDIA-FCKR.conf /lib/udev/rules.d/50-NVIDIA-FCKR.rules /etc/local.d/NVIDIA-FCKR.start
|
||||||
|
echo 'Following the next reboot, both GPUs will be enabled.'
|
||||||
/usr/bin/reboot
|
|
||||||
|
|
||||||
else
|
else
|
||||||
echo -e "invalid argument: $1\nusage: NVIDIA-FCKR [integrated/hybrid]"
|
echo -e "invalid argument: $1\nusage: NVIDIA-FCKR [integrated/hybrid]"
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user