Minimal interactive Bash script to switch GPU modes with envycontrol.
chmod +x gpu-mode-switcher.sh
./gpu-mode-switcher.sh- Switch mode to
hybrid(envycontrol -s hybrid --rtd3 3) - Switch mode to
integrated(envycontrol -s integrated) - Switch mode to
nvidia(envycontrol -s nvidia) - Optional actions menu for:
update-initramfs -u- reboot with confirmation
- post-reboot checks (
runtime_status, NVIDIA power info,tlp-stat -b) - renderer checks (
prime-run glxinfoand defaultglxinfo)
- Most actions use
sudoand will prompt for your password. - A reboot is required after every GPU mode change.