acpi battery current rate erroneous during several seconds after (dis)connecting to the main

Bug #648252 reported by Cyprien Gay
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

Hello,

it is a Ubuntu Netbook Edition 10.04 on a Hercules ecafé 900CL netbook.

After connecting or disconnecting the netbook to/from the main,
the file /proc/acpi/battery/BAT1/state
contains fantasy values for the present rate.
The voltage is ok: it jumps up or down by less than a volt
when I connect or disconnect the laptop.
The capacity is ok too: it basically does not change.

But the present rate gives erroneous values
in the range 65000-65536 mA
during at least several seconds, if not dozens of seconds,
after connection or disconnection to/from the main.

The most annoying consequence (I believe it is a consequence)
is that when I disconnect the laptop,
it goes into sleep immediately
unless I press any key within the first second after disconnection.

I'm available for any tests etc.

Cyprien.
---
AlsaVersion: Advanced Linux Sound Architecture Driver Version 1.0.21.
AplayDevices:
 **** List of PLAYBACK Hardware Devices ****
 card 0: VT82xx [HDA VIA VT82xx], device 0: ALC269 Analog [ALC269 Analog]
   Subdevices: 1/1
   Subdevice #0: subdevice #0
Architecture: i386
ArecordDevices:
 **** List of CAPTURE Hardware Devices ****
 card 0: VT82xx [HDA VIA VT82xx], device 0: ALC269 Analog [ALC269 Analog]
   Subdevices: 1/1
   Subdevice #0: subdevice #0
AudioDevicesInUse:
 USER PID ACCESS COMMAND
 /dev/snd/controlC0: cgay 4290 F.... pulseaudio
CRDA: Error: [Errno 2] Aucun fichier ou dossier de ce type
Card0.Amixer.info:
 Card hw:0 'VT82xx'/'HDA VIA VT82xx at 0xfe9e8000 irq 17'
   Mixer name : 'Realtek ALC269'
   Components : 'HDA:10ec0269,10ec0269,00100004'
   Controls : 14
   Simple ctrls : 9
DistroRelease: Ubuntu 10.04
HibernationDevice: RESUME=UUID=daa2e003-ba3d-425f-888d-40057ecca9b6
InstallationMedia: Ubuntu-Netbook 10.04 "Lucid Lynx" - Release i386 (20100429.4)
Lsusb:
 Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
 Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
 Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
 Bus 001 Device 002: ID 1c4f:3002 SiGma Micro
 Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
MachineType: Hercules Guillemot EC-900B
Package: linux (not installed)
ProcCmdLine: BOOT_IMAGE=/boot/vmlinuz-2.6.32-24-generic root=UUID=00d14400-e165-4e94-94e4-bd686ebf08e7 ro quiet splash vga=788
ProcEnviron:
 LANG=fr_FR.utf8
 SHELL=/bin/bash
ProcVersionSignature: Ubuntu 2.6.32-24.43-generic 2.6.32.15+drm33.5
Regression: No
RelatedPackageVersions: linux-firmware 1.34.1
Reproducible: Yes
RfKill:

StagingDrivers: rtl8187se
Tags: ubuntu-une lucid needs-upstream-testing staging
Title: [STAGING]
Uname: Linux 2.6.32-24-generic i686
UserGroups: adm admin audio cdrom dialout dip fax floppy fuse lpadmin netdev plugdev sambashare tape video
dmi.bios.date: 09/23/2009
dmi.bios.vendor: American Megatrends Inc.
dmi.bios.version: 080014
dmi.board.asset.tag: To Be Filled By O.E.M.
dmi.board.name: TEMPLATE
dmi.board.vendor: TEMPLATE
dmi.board.version: 0A
dmi.chassis.asset.tag: To Be Filled By O.E.M.
dmi.chassis.type: 3
dmi.chassis.vendor: To Be Filled By O.E.M.
dmi.chassis.version: To Be Filled By O.E.M.
dmi.modalias: dmi:bvnAmericanMegatrendsInc.:bvr080014:bd09/23/2009:svnHerculesGuillemot:pnEC-900B:pvr1.1:rvnTEMPLATE:rnTEMPLATE:rvr0A:cvnToBeFilledByO.E.M.:ct3:cvrToBeFilledByO.E.M.:
dmi.product.name: EC-900B
dmi.product.version: 1.1
dmi.sys.vendor: Hercules Guillemot

