[mythtv-users] Script to turn monitor fully on and active

Nick Morrott knowledgejunkie at gmail.com
Tue Mar 1 04:07:04 UTC 2011


On 1 March 2011 03:33, Dave M G <martin at autotelic.com> wrote:

> What I hope to have happen is when turning on the screen, when I press
> the button on my remote, the screen should come on fully and I should
> see the MythTV interface without having to do any more key presses.
>
> Is this possible? Is there something I can add to my shell script to
> kick my screen into life when it becomes active?
>
> Here are the contents of my shell script:
>
> - - -
> #!/bin/bash
>
> STATUS=`xset -q | grep "Monitor is" | awk '{print $3}'`
>
> if [ "${STATUS}" = "On" ]
> then
>   xset dpms force off
> else
>   xset dpms force on
> fi
> exit 0
> - - -
>
> Any advice would be much appreciated. Thank you.

Check the output of `xset q` to determine what the reported screen
saver settings are. You might find that adding

xset s off

to your login (or mythfrontend startup) script will disable the screen
blanking you are seeing.

Cheers,
Nick


-- 
Nick Morrott

MythTV Official wiki: http://mythtv.org/wiki/
MythTV users list archive: http://www.gossamer-threads.com/lists/mythtv/users

"An investment in knowledge always pays the best interest." - Benjamin Franklin


More information about the mythtv-users mailing list