This commit is contained in:
David Heinemeier Hansson
2026-02-20 07:52:49 +01:00
parent f8df232902
commit a449e4f108
2 changed files with 2 additions and 1 deletions
+2 -1
View File
@@ -31,8 +31,9 @@ case "$gpu_mode" in
;; ;;
"Hybrid") "Hybrid")
if gum confirm "Use only integrated GPU and reboot?"; then if gum confirm "Use only integrated GPU and reboot?"; then
# Switch to integrated mode # Switch to integrated mode and ensure vfio is enabled (needed for sleep/wake trick)
sudo sed -i "s/\"mode\": \".*\"/\"mode\": \"Integrated\"/" /etc/supergfxd.conf sudo sed -i "s/\"mode\": \".*\"/\"mode\": \"Integrated\"/" /etc/supergfxd.conf
sudo sed -i 's/"vfio_enable": false/"vfio_enable": true/' /etc/supergfxd.conf
# Force igpu mode after system sleep (or dgpu could get activated) # Force igpu mode after system sleep (or dgpu could get activated)
sudo mkdir -p /usr/lib/systemd/system-sleep sudo mkdir -p /usr/lib/systemd/system-sleep
View File