Geekzone: technology news, blogs, forums
Guest
Welcome Guest.
You haven't logged in yet. If you don't have an account you can register now.


macuser

2120 posts

Uber Geek
+1 received by user: 506


#177128 23-Jul-2015 11:29
Send private message

I'm having trouble finding solid information on this...

I want to run a command when the PC wakes from sleep...this will send a serial command to a plasma TV that I want to turn on when the pc is woken up

I also want to schedule a task for when the PC goes to sleep...so that it sends a serial command to TV to turn it off.

Is there any way to schedule tasks around PC wake up and sleep?

This is so I can save power by having the PC automatically sleep after only a couple minutes of inactivity and turn the TV off with it..

It's a 500W plasma attached to a beefy gaming PC that too easily gets left idle and the screen doesn't turn off automatically when PC idle.

Create new topic
Inphinity
2780 posts

Uber Geek
+1 received by user: 1184


  #1350307 23-Jul-2015 11:40
Send private message

The only way I am aware to do it is to set an On Event trigger, and filter that for the relevant event log entries such as Microsoft-Windows-Power-Troubleshooter Event ID 1.



D.W

D.W
747 posts

Ultimate Geek
+1 received by user: 91


  #1350311 23-Jul-2015 11:44
Send private message

Yep as above, on Event.

Just put your PC to sleep, then wake and check Windows Event Log for the Event ID.

trig42
5889 posts

Uber Geek
+1 received by user: 2094

ID Verified

  #1350325 23-Jul-2015 12:08
Send private message

How will determine 'Idle', most times it is no mouse/keyboard input, so you set a movie to run, and put down remote/mouse and then the PC goes to sleep?

Have you tested it with just the TV? (worry about sending commands to the TV later).



macuser

2120 posts

Uber Geek
+1 received by user: 506


  #1350327 23-Jul-2015 12:12
Send private message

Cool thanks guys,

Can't seem to find Microsoft-Windows-Power-Troubleshooter in 'On an Event'

I have options like 'Microsoft-Windows-Kernal-Power/Thermal-Operational

Then Source

Then Event ID (obviously that would be 1)

Could you help me configure this properly?

I am seeing Microsoft-Windows-Power-Troubleshooter (ID 1) in event viewer which is 'The system has returned from a low power state' 

But not seeing that on task scheduler.

UPDATE:  Sorry I should have used 'System' as the event...working now

macuser

2120 posts

Uber Geek
+1 received by user: 506


  #1350329 23-Jul-2015 12:13
Send private message

trig42: How will determine 'Idle', most times it is no mouse/keyboard input, so you set a movie to run, and put down remote/mouse and then the PC goes to sleep?

Have you tested it with just the TV? (worry about sending commands to the TV later).


Doesn't Windows know that it's doing something and not to go idle?  my pc never goes to sleep when watching a movie..?

Also the TV has an auto turn off, but will turn off of course when you least want it to.  The minimum amount of TV idle time is 30minutes which is too long.

I really just need a new TV...

trig42
5889 posts

Uber Geek
+1 received by user: 2094

ID Verified

  #1350349 23-Jul-2015 12:35
Send private message

macuser:
trig42: How will determine 'Idle', most times it is no mouse/keyboard input, so you set a movie to run, and put down remote/mouse and then the PC goes to sleep?

Have you tested it with just the TV? (worry about sending commands to the TV later).


Doesn't Windows know that it's doing something and not to go idle?  my pc never goes to sleep when watching a movie..?

Also the TV has an auto turn off, but will turn off of course when you least want it to.  The minimum amount of TV idle time is 30minutes which is too long.

I really just need a new TV...


It 'Should', but by the same theory, it is just running a program, it doesn't know that running the video should keep it out of going to sleep (ie. it will do it while all sorts of programs are running - IE, Outlook). Some may have settings preventing Windows from sleeping while they are running. That's why I suggested you test it before worrying about connecting serial cables to the TV etc.

 
 
 
 

Shop now on Samsung phones, tablets, TVs and more (affiliate link).
richms
29098 posts

Uber Geek
+1 received by user: 10208

Trusted
Lifetime subscriber

  #1350356 23-Jul-2015 12:42
Send private message

No tvs work properly off a computer for turning on and off like a monitor. It's something that's always annoyed me with them.




Richard rich.ms

macuser

2120 posts

Uber Geek
+1 received by user: 506


  #1350403 23-Jul-2015 13:32
Send private message

This whole plan is screwed until I can figure out how to schedule tasks on either *display turn off* or *system sleep*

Can't find log of display turning off and can't schedule tasks on sleep...

Tho I could schedule it for PC being idle for X minutes

gbwelly
1263 posts

Uber Geek
+1 received by user: 776


  #1350758 23-Jul-2015 20:43
Send private message

macuser: This whole plan is screwed until I can figure out how to schedule tasks on either *display turn off* or *system sleep*

Can't find log of display turning off and can't schedule tasks on sleep...

Tho I could schedule it for PC being idle for X minutes


Create a scheduled task that turns off the plasma. Under conditions, initially pick 30 minutes idle. Change it to 59 minutes, you can make it any value, not just the ones in the drop down. Then under power options in the control panel set the computer to sleep after 1 hour. That way the computer will sleep 1 minute after it turns off the plasma. If you want to be more robust you could sleep the computer using rundll32.exe powerprof.dll etc etc as the last action on the same task, that way if someone wiggles the mouse between 59 and 60 minutes you won't end up with the TV off and the computer on.







Create new topic








Geekzone Live »

Try automatic live updates from Geekzone directly in your browser, without refreshing the page, with Geekzone Live now.



Are you subscribed to our RSS feed? You can download the latest headlines and summaries from our stories directly to your computer or smartphone by using a feed reader.