Re: Bug on Latitude E6410 battery

From: Felipe Balbi
Date: Tue Feb 22 2011 - 06:51:13 EST


Hi again,

On Tue, Feb 22, 2011 at 01:47:10PM +0200, Felipe Balbi wrote:
> there's some sort of weird bug on Latitude's battery as it shows 5600
> hours of battery time when it's discharging (gnome-power_manager says
> that), here are all files' contents from /sys/class/power_supply/BAT0/:
>
> alarm: 0
> charge_full: 5276000
> charge_full_design: 5600000
> charge_now: 5230000
> current_now: 1606000
> cycle_count: 0
> manufacturer: Samsung SDI
> model_name: DELL H139107
> present: 1
> serial_number: 1422
> status: Discharging
> technology: Li-ion
> type: Battery
> 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=11100000
> POWER_SUPPLY_VOLTAGE_NOW=12683000
> POWER_SUPPLY_CURRENT_NOW=1606000
> POWER_SUPPLY_CHARGE_FULL_DESIGN=5600000
> POWER_SUPPLY_CHARGE_FULL=5276000
> POWER_SUPPLY_CHARGE_NOW=5230000
> POWER_SUPPLY_MODEL_NAME=DELL H139107
> POWER_SUPPLY_MANUFACTURER=Samsung SDI
> POWER_SUPPLY_SERIAL_NUMBER=1422
> voltage_min_design: 11100000
> voltage_now: 12683000
>
> BTW, I'm using 2.6.38-rc5

Now I just saw that it's maybe a race. Sometimes is shows correctly
(3 hours and something) and sometimes it shows wrong value (over 5000
hours).

It looks like the notification that I get when I remove the cable, shows
the wrong value and if after the notification vanishes, I put my mouse
pointer over the battery icon, then I get correctly value.

Maybe a bug on gnome-power-manager.

--
balbi
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/