You are not logged in.

#1 2010-11-30 11:53:08

tvale
Member
From: Portugal
Registered: 2008-12-11
Posts: 175

2.6.36.1 broke my battery life information

Hey!

After the kernel26 package upgrande, the acpi program is unable to identify the battery discharge rate. Consequently, I guess, conky also shows "unknown" instead of remaining time.

% acpi
Battery 0: Discharging, 65%, discharging at zero rate - will never fully discharge.

I have the battery module loaded and the sysfs file seems okay to me.

 % cat /sys/class/power_supply/BAT0/uevent
POWER_SUPPLY_NAME=BAT0
POWER_SUPPLY_STATUS=Discharging
POWER_SUPPLY_PRESENT=1
POWER_SUPPLY_TECHNOLOGY=Li-ion
POWER_SUPPLY_CYCLE_COUNT=0
POWER_SUPPLY_VOLTAGE_MIN_DESIGN=15000000
POWER_SUPPLY_VOLTAGE_NOW=15573000
POWER_SUPPLY_POWER_NOW=8760000
POWER_SUPPLY_ENERGY_FULL_DESIGN=84000000
POWER_SUPPLY_ENERGY_FULL=74850000
POWER_SUPPLY_ENERGY_NOW=48630000
POWER_SUPPLY_MODEL_NAME=
POWER_SUPPLY_MANUFACTURER=ASUSTEK
POWER_SUPPLY_SERIAL_NUMBER= 

Anyone else had this problem? Any ideas?

Offline

#2 2010-11-30 14:10:44

Awebb
Member
Registered: 2010-05-06
Posts: 6,286

Re: 2.6.36.1 broke my battery life information

You should start by telling us more about your hardware.

Some ACPI functionalities can be 'controlled' by the option acpi_osi= in your grub line. Sadly, there is little to no useful documentation about it. Maybe some research on this is worth your time.

Offline

#3 2010-11-30 14:41:50

linux-ka
Member
From: ADL
Registered: 2010-05-07
Posts: 232

Re: 2.6.36.1 broke my battery life information

'had the same problem....just run

acpi -p

instead of

acpi -b

this uses the former way taking note from proc. dunno why the sys-info doesn't work anymore. but this might be patched in the upcoming version (hope so)

Last edited by linux-ka (2010-11-30 14:43:05)

Offline

#4 2010-11-30 14:45:56

tvale
Member
From: Portugal
Registered: 2008-12-11
Posts: 175

Re: 2.6.36.1 broke my battery life information

I've got an Asus UL30A. It worked before, so something changed. I've tried searching for someone with a similar problem on Google, but I couldn't get any relevant information.
I'll keep trying. Anyway, the thread is here in case anyone can help.

Thanks!

-- edit --
Yeah, it works linux-ka. Thanks. Looks like it could be a sysfs problem?

Last edited by tvale (2010-11-30 14:48:51)

Offline

#5 2010-12-03 16:25:30

rae
Member
Registered: 2010-11-09
Posts: 9

Re: 2.6.36.1 broke my battery life information

Same thing!! It worked before the kernel upgrade. I installed acpitool and it gives me the correct information about the remaining time of the battery. The problem is that conky and tint2 access this information with the acpi command.

EDIT: ok, forget it, doing acpi -p i get the right info too. The problem is that acpi uses as default the /sys info and with acpi -p it gets the values from /proc and then works fine....

Last edited by rae (2010-12-03 16:35:29)

Offline

#6 2010-12-03 19:36:19

thil77
Member
Registered: 2008-08-29
Posts: 52

Re: 2.6.36.1 broke my battery life information

perhaps it's the same issue as http://code.google.com/p/tint2/issues/detail?id=299

2.6.36 kernel does not offer /sys/class/power_supply/*/current_now anymore.

you can try tint2-svn in AUR (should work).

Offline

#7 2010-12-04 00:46:37

tvale
Member
From: Portugal
Registered: 2008-12-11
Posts: 175

Re: 2.6.36.1 broke my battery life information

So you say they changed current_now to power_now?
That could be it.

Offline

#8 2010-12-04 21:40:02

tvale
Member
From: Portugal
Registered: 2008-12-11
Posts: 175

Re: 2.6.36.1 broke my battery life information

Offline

#9 2010-12-04 22:30:42

rae
Member
Registered: 2010-11-09
Posts: 9

Re: 2.6.36.1 broke my battery life information

tint2 was updated and is working fine noww... and the link by tvale should fix conky... thanks everyone...

Offline

#10 2010-12-06 23:39:47

tvale
Member
From: Portugal
Registered: 2008-12-11
Posts: 175

Re: 2.6.36.1 broke my battery life information

Also, acpi package will have it fixed once 1.5 reaches the repositories. In the meanwhile, acpitool works.
Marking as solved!

-- edit --
Okay, this is embarrasing. I can't seem to figure out how to edit the thread title!

Last edited by tvale (2010-12-06 23:42:00)

Offline

Board footer

Powered by FluxBB