From owner-freebsd-acpi@FreeBSD.ORG Fri Dec 12 22:38:35 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 CC32AAE0 for ; Fri, 12 Dec 2014 22:38:35 +0000 (UTC) Received: from o3.shared.sendgrid.net (o3.shared.sendgrid.net [208.117.48.85]) (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 8C697CDC for ; Fri, 12 Dec 2014 22:38:35 +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=1uiWLKQpk4ITdtkvJxCzz2VH7TE=; b=jLLws4+IbPAGbRygAO O0E9S5lPedFdvZZH3SJVM45Y9lvx6LpyJi+OIWJ9f89Bq1fdxX3Sqr00m3yIzEeM gSf3V5Idi1sjN/bnd9/1xiPiqv3rX4WDOnpnUHBsyAvHC6Ok9QuFpLYY4lSCwz4S jvGheVB2m+lLuyTv1CBpgyVEg= Received: by filter0090p1mdw1.sendgrid.net with SMTP id filter0090p1mdw1.25258.548B6E6111 2014-12-12 22:38:26.354949715 +0000 UTC Received: from mail.tarsnap.com (unknown [10.100.60.108]) by ismtpd-042 (SG) with ESMTP id 14a40a72ffc.34ed.1cabd3 for ; Fri, 12 Dec 2014 22:38:26 +0000 (UTC) Received: (qmail 48385 invoked from network); 12 Dec 2014 22:38:25 -0000 Received: from unknown (HELO clamshell.daemonology.net) (127.0.0.1) by ec2-107-20-205-189.compute-1.amazonaws.com with ESMTP; 12 Dec 2014 22:38:25 -0000 Received: (qmail 97960 invoked from network); 12 Dec 2014 22:36:18 -0000 Received: from unknown (HELO clamshell.daemonology.net) (127.0.0.1) by clamshell.daemonology.net with SMTP; 12 Dec 2014 22:36:18 -0000 Message-ID: <548B6DE2.10509@freebsd.org> Date: Fri, 12 Dec 2014 14:36:18 -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 Subject: Re: ENXIOing non-present battery References: <54840781.70603@freebsd.org> <201412111408.50866.jhb@freebsd.org> <548A072D.7090304@freebsd.org> <6449474.BnGsyZAKhP@ralph.baldwin.cx> In-Reply-To: <6449474.BnGsyZAKhP@ralph.baldwin.cx> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit X-SG-EID: t2fXfoZHCw6vGsGKHqKxJ9qWwHSlQfPdDS+3+p6rOCtJ/ffsGzU76XNv01xIcXIBtbthL7N/004pMG ow6a2rlFAQnpjTJxOh5OuVTH058LBm2TyEJypMsOFEKVdQDbQ9iv3ma+rcEZ/YR632MGjsklbhLNoA ZwaF6TuuH3z5p7pyHwtBu1Xzm8fKy4X4WeSU 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: Fri, 12 Dec 2014 22:38:35 -0000 On 12/12/14 07:21, John Baldwin wrote: > On Thursday, December 11, 2014 01:05:49 PM Colin Percival wrote: >> On 12/11/14 11:08, John Baldwin wrote: >>> 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... > > Ok. That is the "generic" thing we already have in place to disable devices, > so I'd probably prefer to use that as the known workaround rather than adding > another knob. OK, I'll stick to using that one. My original thinking was that disabling "whatever isn't present" would avoid the need for a user to figure out which number it was; but it's probably safe to assume that batteries will always be probed in the same order... > That said, it looks like we report the userland state of "not > present" correctly. I wonder if the bug is in KDE itself and its > FreeBSD-specific power management bits (rather than hald)? The FreeBSD-specific userland bits are in hald. -- Colin Percival Security Officer Emeritus, FreeBSD | The power to serve Founder, Tarsnap | www.tarsnap.com | Online backups for the truly paranoid