/[magellan-source]/trunk/mlivecdbuild/profiles/samsung-nc10-i686-svn/custom-files/fn-keys/lcd-onoff.sh |
Contents of /trunk/mlivecdbuild/profiles/samsung-nc10-i686-svn/custom-files/fn-keys/lcd-onoff.sh
Parent Directory | Revision Log
Revision 963 -
(show annotations)
(download)
(as text)
Wed Jan 27 16:14:08 2010 UTC (14 years, 3 months ago) by niro
File MIME type: application/x-sh
File size: 339 byte(s)
Wed Jan 27 16:14:08 2010 UTC (14 years, 3 months ago) by niro
File MIME type: application/x-sh
File size: 339 byte(s)
-nc10 profile
1 | #!/bin/sh |
2 | |
3 | echo x >> /tmp/lcd-onoff.state |
4 | STATE=$(grep -c x /tmp/lcd-onoff.state) |
5 | |
6 | if [ "$STATE" == "1" ]; then |
7 | xrandr --output LVDS --off |
8 | elif [ "$STATE" == "2" ]; then |
9 | xrandr --output LVDS --mode 1024x600 |
10 | rm /tmp/lcd-onoff.state |
11 | else |
12 | kdialog --sorry "Das Display konnte leider nicht ausgeschaltet werden" |
13 | rm /tmp/lcd-onoff.state |
14 | fi |
Properties
Name | Value |
---|---|
svn:executable | * |
svn:keywords | Id |