Bug 11632 - Battery information wrong - MSI S271
Summary: Battery information wrong - MSI S271
Status: CLOSED DUPLICATE of bug 10699
Alias: None
Product: Drivers
Classification: Unclassified
Component: Platform (show other bugs)
Hardware: All Linux
: P1 normal
Assignee: ykzhao
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-09-23 19:23 UTC by Bernd Steinhauser
Modified: 2010-10-08 18:19 UTC (History)
1 user (show)

See Also:
Kernel Version: 2.6.27-rc7
Subsystem:
Regression: ---
Bisected commit-id:


Attachments
Output of dmesg (23.63 KB, application/octet-stream)
2008-09-23 19:32 UTC, Bernd Steinhauser
Details
Output of dmidecode (13.35 KB, application/octet-stream)
2008-09-23 19:33 UTC, Bernd Steinhauser
Details
Output of acpidump (99.02 KB, application/octet-stream)
2008-09-23 19:44 UTC, Bernd Steinhauser
Details

Description Bernd Steinhauser 2008-09-23 19:23:42 UTC
Problem similar to bug 9823.
The information provided by acpi about the battery and it's state is wrong.
cat /proc/acpi/battery/BAT1/info
present:                 yes
design capacity:         37008 mAh
last full capacity:      37008 mAh
battery technology:      rechargeable
design voltage:          37008 mV
design capacity warning: 0 mAh
design capacity low:     0 mAh
capacity granularity 1:  1 mAh
capacity granularity 2:  1 mAh
model number:            MS-1058

serial number:

battery type:            LION

OEM info:                MSI Corp.

cat /proc/acpi/battery/BAT1/state
present:                 yes
capacity state:          ok
charging state:          charged
present rate:            unknown
remaining capacity:      unknown
present voltage:         10000 mV

acpi -sV
     Battery 1: slot empty
     Thermal 1: ok, 50.0 degrees C
  AC Adapter 1: on-line

dmesg, acpidump and dmidecode info will follow.
Comment 1 Bernd Steinhauser 2008-09-23 19:32:57 UTC
Created attachment 17992 [details]
Output of dmesg
Comment 2 Bernd Steinhauser 2008-09-23 19:33:26 UTC
Created attachment 17993 [details]
Output of dmidecode
Comment 3 Bernd Steinhauser 2008-09-23 19:44:27 UTC
Created attachment 17994 [details]
Output of acpidump
Comment 4 ykzhao 2008-09-23 20:58:50 UTC
Will you please not load the msi-laptop driver and see whether the problem still exists?
   
Comment 5 Shaohua 2008-09-23 22:32:22 UTC
So if you directly read the /proc/acpi/battery ... files, the info is correct. But acpi -sV will return error? This might be a bug of acpi tools.
Comment 6 Bernd Steinhauser 2008-09-24 03:11:50 UTC
(In reply to comment #4)
> Will you please not load the msi-laptop driver and see whether the problem
> still exists?
It seems that this indeed brought it back:
cat /proc/acpi/battery/BAT1/info
present:                 yes
design capacity:         4400 mAh
last full capacity:      2938 mAh
battery technology:      rechargeable
design voltage:          14800 mV
design capacity warning: 0 mAh
design capacity low:     0 mAh
capacity granularity 1:  1 mAh
capacity granularity 2:  1 mAh
model number:            MS-1058

serial number:

battery type:            LION

OEM info:                MSI Corp.

cat /proc/acpi/battery/BAT1/state
present:                 yes
capacity state:          ok
charging state:          charged
present rate:            0 mA
remaining capacity:      2938 mAh
present voltage:         16680 mV

Thank you.

So this is more a bug in the msi-laptop module, right?

(In reply to comment #5)
> So if you directly read the /proc/acpi/battery ... files, the info is
> correct.
> But acpi -sV will return error? This might be a bug of acpi tools.
No, both are wrong.
The acpi proc files state correctly, that the battery is present or not, but all the values are wrong.
Comment 7 ykzhao 2008-09-25 00:25:10 UTC
Thanks for the confirmation.
It seems that this issue is related with the following commit:
   > commit 00eb43a1897a8845d0edb198cec69ac5f1f299dd
   > Author: Lennart Poettering <mzxreary@0pointer.de>
   > Date:   Fri May 4 14:16:19 2007 +0200
      >acpi,msi-laptop: Fall back to EC polling mode for MSI laptop specific EC commands
   
   The EC command used in msi-laptop driver is non-standard EC command. Maybe it can be handled by Lennart Poettering <mzxreary@0pointer.de>.
   thanks.
Comment 8 ykzhao 2008-09-27 18:13:22 UTC
As the battery info can be reported correctly if msi-laptop platform driver is not loaded, change it to the category of platform-drivers.
Comment 9 ykzhao 2008-10-06 19:46:31 UTC

*** This bug has been marked as a duplicate of bug 10699 ***

Note You need to log in before you can comment on or make changes to this bug.