Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: MythTV: Users

One more tip for those using myth with a monitor instead of a TV...

 

 

MythTV users RSS feed   Index | Next | Previous | View Threaded


ian at duckland

Mar 16, 2007, 6:43 PM

Post #1 of 2 (2346 views)
Permalink
One more tip for those using myth with a monitor instead of a TV...

Recently, I picked up a Gateway FPD2275W monitor from Best Buy - nice
monitor...

anyhoo, it's sitting in the bedroom on my MBE / 2nd frontend box. I've
got lirc setup and I'm using the Hauppauge grey remote with it. But
once I'm done watching shows there, I have to get up to turn off the
monitor...

Not anymore... a little googling, searching the list archives, one
config file edit, and one shell script later...

Put this stanza in ~mythfrontend/.lircrc

# Red Button
begin
prog = irexec
button = Red
repeat = 4
config = /usr/local/bin/monitorpowerbutton.sh
end

And this script as /usr/local/bin/monitorpowerbutton.sh

#!/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

Inspired by Jarod's power button trick for mythfrontend...

-I
--
_______________________________________
Ian Forde
RHCE (7,EL4), CCSE, SCNA, SCDME

_______________________________________________
mythtv-users mailing list
mythtv-users[at]mythtv.org
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users


adeffs.mythtv at gmail

Mar 19, 2007, 6:49 AM

Post #2 of 2 (2118 views)
Permalink
Re: One more tip for those using myth with a monitor instead of a TV... [In reply to]

On 3/16/07, Ian Forde <ian[at]duckland.org> wrote:
> Recently, I picked up a Gateway FPD2275W monitor from Best Buy - nice
> monitor...
>
> anyhoo, it's sitting in the bedroom on my MBE / 2nd frontend box. I've
> got lirc setup and I'm using the Hauppauge grey remote with it. But
> once I'm done watching shows there, I have to get up to turn off the
> monitor...
>
> Not anymore... a little googling, searching the list archives, one
> config file edit, and one shell script later...
>
> Put this stanza in ~mythfrontend/.lircrc
>
> # Red Button
> begin
> prog = irexec
> button = Red
> repeat = 4
> config = /usr/local/bin/monitorpowerbutton.sh
> end
>
> And this script as /usr/local/bin/monitorpowerbutton.sh
>
> #!/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
>
> Inspired by Jarod's power button trick for mythfrontend...

Will this actually turn the monitor off or just put it into a low power mode?

Also, you should add this to the wiki.

--
Steve
Before you ask, read the FAQ!
http://www.mythtv.org/wiki/index.php/Frequently_Asked_Questions
then search the Wiki, and this list,
http://www.gossamer-threads.com/lists/mythtv/
Mailinglist etiquette -
http://www.mythtv.org/wiki/index.php/Mailing_List_etiquette
_______________________________________________
mythtv-users mailing list
mythtv-users[at]mythtv.org
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users

MythTV users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact lists@gossamer-threads.com
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.