This commit is contained in:
David Heinemeier Hansson
2026-01-15 18:01:15 -05:00
parent 16edd8982b
commit e73f56b1b1

View File

@@ -1,12 +1,11 @@
#!/bin/bash
# Use the Vfio to Integrated trick to put turn off NVIDIA dgpu when in integrated mode
# Use the Vfio to Integrated trick to turn off NVIDIA dgpu when in integrated mode
# without needing to restart the computer. This is needed because computers like the Asus G14
# will wake after suspend in Hybrid mode, even if the system was in Integrated mode before
# suspending.
case "$1" in
post)
if [[ $1 == "post" ]]; then
# small delay so the device is fully re-enumerated
sleep 4
@@ -16,7 +15,4 @@ case "$1" in
# then go back to Integrated, which powers it off again
/usr/bin/supergfxctl -m Integrated
;;
esac
exit 0
fi