From owner-freebsd-hardware@FreeBSD.ORG Fri Oct 2 21:58:53 2009 Return-Path: Delivered-To: freebsd-hardware@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7A54C106568B for ; Fri, 2 Oct 2009 21:58:53 +0000 (UTC) (envelope-from markocpc@gmail.com) Received: from mail-ew0-f209.google.com (mail-ew0-f209.google.com [209.85.219.209]) by mx1.freebsd.org (Postfix) with ESMTP id 16B498FC16 for ; Fri, 2 Oct 2009 21:58:52 +0000 (UTC) Received: by ewy5 with SMTP id 5so560331ewy.36 for ; Fri, 02 Oct 2009 14:58:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:from:date:message-id :subject:to:content-type; bh=x5JOcVyy00KjMangCb8WtKJbNsTfn79N3N/+vz7l0nY=; b=KBD26ZBaXCvXTwRvtR40oYckt+k1LgpaArGkicDM8I6H1C+d8OJtjujzD988FcNGx3 NMdjNGxMw+tD9aIE2Bskf6IoqHjoRqwbVT6xulKrsOexj0Lf2H1YGAuMOwFhC3ymEB10 PI3tBLuEukEzdgiNXbCvlPp3ydznVB6zoe6lQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:from:date:message-id:subject:to:content-type; b=sj7pC8y4PqFMSzDk5Awof8RGHTPEE+hQaaQRa9yY4Bw9prnfuLnpVS+UVc9zy2MFlX nzMbdJTPDVfY0uS2TyCPdgJ81rAyurneNlhswcSbBlWc1GyqIsblHq1zdfCJK7cJOMfa MTAsPENQu6LbxfLAaM43Ec1rm0womXQBPOP0M= MIME-Version: 1.0 Received: by 10.211.160.1 with SMTP id m1mr65921ebo.50.1254518951419; Fri, 02 Oct 2009 14:29:11 -0700 (PDT) From: Lagrange Marc Date: Fri, 2 Oct 2009 23:28:51 +0200 Message-ID: <1b5ab4050910021428m70baea2cm4e3236384e68e66@mail.gmail.com> To: freebsd-hardware@freebsd.org Content-Type: text/plain; charset=UTF-8 Subject: Only one sysctl node if two battery on the laptop ? X-BeenThere: freebsd-hardware@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of FreeBSD hardware List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 02 Oct 2009 21:58:53 -0000 Hi, I've a Fujitsu Siemens CELSIUS Mobile H which can have two battery. apm command show : % apm APM version: 1.2 APM Management: Enabled AC Line status: off-line Battery Status: high Remaining battery life: 99% Remaining battery time: 1:36:00 Number of batteries: 2 Battery 0: not present Battery 1: Battery Status: high Remaining battery life: 99% Remaining battery time: 1:36:00 OR : % apm APM version: 1.2 APM Management: Enabled AC Line status: on-line Battery Status: charging Remaining battery life: 50% Remaining battery time: unknown Number of batteries: 2 Battery 0: Battery Status: low Remaining battery life: 0% Remaining battery time: unknown Battery 1: Battery Status: charging Remaining battery life: 100% Remaining battery time: unknown Sysctl : % sysctl hw.acpi.battery hw.acpi.battery.life: 100 hw.acpi.battery.time: -1 hw.acpi.battery.state: 2 hw.acpi.battery.units: 2 hw.acpi.battery.info_expire: 5 OR : % sysctl hw.acpi.battery hw.acpi.battery.life: 50 hw.acpi.battery.time: -1 hw.acpi.battery.state: 2 hw.acpi.battery.units: 2 hw.acpi.battery.info_expire: 5 The first run is with one battery, the second with two (one battery is dead and the other is good) Why only one battery shown in sysctl and not hw.acpi.battery..{life,time,...} ? uname -a : FreeBSD cornichon 8.0-RC1 FreeBSD 8.0-RC1 #1: Sat Sep 19 13:02:09 CEST 2009 marc@cornichon:/usr/obj/usr/src/sys/CORNICHON i386 Thanks.