ACPI power_supply battery errors to: No such device

Bug #889942 reported by xenoson
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Invalid
Medium
Unassigned

Bug Description

On 11.10 a few minutes after reboot on this notebook the battery symbol in the panel turns to no battery available, normal values in the sys interface turn to 'No such device' messages and 'voltage_now' gives a wrong number.

Here is a recent thread
http://ubuntuforums.org/showthread.php?t=1865832
and 'BAT1/current_now' gives 'No such device' on post #7

This:
-----------

user@box:~$ cat /proc/acpi/battery/BAT1/state
present: yes
capacity state: ok
charging state: charged
present rate: 0 mA
remaining capacity: 4182 mAh
present voltage: 16586 mV
user@box:~$ cat /proc/acpi/battery/BAT1/info
present: yes
design capacity: 4800 mAh
last full capacity: 4397 mAh
battery technology: rechargeable
design voltage: 14800 mV
design capacity warning: 0 mAh
design capacity low: 0 mAh
cycle count: 0
capacity granularity 1: 1 mAh
capacity granularity 2: 1 mAh
model number: MS-1058

serial number:

battery type: LION

OEM info: MSI Corp.

user@box:~$ cat /sys/class/power_supply/BAT1/
alarm manufacturer technology
charge_full model_name type
charge_full_design power/ uevent
charge_now present voltage_min_design
current_now serial_number voltage_now
cycle_count status
device/ subsystem/
user@box:~$ cat /sys/class/power_supply/BAT1/alarm
0
user@box:~$ cat /sys/class/power_supply/BAT1/charge_full
4397000
user@box:~$ cat /sys/class/power_supply/BAT1/charge_full_design
4800000
user@box:~$ cat /sys/class/power_supply/BAT1/charge_now
4182000
user@box:~$ cat /sys/class/power_supply/BAT1/current_now
0
user@box:~$ cat /sys/class/power_supply/BAT1/cycle_count
0
user@box:~$ cat /sys/class/power_supply/BAT1/manufacturer
MSI Corp.

user@box:~$ cat /sys/class/power_supply/BAT1/model_name
MS-1058

user@box:~$ cat /sys/class/power_supply/BAT1/present
1
user@box:~$ cat /sys/class/power_supply/BAT1/serial_number

user@box:~$ cat /sys/class/power_supply/BAT1/status
Unknown
user@box:~$ cat /sys/class/power_supply/BAT1/technology
Unknown
user@box:~$ cat /sys/class/power_supply/BAT1/type
Battery
user@box:~$ cat /sys/class/power_supply/BAT1/voltage_min_design
14800000
user@box:~$ cat /sys/class/power_supply/BAT1/voltage_now
16586000

user@box:~$ cat /proc/acpi/ac_adapter/ADP1/state
state: on-line
user@box:~$ cat /sys/class/power_supply/ADP1/
device/ online power/ subsystem/ type uevent
user@box:~$ cat /sys/class/power_supply/ADP1/online
1
user@box:~$ cat /sys/class/power_supply/ADP1/type
Mains

----------------
changes to:

user@box:~$ cat /proc/acpi/battery/BAT1/state
present: yes
capacity state: ok
charging state: charged
present rate: unknown
remaining capacity: unknown
present voltage: 10000 mV
user@box:~$ cat /proc/acpi/battery/BAT1/info
present: yes
design capacity: 4800 mAh
last full capacity: 4397 mAh
battery technology: rechargeable
design voltage: 14800 mV
design capacity warning: 0 mAh
design capacity low: 0 mAh
cycle count: 0
capacity granularity 1: 1 mAh
capacity granularity 2: 1 mAh
model number: MS-1058

serial number:

battery type: LION

OEM info: MSI Corp.

user@box:~$ cat /sys/class/power_supply/BAT1/
cat: /sys/class/power_supply/BAT1/: Ist ein Verzeichnis
user@box:~$ cat /sys/class/power_supply/BAT1/alarm
0
user@box:~$ cat /sys/class/power_supply/BAT1/charge_full
4397000
user@box:~$ cat /sys/class/power_supply/BAT1/charge_full_design
4800000
user@box:~$ cat /sys/class/power_supply/BAT1/charge_now
cat: /sys/class/power_supply/BAT1/charge_now: Kein passendes Gerät gefunden
user@box:~$ LANGUAGE=en_GB:en cat /sys/class/power_supply/BAT1/charge_now
cat: /sys/class/power_supply/BAT1/charge_now: No such device
user@box:~$ cat /sys/class/power_supply/BAT1/current_now
cat: /sys/class/power_supply/BAT1/current_now: Kein passendes Gerät gefunden
user@box:~$ LANGUAGE=en_GB:en cat /sys/class/power_supply/BAT1/current_now
cat: /sys/class/power_supply/BAT1/current_now: No such device
user@box:~$ cat /sys/class/power_supply/BAT1/cycle_count
0
user@box:~$ cat /sys/class/power_supply/BAT1/manufacturer
MSI Corp.

