Skip to content

Instantly share code, notes, and snippets.

@ochoto
Created June 19, 2012 07:35
Show Gist options
  • Save ochoto/2952818 to your computer and use it in GitHub Desktop.
Save ochoto/2952818 to your computer and use it in GitHub Desktop.
Control hybrid graphics
#!/bin/bash
#mount -t debugfs none /sys/kernel/debug
cd /sys/kernel/debug/vgaswitcheroo
cat switch # to see which card is active
echo DDIS > switch # to go to discrete card (log off and then log in after this command)
echo DIGD > switch # to go to integrated card (log off and then log in after this command)
echo OFF > switch # to just power off the card you aren't using
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment