11-12-2016, 01:09 AM
(11-12-2016, 01:04 AM)Ghelorn Wrote:(11-12-2016, 12:29 AM)psychedup Wrote:(11-09-2016, 04:41 PM)Ghelorn Wrote: I also noticed the brightnes on the lcd is lacking but can be turned up with the gpio pin. I just run a small scrip that sets the required pin to high and then sets it to low when it detects xscreensaver running.
Which GPIO controls the brightness? Would you mind sharing your script?
this code is dirty but just checks the state of xscreensaver and writes to the pin. there are better ways but this works. needs root
doesnt actually turn off the lcd though. just dulls it.
Code:echo 362 > /sys/class/gpio/export
echo out > /sys/class/gpio/gpio362/direction
while true; do
case "`xscreensaver-command -time | egrep -o ' blanked|non-blanked|locked'`" in
" blanked") echo 1 > /sys/class/gpio/gpio362/value ;;
"non-blanked") echo 0 > /sys/class/gpio/gpio362/value ;;
esac
sleep 5
done
That works! (I just manually ran the 2 echo commands). I had no idea it could get so bright. Thanks!