user@box:~$ cat /sys/class/power_supply/BAT1/model_name
MS-1058

user@box:~$ cat /sys/class/power_supply/BAT1/present
1
user@box:~$ cat /sys/class/power_supply/BAT1/serial_number

user@box:~$ cat /sys/class/power_supply/BAT1/status
Unknown
user@box:~$ cat /sys/class/power_supply/BAT1/technology
Unknown
user@box:~$ cat /sys/class/power_supply/BAT1/type
Battery
user@box:~$ cat /sys/class/power_supply/BAT1/voltage_min_design
14800000
user@box:~$ cat /sys/class/power_supply/BAT1/voltage_now
10000000
user@box:~$ cat /sys/class/power_supply/ADP1/online
1
user@box:~$ cat /sys/class/power_supply/ADP1/type
Mains
---
AlsaVersion: Advanced Linux Sound Architecture Driver Version 1.0.24.
ApportVersion: 1.23-0ubuntu4
Architecture: i386
ArecordDevices:
 **** List of CAPTURE Hardware Devices ****
 card 0: SB [HDA ATI SB], device 0: ALC883 Analog [ALC883 Analog]
   Subdevices: 1/1
   Subdevice #0: subdevice #0
AudioDevicesInUse:
 USER PID ACCESS COMMAND
 /dev/snd/controlC0: tolga 2214 F.... pulseaudio
CRDA: Error: [Errno 2] Datei oder Verzeichnis nicht gefunden
Card0.Amixer.info:
 Card hw:0 'SB'/'HDA ATI SB at 0xffef8000 irq 16'
   Mixer name : 'Realtek ALC883'
   Components : 'HDA:10ec0883,1462a422,00100002 HDA:11c11040,11c10001,00100200'
   Controls : 23
   Simple ctrls : 13
DistroRelease: Ubuntu 11.10
HibernationDevice: RESUME=UUID=4ffdc9f1-4fbb-4ddf-8fe3-f85d6f439d9f
Lsusb:
 Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
 Bus 002 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 002: ID 04d9:0499 Holtek Semiconductor, Inc. Optical Mouse
MachineType: Notebook SAM2010
Package: linux 3.0.0.16.19
PackageArchitecture: i386
ProcEnviron:
 LANGUAGE=de_DE:de:en_GB:en
 PATH=(custom, user)
 LANG=de_DE.UTF-8
 SHELL=/bin/bash
ProcKernelCmdLine: BOOT_IMAGE=/vmlinuz-3.0.0-16-generic-pae root=/dev/mapper/hostname-root ro quiet splash vt.handoff=7
ProcVersionSignature: Ubuntu 3.0.0-16.28-generic-pae 3.0.17
RelatedPackageVersions:
 linux-restricted-modules-3.0.0-16-generic-pae N/A
 linux-backports-modules-3.0.0-16-generic-pae N/A
 linux-firmware 1.60
RfKill:
 0: phy0: Wireless LAN
  Soft blocked: no
  Hard blocked: no
Tags: oneiric running-unity
Uname: Linux 3.0.0-16-generic-pae i686
UpgradeStatus: Upgraded to oneiric on 2011-11-13 (99 days ago)
UserAsoundrc:
 # ALSA library configuration file

 # Include settings that are under the control of asoundconf(1).
 # (To disable these settings, comment out this line.)
 </home/tolga/.asoundrc.asoundconf>
UserGroups: adm admin audio cdrom dialout dip floppy fuse kvm libvirtd lpadmin netdev plugdev powerdev pulse pulse-access sambashare scanner ssh video
dmi.bios.date: 04/25/2008
dmi.bios.vendor: American Megatrends Inc.
dmi.bios.version: A1058AM7 V7.27
dmi.board.asset.tag: To Be Filled By O.E.M.
dmi.board.name: SAM2010
dmi.board.vendor: MEDION
dmi.chassis.asset.tag: To Be Filled By O.E.M.
dmi.chassis.type: 10
dmi.chassis.vendor: MICRO-STAR INT'L CO.,LTD.
dmi.chassis.version: To Be Filled By O.E.M.
dmi.modalias: dmi:bvnAmericanMegatrendsInc.:bvrA1058AM7V7.27:bd04/25/2008:svnNotebook:pnSAM2010:pvr1058:rvnMEDION:rnSAM2010:rvr:cvnMICRO-STARINT'LCO.,LTD.:ct10:cvrToBeFilledByO.E.M.:
dmi.product.name: SAM2010
dmi.product.version: 1058
dmi.sys.vendor: Notebook

