Re: [gpm] using info from apm for battery life



On Sun, Jun 12, 2011 at 5:37 AM, Richard Hughes <hughsient gmail com> wrote:
> On 11 June 2011 18:00, Bee Hock Goh <beehock gmail com> wrote:
>> I am running ubuntu natty on my tablet. There battery driver seem to
>> be broken. Its exposing battery and ac information on sysfs and
>> gnome-power-manager is picking all information except the energy
>> parameter resulting in a empty battery bar.
>
> What version of upower? We've got a lot better reading all the sysfs
> entries in the last two releases thanks to Martins self test program.
>

its version 0.9.9

>> However, its reflecting the percent remaining information correct on /proc/apm.
>
> /proc/apm has been deprecated upstream for years now. Fedora turned
> off this legacy interface 3 or 4 releases ago.
>
>> Is there any way that I can use gnome-power-manger either to use only
>> /proc/apm or get the battery life from apm instead?
>
> No, sorry. If you've got the latest version of upower and it still
> doesn't work, you need to open a bug on kernel.org under the acpi
> component. Working around brokenness like this in userspace is all
> wrong.
>
> Richard.
>

I dont think its really a bug but a badly implemented kernel driver.

Perhaps, i can modify upower to read apm instead of sysfs for the battery life?

regards,
 Hock.


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]