X-Recipient: archive-cygwin AT delorie DOT com DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:message-id:subject:from:to:date:in-reply-to :references:content-type:mime-version:content-transfer-encoding; q=dns; s=default; b=frqej94iuXLBLfaMyL8J+KbIhEfWXolwwo1xZjHylKA H8CS65ZbUzy7KwHJsH5Arcw5cWfx1hBNfQXIFiYT1OjYvXiJxUyAlYyEjXHmNdsB ErZuwdnQKeW65vDCv7GxuXbXviPSF1rxddgplT2T7rz13BPrwVInsOFL1yC5kR+U = DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:message-id:subject:from:to:date:in-reply-to :references:content-type:mime-version:content-transfer-encoding; s=default; bh=soyyj6+KH2ZAZQQzW8TXr+6s6fo=; b=G8eNSxKoaEFMSjWCm gtOVZFRP+lAWhscTAk3ZCuRkVdAu2qZMfe/9XsRywAqDR4a4bvH29y98d6PNT69R bJVzk42ECDDaWdaGHugK5OyeuedDHIaTcvbt9LZCQjMBN8v1hrNsdiEjIlYMFMBL P8wvt4DDT3Htb3gdUCrxPbwMXc= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com 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 Message-ID: <1440618651.6808.33.camel@cygwin.com> Subject: Re: how to detect whether a laptop is docked From: Yaakov Selkowitz To: cygwin AT cygwin DOT com Date: Wed, 26 Aug 2015 14:50:51 -0500 In-Reply-To: <0D835E9B9CD07F40A48423F80D3B5A702E917C2B@USA7109MB022.na.xerox.net> References: <0D835E9B9CD07F40A48423F80D3B5A702E917C2B AT USA7109MB022 DOT na DOT xerox DOT net> Content-Type: text/plain; charset="UTF-8" Mime-Version: 1.0 Content-Transfer-Encoding: 8bit X-IsSubscribed: yes 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