Permalink
Browse files

1.1

  • Loading branch information...
1 parent e767155 commit 12042ea9260693587e8578defe08bae3d81ca31f Michael committed Oct 19, 2012
Showing with 10 additions and 3 deletions.
  1. +0 −2 nodis.sh
  2. +4 −1 vgaswitcheroo.service
  3. +4 −0 vgaswitcheroo_start.sh
  4. +2 −0 vgaswitcheroo_stop.sh
View
@@ -1,2 +0,0 @@
-#! /bin/sh
-echo OFF > /sys/kernel/debug/vgaswitcheroo/switch
View
@@ -2,7 +2,10 @@
Description=Deactivate the discrete graphic
[Service]
-ExecStart=/root/nodis.sh
+Type=oneshot
+RemainAfterExit=yes
+ExecStart=/usr/bin/vgaswitcheroo_start.sh
+ExecStop=/usr/bin/vgaswitcheroo_stop.sh
[Install]
WantedBy=multi-user.target
View
@@ -0,0 +1,4 @@
+#! /bin/sh
+modprobe radeon
+echo DIGD > /sys/kernel/debug/vgaswitcheroo/switch
+echo OFF > /sys/kernel/debug/vgaswitcheroo/switch
View
@@ -0,0 +1,2 @@
+#! /bin/sh
+echo ON > /sys/kernel/debug/vgaswitcheroo/switch

0 comments on commit 12042ea

Please sign in to comment.