[mythtv-users] mythtv netflix hack

Gregory Schade gmschade at gmail.com
Fri May 9 23:26:12 UTC 2014


On 05/09/2014 03:10 PM, Rob Verduijn wrote:
> Hi,
>
> I'm rather busy so it took me a while to find some time.
>
> I've added  2 snippets to the mythflix.sh and they do the trick
> setx is present on most distros and doesn't care about gnome or kde or
> most other windows managers, it works with X.
>
>
> Regards
> Rob
>
> #!/bin/bash
>
> #run script berfore firefox starts
> ~/mythnetflix/mythnetflix-start-before-firefox.sh
>
> #starts firefox with netflix profile
> setsid firefox -p mythtv-netflix &
>
> # run script after firefox starts
> ~/mythnetflix/mythnetflix-start-after-firefox.sh
>
> # turn of screensaver
> xset s off         # don't activate screensaver
> xset -dpms         # disable DPMS (Energy Star) features.
> xset s noblank     # don't blank the video device
>
> #loop to check if firefox is running
> pidoffirefox=$(pidof -s firefox)
> while [ $pidoffirefox != "" ]
> do
>   sleep 1
>   pidoffirefox=$(pidof -s firefox)
> done
>
> # turn on screensaver
> xset s on          # enable screensaver
> xset +dpms         # enable DPMS
> xset s blank       # enable blanking
>
> #run script after firefox exits
> ~/mythnetflix/mythnetflix-stop.sh
> exit
>
>
Rob,
I am in the middle of re-writing much of the scripts so I have added
your suggestion as a conditional. I have the screen saver shut off on my
mythbox and am only using my desktop for further development so I don't
notice the screen saver issues.

Thank you
Greg



More information about the mythtv-users mailing list