so scenario: my pi is hooked up to a tv. When I press a button on the pi`s keyboard, I want the tv to wake up. I found the
echo on 0 | cec-client -s -d 1
command, but I don't know how can I wire it to fire when i touch keyboard after 2 hours of inactivity.
I only use the tv, also for the output from pi. When tv is on, screen of pi is black, but when i touch a button on keyboard, desktop comes back.