简体   繁体   中英

LG TV Control through serial using Windows service runs about 30 seconds after PC is powered on - how to start the service sooner?

I have created a Windows service that turns an LG TV on/off over a USB-Serial cable when the PC powers on, resumes, or is shutdown or suspended.

The problem is that it currently takes about 30 seconds from when the PC is turned on for my service to actually start and send the appropriate command over the serial port to turn on the TV. By this time, the Windows login is already being displayed.

Is there any way to make Windows start my service sooner, say just after the USB-Serial port driver has been started? Thank you for any help!

It might be as simple as changing its name. Microsoft has a lengthy list of rules that govern what is loaded and in what order. But oddly, within a particular load group, they are loaded alphabetically of all things... Microsoft technet social -- load documentation That's an old page but most of the rules still apply.

Get ready to tinker with the registry. Make a backup first! :)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM