I've got a touch screen without backlight control and and turning off the HDMI-output just brings up a "no signal" placeholder on the screen.
I've soldered a octocoupler to the power toggle to control it via the GPIO-pins and that works fine.
What I would like to do is to toggle a shell script (screen_toggle.sh) everytime the Pi changes DPMS state. I.e as soon as DMPS blanks the screen the screen_toggle.sh would be triggered, and as soon as mouse (touch) input is registered screen_toggle.sh would be triggered again to wake the screen.
Anyone with ideas on how to get this working?