[mythtvnz] Xorg and lcd tv's

Hadley Rich hads at nice.net.nz
Tue Apr 15 01:01:04 BST 2008


On Tuesday 15 April 2008 11:39:41 Barry Clearwater wrote:
> Hads, where abouts do you use xset dpms force off? Is it something you
> run as part of a power saving setting in myth? Have you linked it to the
> poweroff button of your remote somehow?

Yeah, xset is a command line program you can use. I have indeed mapped it to 
the power button on that system, here's the details;

hads at frog:~$ cat .lircrc
begin
    prog = irexec
    button = Power
    repeat = 3
    config = /usr/local/bin/xoff.sh
end

hads at frog:~$ cat /usr/local/bin/xoff.sh
#/bin/bash

export DISPLAY=:0.0
STATE=`xset q | grep Monitor | cut -f 5 -d ' '`
if [ $STATE = "On" ]; then
        echo "Turning monitor off"
        xset dpms force off
else
        echo "Turning monitor on"
        xset dpms force on
fi

hads at frog:~$

You'll also need to take care of stopping myth playing video if it is at the 
time.

hads
-- 
http://nicegear.co.nz
VoIP, DVB and other Linux compatible hardware. Linux laptops.



More information about the mythtvnz mailing list