From owner-freebsd-acpi@freebsd.org Wed Dec 9 18:55:20 2015 Return-Path: Delivered-To: freebsd-acpi@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 127219D5209 for ; Wed, 9 Dec 2015 18:55:20 +0000 (UTC) (envelope-from gabor@zahemszky.hu) Received: from smtp-2-out.integrity.hu (smtp-2-out.integrity.hu [212.52.165.212]) by mx1.freebsd.org (Postfix) with ESMTP id CC3A410A6 for ; Wed, 9 Dec 2015 18:55:19 +0000 (UTC) (envelope-from gabor@zahemszky.hu) Received: from webmail.integrity.hu (mail-fe-1.integrity.hu [10.1.64.120]) by mail-smtp.integrity.hu (Postfix) with ESMTPA id 4111E40995 for ; Wed, 9 Dec 2015 19:17:58 +0100 (CET) Received: from I9j5IJe7yGucfonzZtVNqUi+H09vvglkFlNv/6GFF2G3B7cm4ZAIlA== (fW65jUZgXEaedvdO7vqtNM15uxlRKG+h) by webmail.integrity.hu with HTTP (HTTP/1.1 POST); Wed, 09 Dec 2015 19:17:58 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Date: Wed, 09 Dec 2015 19:17:58 +0100 From: gabor@zahemszky.hu To: Subject: Get information about batteries Message-ID: X-Sender: gabor@zahemszky.hu User-Agent: Roundcube Webmail/0.8.4 X-BeenThere: freebsd-acpi@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: ACPI and power management development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 09 Dec 2015 18:55:20 -0000 Hi! On a FreeBSD machine, I can get information about the AC-adapter or battery with sysctl hw.acpi.battery I can get how many of them installed in that machne (hw.acpi.battery.units). But if I have 2 of them, how can I get the information about them? Eg, the battery life or the time - but not accumulated, but separately. Thank, Gabor < Gabor at Zahemszky dot HU > From owner-freebsd-acpi@freebsd.org Wed Dec 9 20:03:35 2015 Return-Path: Delivered-To: freebsd-acpi@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id A55C19D532D for ; Wed, 9 Dec 2015 20:03:35 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-io0-x231.google.com (mail-io0-x231.google.com [IPv6:2607:f8b0:4001:c06::231]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 77C791768 for ; Wed, 9 Dec 2015 20:03:35 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: by ioir85 with SMTP id r85so71910604ioi.1 for ; Wed, 09 Dec 2015 12:03:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=IJjkq8LWIUfcxa+G4hBA7dOUUhUwLnfnERg37Ad7Exg=; b=YJcAzOneWLXTGAnnn4kjmWwbHeAbQMZjfXfYSmRNJukkmpn1dMzxxw2S1gmNqRhO8h yOXnA+2hU5WrsqK/5T/6oM9vykri0UEViHd5E8EnlT3BKH5ziWywexxozHBW10HNCp76 TxjTbgqOJhF/MRZkB3aEDlyrodTC8v3+TgJEnsDwhslkLHxoYJ9QLC7pBqmBb6hU0Q16 6GKY3jfsHnBq2XhbnDD70yYogkbkqVdCvdwfhda04dphxJKV9fldfbJS9QhHOBuOjpsW lVQ+nthKaPT1Xf4O/dWOPgv5x86g0m5gOZgQ8pFCm1ohCZfBmY1cP6GSYS0iiM6q93Uh 138A== MIME-Version: 1.0 X-Received: by 10.107.10.199 with SMTP id 68mr7112141iok.75.1449691414816; Wed, 09 Dec 2015 12:03:34 -0800 (PST) Received: by 10.36.217.196 with HTTP; Wed, 9 Dec 2015 12:03:34 -0800 (PST) In-Reply-To: References: Date: Wed, 9 Dec 2015 12:03:34 -0800 Message-ID: Subject: Re: Get information about batteries From: Adrian Chadd To: gabor@zahemszky.hu Cc: "freebsd-acpi@freebsd.org" Content-Type: text/plain; charset=UTF-8 X-BeenThere: freebsd-acpi@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: ACPI and power management development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 09 Dec 2015 20:03:35 -0000 acpiconf -i0 and acpiconf -i1? does that work? -a On 9 December 2015 at 10:17, wrote: > Hi! > > On a FreeBSD machine, I can get information about the AC-adapter or battery > with > > sysctl hw.acpi.battery > > I can get how many of them installed in that machne (hw.acpi.battery.units). > But if I have 2 of them, how can I get the information about them? > > Eg, the battery life or the time - but not accumulated, but separately. > > Thank, > > Gabor < Gabor at Zahemszky dot HU > > _______________________________________________ > freebsd-acpi@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-acpi > To unsubscribe, send any mail to "freebsd-acpi-unsubscribe@freebsd.org" From owner-freebsd-acpi@freebsd.org Thu Dec 10 06:20:34 2015 Return-Path: Delivered-To: freebsd-acpi@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id CFE1A9D6C61 for ; Thu, 10 Dec 2015 06:20:34 +0000 (UTC) (envelope-from gabor@zahemszky.hu) Received: from smtp-2-out.integrity.hu (smtp-2-out.integrity.hu [212.52.165.212]) by mx1.freebsd.org (Postfix) with ESMTP id 9340119E2 for ; Thu, 10 Dec 2015 06:20:34 +0000 (UTC) (envelope-from gabor@zahemszky.hu) Received: from webmail.integrity.hu (mail-fe-1.integrity.hu [10.1.64.120]) by mail-smtp.integrity.hu (Postfix) with ESMTPA id 3964E40935; Thu, 10 Dec 2015 07:20:29 +0100 (CET) Received: from R6jP9jXOsbid8GLp0loB2EK8x7A75/9YnlrK+GrRw1eROma7oVo7Ng== (F6a7QCmT3oGecE2/ndBqoeEkxVoMzIi/) by webmail.integrity.hu with HTTP (HTTP/1.1 POST); Thu, 10 Dec 2015 07:20:29 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Date: Thu, 10 Dec 2015 07:20:29 +0100 From: gabor@zahemszky.hu To: Adrian Chadd Cc: Subject: Re: Get information about batteries In-Reply-To: References: Message-ID: X-Sender: gabor@zahemszky.hu User-Agent: Roundcube Webmail/0.8.4 X-BeenThere: freebsd-acpi@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: ACPI and power management development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 10 Dec 2015 06:20:34 -0000 2015-12-09 21:03 idÅ‘pontban Adrian Chadd ezt írta: > acpiconf -i0 and acpiconf -i1? does that work? OK, I've got it. Thanks for the quick answer. ( Actually one of my batteries is full dead, even with acpiconf, I could not get any answer, but it's another story.) Bye, Gabor < Gabor az Zahemszky dot HU > From owner-freebsd-acpi@freebsd.org Thu Dec 10 11:02:56 2015 Return-Path: Delivered-To: freebsd-acpi@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 7324F9D63AE for ; Thu, 10 Dec 2015 11:02:56 +0000 (UTC) (envelope-from smithi@nimnet.asn.au) Received: from sola.nimnet.asn.au (paqi.nimnet.asn.au [115.70.110.159]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id D488A198C for ; Thu, 10 Dec 2015 11:02:55 +0000 (UTC) (envelope-from smithi@nimnet.asn.au) Received: from localhost (localhost [127.0.0.1]) by sola.nimnet.asn.au (8.14.2/8.14.2) with ESMTP id tBAB2hNN010830; Thu, 10 Dec 2015 22:02:44 +1100 (EST) (envelope-from smithi@nimnet.asn.au) Date: Thu, 10 Dec 2015 22:02:43 +1100 (EST) From: Ian Smith To: gabor@zahemszky.hu cc: Adrian Chadd , freebsd-acpi@freebsd.org Subject: Re: Get information about batteries In-Reply-To: Message-ID: <20151210215739.U52001@sola.nimnet.asn.au> References: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=ISO-8859-1 Content-Transfer-Encoding: 8BIT X-BeenThere: freebsd-acpi@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: ACPI and power management development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 10 Dec 2015 11:02:56 -0000 On Thu, 10 Dec 2015 07:20:29 +0100, gabor@zahemszky.hu wrote: > 2015-12-09 21:03 idpontban Adrian Chadd ezt írta: > > acpiconf -i0 and acpiconf -i1? does that work? > > OK, I've got it. Thanks for the quick answer. > ( Actually one of my batteries is full dead, even with acpiconf, > I could not get any answer, but it's another story.) Some laptops have provision for more than two battery slots, perhaps in a docking station, so you could try acpiconf -i2 and -i3 too .. however dmesg should show if any others were detected on boot. cheers, Ian