From owner-freebsd-mobile@FreeBSD.ORG Wed Apr 3 06:12:17 2013 Return-Path: Delivered-To: freebsd-mobile@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id DE606DC2 for ; Wed, 3 Apr 2013 06:12:17 +0000 (UTC) (envelope-from andre@drenet.info) Received: from mail-yh0-x22e.google.com (mail-yh0-x22e.google.com [IPv6:2607:f8b0:4002:c01::22e]) by mx1.freebsd.org (Postfix) with ESMTP id A17FC6DF for ; Wed, 3 Apr 2013 06:12:17 +0000 (UTC) Received: by mail-yh0-f46.google.com with SMTP id q15so193209yhf.5 for ; Tue, 02 Apr 2013 23:12:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=drenet.info; s=google; h=x-received:content-type:to:date:subject:mime-version :content-transfer-encoding:from:message-id:user-agent; bh=xfjzuY/Z9vH48b0yyM+l05pH/8ZYKAsf+W61Rhn0UZs=; b=dcrONGCo9MJo0IPdj3Yf7sgX1hSsXHr9V+9YYjNUjuGlQpZTg1K872lTe3cHzWNrZm meJNyE3K0ndfx8g1dowSn/vhemTn+BLDOtjCvWFDHkFrLWHlKOCJ76hHiERY75JPi4wu E5/gFrOj8BNxAEDMrUaVcM3KdF900Rnx+SVek= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:content-type:to:date:subject:mime-version :content-transfer-encoding:from:message-id:user-agent :x-gm-message-state; bh=xfjzuY/Z9vH48b0yyM+l05pH/8ZYKAsf+W61Rhn0UZs=; b=hY3wlDWaKqAa4WTkGYP8P2C1tIsB8NS6wfs2nelCb4b5DqWnkplet+ky98hKyw4JAg krj3jiQwgC8Lu8suaeuDpuHN5UMk4OIL/B8smJ7qM+1OEaXLKWJCMbISZ+WB4JpFuI1e MZdwXOnXckyuR1UWkSNo1IZAyw0+VTfqxa8pQpR7HzGIjxY+a5YqGH/rl/fmnhdHZYh9 CGctEnzeVBb7xiUH8rQvY86tuRyCgeZVKM1pOi9ehmuzz1+spwarLTcsoImrv0d4qS5G aYiKh3BlBI+I7ihdxi/VIVLiOjLtXSjGnQqDcm8BYkQvUGgAyzqnFQ+Yk+9xD8QR0Uy8 tOcg== X-Received: by 10.236.176.41 with SMTP id a29mr191057yhm.96.1364969537015; Tue, 02 Apr 2013 23:12:17 -0700 (PDT) Received: from localhost.localdomain ([68.202.42.131]) by mx.google.com with ESMTPS id u80sm8183685yhj.5.2013.04.02.23.12.16 (version=TLSv1 cipher=RC4-SHA bits=128/128); Tue, 02 Apr 2013 23:12:16 -0700 (PDT) Content-Type: text/plain; charset=utf-8; format=flowed; delsp=yes To: freebsd-mobile@freebsd.org Date: Wed, 03 Apr 2013 02:12:15 -0400 Subject: Two batteries recognized MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: "Andre Goree" Message-ID: User-Agent: Opera Mail/12.14 (FreeBSD) X-Gm-Message-State: ALoCoQlfnk/s4jK6uLwoO8IuuoplRJOxUdZnZRTDtO2IgpxQkaqealJU587TjQiH43oyc9WDiOmi X-BeenThere: freebsd-mobile@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Mobile computing with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 03 Apr 2013 06:12:17 -0000 For some reason, acpi is recognizing two batteries, though my system has only one. I've searched Google but haven't really found a way to rectify this. Any ideas? Here's some information that may help, let me know if there's other things I can provide: [root@dlaptop ~]# sysctl -a | grep battery hw.acpi.battery.life: 81 hw.acpi.battery.time: -1 hw.acpi.battery.state: 2 hw.acpi.battery.units: 2 hw.acpi.battery.info_expire: 5 dev.battery.0.%desc: ACPI Control Method Battery dev.battery.0.%driver: battery dev.battery.0.%location: handle=\_SB_.BAT0 dev.battery.0.%pnpinfo: _HID=PNP0C0A _UID=1 dev.battery.0.%parent: acpi0 dev.battery.1.%desc: ACPI Control Method Battery dev.battery.1.%driver: battery dev.battery.1.%location: handle=\_SB_.BAT1 dev.battery.1.%pnpinfo: _HID=PNP0C0A _UID=2 dev.battery.1.%parent: acpi0 [root@dlaptop ~]# acpiconf -i bat0 Design capacity: 5200 mAh Last full capacity: 4677 mAh Technology: secondary (rechargeable) Design voltage: 11100 mV Capacity (warn): 520 mAh Capacity (low): 157 mAh Low/warn granularity: 52 mAh Warn/full granularity: 52 mAh Model number: DELL PT43693 Serial number: 37449 Type: LION OEM info: Samsung SDI State: charging Remaining capacity: 77% Remaining time: unknown Present rate: 2692 mA (33359 mW) Present voltage: 12392 mV [root@dlaptop ~]# acpiconf -i bat1 Design capacity: 5200 mAh Last full capacity: 4677 mAh Technology: secondary (rechargeable) Design voltage: 11100 mV Capacity (warn): 520 mAh Capacity (low): 157 mAh Low/warn granularity: 52 mAh Warn/full granularity: 52 mAh Model number: DELL PT43693 Serial number: 37449 Type: LION OEM info: Samsung SDI State: charging Remaining capacity: 77% Remaining time: unknown Present rate: 2692 mA (33359 mW) Present voltage: 12392 mV -- Andre Goree andre@drenet.info From owner-freebsd-mobile@FreeBSD.ORG Wed Apr 3 09:55:51 2013 Return-Path: Delivered-To: freebsd-mobile@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id E29AA585 for ; Wed, 3 Apr 2013 09:55:51 +0000 (UTC) (envelope-from smithi@nimnet.asn.au) Received: from sola.nimnet.asn.au (paqi.nimnet.asn.au [115.70.110.159]) by mx1.freebsd.org (Postfix) with ESMTP id 2F4BA15C for ; Wed, 3 Apr 2013 09:55:50 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by sola.nimnet.asn.au (8.14.2/8.14.2) with ESMTP id r339thTi001564; Wed, 3 Apr 2013 20:55:44 +1100 (EST) (envelope-from smithi@nimnet.asn.au) Date: Wed, 3 Apr 2013 20:55:43 +1100 (EST) From: Ian Smith To: Andre Goree Subject: Re: Two batteries recognized In-Reply-To: Message-ID: <20130403204012.C56386@sola.nimnet.asn.au> References: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Cc: freebsd-mobile@freebsd.org X-BeenThere: freebsd-mobile@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Mobile computing with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 03 Apr 2013 09:55:51 -0000 On Wed, 3 Apr 2013 02:12:15 -0400, Andre Goree wrote: > For some reason, acpi is recognizing two batteries, though my system has only > one. I've searched Google but haven't really found a way to rectify this. > Any ideas? Here's some information that may help, let me know if there's > other things I can provide: > > [root@dlaptop ~]# sysctl -a | grep battery > hw.acpi.battery.life: 81 > hw.acpi.battery.time: -1 > hw.acpi.battery.state: 2 > hw.acpi.battery.units: 2 > hw.acpi.battery.info_expire: 5 > dev.battery.0.%desc: ACPI Control Method Battery > dev.battery.0.%driver: battery > dev.battery.0.%location: handle=\_SB_.BAT0 > dev.battery.0.%pnpinfo: _HID=PNP0C0A _UID=1 > dev.battery.0.%parent: acpi0 > dev.battery.1.%desc: ACPI Control Method Battery > dev.battery.1.%driver: battery > dev.battery.1.%location: handle=\_SB_.BAT1 > dev.battery.1.%pnpinfo: _HID=PNP0C0A _UID=2 > dev.battery.1.%parent: acpi0 You don't say what make/model laptop, though your acpiconf suggests some sort of Dell. Many laptops have the capacity to add a second battery, sometimes instead of a CD/DVD or extra hard drive in a bay. The above output doesn't indicate that there are two fitted, just the capacity for managing two in the ACPI/BIOS. 'bat0' and 'bat1' used below are not valid battery descriptors, specify only '0' or '1'. Yes, acpiconf(8) should be a lot clearer about that. Specifying any invalid string always gets you info for battery 0, ie is equivalent to 'acpiconf -i0', which is why the results below are both the same down to the serial numbers and present charge rate and voltage. If 'acpiconf -i 1' shows other than 'Device not configured' you might indeed have some issue. cheers, Ian > [root@dlaptop ~]# acpiconf -i bat0 > Design capacity: 5200 mAh > Last full capacity: 4677 mAh > Technology: secondary (rechargeable) > Design voltage: 11100 mV > Capacity (warn): 520 mAh > Capacity (low): 157 mAh > Low/warn granularity: 52 mAh > Warn/full granularity: 52 mAh > Model number: DELL PT43693 > Serial number: 37449 > Type: LION > OEM info: Samsung SDI > State: charging > Remaining capacity: 77% > Remaining time: unknown > Present rate: 2692 mA (33359 mW) > Present voltage: 12392 mV > > [root@dlaptop ~]# acpiconf -i bat1 > Design capacity: 5200 mAh > Last full capacity: 4677 mAh > Technology: secondary (rechargeable) > Design voltage: 11100 mV > Capacity (warn): 520 mAh > Capacity (low): 157 mAh > Low/warn granularity: 52 mAh > Warn/full granularity: 52 mAh > Model number: DELL PT43693 > Serial number: 37449 > Type: LION > OEM info: Samsung SDI > State: charging > Remaining capacity: 77% > Remaining time: unknown > Present rate: 2692 mA (33359 mW) > Present voltage: 12392 mV > > -- > Andre Goree > andre@drenet.info From owner-freebsd-mobile@FreeBSD.ORG Wed Apr 3 15:36:38 2013 Return-Path: Delivered-To: freebsd-mobile@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 32427259 for ; Wed, 3 Apr 2013 15:36:38 +0000 (UTC) (envelope-from andre@drenet.info) Received: from mail-gg0-x234.google.com (mail-gg0-x234.google.com [IPv6:2607:f8b0:4002:c02::234]) by mx1.freebsd.org (Postfix) with ESMTP id E82FFA6D for ; Wed, 3 Apr 2013 15:36:37 +0000 (UTC) Received: by mail-gg0-f180.google.com with SMTP id e5so242401ggk.25 for ; Wed, 03 Apr 2013 08:36:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=drenet.info; s=google; h=x-received:message-id:date:from:user-agent:mime-version:to:cc :subject:references:in-reply-to:x-enigmail-version:content-type :content-transfer-encoding; bh=Z9ueA19qCotnjP8XlqM7FpNgyeaCYVnEsGIYhbk8r+8=; b=RgGMh6S9R4htjBCq7ESoD9boD2tZVdKvYH1slYodFJ9of5DGOdcDL0sjMeCzl62xZ6 1A9sf/LbKrawSrfn66Xq/0T0ZzTIoUH9TRzRr6E3UUOi27yOFX0KgbChrmo4XdFPM/Cg 6J9QTK3BnHKc3KS2ZaGW2IIiO8N7i3nTOUSFk= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:message-id:date:from:user-agent:mime-version:to:cc :subject:references:in-reply-to:x-enigmail-version:content-type :content-transfer-encoding:x-gm-message-state; bh=Z9ueA19qCotnjP8XlqM7FpNgyeaCYVnEsGIYhbk8r+8=; b=YB19frnG0R+vzc2zfDuIuB5f1liWNvtYebpEb9D4s+BAUz62BX5Ab0+IrTCoRZVS5z 1kYzSyHoUugTknppaqLbJ3XyG99U3d9idVg6SZ7pPJd8qLHnvs0gOHF4/5F5moxyYel5 idFanMaUYHJU1LZGu8VxkC5qVMS92W7W7hz7HAXxKPAn64cl4A5ipF8jncVFF8pgm9sT oBakR9e9Vtu4DgV/CRvW5X7UHJTDzmRLFmzsgJvGNRBxWPwEApAAXK1WLA1nYcofukd4 Fm8KznRlrOIDIA/omaZzDo+R+MNWPPhvvgXz6PhOdR670KG3iVWldFxhRgwfCfakw5eP mKsQ== X-Received: by 10.236.207.34 with SMTP id m22mr1266523yho.31.1365003397419; Wed, 03 Apr 2013 08:36:37 -0700 (PDT) Received: from sideswipe-DT.accesso.office ([75.112.170.101]) by mx.google.com with ESMTPS id b78sm10176686yhi.2.2013.04.03.08.36.36 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 03 Apr 2013 08:36:36 -0700 (PDT) Message-ID: <515C4C83.2040502@drenet.info> Date: Wed, 03 Apr 2013 11:36:35 -0400 From: Andre Goree User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:17.0) Gecko/20130327 Thunderbird/17.0.4 MIME-Version: 1.0 To: Ian Smith Subject: Re: Two batteries recognized References: <20130403204012.C56386@sola.nimnet.asn.au> In-Reply-To: <20130403204012.C56386@sola.nimnet.asn.au> X-Enigmail-Version: 1.5.1 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Gm-Message-State: ALoCoQnpvDPBarNYgowVIbS9gQVPY6whmm/pfJYx7V8gd/BtxkaD5o7mqugDEZuH3MMt7gcx077f Cc: freebsd-mobile@freebsd.org X-BeenThere: freebsd-mobile@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Mobile computing with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 03 Apr 2013 15:36:38 -0000 On 04/03/13 05:55, Ian Smith wrote: > On Wed, 3 Apr 2013 02:12:15 -0400, Andre Goree wrote: > > For some reason, acpi is recognizing two batteries, though my system has only > > one. I've searched Google but haven't really found a way to rectify this. > > Any ideas? Here's some information that may help, let me know if there's > > other things I can provide: > > > > [root@dlaptop ~]# sysctl -a | grep battery > > hw.acpi.battery.life: 81 > > hw.acpi.battery.time: -1 > > hw.acpi.battery.state: 2 > > hw.acpi.battery.units: 2 > > hw.acpi.battery.info_expire: 5 > > dev.battery.0.%desc: ACPI Control Method Battery > > dev.battery.0.%driver: battery > > dev.battery.0.%location: handle=\_SB_.BAT0 > > dev.battery.0.%pnpinfo: _HID=PNP0C0A _UID=1 > > dev.battery.0.%parent: acpi0 > > dev.battery.1.%desc: ACPI Control Method Battery > > dev.battery.1.%driver: battery > > dev.battery.1.%location: handle=\_SB_.BAT1 > > dev.battery.1.%pnpinfo: _HID=PNP0C0A _UID=2 > > dev.battery.1.%parent: acpi0 > > You don't say what make/model laptop, though your acpiconf suggests some > sort of Dell. Many laptops have the capacity to add a second battery, > sometimes instead of a CD/DVD or extra hard drive in a bay. The above > output doesn't indicate that there are two fitted, just the capacity for > managing two in the ACPI/BIOS. > > 'bat0' and 'bat1' used below are not valid battery descriptors, specify > only '0' or '1'. Yes, acpiconf(8) should be a lot clearer about that. > > Specifying any invalid string always gets you info for battery 0, ie is > equivalent to 'acpiconf -i0', which is why the results below are both > the same down to the serial numbers and present charge rate and voltage. > > If 'acpiconf -i 1' shows other than 'Device not configured' you might > indeed have some issue. > > cheers, Ian > > > [root@dlaptop ~]# acpiconf -i bat0 > > Design capacity: 5200 mAh > > Last full capacity: 4677 mAh > > Technology: secondary (rechargeable) > > Design voltage: 11100 mV > > Capacity (warn): 520 mAh > > Capacity (low): 157 mAh > > Low/warn granularity: 52 mAh > > Warn/full granularity: 52 mAh > > Model number: DELL PT43693 > > Serial number: 37449 > > Type: LION > > OEM info: Samsung SDI > > State: charging > > Remaining capacity: 77% > > Remaining time: unknown > > Present rate: 2692 mA (33359 mW) > > Present voltage: 12392 mV > > > > [root@dlaptop ~]# acpiconf -i bat1 > > Design capacity: 5200 mAh > > Last full capacity: 4677 mAh > > Technology: secondary (rechargeable) > > Design voltage: 11100 mV > > Capacity (warn): 520 mAh > > Capacity (low): 157 mAh > > Low/warn granularity: 52 mAh > > Warn/full granularity: 52 mAh > > Model number: DELL PT43693 > > Serial number: 37449 > > Type: LION > > OEM info: Samsung SDI > > State: charging > > Remaining capacity: 77% > > Remaining time: unknown > > Present rate: 2692 mA (33359 mW) > > Present voltage: 12392 mV > > > > -- > > Andre Goree > > andre@drenet.info > Thanks! I will check this when I get home (currently slaving at work :P). The model is a Dell Latitude E6400. -- Andre Goree andre@drenet.info From owner-freebsd-mobile@FreeBSD.ORG Thu Apr 4 00:38:20 2013 Return-Path: Delivered-To: freebsd-mobile@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id B293F2A4 for ; Thu, 4 Apr 2013 00:38:20 +0000 (UTC) (envelope-from andre@drenet.info) Received: from mail-gh0-f178.google.com (mail-gh0-f178.google.com [209.85.160.178]) by mx1.freebsd.org (Postfix) with ESMTP id 760BAC34 for ; Thu, 4 Apr 2013 00:38:20 +0000 (UTC) Received: by mail-gh0-f178.google.com with SMTP id g24so358067ghb.9 for ; Wed, 03 Apr 2013 17:38:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=drenet.info; s=google; h=x-received:content-type:to:cc:subject:references:date:mime-version :content-transfer-encoding:from:message-id:in-reply-to:user-agent; bh=fnHJoaQPDMMi6+pN5yMxcQTHAlLd9A06BFApXA7Axjk=; b=GySYOGnKk9oBnj73m90rv8kbK7afMYkQkXBzhZX9Re7IQYnq81WiwKcGkpZ8YU0IOD 8/+vXX+niZDKrhlJB9rRP31sZEZ+6+8iccOF/ljqx2CisneeOZgpQ3bMjAw82bS1m5Wn zXL85hurmd7AXR7d3dcW7de93RStkR2gDD7d0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:content-type:to:cc:subject:references:date:mime-version :content-transfer-encoding:from:message-id:in-reply-to:user-agent :x-gm-message-state; bh=fnHJoaQPDMMi6+pN5yMxcQTHAlLd9A06BFApXA7Axjk=; b=KajqnqMtAeDngscsc8HnIIuaRn3xr9hgwi+MsHHp//fbTO7M/juThQp/ND+TTFbgbu zQ0JcyCNUoFpa9NIPjlGnTH2FLsDF4ssl/uCmhk6TX/gAMWz9xYfZbVP0TEKvEC3msNl jAVFZX3qzWMUlRUamhE2St4MywbprJE3xH/PUvSsKA3GKOMzzdrXJfPuXCyn+vBUn4EJ P0qeQLfBe3e452u8JnUQUeSZ6m9PCb0HoVWhAFcBidHQt2CjcPEk1h9COZR6hM/lP8fu PezFYKDgMEe358XXrW9cNlFKAOzE3vl7CSA1Sdwjp2EXIVTA7scgYBpTlkhjjQ8jwyoL JZGg== X-Received: by 10.236.159.36 with SMTP id r24mr2507416yhk.118.1365035893918; Wed, 03 Apr 2013 17:38:13 -0700 (PDT) Received: from localhost.localdomain ([68.202.42.131]) by mx.google.com with ESMTPS id x33sm12711284yhn.18.2013.04.03.17.38.12 (version=TLSv1 cipher=RC4-SHA bits=128/128); Wed, 03 Apr 2013 17:38:13 -0700 (PDT) Content-Type: text/plain; charset=utf-8; format=flowed; delsp=yes To: "Ian Smith" Subject: Re: Two batteries recognized References: <20130403204012.C56386@sola.nimnet.asn.au> <515C4C83.2040502@drenet.info> Date: Wed, 03 Apr 2013 20:38:11 -0400 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: "Andre Goree" Message-ID: In-Reply-To: <515C4C83.2040502@drenet.info> User-Agent: Opera Mail/12.14 (FreeBSD) X-Gm-Message-State: ALoCoQk/nvo1cKhd/ZOvjlFKzDQOoyuXW5DoRlwWAFPf7Ng55sDxaQW+wrkxLDz0nObEeGTf01Jg Cc: freebsd-mobile@freebsd.org X-BeenThere: freebsd-mobile@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Mobile computing with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 04 Apr 2013 00:38:20 -0000 On Wed, 03 Apr 2013 11:36:35 -0400, Andre Goree wrote: > On 04/03/13 05:55, Ian Smith wrote: >> On Wed, 3 Apr 2013 02:12:15 -0400, Andre Goree wrote: >> > For some reason, acpi is recognizing two batteries, though my system >> has only >> > one. I've searched Google but haven't really found a way to rectify >> this. >> > Any ideas? Here's some information that may help, let me know if >> there's >> > other things I can provide: >> > > [root@dlaptop ~]# sysctl -a | grep battery >> > hw.acpi.battery.life: 81 >> > hw.acpi.battery.time: -1 >> > hw.acpi.battery.state: 2 >> > hw.acpi.battery.units: 2 >> > hw.acpi.battery.info_expire: 5 >> > dev.battery.0.%desc: ACPI Control Method Battery >> > dev.battery.0.%driver: battery >> > dev.battery.0.%location: handle=\_SB_.BAT0 >> > dev.battery.0.%pnpinfo: _HID=PNP0C0A _UID=1 >> > dev.battery.0.%parent: acpi0 >> > dev.battery.1.%desc: ACPI Control Method Battery >> > dev.battery.1.%driver: battery >> > dev.battery.1.%location: handle=\_SB_.BAT1 >> > dev.battery.1.%pnpinfo: _HID=PNP0C0A _UID=2 >> > dev.battery.1.%parent: acpi0 >> You don't say what make/model laptop, though your acpiconf suggests some >> sort of Dell. Many laptops have the capacity to add a second battery, >> sometimes instead of a CD/DVD or extra hard drive in a bay. The above >> output doesn't indicate that there are two fitted, just the capacity for >> managing two in the ACPI/BIOS. >> 'bat0' and 'bat1' used below are not valid battery descriptors, specify >> only '0' or '1'. Yes, acpiconf(8) should be a lot clearer about that. >> Specifying any invalid string always gets you info for battery 0, ie is >> equivalent to 'acpiconf -i0', which is why the results below are both >> the same down to the serial numbers and present charge rate and voltage. >> If 'acpiconf -i 1' shows other than 'Device not configured' you might >> indeed have some issue. >> cheers, Ian > [root@dlaptop ~]# acpiconf -i bat0 >> > Design capacity: 5200 mAh >> > Last full capacity: 4677 mAh >> > Technology: secondary (rechargeable) >> > Design voltage: 11100 mV >> > Capacity (warn): 520 mAh >> > Capacity (low): 157 mAh >> > Low/warn granularity: 52 mAh >> > Warn/full granularity: 52 mAh >> > Model number: DELL PT43693 >> > Serial number: 37449 >> > Type: LION >> > OEM info: Samsung SDI >> > State: charging >> > Remaining capacity: 77% >> > Remaining time: unknown >> > Present rate: 2692 mA (33359 mW) >> > Present voltage: 12392 mV >> > > [root@dlaptop ~]# acpiconf -i bat1 >> > Design capacity: 5200 mAh >> > Last full capacity: 4677 mAh >> > Technology: secondary (rechargeable) >> > Design voltage: 11100 mV >> > Capacity (warn): 520 mAh >> > Capacity (low): 157 mAh >> > Low/warn granularity: 52 mAh >> > Warn/full granularity: 52 mAh >> > Model number: DELL PT43693 >> > Serial number: 37449 >> > Type: LION >> > OEM info: Samsung SDI >> > State: charging >> > Remaining capacity: 77% >> > Remaining time: unknown >> > Present rate: 2692 mA (33359 mW) >> > Present voltage: 12392 mV >> > > -- > Andre Goree >> > andre@drenet.info >> > > Thanks! I will check this when I get home (currently slaving at work > :P). > > The model is a Dell Latitude E6400. > Ok, so my [correct] output is below. Is there a way to disable a battery? It's really more just so I can get the correct output from KDE's battery monitor. It currently recognizes the two batteries, and when I have the AC adapter unplugged it shows 50% (I'm assuming because one battery is full, the other empty -- or unrecognized -- rather than 100%). [root@dlaptop ~]# acpiconf -i 1 Design capacity: 0 mAh Last full capacity: 0 mAh Technology: secondary (rechargeable) Design voltage: 0 mV Capacity (warn): 0 mAh Capacity (low): 0 mAh Low/warn granularity: 0 mAh Warn/full granularity: 0 mAh Model number: Serial number: 0 Type: OEM info: State: not present Present voltage: unknown [root@dlaptop ~]# acpiconf -i 0 Design capacity: 5200 mAh Last full capacity: 4677 mAh Technology: secondary (rechargeable) Design voltage: 11100 mV Capacity (warn): 520 mAh Capacity (low): 157 mAh Low/warn granularity: 52 mAh Warn/full granularity: 52 mAh Model number: DELL PT43693 Serial number: 37449 Type: LION OEM info: Samsung SDI State: high Remaining capacity: 100% Remaining time: unknown Present rate: 1 mA (12 mW) Present voltage: 12506 mV -- Andre Goree andre@drenet.info From owner-freebsd-mobile@FreeBSD.ORG Thu Apr 4 18:50:04 2013 Return-Path: Delivered-To: freebsd-mobile@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id B552DA17 for ; Thu, 4 Apr 2013 18:50:04 +0000 (UTC) (envelope-from smithi@nimnet.asn.au) Received: from sola.nimnet.asn.au (paqi.nimnet.asn.au [115.70.110.159]) by mx1.freebsd.org (Postfix) with ESMTP id 23E647E9 for ; Thu, 4 Apr 2013 18:50:03 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by sola.nimnet.asn.au (8.14.2/8.14.2) with ESMTP id r34Invb3071619; Fri, 5 Apr 2013 05:49:58 +1100 (EST) (envelope-from smithi@nimnet.asn.au) Date: Fri, 5 Apr 2013 05:49:57 +1100 (EST) From: Ian Smith To: Andre Goree Subject: Re: Two batteries recognized In-Reply-To: Message-ID: <20130405052544.M56386@sola.nimnet.asn.au> References: <20130403204012.C56386@sola.nimnet.asn.au> <515C4C83.2040502@drenet.info> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Cc: freebsd-mobile@freebsd.org X-BeenThere: freebsd-mobile@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Mobile computing with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 04 Apr 2013 18:50:04 -0000 On Wed, 3 Apr 2013 20:38:11 -0400, Andre Goree wrote: > On Wed, 03 Apr 2013 11:36:35 -0400, Andre Goree wrote: > > On 04/03/13 05:55, Ian Smith wrote: > > > On Wed, 3 Apr 2013 02:12:15 -0400, Andre Goree wrote: > > > > For some reason, acpi is recognizing two batteries, though my system > > > has only > > > > one. I've searched Google but haven't really found a way to rectify > > > this. > > > > Any ideas? Here's some information that may help, let me know if > > > there's > > > > other things I can provide: > > > > > [root@dlaptop ~]# sysctl -a | grep battery > > > > hw.acpi.battery.life: 81 > > > > hw.acpi.battery.time: -1 > > > > hw.acpi.battery.state: 2 > > > > hw.acpi.battery.units: 2 > > > > hw.acpi.battery.info_expire: 5 [..] > > > You don't say what make/model laptop, though your acpiconf suggests > > > somesort of Dell. Many laptops have the capacity to add a second > > > battery,sometimes instead of a CD/DVD or extra hard drive in a bay. The > > > aboveoutput doesn't indicate that there are two fitted, just the capacity > > > formanaging two in the ACPI/BIOS. > > > 'bat0' and 'bat1' used below are not valid battery descriptors, > > > specifyonly '0' or '1'. Yes, acpiconf(8) should be a lot clearer about > > > that. [..] > > Thanks! I will check this when I get home (currently slaving at work :P). > > > > The model is a Dell Latitude E6400. > > > > Ok, so my [correct] output is below. Is there a way to disable a battery? Not that I know of. Hacking your ACPI AML would seem a bit extreme .. > It's really more just so I can get the correct output from KDE's battery > monitor. It currently recognizes the two batteries, and when I have the AC > adapter unplugged it shows 50% (I'm assuming because one battery is full, the > other empty -- or unrecognized -- rather than 100%). Yes, I have an old Compaq that can take two, and its (in-BIOS) battery monitor works that way, 50% for each battery - but only with two fitted. > [root@dlaptop ~]# acpiconf -i 1 > Design capacity: 0 mAh > Last full capacity: 0 mAh > Technology: secondary (rechargeable) > Design voltage: 0 mV > Capacity (warn): 0 mAh > Capacity (low): 0 mAh > Low/warn granularity: 0 mAh > Warn/full granularity: 0 mAh > Model number: > Serial number: 0 > Type: > OEM info: > State: not present > Present voltage: unknown Seems that KDE's battery monitor is what needs hacking; it should recognise the 'not present' state and ignore a non-fitted battery. Have you tried contacting the KDE-in-FreeBSD folks about this? You could try http://freebsd.kde.org/ (disclaimer: I haven't been there) > [root@dlaptop ~]# acpiconf -i 0 > Design capacity: 5200 mAh > Last full capacity: 4677 mAh > Technology: secondary (rechargeable) > Design voltage: 11100 mV > Capacity (warn): 520 mAh > Capacity (low): 157 mAh > Low/warn granularity: 52 mAh > Warn/full granularity: 52 mAh > Model number: DELL PT43693 > Serial number: 37449 > Type: LION > OEM info: Samsung SDI > State: high > Remaining capacity: 100% > Remaining time: unknown > Present rate: 1 mA (12 mW) > Present voltage: 12506 mV Sorry I can't be of more help; I'm using KDE (still 3.5.10 here) but use gkrellm for its battery monitor along with everything else it shows, but I can't say how it might handle multiple batteries. Maybe worth a try? cheers, Ian