Bug 9341
Summary: | /proc/acpi/battery displays Incorrect voltages - Gateway 450ROG, MSI GX700 | ||
---|---|---|---|
Product: | ACPI | Reporter: | Sean Bridges (sean) |
Component: | EC | Assignee: | Alexey Starikovskiy (astarikovskiy) |
Status: | CLOSED PATCH_ALREADY_AVAILABLE | ||
Severity: | normal | CC: | acpi-bugzilla, malashenko, yakui.zhao |
Priority: | P1 | ||
Hardware: | All | ||
OS: | Linux | ||
Kernel Version: | 2.6.23.1 | Subsystem: | |
Regression: | --- | Bisected commit-id: | |
Attachments: |
acpidump output
MSI GX700 acpidump output MSI GX700 dmesq output Clear return value from space handler patch #2 ec patch |
Description
Sean Bridges
2007-11-09 21:39:34 UTC
Please provide output from acpidump, available as part of pmtools package. Created attachment 13537 [details]
acpidump output
Attached acpidump output. Thanks for looking at this request. I am available to provide any other input you need. I also experienced the problem. Battery status changes spontaneously. Here are 2 examples of cat /proc/acpi/battery/BAT1/* picked up during 1 minute: cat /proc/acpi/battery/BAT1/* present: no present: yes design capacity: 1297 mAh last full capacity: 12304 mAh battery technology: rechargeable design voltage: 38442 mV design capacity warning: 0 mAh design capacity low: 0 mAh capacity granularity 1: 1 mAh capacity granularity 2: 1 mAh model number: MS-1719 serial number: battery type: LION OEM info: MSI Corp. present: yes capacity state: ok charging state: charged present rate: unknown remaining capacity: unknown present voltage: 10000 mV cat /proc/acpi/battery/BAT1/* alarm: unsupported present: yes design capacity: 1297 mAh last full capacity: 12304 mAh battery technology: rechargeable design voltage: 38442 mV design capacity warning: 0 mAh design capacity low: 0 mAh capacity granularity 1: 1 mAh capacity granularity 2: 1 mAh model number: MS-1719 serial number: battery type: LION OEM info: MSI Corp. present: yes capacity state: ok charging state: discharging present rate: 4137 mA remaining capacity: 276 mAh present voltage: 9798 mV Created attachment 14208 [details]
MSI GX700 acpidump output
Here is my acpidump output
Created attachment 14209 [details]
MSI GX700 dmesq output
Could you please check if with latest -rc kernel you see different picture? Do you run with latest BIOS? I am running 2.6.24-rc6-git1 kernel with your patch from here: http://bugzilla.kernel.org/show_bug.cgi?id=9627. Without this patch there wasn't battery info at all. At the moment I use the latest official BIOS for MSI GX700 laptop. The problem appears more frequently when power consumption is bigger and changeable (for example kernel compiling). The problem doesn't appear in vista under any loading. Thank you! The problem continuous with 2.6.24-rc6-git6 on MSI GX700. Here is the result of several consecutive cat /proc/acpi/battery/BAT1/*: [root@repair-msi ~]# date '+TIME:%H:%M:%S'; cat /proc/acpi/battery/BAT1/* TIME:01:43:59 alarm: unsupported present: yes design capacity: 1297 mAh last full capacity: 12304 mAh battery technology: rechargeable design voltage: 22570 mV design capacity warning: 0 mAh design capacity low: 0 mAh capacity granularity 1: 1 mAh capacity granularity 2: 1 mAh model number: MS-1719 serial number: battery type: LION OEM info: MSI Corp. present: yes capacity state: ok charging state: charging present rate: 1526 mA remaining capacity: 22022 mAh present voltage: 50985 mV [root@repair-msi ~]# date '+TIME:%H:%M:%S'; cat /proc/acpi/battery/BAT1/* TIME:01:44:01 alarm: unsupported present: no present: yes capacity state: ok charging state: charging present rate: 1526 mA remaining capacity: 22022 mAh present voltage: 50985 mV [root@repair-msi ~]# date '+TIME:%H:%M:%S'; cat /proc/acpi/battery/BAT1/* TIME:01:44:02 present: no present: yes design capacity: 1297 mAh last full capacity: 12304 mAh battery technology: rechargeable design voltage: 22570 mV design capacity warning: 0 mAh design capacity low: 0 mAh capacity granularity 1: 1 mAh capacity granularity 2: 1 mAh model number: MS-1719 serial number: battery type: LION OEM info: MSI Corp. present: yes capacity state: ok charging state: charging present rate: 1526 mA remaining capacity: 5126 mAh present voltage: 50729 mV [root@repair-msi ~]# date '+TIME:%H:%M:%S'; cat /proc/acpi/battery/BAT1/* TIME:01:44:04 alarm: unsupported present: no present: yes capacity state: ok charging state: charged present rate: unknown remaining capacity: unknown present voltage: 10000 mV [root@repair-msi ~]# date '+TIME:%H:%M:%S'; cat /proc/acpi/battery/BAT1/* TIME:01:44:06 alarm: unsupported present: yes design capacity: 1297 mAh last full capacity: 12304 mAh battery technology: rechargeable design voltage: 22570 mV design capacity warning: 0 mAh design capacity low: 0 mAh capacity granularity 1: 1 mAh capacity granularity 2: 1 mAh model number: MS-1719 serial number: battery type: LION OEM info: MSI Corp. present: yes capacity state: ok charging state: discharging present rate: 2527 mA remaining capacity: 1731 mAh present voltage: 10589 mV [root@repair-msi ~]# date '+TIME:%H:%M:%S'; cat /proc/acpi/battery/BAT1/* TIME:01:44:07 alarm: unsupported present: yes design capacity: 1297 mAh last full capacity: 12304 mAh battery technology: rechargeable design voltage: 22570 mV design capacity warning: 0 mAh design capacity low: 0 mAh capacity granularity 1: 1 mAh capacity granularity 2: 1 mAh model number: MS-1719 serial number: battery type: LION OEM info: MSI Corp. present: yes capacity state: ok charging state: discharging present rate: 2519 mA remaining capacity: 1730 mAh present voltage: 10589 mV Created attachment 14364 [details]
Clear return value from space handler
Please check if this patch helps.
Unfortunately, this patch doesn't fix the problem. Please find the result of several consecutive cat /sys/class/power_supply/BAT1/* below. The AC adapter was disconnected all the time. [root@repair-msi ~]# date '+TIME:%H:%M:%S'; cat /sys/class/power_supply/BAT1/* TIME:23:39:10 0 4184000 4400000 -1000 -1000 cat: /sys/class/power_supply/BAT1/device: Is a directory MSI Corp. MS-1719 cat: /sys/class/power_supply/BAT1/power: Is a directory 1 Full cat: /sys/class/power_supply/BAT1/subsystem: Is a directory Unknown Battery POWER_SUPPLY_NAME=BAT1 POWER_SUPPLY_TYPE=Battery POWER_SUPPLY_STATUS=Full POWER_SUPPLY_PRESENT=1 POWER_SUPPLY_TECHNOLOGY=Unknown POWER_SUPPLY_VOLTAGE_MIN_DESIGN=10800000 POWER_SUPPLY_VOLTAGE_NOW=10000000 POWER_SUPPLY_CURRENT_NOW=-1000 POWER_SUPPLY_CHARGE_FULL_DESIGN=4400000 POWER_SUPPLY_CHARGE_FULL=4184000 POWER_SUPPLY_CHARGE_NOW=-1000 POWER_SUPPLY_MODEL_NAME=MS-1719 POWER_SUPPLY_MANUFACTURER=MSI Corp. 10800000 10000000 [root@repair-msi ~]# date '+TIME:%H:%M:%S'; cat /sys/class/power_supply/BAT1/* TIME:23:39:12 0 4184000 4400000 13827000 1523000 cat: /sys/class/power_supply/BAT1/device: Is a directory MSI Corp. MS-1719 cat: /sys/class/power_supply/BAT1/power: Is a directory 1 Charging cat: /sys/class/power_supply/BAT1/subsystem: Is a directory Unknown Battery POWER_SUPPLY_NAME=BAT1 POWER_SUPPLY_TYPE=Battery POWER_SUPPLY_STATUS=Charging POWER_SUPPLY_PRESENT=1 POWER_SUPPLY_TECHNOLOGY=Unknown POWER_SUPPLY_VOLTAGE_MIN_DESIGN=10800000 POWER_SUPPLY_VOLTAGE_NOW=38951000 POWER_SUPPLY_CURRENT_NOW=1523000 POWER_SUPPLY_CHARGE_FULL_DESIGN=4400000 POWER_SUPPLY_CHARGE_FULL=4184000 POWER_SUPPLY_CHARGE_NOW=13827000 POWER_SUPPLY_MODEL_NAME=MS-1719 POWER_SUPPLY_MANUFACTURER=MSI Corp. 10800000 38951000 [root@repair-msi ~]# date '+TIME:%H:%M:%S'; cat /sys/class/power_supply/BAT1/* TIME:23:39:13 0 4184000 4400000 64771000 1524000 cat: /sys/class/power_supply/BAT1/device: Is a directory MSI Corp. MS-1719 cat: /sys/class/power_supply/BAT1/power: Is a directory 1 Charging cat: /sys/class/power_supply/BAT1/subsystem: Is a directory Unknown Battery POWER_SUPPLY_NAME=BAT1 POWER_SUPPLY_TYPE=Battery POWER_SUPPLY_STATUS=Charging POWER_SUPPLY_PRESENT=1 POWER_SUPPLY_TECHNOLOGY=Unknown POWER_SUPPLY_VOLTAGE_MIN_DESIGN=10800000 POWER_SUPPLY_VOLTAGE_NOW=38696000 POWER_SUPPLY_CURRENT_NOW=1524000 POWER_SUPPLY_CHARGE_FULL_DESIGN=4400000 POWER_SUPPLY_CHARGE_FULL=4184000 POWER_SUPPLY_CHARGE_NOW=64771000 POWER_SUPPLY_MODEL_NAME=MS-1719 POWER_SUPPLY_MANUFACTURER=MSI Corp. 10800000 38696000 [root@repair-msi ~]# date '+TIME:%H:%M:%S'; cat /sys/class/power_supply/BAT1/* TIME:23:39:15 0 4184000 4400000 -1000 -1000 cat: /sys/class/power_supply/BAT1/device: Is a directory MSI Corp. MS-1719 cat: /sys/class/power_supply/BAT1/power: Is a directory 1 Full cat: /sys/class/power_supply/BAT1/subsystem: Is a directory Unknown Battery POWER_SUPPLY_NAME=BAT1 POWER_SUPPLY_TYPE=Battery POWER_SUPPLY_STATUS=Full POWER_SUPPLY_PRESENT=1 POWER_SUPPLY_TECHNOLOGY=Unknown POWER_SUPPLY_VOLTAGE_MIN_DESIGN=10800000 POWER_SUPPLY_VOLTAGE_NOW=10000000 POWER_SUPPLY_CURRENT_NOW=-1000 POWER_SUPPLY_CHARGE_FULL_DESIGN=4400000 POWER_SUPPLY_CHARGE_FULL=4184000 POWER_SUPPLY_CHARGE_NOW=-1000 POWER_SUPPLY_MODEL_NAME=MS-1719 POWER_SUPPLY_MANUFACTURER=MSI Corp. 10800000 10000000 [root@repair-msi ~]# date '+TIME:%H:%M:%S'; cat /sys/class/power_supply/BAT1/* TIME:23:39:17 0 4184000 4400000 35843000 1525000 cat: /sys/class/power_supply/BAT1/device: Is a directory MSI Corp. MS-1719 cat: /sys/class/power_supply/BAT1/power: Is a directory 1 Charging cat: /sys/class/power_supply/BAT1/subsystem: Is a directory Unknown Battery POWER_SUPPLY_NAME=BAT1 POWER_SUPPLY_TYPE=Battery POWER_SUPPLY_STATUS=Charging POWER_SUPPLY_PRESENT=1 POWER_SUPPLY_TECHNOLOGY=Unknown POWER_SUPPLY_VOLTAGE_MIN_DESIGN=10800000 POWER_SUPPLY_VOLTAGE_NOW=38184000 POWER_SUPPLY_CURRENT_NOW=1525000 POWER_SUPPLY_CHARGE_FULL_DESIGN=4400000 POWER_SUPPLY_CHARGE_FULL=4184000 POWER_SUPPLY_CHARGE_NOW=35843000 POWER_SUPPLY_MODEL_NAME=MS-1719 POWER_SUPPLY_MANUFACTURER=MSI Corp. 10800000 38184000 [root@repair-msi ~]# date '+TIME:%H:%M:%S'; cat /sys/class/power_supply/BAT1/* TIME:23:39:20 0 4184000 4400000 -1000 -1000 cat: /sys/class/power_supply/BAT1/device: Is a directory MSI Corp. MS-1719 cat: /sys/class/power_supply/BAT1/power: Is a directory 1 Full cat: /sys/class/power_supply/BAT1/subsystem: Is a directory Unknown Battery POWER_SUPPLY_NAME=BAT1 POWER_SUPPLY_TYPE=Battery POWER_SUPPLY_STATUS=Full POWER_SUPPLY_PRESENT=1 POWER_SUPPLY_TECHNOLOGY=Unknown POWER_SUPPLY_VOLTAGE_MIN_DESIGN=10800000 POWER_SUPPLY_VOLTAGE_NOW=10000000 POWER_SUPPLY_CURRENT_NOW=-1000 POWER_SUPPLY_CHARGE_FULL_DESIGN=4400000 POWER_SUPPLY_CHARGE_FULL=4184000 POWER_SUPPLY_CHARGE_NOW=-1000 POWER_SUPPLY_MODEL_NAME=MS-1719 POWER_SUPPLY_MANUFACTURER=MSI Corp. 10800000 10000000 [root@repair-msi ~]# date '+TIME:%H:%M:%S'; cat /sys/class/power_supply/BAT1/* TIME:23:39:22 0 4184000 4400000 18947000 1518000 cat: /sys/class/power_supply/BAT1/device: Is a directory MSI Corp. MS-1719 cat: /sys/class/power_supply/BAT1/power: Is a directory 1 Charging cat: /sys/class/power_supply/BAT1/subsystem: Is a directory Unknown Battery POWER_SUPPLY_NAME=BAT1 POWER_SUPPLY_TYPE=Battery POWER_SUPPLY_STATUS=Charging POWER_SUPPLY_PRESENT=1 POWER_SUPPLY_TECHNOLOGY=Unknown POWER_SUPPLY_VOLTAGE_MIN_DESIGN=10800000 POWER_SUPPLY_VOLTAGE_NOW=36903000 POWER_SUPPLY_CURRENT_NOW=1518000 POWER_SUPPLY_CHARGE_FULL_DESIGN=4400000 POWER_SUPPLY_CHARGE_FULL=4184000 POWER_SUPPLY_CHARGE_NOW=18947000 POWER_SUPPLY_MODEL_NAME=MS-1719 POWER_SUPPLY_MANUFACTURER=MSI Corp. 10800000 36903000 Sometimes /sys/class/power_supply/BAT1 spontaneously disappears at all. Created attachment 14370 [details]
patch #2
Please check if this patch improves situation...
I applied the patch to 2.6.24-rc7. The behavior of power meter has changed. It was correct, but sometimes (several times per hour) the battery info disappeared: cat /proc/acpi/battery/BAT1/* present: no present: no present: no In one or two minutes after disappearing, battery info appeared again and indicated correct values. Ok, with this patch we essentially revert patch from #4980... So, it will require long and careful testing. Here people discussing about the same problem: https://bugs.launchpad.net/ubuntu/+source/linux-source-2.6.22/+bug/147560 I am testing the patch from Comment#12 more than one week. Sometimes battery info randomly disappears in both /proc/acpi/battery/BAT1/* and /sys/class/power_supply/. It can return back spontaneously in 1-60 minutes. But when the battery info exists it shows the correct values. Could you try to comment out acpi_ec_burst_disable()? I commented out acpi_ec_burst_disable() but unfortunately, there was no visible changes. Hi, Malashenko Will you please try the debug patch in comment #4 of bug 9823 and attach the output? Thanks. patch in comment #12 shipped in Linux-2.6.24-rc22 as two patches: commit b3b233c7d948a5f55185fb5a1b248157b948a1e5 Author: Alexey Starikovskiy <astarikovskiy@suse.de> Date: Fri Jan 11 02:42:57 2008 +0300 ACPI: EC: Some hardware requires burst mode to operate properly Burst mode temporary (50 ms) locks EC to do only transactions with driver, without it some hardware returns abstract garbage. commit 3e71a87d03055de0b8c8e42aba758ee6494af083 Author: Alexey Starikovskiy <astarikovskiy@suse.de> Date: Fri Jan 11 02:42:51 2008 +0300 ACPI: EC: Do the byte access with a fast path Specification allows only byte access for EC region, so make it separate from bug-compatible multi-byte access. Also do not allow return of garbage in supplied *value. So it looks like battery information on these systems is now correct when available, but its availability is intermitant. So we'll keep the report open to address that issue. Hi! It looks like the hint from here: http://ubuntuforums.org/showpost.php?p=4843977&postcount=143 fixes the problem. After the changes the battery info is now stable on my MSI GX700. Could you show the resulting patch? I'm lost in their "remove this code ... add this code..."... Created attachment 16748 [details]
ec patch
I applied the patch. Maybe there is something wrong but it works.
Can someone try the three debug patches in http://bugzilla.kernel.org/show_bug.cgi?id=11141#c11,14,16 and see whether the problem still exists? After the test, please attach the output of dmesg, cat /proc/acpi/battery/BAT1/*. Thanks. One laptop in this bug is also MSI GX700, which is the same as that in bug 9823. IMO this bug can also be closed or marked as the duplicated bug of bug 9823 as the bug 9823 can be fixed by the debug patch in http://bugzilla.kernel.org/show_bug.cgi?id=9823#c53. Of course it will be better if someone can try the debug patch mentioned in comment #24. Thanks. yakui, can we mark this closed? The laptop of bug reporter is the same as that in bug 9823. As the bug 9823 can be fixed by the patch in http://bugzilla.kernel.org/show_bug.cgi?id=9823#c53, IMO this bug can be closed. Thanks. |