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


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

Uber Geek

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

553 posts

Ultimate Geek


  # 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?
4803 posts

Uber Geek

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


  # 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


  # 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?
4803 posts

Uber Geek

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.

22347 posts

Uber Geek

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


  # 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

827 posts

Ultimate Geek

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 »

Intel expands 10th Gen Intel Core Mobile processor family
Posted 23-Aug-2019 10:22


Digital innovation drives new investment provider
Posted 23-Aug-2019 08:29


Catalyst Cloud becomes a Kubernetes Certified Service Provider (KCSP)
Posted 23-Aug-2019 08:21


New AI legaltech product launched in New Zealand
Posted 21-Aug-2019 17:01


Yubico launches first Lightning-compatible security key, the YubiKey 5Ci
Posted 21-Aug-2019 16:46


Disney+ streaming service confirmed launch in New Zealand
Posted 20-Aug-2019 09:29


Industry plan could create a billion dollar interactive games sector
Posted 19-Aug-2019 20:41


Personal cyber insurance a New Zealand first
Posted 19-Aug-2019 20:26


University of Waikato launches space for esports
Posted 19-Aug-2019 20:20


D-Link ANZ expands mydlink ecosystem with new mydlink Mini Wi-Fi Smart Plug
Posted 19-Aug-2019 20:14


Kiwi workers still falling victim to old cyber tricks
Posted 12-Aug-2019 20:47


Lightning Lab GovTech launches 2019 programme
Posted 12-Aug-2019 20:41


Epson launches portable laser projector
Posted 12-Aug-2019 20:27


Huawei launches new distributed HarmonyOS
Posted 12-Aug-2019 20:20


Lenovo introduces single-socket servers for edge and data-intensive workloads
Posted 9-Aug-2019 21:26



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.