Sign up here and you can log into the forum!

Turn TV off when Screensaver Starts?

This is the place to ask for how to use software that is (or isn't) included in the various wdlxtv flavours. Questions about software such as rtorrent, NZBGet, sshfs, curlftpfs, ssh, telnet, etc.

Turn TV off when Screensaver Starts?   

Postby spazlon » Tue Dec 06, 2011 1:58 pm

Is it possible to use LIRC to blast an IR command when the screensaver starts, then blast another when the screensaver stops? Basically I want the TV to automatically turn on and off, but I'm not sure if there is a way to have cron check once a minute to see if the screensaver is running.

Anybody know of a way?
WDLXTV Live+ 1.05.04_.0.5.1.1 SVN on external USB
spazlon
WDTVer
 
Posts: 45
Joined: Sat Jan 29, 2011 11:39 am
Location: Mangaf, Kuwait

Re: Turn TV off when Screensaver Starts?   

Postby mad_ady » Wed Dec 07, 2011 6:55 am

Checking wether the screensaver is on and off is easy. How do you plan on sending a IR signal? Using the IR receiver on the WDTV? That won't work. And you can't send the IR from the remote because there's no way to control the actual remote from the wdtv (works only one way).
User avatar
mad_ady
Developer
 
Posts: 4552
Joined: Fri Nov 05, 2010 9:08 am
Location: Bucharest, Romania

Re: Turn TV off when Screensaver Starts?   

Postby spazlon » Wed Dec 07, 2011 8:50 am

Can't I use a USB iR blaster of some sort? Right now I am using something like this (http://www.amazon.com/HP-Infrared-Receiver-Center-5188-1667/dp/B000Z7XJME/ref=sr_1_17?ie=UTF8&qid=1323276260&sr=8-17) on Windows to blast the signals, but if this doesn't work on WDTV or LIRC, I would purchase one that does (if there is an IR blaster that works with WDLXTV/LIRC).

Admittedly, I don't know much about LIRC, but having messed with it briefly it seems like it should be able to do what I want as long as the hardware support exists.

Thanks!
WDLXTV Live+ 1.05.04_.0.5.1.1 SVN on external USB
spazlon
WDTVer
 
Posts: 45
Joined: Sat Jan 29, 2011 11:39 am
Location: Mangaf, Kuwait

Re: Turn TV off when Screensaver Starts?   

Postby mad_ady » Wed Dec 07, 2011 9:46 am

If you could get a driver to support it, then it might work on the wdtv. To identify the driver it uses, try it first on a linux system (e.g. Ubuntu live cd). See if you can get it to work. Most likely it will create a serial port (/dev/ttyUSB*) that is used by LIRC to send the signals.

Get the setup working on a full-blown linux distro and then try to port it to the wdtv. You can check which driver is registered for it by running dmesg | tail after plugging in the device into the PC's USB port. Then you need to find out if that driver is already compiled for the wdtv. If not, you'd need to cross-compile it.
User avatar
mad_ady
Developer
 
Posts: 4552
Joined: Fri Nov 05, 2010 9:08 am
Location: Bucharest, Romania

Re: Turn TV off when Screensaver Starts?   

Postby recliq » Wed Dec 07, 2011 11:36 am

You probably need to compile LIRC with the respecting driver for this to work.
I compiled LIRC and I'm using it with a X10 RF remote.

I remember when I was messing around with LIRC that there was an issue with compiling the serial drivers and I gave up on it because my X10 was running.

But it's been quite some time since I did this.
­WDLXTV Project Maintainer
-:] If you like my contributions feel free to donate for a beer or a new flash drive. ...and always remember: RTFM! (README, FAQ, WIKI) [:-
User avatar
recliq
WDLXTV Team
 
Posts: 5513
Joined: Thu Apr 15, 2010 8:09 am
Location: Kiel, Germany

Re: Turn TV off when Screensaver Starts?   

Postby leetwanker » Thu Nov 21, 2013 7:18 pm

Nobody ever got anything like this working? I think it'd be a really cool option to have.
1.02.21_V.WDLXTV_LIVE-0.5.2.0
leetwanker
DLX'er
 
Posts: 101
Joined: Sat Dec 08, 2012 7:52 am


Return to Application Questions

Who is online

Users browsing this forum: No registered users and 2 guests