Revision history for this message
xenoson (xenoson) wrote :
affects: linux-meta (Ubuntu) → linux (Ubuntu)
Changed in linux (Ubuntu):
importance: Undecided → Medium
Revision history for this message
Brad Figg (brad-figg) wrote : Missing required logs.

This bug is missing log files that will aid in diagnosing the problem. From a terminal window please run:

apport-collect 889942

and then change the status of the bug to 'Confirmed'.

If, due to the nature of the issue you have encountered, you are unable to run this command, please add a comment stating that fact and change the bug status to 'Confirmed'.

This change has been made by an automated script, maintained by the Ubuntu Kernel Team.

Changed in linux (Ubuntu):
status: New → Incomplete
tags: added: oneiric
Revision history for this message
xenoson (xenoson) wrote : AcpiTables.txt

apport information

tags: added: apport-collected running-unity
description: updated
Revision history for this message
xenoson (xenoson) wrote : AlsaDevices.txt

apport information

Revision history for this message
xenoson (xenoson) wrote : AplayDevices.txt

apport information

Revision history for this message
xenoson (xenoson) wrote : BootDmesg.txt

apport information

Revision history for this message
xenoson (xenoson) wrote : Card0.Amixer.values.txt

apport information

Revision history for this message
xenoson (xenoson) wrote : Card0.Codecs.codec.0.txt

apport information

Revision history for this message
xenoson (xenoson) wrote : Card0.Codecs.codec.1.txt

apport information

Revision history for this message
xenoson (xenoson) wrote : CurrentDmesg.txt

apport information

Revision history for this message
xenoson (xenoson) wrote : Dependencies.txt

apport information

Revision history for this message
xenoson (xenoson) wrote : IwConfig.txt

apport information

Revision history for this message
xenoson (xenoson) wrote : Lspci.txt

apport information

Revision history for this message
xenoson (xenoson) wrote : PciMultimedia.txt

apport information

Revision history for this message
xenoson (xenoson) wrote : ProcCpuinfo.txt

apport information

Revision history for this message
xenoson (xenoson) wrote : ProcInterrupts.txt

apport information

Revision history for this message
xenoson (xenoson) wrote : ProcModules.txt

apport information

Revision history for this message
xenoson (xenoson) wrote : PulseSinks.txt

apport information

Revision history for this message
xenoson (xenoson) wrote : PulseSources.txt

apport information

Revision history for this message
xenoson (xenoson) wrote : UdevDb.txt

apport information

Revision history for this message
xenoson (xenoson) wrote : UdevLog.txt

apport information

Revision history for this message
xenoson (xenoson) wrote : UserAsoundrcAsoundconf.txt

apport information

Revision history for this message
xenoson (xenoson) wrote : WifiSyslog.txt

apport information

Changed in linux (Ubuntu):
status: Incomplete → Confirmed
Revision history for this message
penalvch (penalvch) wrote :

xenoson, this bug was reported a while ago and there hasn't been any activity in it recently. We were wondering if this is still an issue? If so, could you please test for this with the latest development release of Ubuntu? ISO CD images are available from http://cdimage.ubuntu.com/releases/ .

If it remains an issue, could you please run the following command in the development release from a Terminal (Applications->Accessories->Terminal), as it will automatically gather and attach updated debug information to this report:

apport-collect -p linux <replace-with-bug-number>

Also, could you please test the latest upstream kernel available? It will allow additional upstream developers to examine the issue. Refer to https://wiki.ubuntu.com/KernelMainlineBuilds . Please do not test the kernel in the daily folder, but the one all the way at the bottom. Once you've tested the upstream kernel, please remove the 'needs-upstream-testing' tag. This can be done by clicking on the yellow pencil icon next to the tag located at the bottom of the bug description and deleting the 'needs-upstream-testing' text. As well, please comment on which kernel version specifically you tested.

If this bug is fixed in the mainline kernel, please add the following tag 'kernel-fixed-upstream'.

If the mainline kernel does not fix this bug, please add the tag: 'kernel-bug-exists-upstream'.

