Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

1.1

  • Loading branch information...
commit 12042ea9260693587e8578defe08bae3d81ca31f 1 parent e767155
Michael authored
View
2  nodis.sh
@@ -1,2 +0,0 @@
-#! /bin/sh
-echo OFF > /sys/kernel/debug/vgaswitcheroo/switch
View
5 vgaswitcheroo.service
@@ -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
4 vgaswitcheroo_start.sh
@@ -0,0 +1,4 @@
+#! /bin/sh
+modprobe radeon
+echo DIGD > /sys/kernel/debug/vgaswitcheroo/switch
+echo OFF > /sys/kernel/debug/vgaswitcheroo/switch
View
2  vgaswitcheroo_stop.sh
@@ -0,0 +1,2 @@
+#! /bin/sh
+echo ON > /sys/kernel/debug/vgaswitcheroo/switch
Please sign in to comment.
Something went wrong with that request. Please try again.