Skip to content

Commit

Permalink
1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael committed Oct 19, 2012
1 parent 12042ea commit 727657c
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@ I will happily accept pull requests if anyone knows a better way to achieve the
Description
===========

This project consists of two files: A systemd service definition file, and a simple shell script which will issue the right command to turn the graphic adapter OFF.
This project consists of three files: A systemd service definition file, and two simple shell scripts which will issue the right command to turn the graphic adapter OFF on booting and ON on shutdown. To turn the graphic adapter back on upon shutdown is neccessary, because otherwise it may lead to freezes when saving your alsa-levels.

Installation
============

After cloning, move nodis.sh to the /root directory, and vgaswitcheroo.service to /lib/systemd/system/ . After that, issue the following command as root to enable the service on startup.
```# systemctl enable plop.service```
After cloning, move *.sh to the /usr/bin/ directory, and vgaswitcheroo.service to /lib/systemd/system/ . After that, issue the following command as root to enable the service on startup.
```# systemctl enable vgaswitcheroo.service```

Usage
=====
Expand All @@ -22,8 +22,9 @@ This should be enough. If you need to check whether it's working or not, you can
```cat /sys/kernel/debug/vgaswitcheroo/switch```
The expected output should show that the DIScrete adapter is off.
```
0:DIS: :Off:0000:01:00.0
1:IGD:+:Pwr:0000:00:02.0
0:IGD:+:Pwr:0000:00:02.0
1:DIS-Audio: :Off:0000:01:00.1
2:DIS: :Off:0000:01:00.0
```


0 comments on commit 727657c

Please sign in to comment.