how to detect whether a laptop is docked
Yaakov Selkowitz
yselkowitz@cygwin.com
Wed Aug 26 21:11:00 GMT 2015
On Wed, 2015-08-26 at 19:27 +0000, Nellis, Kenneth wrote:
> I am looking for a method by which I can determine within a shell script
> whether my laptop is docked or not. Google provided some answers for Linux
> and Windows users, but the several ways I tried did not work out.
>
> One Windows solution * provided a VB script that accessed a registry variable â¡,
> but my registry value remains the same whether or not I'm docked.
>
> The Linux solutions required either a file I don't have (/var/run/stab) or a tool
> that I don't have and couldn't find in a Cygwin search (acpid or lsusb).
lsusb is part the usbutils package, which is currently in Ports.
--
Yaakov
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
More information about the Cygwin
mailing list