By default, the USB-CEC Adapter will power on the TV when libCECTray starts — typically when the PC first boots. However, if the PC goes to sleep and then resumes, libCECTray is already running and does not restart, so the TV is not automatically powered on again on resume.
This article explains how to use Windows Task Scheduler to trigger a CEC power-on command whenever the PC wakes from sleep.
How It Works
Windows Task Scheduler can trigger a script or command when a specific system event occurs — including the system resuming from sleep. By creating a task that fires on the wake event and runs a cec-client command to power on the TV, the TV will turn on automatically every time the PC wakes up.
Setting Up the Task
(echo on 0 & echo quit) | cec-client -d 1Save this as a
.bat batch file — for example, C:\Scripts\cec-wake.bat. Make sure the path to cec-client is correct (it is typically in C:\Program Files\Pulse-Eight\USB-CEC Adapter\). You may need to specify the full path:(echo on 0 & echo quit) | "C:\Program Files\Pulse-Eight\USB-CEC Adapter\cec-client.exe" -d 1Test the batch file manually first by double-clicking it — the TV should turn on.
- Log:System
- Source:Power-Troubleshooter
- Event ID:1
.bat file you created in Step 1. Click OK.timeout /t 5 /nobreak before the cec-client command. This gives Windows a few seconds to fully initialise the USB-CEC Adapter after resume before the command is sent.Contact Pulse-Eight support with your TV make and model, libcec version, and a description of what happens when the task fires.
UK: 01202 413 610 | US: (858) 748-8250 | support@pulse-eight.com
Was this article helpful?
That’s Great!
Thank you for your feedback
Sorry! We couldn't be helpful
Thank you for your feedback
Feedback sent
We appreciate your effort and will try to fix the article