From owner-freebsd-acpi@FreeBSD.ORG Tue Dec 9 10:48:59 2014 Return-Path: Delivered-To: freebsd-acpi@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id D89DAAB9 for ; Tue, 9 Dec 2014 10:48:59 +0000 (UTC) Received: from o1.l99.sendgrid.net (o1.l99.sendgrid.net [198.37.153.74]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 8BCA4A8 for ; Tue, 9 Dec 2014 10:48:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sendgrid.info; h=from:mime-version:to:cc:subject:references:in-reply-to:content-type:content-transfer-encoding; s=smtpapi; bh=tpeR3iiNFcqPAueoEa3yaQi92yA=; b=yLXXuOhTEASDb8HVDu HKoZPuaPmemqscbmGJmVbcdnWKgUC1JFACCEl7alsWiM5Uz2/QXocn8W8Ha2B7RJ cqrm1ZV4uV4wPFrHdgC4Q/rnjulLyEshr//3uxBDkbguETVmkp0Kvo5wAsIe5Fwo KarhRZVAsWvvMYOC5EAFrEEnY= Received: by filter0028p1mdw1.sendgrid.net with SMTP id filter0028p1mdw1.28725.5486D39813 2014-12-09 10:48:57.117960845 +0000 UTC Received: from mail.tarsnap.com (unknown [10.100.60.108]) by ismtpd-040 (SG) with ESMTP id 14a2eaa8dd9.5406.306025 for ; Tue, 09 Dec 2014 10:48:57 +0000 (UTC) Received: (qmail 73149 invoked from network); 9 Dec 2014 10:48:56 -0000 Received: from unknown (HELO clamshell.daemonology.net) (127.0.0.1) by ec2-107-20-205-189.compute-1.amazonaws.com with ESMTP; 9 Dec 2014 10:48:56 -0000 Received: (qmail 73746 invoked from network); 9 Dec 2014 10:47:02 -0000 Received: from unknown (HELO clamshell.daemonology.net) (127.0.0.1) by clamshell.daemonology.net with SMTP; 9 Dec 2014 10:47:02 -0000 Message-ID: <5486D326.5080708@freebsd.org> Date: Tue, 09 Dec 2014 02:47:02 -0800 From: Colin Percival User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:31.0) Gecko/20100101 Thunderbird/31.2.0 MIME-Version: 1.0 To: Adrian Chadd Subject: Re: ENXIOing non-present battery References: <54840781.70603@freebsd.org> <54862F5E.4040909@freebsd.org> In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-SG-EID: t2fXfoZHCw6vGsGKHqKxJ9qWwHSlQfPdDS+3+p6rOCvoGUXwugTfFWnxRF5tDclv5vLzITmW1XjH6K ULYR8Wvwa8h+XUMwLNmP9H63l04MKk3rIhoZQE0tsjn86qtv/WqhrHcLtBtvKU7b9OFHehbIBJPiCc I/FuF1P9qL5jnUm7C2P2hF+U8qULuF8nGwe3 X-SendGrid-Contentd-ID: {"test_id":"1418122137"} Cc: "freebsd-acpi@freebsd.org" 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 10:48:59 -0000 On 12/08/14 15:27, Adrian Chadd wrote: > What's the output of acpiconf -i0 and acpiconf -i1? acpiconf -i0 is exactly what you'd expect. acpiconf -i1 shows blank for the model/serial/type/OEM info strings, and 0 mAh/mV for the rest except State which is "not present". > I wonder if changing 'state' to something else would keep everything happy. I can't see how it would. The hald code uses hw.acpi.battery.units to see how many batteries there are, then reads the _BIF data via ioctl; the "state" isn't even in _BIF. -- Colin Percival Security Officer Emeritus, FreeBSD | The power to serve Founder, Tarsnap | www.tarsnap.com | Online backups for the truly paranoid