Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751958AbaDUL2P (ORCPT ); Mon, 21 Apr 2014 07:28:15 -0400 Received: from mga09.intel.com ([134.134.136.24]:40049 "EHLO mga09.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750906AbaDUL2K (ORCPT ); Mon, 21 Apr 2014 07:28:10 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.97,896,1389772800"; d="scan'208";a="524689545" Message-ID: <53550106.8080907@intel.com> Date: Mon, 21 Apr 2014 19:29:10 +0800 From: Lan Tianyu User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.3.0 MIME-Version: 1.0 To: Pavel Machek , Ilia Mirkin CC: Stefan Lippers-Hollmann , "Rafael J. Wysocki" , "linux-acpi@vger.kernel.org" , kernel list Subject: Re: 3.14-rc: /proc/acpi/battery gone? References: <20140314211456.GA23213@amd.pavel.ucw.cz> <201403150217.50526.s.L-H@gmx.de> <532471EC.1070107@intel.com> <201403160357.53858.s.L-H@gmx.de> <20140420130930.GD12135@amd.pavel.ucw.cz> In-Reply-To: <20140420130930.GD12135@amd.pavel.ucw.cz> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 04/20/2014 09:09 PM, Pavel Machek wrote: > Hi! > >>>> I just glance wmbattery code. I find the code in the acpi.c is already >>>> using the new sysfs battery interfaces, right? >>> >>> By default, wmbattery appears to default to using upower as abstraction >>> level, instead of querying sysfs itself directly. >>> >>> http://git.kitenet.net/?p=wmbattery.git;a=blob;f=autoconf/makeinfo.in;hb=HEAD >>> >>> which sets USE_UPOWER=1 by default. >>> >>> If USE_UPOWER=0 is set explicitly for the build, it reverts back to >>> direct sysfs parsing - and yes, it does appear to adhere to the current >>> sysfs API properly. >>> >>> The last remains, and the ability to parse procfs (which hasn't been >>> default for quite some time already, in favour of using hal as >>> abstraction layer) has finally been removed in >>> >>> http://git.kitenet.net/?p=wmbattery.git;a=commitdiff;h=833eb63a5ce4f2fb712a201b1db4f2db1700fddb >>> >>> The switch from procfs parsing to hal (by default at least) in turn >>> happened with >>> >>> http://git.kitenet.net/?p=wmbattery.git;a=commitdiff;h=63c3d1a0b11e8ade1a5612bb5baa3d92e153bbbe >>> >>> in 2008 (before Debian squeeze/ oldstable). I have not investigated if >>> hal then read from procfs or sysfs, but wmbattery at least didn't read >>> from procfs itself, unless explicitly told to do so (USE_HAL=0) during >>> the build since mid 2008. >>> >>> The current version of wmbattery however will never try to access >>> /proc/acpi, the current version no longer knows of its existence. >>> >>> [Again, I'm not familiar with wmbattery myself and have never run it] >> >> Stefan, >> >> Thanks for looking into this. The newest wmbattery version indeed >> supports upower. However, I haven't figured out how to get it to work. >> That's obviously not the kernel's fault, but an unfortunate reality. >> It seems to really want dbus to be running, but when I start dbus >> (which nothing else on my system needs, apparently), it just hangs. My >> knowledge of these things is, (un)fortunately non-existent, so I just >> gave up on the upower approach. Running something as heavy as dbus >> just for a silly dock app seems... silly as well. > > Any news on this one? > > It seems that delaying fsck on battery power also relies on > /proc/acpi/battery... Ok. I will prepare a patch to recover /proc/acpi/battery. > > https://bbs.archlinux.org/viewtopic.php?id=12168 > > Pavel > -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/