Notice: This forum has been recovered from an old backup, so some content, links, and dates may be outdated. The forum is currently read-only while we restore sign-in and registration functionality. Details

If you find this forum valuable and would like to help keep it online, donations to help cover hosting and domain costs are greatly appreciated, but never expected. You can support the forum through Buy Me a Coffee or Ko-fi. Thank you for helping preserve the EventGhost community.

Transmit IR code on Windows sleep

If you have a question or need help, this is the place to be.
Post Reply
marktheknife
Posts: 3
Joined: Fri Jan 24, 2014 12:21 am

Transmit IR code on Windows sleep

Post by marktheknife »

Hello all,
I have not started using Eventghost yet, but I have a specific task in mind and am trying to determine whether Eventghost will meet my needs.

I built an HTPC running windows 7 home premium SP1. I use Windows Media Center and am able to do most things that I need with a Logitech Harmony 300 and a USB IR receiver that came with an old HP laptop (the IR receiver is an HP 5070-2584).

In general the Harmony 300 can control my TV, receiver and the HTPC through the activities I setup. However, when power management settings tell Windows to go to sleep (S3) after a period of inactivity, my TV (a Samsung LCD TV from ~2006) remains on. My goal is for an IR code to be sent automatically to my TV telling it to power off, triggered by windows going to sleep. My questions are as follows:

1. Can Eventghost do this? Is there a specific plugin that is required?
2. If this is possible, can Eventghost only do this with certain IR receivers/emitters? Is mine likely to play well with Eventghost?

I'm hoping I can accomplish this at minimal additional cost, and obviously the fact that Eventghost is freeware is a great start. My IR receiver has 3.5mm jacks on the back for attaching an IR emitter, which are available on Amazon, Monoprice etc. for less than $10. Any advice is much appreciated. Thanks.
spynet
Posts: 5
Joined: Tue Jan 01, 2013 7:58 pm

Re: Transmit IR code on Windows sleep

Post by spynet »

I solved a similar requirement to send IR Codes to my TV and Receiver.

Therefor i┬┤ve installed the Plugin "Process watcher" in Event Ghost, to get events fom the PC like "window changed" or "go to sleep".
My IR Transmitter "IR Toy" is connectet via USB to my HTPC. It┬┤s controlled and programmed with WIN LIRC.
To use the events with the IR Transmitter, I┬┤ve installed the Plugin "LIRC Client"
So Event Ghost can control WIN LIRC.
Maybe you can use your HP Transmitter in a similar way.
Although because of the alignment of transmitter and receiver, I use 2 different devices for the sending and receiving.
I┬┤dont know if ther is an easier way to get the transmitter work in Event Ghost.
Attachments
In the WIN LIRC Setup you can declare your device and create a IR-Config with all required IR-Codes
In the WIN LIRC Setup you can declare your device and create a IR-Config with all required IR-Codes
Win LIRC with all teached commands an possibility to test the commands
Win LIRC with all teached commands an possibility to test the commands
WIN LIRC.png (41.12 KiB) Viewed 3973 times
Event Ghost with all required Plugins to trigger IR-Codes on WIN LIRC
Event Ghost with all required Plugins to trigger IR-Codes on WIN LIRC
marktheknife
Posts: 3
Joined: Fri Jan 24, 2014 12:21 am

Re: Transmit IR code on Windows sleep

Post by marktheknife »

OK, good to know that EventGhost seems to be capable of doing what I describe. I guess since EventGhost would be controlling WinLIRC, whether the IR receiver/transmitter I'm trying to use will actually work depends more on WinLIRC than EventGhost. I guess I'll look into WinLIRC a little more, but maybe I should just pick up a plug-in emitter and see if it works since they're pretty cheap anyway. Thanks for the help.
piert
Experienced User
Posts: 321
Joined: Tue Jun 14, 2011 2:53 pm

Re: Transmit IR code on Windows sleep

Post by piert »

I see you mention you have a Samsung TV.
I have not used it myself, but maybe you could use CEC control through HDMI instead of infrared for controlling your TV (Edit: I see it is from around 2006: you should check to see if it supports CEC).
viewtopic.php?f=9&t=5907
I assume that it may be easier to program and might be more reliable than using IR.
marktheknife
Posts: 3
Joined: Fri Jan 24, 2014 12:21 am

Re: Transmit IR code on Windows sleep

Post by marktheknife »

CEC does sound like an interesting idea, but it looks like neither my TV nor my AV receiver support it. I'm hoping I can get this IR blaster-based idea working with EventGhost. We'll see.
barnabas1969
Experienced User
Posts: 133
Joined: Sat Feb 04, 2012 1:42 am

Re: Transmit IR code on Windows sleep

Post by barnabas1969 »

It appears that your IR receiver is an HP Media Center (RC6) transceiver, which means that it works with Windows Media Center, and it also includes an IR transmitter.

You can use the following plugin with that IR transceiver:
viewtopic.php?f=9&t=6044

That plugin will disable the ability for Windows Media Center to be controlled directly by the IR receiver, so after you install the plugin, double-click the plugin in EG (or right-click it and choose Configure). Click the button to install the service. Then, download the file in the following post, rename it so that it has a .reg file extension, double click it (and answer the prompts), and then reboot your PC.
viewtopic.php?f=9&t=1838&start=45#p22340

Now, you will be able to use the plugin above to learn IR commands to turn your TV off. Once you have learned the commands, you will need to setup a macro that sends the power-off command to your TV. When the PC goes to standby, it generates an event in EG. I think it is named System.Standby, but I'm not 100% sure off the top of my head. You can put your PC in standby, wake it back up, and you will see the event in the EG logger. Just drag/drop that event into your new macro, and save your EG configuration.

Now, when the PC goes to standby, EG will send the power-off command to your TV.
Post Reply