diff options
author | AJ | 2015-12-20 18:47:28 -0600 |
---|---|---|
committer | AJ | 2015-12-20 18:47:28 -0600 |
commit | eaf6292e8cc36f909c0d2a3abe8972fd88e0c4ab (patch) | |
tree | 95f34628e00b1e4415bd8e67c62accb41be3f800 /check_active_gpu.sh | |
parent | 707876d1ee9ce1c28445af55b13b50afd29f8631 (diff) | |
download | aur-systemd-vgaswitcheroo-units.tar.gz |
Only turn off the discrete GPU if it is not the active one
Diffstat (limited to 'check_active_gpu.sh')
-rwxr-xr-x | check_active_gpu.sh | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/check_active_gpu.sh b/check_active_gpu.sh index a130b04e6cbe..4d9e0b73c030 100755 --- a/check_active_gpu.sh +++ b/check_active_gpu.sh @@ -3,12 +3,5 @@ vgaswitcheroo_path='/sys/kernel/debug/vgaswitcheroo/switch' active_card=`grep '+' $vgaswitcheroo_path|awk '{split($0,a,":"); print a[2]}'` -if [ "$active_card" == "IGD" ]; -then - echo "Integrated" -elif [ "$active_card" == "DIS" ]; -then - echo "Discrete" -fi - +echo $active_card |