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.




2120 posts

Uber Geek
+1 received by user: 518


# 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
2537 posts

Uber Geek
+1 received by user: 944

Subscriber

  # 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

543 posts

Ultimate Geek
+1 received by user: 65


  # 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.

 
 
 
 


Banana?
4764 posts

Uber Geek
+1 received by user: 1250

Subscriber

  # 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).



2120 posts

Uber Geek
+1 received by user: 518


  # 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



2120 posts

Uber Geek
+1 received by user: 518


  # 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...

Banana?
4764 posts

Uber Geek
+1 received by user: 1250

Subscriber

  # 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.

22255 posts

Uber Geek
+1 received by user: 4781

Trusted
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

 
 
 
 




2120 posts

Uber Geek
+1 received by user: 518


  # 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

799 posts

Ultimate Geek
+1 received by user: 350

Subscriber

  # 1350758 23-Jul-2015 20:43
One person supports this post
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



Twitter and LinkedIn »



Follow us to receive Twitter updates when new discussions are posted in our forums:



Follow us to receive Twitter updates when news items and blogs are posted in our frontpage:



Follow us to receive Twitter updates when tech item prices are listed in our price comparison site:





News »

New Zealand government unveils new digital service to make business easier
Posted 16-Jul-2019 17:35


Scientists unveil image of quantum entanglement
Posted 13-Jul-2019 06:00


Hackers to be challenged at University of Waikato
Posted 12-Jul-2019 21:34


OPPO Reno Z now available in New Zealand
Posted 12-Jul-2019 21:28


Sony introduces WF-1000XM3 wireless headphones with noise cancellation
Posted 8-Jul-2019 16:56


Xero announces new smarter tools, push into the North American market
Posted 19-Jun-2019 17:20


New report by Unisys shows New Zealanders want action by social platform companies and police to monitor social media sites
Posted 19-Jun-2019 17:09


ASB adds Google Pay option to contactless payments
Posted 19-Jun-2019 17:05


New Zealand PC Market declines on the back of high channel inventory, IDC reports
Posted 18-Jun-2019 17:35


Air New Zealand uses drones to inspect aircraft
Posted 17-Jun-2019 15:39


TCL Electronics launches its first-ever 8K TV
Posted 17-Jun-2019 15:18


E-scooter share scheme launches in Wellington
Posted 17-Jun-2019 12:34


Anyone can broadcast with Kordia Pop Up TV
Posted 13-Jun-2019 10:51


Volvo and Uber present production vehicle ready for self-driving
Posted 13-Jun-2019 10:47


100,000 customers connected to fibre broadband network through Enable
Posted 13-Jun-2019 10:35



Geekzone Live »

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


Support Geekzone »

Our community of supporters help make Geekzone possible. Click the button below to join them.

Support Geezone on PressPatron



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.

Alternatively, you can receive a daily email with Geekzone updates.