Revision history for this message
Fabio Marconi (fabiomarconi) wrote :

Hello
Can you please run in a terminal
apport-collect -p linux 648252
Thanks
Fabio

affects: ubuntu → linux (Ubuntu)
tags: added: ecafe-900cl lucid
Revision history for this message
Cyprien Gay (cyprien-gay) wrote : AlsaDevices.txt

apport information

tags: added: apport-collected
description: updated
Revision history for this message
Cyprien Gay (cyprien-gay) wrote : BootDmesg.txt

apport information

Revision history for this message
Cyprien Gay (cyprien-gay) wrote : Card0.Amixer.values.txt

apport information

Revision history for this message
Cyprien Gay (cyprien-gay) wrote : Card0.Codecs.codec.0.txt

apport information

Revision history for this message
Cyprien Gay (cyprien-gay) wrote : CurrentDmesg.txt

apport information

Revision history for this message
Cyprien Gay (cyprien-gay) wrote : IwConfig.txt

apport information

Revision history for this message
Cyprien Gay (cyprien-gay) wrote : Lspci.txt

apport information

Revision history for this message
Cyprien Gay (cyprien-gay) wrote : PciMultimedia.txt

apport information

Revision history for this message
Cyprien Gay (cyprien-gay) wrote : ProcCpuinfo.txt

apport information

Revision history for this message
Cyprien Gay (cyprien-gay) wrote : ProcInterrupts.txt

apport information

Revision history for this message
Cyprien Gay (cyprien-gay) wrote : ProcModules.txt

apport information

Revision history for this message
Cyprien Gay (cyprien-gay) wrote : UdevDb.txt

apport information

Revision history for this message
Cyprien Gay (cyprien-gay) wrote : UdevLog.txt

apport information

Revision history for this message
Cyprien Gay (cyprien-gay) wrote : WifiSyslog.txt

apport information

Revision history for this message
Cyprien Gay (cyprien-gay) wrote :

Is it useful that I test this behaviour with other kernels? If yes, which kernels?

Following https://wiki.ubuntu.com/Kernel/FAQ#How%20can%20we%20determine%20the%20version%20of%20the%20running%20kernel?
cat /proc/version_signature
Ubuntu 2.6.32-24.43-generic 2.6.32.15+drm33.5
So I believe 2.6.32.15+drm33.5 is the mainline kernel I should install if that is what is needed.
Should I install that one or a newer one?

For the newest one, if I understand well the page
https://wiki.ubuntu.com/Kernel/MainlineBuilds
I should go to
http://kernel.ubuntu.com/~kernel-ppa/mainline/daily/current/
and install the linux-image-*-i386.deb package.
Is that correct?

For the version that corresponds to the current kernel on my laptop
I understand I should rather go to
http://kernel.ubuntu.com/~kernel-ppa/mainline/v2.6.32.15-lucid/
Is that correct?

Thanks,
Cyprien.

Revision history for this message
Cyprien Gay (cyprien-gay) wrote :

Could it be that somehow the electrical current ("present rate"), instead of being read from the BIOS, is reconstructed from the variation of the capacity? If the capacity drops by, say, 100 mAh, when the main is disconnected and if the time sampling is 5s
then the reconstructed current is 100mAh / 5s = 72000 mA. Does that make sense?
Maybe the capacity itself is also reconstructed from the voltage?

tags: added: kj-triage
Brad Figg (brad-figg)
tags: added: acpi-method-return
Revision history for this message
Cyprien Gay (cyprien-gay) wrote :

My ecafe-900-CL is now out of order so I won't be able to make any tests, sorry.
It is probably the graphic card, ie the motherboard : I don't have any display working, either internal or external. It happened about two weeks ago. Only yesterday did I have time to double-check that.

Brad Figg (brad-figg)
Changed in linux (Ubuntu):
status: New → Confirmed
Revision history for this message
penalvch (penalvch) wrote :

Cyprien Gay, this bug report is being closed due to your last comment regarding the hardware being out of order. For future reference you can manage the status of your own bugs by clicking on the current status in the yellow line and then choosing a new status in the revealed drop down box. You can learn more about bug statuses at https://wiki.ubuntu.com/Bugs/Status. Thank you again for taking the time to report this bug and helping to make Ubuntu better. Please submit any future bugs you may find.

Changed in linux (Ubuntu):
status: Confirmed → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.