backlightcontrol
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revision | |||
| backlightcontrol [2011/11/05 13:28] – fixed errors in inc/dec bash scripts excogitation | backlightcontrol [2011/11/05 13:33] (current) – fixed toggle script excogitation | ||
|---|---|---|---|
| Line 27: | Line 27: | ||
| new=$((current - 25)) | new=$((current - 25)) | ||
| if [ $new -lt 0 ]; then | if [ $new -lt 0 ]; then | ||
| - | new=3 | + | new=0 |
| fi | fi | ||
| echo $new > $backlight | echo $new > $backlight | ||
| </ | </ | ||
| + | use new=3 if you don't want your screen to go black on the lowest setting | ||
| / | / | ||
| Line 42: | Line 43: | ||
| current=$(cat $backlight) | current=$(cat $backlight) | ||
| - | if ((current | + | if [ $current |
| cat $old_file > $backlight | cat $old_file > $backlight | ||
| else | else | ||
backlightcontrol.1320496115.txt.gz · Last modified: by excogitation
