From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 114235 invoked by alias); 26 Aug 2015 19:50:45 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 114150 invoked by uid 89); 26 Aug 2015 19:50:44 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=0.0 required=5.0 tests=AWL,BAYES_20,KAM_LAZY_DOMAIN_SECURITY,SPF_HELO_PASS autolearn=no version=3.3.2 X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-GCM-SHA384 encrypted) ESMTPS; Wed, 26 Aug 2015 19:50:43 +0000 Received: from int-mx09.intmail.prod.int.phx2.redhat.com (int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by mx1.redhat.com (Postfix) with ESMTPS id CCA7E8E379 for ; Wed, 26 Aug 2015 19:50:41 +0000 (UTC) Received: from YAAKOV04.redhat.com (ovpn-116-27.rdu2.redhat.com [10.10.116.27]) by int-mx09.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id t7QJoe1B003744 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO) for ; Wed, 26 Aug 2015 15:50:41 -0400 Message-ID: <1440618651.6808.33.camel@cygwin.com> Subject: Re: how to detect whether a laptop is docked From: Yaakov Selkowitz To: cygwin@cygwin.com Date: Wed, 26 Aug 2015 21:11:00 -0000 In-Reply-To: <0D835E9B9CD07F40A48423F80D3B5A702E917C2B@USA7109MB022.na.xerox.net> References: <0D835E9B9CD07F40A48423F80D3B5A702E917C2B@USA7109MB022.na.xerox.net> Content-Type: text/plain; charset="UTF-8" Mime-Version: 1.0 Content-Transfer-Encoding: 8bit X-IsSubscribed: yes X-SW-Source: 2015-08/txt/msg00470.txt.bz2 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