aboutsummarylogtreecommitdiffstats
path: root/check_active_gpu.sh
diff options
context:
space:
mode:
authorAJ2015-12-20 18:47:28 -0600
committerAJ2015-12-20 18:47:28 -0600
commiteaf6292e8cc36f909c0d2a3abe8972fd88e0c4ab (patch)
tree95f34628e00b1e4415bd8e67c62accb41be3f800 /check_active_gpu.sh
parent707876d1ee9ce1c28445af55b13b50afd29f8631 (diff)
downloadaur-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-xcheck_active_gpu.sh9
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