Skip to content
Browse files

add switch_off_radeon script

  • Loading branch information...
1 parent 73a9158 commit 42722cce33de7ba3a13ec7a22dd9f91b7f2fee8f @tpo committed Jun 14, 2013
Showing with 32 additions and 1,906 deletions.
  1. +11 −1,906 README.md
  2. +21 −0 switch_off_radeon
View
1,917 README.md
11 additions, 1,906 deletions not shown because the diff is too large. Please use a local Git client to view these changes.
View
21 switch_off_radeon
@@ -0,0 +1,21 @@
+#!/bin/bash
+#
+# see http://mschoofs.blogspot.ch/2012/07/switch-off-ati-vga-in-hybrid-cards-with.html
+
+help() {
+ echo 'usage: switch_off_radeon'
+ echo
+ echo ' tries to switch off the heat producing Radeon VGA card'
+ echo
+ exit 1
+}
+
+[ "$1" == "--help" ] && help
+
+sudo sh -c "echo OFF > /sys/kernel/debug/vgaswitcheroo/switch"
+if lspci -vnnn | grep VGA | grep "Advanced Micro Devices" | grep -q "prog-if ff"; then
+ echo "successfull switched off Radeon"
+else
+ echo "failed to switch off Radeon"
+ exit 1
+fi

0 comments on commit 42722cc

Please sign in to comment.
Something went wrong with that request. Please try again.