From owner-freebsd-acpi@FreeBSD.ORG Tue Dec 9 05:33:57 2014 Return-Path: Delivered-To: freebsd-acpi@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id AD646428; Tue, 9 Dec 2014 05:33:57 +0000 (UTC) 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 2B1ABCBA; Tue, 9 Dec 2014 05:33:56 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by sola.nimnet.asn.au (8.14.2/8.14.2) with ESMTP id sB95Xkhb049055; Tue, 9 Dec 2014 16:33:46 +1100 (EST) (envelope-from smithi@nimnet.asn.au) Date: Tue, 9 Dec 2014 16:33:45 +1100 (EST) From: Ian Smith To: Adrian Chadd Subject: Re: ENXIOing non-present battery In-Reply-To: Message-ID: <20141209162141.R48067@sola.nimnet.asn.au> References: <54840781.70603@freebsd.org> <54862F5E.4040909@freebsd.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Cc: "freebsd-acpi@freebsd.org" , Colin Percival X-BeenThere: freebsd-acpi@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: ACPI and power management development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 09 Dec 2014 05:33:57 -0000 On Mon, 8 Dec 2014 15:27:10 -0800, Adrian Chadd wrote: > What's the output of acpiconf -i0 and acpiconf -i1? > > I wonder if changing 'state' to something else would keep everything happy. > On 8 December 2014 at 15:08, Colin Percival wrote: > > On 12/07/14 08:03, Adrian Chadd wrote: > >> How's this work on other systems? KDE on Linux doesn't lose its mind > >> if the second battery is totally flat. > > > > I just booted Ubuntu 14.04, and both "batteries" appear in /proc/acpi/battery; > > but BAT1 just shows "present: no" without any statistics, and the GUI shows > > the correct state for the single present battery. And what does 'grep battery /var/run/dmesg.boot' have to say? Normally with 2 batteries catered for and only one fitted you'd expect to see eg: ./nicks_acpi/dmesg-bootwithacpi-2-part.txt:battery0: on acpi0 ./nicks_acpi/dmesg-bootwithacpi-2-part.txt:battery1: on acpi0 ./nicks_acpi/dmesg-bootwithacpi-2-part.txt:battery0: battery initialization start ./nicks_acpi/dmesg-bootwithacpi-2-part.txt:battery1: battery initialization start ./nicks_acpi/dmesg-bootwithacpi-2-part.txt:battery0: battery initialization done, tried 1 times ./nicks_acpi/dmesg-bootwithacpi-2-part.txt:battery1: battery initialization failed, giving up cheers, Ian