From owner-freebsd-acpi@FreeBSD.ORG Thu Dec 11 21:08:44 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 8D11AECD for ; Thu, 11 Dec 2014 21:08:44 +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 40B1D22C for ; Thu, 11 Dec 2014 21:08:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sendgrid.info; h=from:mime-version:to:subject:references:in-reply-to:content-type:content-transfer-encoding; s=smtpapi; bh=5a5B0hiK6mXnA3c3+t/+ReHIVIU=; b=z2Dx+ERvV8Up9Q6Kdt TLJbSlD6iZ87vUyQvx0pV3fG7pXqgvRtNALvjHFwNxvMkmEJaAef8KYfvehCboA/ peazBBDT5FHl3zcFRLsXb9BCHsNG3QmQvSAjGOsAUibGlK49TKOFbgqNcYrK/G7x Du6pz/uNkZLGvFHlH0wZXWBy0= Received: by filter0104p1mdw1.sendgrid.net with SMTP id filter0104p1mdw1.29669.548A07A93 2014-12-11 21:07:53.429479409 +0000 UTC Received: from mail.tarsnap.com (unknown [10.100.60.97]) by ismtpd-015 (SG) with ESMTP id 14a3b2ded9e.11c6.2ae37 for ; Thu, 11 Dec 2014 21:07:53 +0000 (UTC) Received: (qmail 91869 invoked from network); 11 Dec 2014 21:07:52 -0000 Received: from unknown (HELO clamshell.daemonology.net) (127.0.0.1) by ec2-107-20-205-189.compute-1.amazonaws.com with ESMTP; 11 Dec 2014 21:07:52 -0000 Received: (qmail 90306 invoked from network); 11 Dec 2014 21:05:49 -0000 Received: from unknown (HELO clamshell.daemonology.net) (127.0.0.1) by clamshell.daemonology.net with SMTP; 11 Dec 2014 21:05:49 -0000 Message-ID: <548A072D.7090304@freebsd.org> Date: Thu, 11 Dec 2014 13:05:49 -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: John Baldwin , freebsd-acpi@freebsd.org Subject: Re: ENXIOing non-present battery References: <54840781.70603@freebsd.org> <201412111408.50866.jhb@freebsd.org> In-Reply-To: <201412111408.50866.jhb@freebsd.org> Content-Type: text/plain; charset=iso-8859-15 Content-Transfer-Encoding: 7bit X-SG-EID: t2fXfoZHCw6vGsGKHqKxJ9qWwHSlQfPdDS+3+p6rOCu6uq3VakQpvOaE8ykMvAQpIsvx2li+ugYxt/ mPVCNMPsLeA+BjvWY9uX6jThG46UB8JJi7WaSJNQqID3fXtnN45/5vcR3Ybb4spgqXMzLnMppustYu 50an34eWpV32sBvO5a9QufLHXYAy5rFkFV2j 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: Thu, 11 Dec 2014 21:08:44 -0000 On 12/11/14 11:08, John Baldwin wrote: > On Sunday, December 07, 2014 2:53:37 am Colin Percival wrote: >> On my Dell Latitude E7440 laptop, the ACPI reports two batteries: First >> the battery which exists; and second, a "Not Present" battery with zeroed >> statistics. FreeBSD, not realizing that this second battery is a complete >> myth -- the E7440 only has one battery, and there is nowhere to add another >> -- faithfully reports the data from ACPI to userland. > > Does setting hint.battery.1.disabled=1 work for you? That fixes the dev.battery sysctls and KDE's battery monitor. The hw.acpi.battery.units sysctl still reports "2", and `acpiconf -i 1` still reports the phantom battery; but I suppose those don't matter much... -- Colin Percival Security Officer Emeritus, FreeBSD | The power to serve Founder, Tarsnap | www.tarsnap.com | Online backups for the truly paranoid