public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: "Nellis, Kenneth" <Kenneth.Nellis@xerox.com>
To: "cygwin@cygwin.com" <cygwin@cygwin.com>
Subject: RE: how to detect whether a laptop is docked
Date: Thu, 27 Aug 2015 15:45:00 -0000	[thread overview]
Message-ID: <0D835E9B9CD07F40A48423F80D3B5A702E917DE3@USA7109MB022.na.xerox.net> (raw)
In-Reply-To: <1440618651.6808.33.camel@cygwin.com>

From: Yaakov Selkowitz
> 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.

Great! I now have a workable script: lsusb | grep -qi keyboard

I found it frustrating figuring out cygports until I found
http://www.cygwinports.org/, which clearly told me what to do. 
I wasn't able to find any reference to cygwinports on the cygwin site.

Thank you, Yaakov. ☺

--Ken Nellis

      parent reply	other threads:[~2015-08-27 14:18 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-08-26 20:59 Nellis, Kenneth
2015-08-26 21:11 ` Yaakov Selkowitz
2015-08-26 22:16   ` Michael Enright
2015-08-27 15:45   ` Nellis, Kenneth [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=0D835E9B9CD07F40A48423F80D3B5A702E917DE3@USA7109MB022.na.xerox.net \
    --to=kenneth.nellis@xerox.com \
    --cc=cygwin@cygwin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).