#1
kim.olesen
React upon computer events problem
HiI have a problem with the computer events. I'm using a "usb comport to CEC" device to control power on/off and shifting to correct HDMI inputs when pressing the remote power button, and it works :0). The turn "tv on" exe file is put under "PC Waking Up" and my problem is now that the tv also turns on when htpc turns on for a scheduled recording. Manual says:
"This event doesn't happen when your PC is resuming itself to handle an event."
Log shows the events when resume with remote power button and scheduled record...
Log shows:
102233 resume automatic
102233 resume suspend
102302 resume blaster and listeners
Any idea what i'm doing wrong ?
Best regards Kim
#2
StephaneMRe: React upon computer events problem
The turn "tv on" exe file is put under "PC Waking Up" and my problem is now that the tv also turns on when htpc turns on for a scheduled recording. Manual says:
"This event doesn't happen when your PC is resuming itself to handle an event."
"This event doesn't happen when your PC is resuming itself to handle an event."
Unfortunately there is something on your PC that is triggering a full wake up of the PC (it may very well be LM RKM itself).
What you should do is to temporarily remove the actions in the "PC Resuming Auto." event to see if whatever actions you are using here are not fully awaking the PC.
Then create a small scheduled recording, put the PC to sleep and wait for the PC to wake up to record and verify that the PC is not fully awake...
What OS are you using and what actions are you using in the "PC Resuming Auto." event?
Regards,
Stéphane
#3
kim.olesen
Re: React upon computer events problem
Hi StephaneM"PC resume sleeping" -> Launch application TVoff.exe (wait for the app main window, wait for the app to exit is checked)
"PC Resuming Auto" -> is empty.
"PC shutting down" -> Launch application TVoff.exe (wait for the app main window, wait for the app to exit is checked)
"Pc standing by" -> Application command "Browser Backward", and Launch application TVoff.exe (wait for the app main window, wait for the app to exit is checked)
"Pc waking up" -> Launch application TVon.exe, Launch application ehshell.exe
TVoff.exe is a small vb6 program, finds correct comport waits for microprocessor to init and sends a command and then it closes. runs for about 3sek.
Tvon.exe runs for about 15sek, this should not be a problem as it is only used when the computer is powering up.
OS is Windows 7 x64.
I'll try removing all my "launch application" from all the events later, and grap a log file (wife is watching tv :-/ )
Best regards
kim Olesen
#4
StephaneMRe: React upon computer events problem
I'll try removing all my "launch application" from all the events later, and grap a log file
Well I thought you were using the "PC Resuming Auto" event, this event always fire when your PC wake up for executing a task or because you manually wake it up.So that means you have another thing that is waking up fully your PC when it shouldn't and it is not LM RKM as on Win 7 I do get a "PC Resume Auto" without a "PC Waking Up" for scheduled tasks.
What do you use to record your TV shows?
So instead of setting up a small scheduled recording for testing the good wake up behavior, use a scheduled task instead : so you'll be sure that only Windows is involved in the PC wake up (schedule a script that does nothing a quit immediately, your PC should go back to sleep in 2 min)
Also for the "PC Shutting down" event, make sure you check the "Launch application from the LM RKM Blaster Service" check box for your "Launch Application" action, otherwise your TVoff.exe will not be allowed to be launched by Windows.
Stéphane
#5
kim.olesen
Re: React upon computer events problem
Hi
I am using Windows 7 media center to record tv.
Already tested "Launch application from the LM RKM Blaster Service" this made a osx for the vb6 program crash. I have now removed all the added events. Removed the CEC controller and closed W7mc and put to sleep. Log file shows a wakeup (doing a automated update for w7mc) at 06:29:20.893 and a wake with remote control at 08:07:37.682. Both times Automatic and Suspend! Could it be the w7 media center scheduled events there is triggering the "PC waking up" ? While doing a scheduled recording the screen is blanked, but you only have to press a remote button to get picture so pc is fully resumed.
20100220 06:29:20.893 - Info - Received Power Event : ResumeAutomatic
20100220 06:29:29.553 - Info - Received Power Event : ResumeSuspend
20100220 06:29:49.559 - Info - Resuming blaster and listeners
20100220 06:41:32.698 - Info - Received Power Event : Suspend
20100220 06:41:32.698 - Info - Waiting for desktop listener to complete standby events...
20100220 06:41:32.708 - Info - Done waiting, resuming...
20100220 08:07:37.682 - Info - Received Power Event : ResumeAutomatic
20100220 08:07:42.906 - Info - Received Power Event : ResumeSuspend
20100220 08:08:02.922 - Info - Resuming blaster and listeners
best regards
Kim
#6
StephaneMRe: React upon computer events problem
Already tested "Launch application from the LM RKM Blaster Service" this made a osx for the vb6 program crash.
Ok, so be aware that the application may not launch if you don't use the service.closed W7mc and put to sleep. Log file shows a wakeup (doing a automated update for w7mc) at 06:29:20.893 and a wake with remote control at 08:07:37.682. Both times Automatic and Suspend! Could it be the w7 media center scheduled events there is triggering the "PC waking up" ?
I don't know... Try a scheduled task to verify this. What the Windows API is saying is this:- If the system detects any user activity after broadcasting "Resume Auto", it will broadcast a "Resume Suspend"... So your PC is detecting user activity in some way...(keyboard, mouse, server event, window focus change...)
Windows API also says:
- If the system wakes automatically (that is, no user activity is present), it shuts down as soon as the unattended idle timer expires (approx. 2min), assuming that no applications indicate that the system is required.
- If the system wakes automatically, but the user provides new input , the system does not automatically return to sleep based on the unattended idle timer. Instead, the system returns to sleep based on the system idle timer.
While doing a scheduled recording the screen is blanked, but you only have to press a remote button to get picture so pc is fully resumed.
This is how it should be => MCE has to indicate to the system that it should not return to sleep immediately but that it doesn't require the display.Stéphane
#7
jean.millot
Re: React upon computer events problem
I have the same issue. I switch on my TV and my amplifier thanks to IR blastering when I wake up my PC using the "PC Waking Up" event. It works perfectly but unfortunately the event is also triggered for a scheduled recording.I am using Windows 7 x64.
Best Regards
#8
StephaneMRe: React upon computer events problem
I have the same issue. I switch on my TV and my amplifier thanks to IR blastering when I wake up my PC using the "PC Waking Up" event. It works perfectly but unfortunately the event is also triggered for a scheduled recording.
You do have something on your system that does tricks Windows into thinking that there is user activity on your PC. This could be a software or a device driver...The problem is that this is very difficult to troubleshoot (maybe with the pwrtest utility described here)
I have one Win 7 computer with almost nothing on it (a test PC, so it is old hardware and the drivers were installed by Windows Update only) and it does behave as it should with sleep / resume. On the other end I have a Dell XPS One 24: it does goe to sleep only in good days and when it awakes it is always a full wake up (I will eventually one day investigate, I think it may comes from the bluetooth keyboard & mouse)
Regards,
Stéphane
#9
StephaneMRe: React upon computer events problem
The turn "tv on" exe file is put under "PC Waking Up" and my problem is now that the tv also turns on when htpc turns on for a scheduled recording.
I switch on my TV and my amplifier thanks to IR blastering when I wake up my PC using the "PC Waking Up" event. It works perfectly but unfortunately the event is also triggered for a scheduled recording.
FYI LM RKM version 6.10 is out and features a "WakeUp Source Contains" for the "If" action. This way you will be able on Windows Vista / 7 to filter the "PC Waking Up" event. For instance you can only fire actions if a specific device is responsible for waking up the PC.
You'll have to take a look at the service logs to see what informations LM RKM is getting back at the wake up source.
Regards,
Stéphane