If you are unable to test the mainline kernel, for example it will not boot, please add the tag: 'kernel-unable-to-test-upstream', and comment as to why specifically you were unable to test it.

Please let us know your results. Thanks in advance.

Helpful Bug Reporting Links:
https://help.ubuntu.com/community/ReportingBugs#Bug_Reporting_Etiquette
https://help.ubuntu.com/community/ReportingBugs#A3._Make_sure_the_bug_hasn.27t_already_been_reported
https://help.ubuntu.com/community/ReportingBugs#Adding_Apport_Debug_Information_to_an_Existing_Launchpad_Bug
https://help.ubuntu.com/community/ReportingBugs#Adding_Additional_Attachments_to_an_Existing_Launchpad_Bug

tags: added: needs-upstream-testing
Changed in linux (Ubuntu):
status: Confirmed → Incomplete
Revision history for this message
xenoson (xenoson) wrote :

As I tested for Bug #1029159 this battery issue was still present using kernel 3.4.0-030400-generic-pae from kernel-ppa/mainline. This machine is the same as in the other report and runs precise now.

Revision history for this message
xenoson (xenoson) wrote :
tags: added: kernel-bug-exists-upstream
removed: needs-upstream-testing running-unity
Revision history for this message
penalvch (penalvch) wrote :

xenoson, thank you for testing mainline kernel v.3.5-quantal.

Could you please test http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.6-rc1-quantal/ ?

As well, is this issue reproducible on Ubuntu releases prior to Oneiric?

tags: added: kernel-bug-exists-upstream-v3.5-quantal running-unity
tags: added: precise
Revision history for this message
xenoson (xenoson) wrote :

Hi Christopher,
thanks for your guidance!
Kernel 3.6-rc1 unfortunately oopsed an froze with something like Oops: SMP early in initrd.

I can't say when exactly this appeared. From Hardy I upgraded to Lucid, there had an issue with wlan. It was a known bug filed on rt2x00.serialmonkey.com and fixed in a later version. Instead of using backports I decided to upgrade to the current ubuntu release. So I realised this bug first in Oneiric. But I think I booted the older Kernels and it worked, but not shure. I'll check.

Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for linux (Ubuntu) because there has been no activity for 60 days.]

Changed in linux (Ubuntu):
status: Incomplete → Expired
Revision history for this message
AZ (m-dev) wrote :

Still present in kernel 3.11 (saucy).

Revision history for this message
penalvch (penalvch) wrote :

AZ, if you have a bug in Ubuntu, the Ubuntu Kernel team, Ubuntu Bug Control team, and Ubuntu Bug Squad would like you to please file a new report by executing the following in a terminal while booted into a Ubuntu repository kernel (not a mainline one) via:
ubuntu-bug linux

For more on this, please read the official Ubuntu documentation:
Ubuntu Bug Control and Ubuntu Bug Squad: https://wiki.ubuntu.com/Bugs/BestPractices#X.2BAC8-Reporting.Focus_on_One_Issue
Ubuntu Kernel Team: https://wiki.ubuntu.com/KernelTeam/KernelTeamBugPolicies#Filing_Kernel_Bug_reports
Ubuntu Community: https://help.ubuntu.com/community/ReportingBugs#Bug_reporting_etiquette

When opening up the new report, please feel free to subscribe me to it.

Please note, not filing a new report would delay your problem being addressed as quickly as possible.

No need exists to comment here at this time. After reading the above documentation in it's entirety, if you have further questions or comments, you are welcome to redirect them to the appropriate mailing list or forum via http://www.ubuntu.com/support/community/mailinglists , or you may contact me directly.

Thank you for your understanding.

Revision history for this message
xenoson (xenoson) wrote :

Sorry I didn't post here again because I coudn't find older kernels where this didn't happen. I poked a bit in acpi and tried with acpi-call and found out that it is really the ec that gets confused and stops to report values. The ec could be reinitialized by adding or removing the kernel module msi_laptop (which will not load by default).
Since I do not use this notebook on battery very often I gave up on this.
But recently I saw that we have newer kernels in the repository.
The notebook is still on precise and the recent 3.2.0-67 kernel still has this problem but I installed 3.13 linux-generic-lts-trusty some weeks ago and it's fine now.
So this was really a kernel bug that confused the embedded controller and its gone now.

Revision history for this message
penalvch (penalvch) wrote :

xenoson, this bug report is being closed due to your last comment https://bugs.launchpad.net/ubuntu/+source/linux/+bug/889942/comments/32 regarding this being fixed with an update. 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: Expired → 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.