简体   繁体   English

通过串口使用Windows服务的LG TV Control在PC启动后大约30秒运行 - 如何更快地启动服务?

[英]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. 我创建了一项Windows服务,当PC开机,恢复或关机或暂停时,通过USB串行电缆打开/关闭LG电视。

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. 问题是,从打开电脑到我的服务实际启动并通过串口发送适当的命令打开电视时,它目前需要大约30秒。 By this time, the Windows login is already being displayed. 到目前为止,Windows登录已经显示。

Is there any way to make Windows start my service sooner, say just after the USB-Serial port driver has been started? 有没有办法让Windows更快地启动我的服务,比如在USB-Serial端口驱动程序启动后呢? 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. Microsoft有一个冗长的规则列表,用于管理加载的内容和顺序。 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. 但奇怪的是,在特定的负载组中,它们按字母顺序加载所有内容... Microsoft technet social - load documentation这是一个旧页面,但大多数规则仍然适用。

Get ready to tinker with the registry. 准备好修改注册表。 Make a backup first! 先备份! :) :)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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