Hook/Detect screensaver?
#1
Question 
Could someone please point me in the right direction:
  • Either a python(plugin?) way of hooking the start/stop of screen saver or dimming of the screen
    Prefered way I guess Big Grin

  • Detect play/pause/stop for all modules
    Can implement my own timer.., less clean, but might work

  • Or, a way to "ask" via any API for the status (playing/paused/screensaver)
    I'll write a cron, crude & latency on start, but would work



The rational being that my family is terrible at remembering to turn of the TV, and I can programmaticaly turn of the TV (think IR-blaster)

I found a patch earlier, but that requires a recompilation, and I would prefer not to do that, python would be much more generic+ it might turn into a generic "green-earth-plugin" one day Big Grin

Is it possible to write a python script that get's executed in the XBMC environment (think autostart.py) that can hook arbitrary events like play/screen saver start or similar events?
Reply
#2
in general; yes. but i think we only have hooks for playback atm.
Reply
#3
Rainbow 
Someone who have any better way of detecting "idle"/"paused" mode?!

Now I turn of the TV if the bandwith usage goes down for a couple of minutes, but tvheadend disturbes this, so any better idea is welcome!
Reply

Logout Mark Read Team Forum Stats Members Help
Hook/Detect screensaver?0