Is it possible to switch on the backlight by touching the touchscreen if I don't run any X or other GUI? I have a debian install with just the terminal on the display and would like to be able to switch on it by touching the screen. I can now switch it on for 10min with the command echo 0 > /sys/devices/platform/s3c2410-lcd/graphics/fb0/blank, but I would like it to happen when I touch the display.
Switch on backlight with touchscreen?
I did something like this with a QT application...you need tslib installed
for it to work.
here is the relevant code:
you can pick up touch releases with:
void remote::mouseReleaseEvent(QMouseEvent* ev){
startBacklightTimer();
ev->accept();
}
then the appropriate code to activate the screen would be something like
this:
void remote::startBacklightTimer(){
system("cd /sys/devices/platform/s3c24xx_led.5/leds/backlight/ ;echo
255 > brightness;cd");
bid=this->startTimer(BL_TIMEOUT);
}
but maybe you could set up a shell script using the commands:
/sys/devices/platform/s3c24xx_led.5/leds/backlight/# echo 255 > brightness
to turn on, and:
/sys/devices/platform/s3c24xx_led.5/leds/backlight/# echo 0 > brightness
to turn off.


