[Bug 865980] New: Dual Battery Laptop: Bat1 is drained before Bat0 and system suspends if Bat1 is empty
https://bugzilla.novell.com/show_bug.cgi?id=865980 https://bugzilla.novell.com/show_bug.cgi?id=865980#c0 Summary: Dual Battery Laptop: Bat1 is drained before Bat0 and system suspends if Bat1 is empty Classification: openSUSE Product: openSUSE 13.1 Version: Final Platform: Other OS/Version: Other Status: NEW Severity: Major Priority: P5 - None Component: Kernel AssignedTo: kernel-maintainers@forge.provo.novell.com ReportedBy: joschibrauchle@gmx.de QAContact: qa-bugs@suse.de Found By: --- Blocker: --- User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:27.0) Gecko/20100101 Firefox/27.0 On a Lenovo Thinkpad T440s there are two batteries installed: mo-thinkpad01:/proc/acpi/battery # cat BAT0/info present: yes design capacity: 23200 mWh last full capacity: 23200 mWh battery technology: rechargeable design voltage: 11100 mV design capacity warning: 1160 mWh design capacity low: 200 mWh cycle count: 0 capacity granularity 1: 1 mWh capacity granularity 2: 1 mWh model number: 45N1111 serial number: 12294 battery type: LiP OEM info: SONY mo-thinkpad01:/proc/acpi/battery # cat BAT1/info present: yes design capacity: 23480 mWh last full capacity: 23450 mWh battery technology: rechargeable design voltage: 11400 mV design capacity warning: 1172 mWh design capacity low: 200 mWh cycle count: 0 capacity granularity 1: 1 mWh capacity granularity 2: 1 mWh model number: 45N1127 serial number: 4696 battery type: LION OEM info: LGC Unfortunately, the system drains the BAT1 first: mo-thinkpad01:/proc/acpi/battery # cat BAT0/state present: yes capacity state: ok charging state: charged present rate: 0 mW remaining capacity: 23200 mWh present voltage: 12483 mV mo-thinkpad01:/proc/acpi/battery # cat BAT1/state present: yes capacity state: ok charging state: discharging present rate: 7103 mW remaining capacity: 21920 mWh present voltage: 12418 mV This results in the problem that KDE powermanagement will display a "battery critical" message an perform a hibernate operation as soon as BAT1 reaches the critical level, although BAT0 is still FULLY CHARGED! The system thus only has half of the possible battery life! Reproducible: Always Steps to Reproduce: 1. Use Lenovo T440s with two batteries in battery mode 2. Wait for BAT1 to drain before BAT0 3. Actual Results: System uses BAT1 before BAT0. Thus, "Battery critical" warning and action occurs it BAT1 is empty, although BAT0 is still fully charged Expected Results: System should drain BAT0 before BAT1. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=865980 https://bugzilla.novell.com/show_bug.cgi?id=865980#c Joschi Brauchle <joschibrauchle@gmx.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Priority|P5 - None |P2 - High Severity|Major |Normal -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=865980 https://bugzilla.novell.com/show_bug.cgi?id=865980#c1 Joschi Brauchle <joschibrauchle@gmx.de> changed: What |Removed |Added ---------------------------------------------------------------------------- See Also| |https://bugs.kde.org/show_b | |ug.cgi?id=253453 --- Comment #1 from Joschi Brauchle <joschibrauchle@gmx.de> 2014-02-27 09:22:32 UTC --- I have attached a bugreport from KDE, but I'm assuming this is not a KDE problem but rather the kernel using the wrong battery first? Please change Component if this is a KDE problem. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
From this point of view it does seem to be a problem of the KDE
https://bugzilla.novell.com/show_bug.cgi?id=865980 https://bugzilla.novell.com/show_bug.cgi?id=865980#c2 Joschi Brauchle <joschibrauchle@gmx.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Component|Kernel |KDE4 Workspace AssignedTo|kernel-maintainers@forge.pr |kde-maintainers@suse.de |ovo.novell.com | --- Comment #2 from Joschi Brauchle <joschibrauchle@gmx.de> 2014-02-27 09:49:47 UTC --- Some more details: BAT0 is the builtin and not removable battery (front). BAT1 is the optional and removable battery (rear). Logically it is reasonable to drain BAT1 first, as this leaves the laptop running when changing or removing the optional battery (as BAT0 is still charged). powermanagement, which only considers BAT1 for its runtime calculations and battery state warning. I am thus changing the Component to KDE. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=865980 https://bugzilla.novell.com/show_bug.cgi?id=865980#c3 Joschi Brauchle <joschibrauchle@gmx.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Component|KDE4 Workspace |Basesystem AssignedTo|kde-maintainers@suse.de |bnc-team-screening@forge.pr | |ovo.novell.com Summary|Dual Battery Laptop: Bat1 |UPower on Dual Battery |is drained before Bat0 and |Laptop: Battery lifetime |system suspends if Bat1 is |only available for |empty |batteries being discharged --- Comment #3 from Joschi Brauchle <joschibrauchle@gmx.de> 2014-02-28 09:42:01 UTC --- It turns out that this is *not purely* a KDE problem. KDE only grabs the "time-to-empty" details from upower per battery. Unfortunately, upower 0.9.x only provides "time-to-empty" for the particular battery in use, but not for ALL power sources combines, see: mo-thinkpad01:~ # upower -i /org/freedesktop/UPower/devices/battery_BAT0 .. battery <NO "time to empty" available as battery is not discharged> mo-thinkpad01:~ # upower -i /org/freedesktop/UPower/devices/battery_BAT1 .. battery As a result, KDE is unable to get a combined battery lifetime. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=865980 https://bugzilla.novell.com/show_bug.cgi?id=865980#c4 --- Comment #4 from Joschi Brauchle <joschibrauchle@gmx.de> 2014-02-28 13:55:36 UTC --- Please see https://git.reviewboard.kde.org/r/116481/ A patch is attached there. There is a fixed package for openSUSE 13.1 and x86_64 available at http://download.opensuse.org/repositories/home:/lnt-sysadmin:/branches:/open... This was tested on an Thinkpad T440s with - two batteries and - one battery installed. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=865980 https://bugzilla.novell.com/show_bug.cgi?id=865980#c Xiyuan Liu <xyliu@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |xyliu@suse.com AssignedTo|bnc-team-screening@forge.pr |kernel-maintainers@forge.pr |ovo.novell.com |ovo.novell.com -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=865980 https://bugzilla.novell.com/show_bug.cgi?id=865980#c5 Takashi Iwai <tiwai@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |tiwai@suse.com Component|Basesystem |KDE4 Workspace AssignedTo|kernel-maintainers@forge.pr |kde-maintainers@suse.de |ovo.novell.com | --- Comment #5 from Takashi Iwai <tiwai@suse.com> 2014-03-11 16:00:54 UTC --- As its can be worked around in KDE side, let's reassign to component to KDE. Care to submit the fixed package to openSUSE:13.1:Update? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=865980 https://bugzilla.novell.com/show_bug.cgi?id=865980#c6 Hrvoje Senjan <hrvoje.senjan@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |NEEDINFO CC| |hrvoje.senjan@gmail.com InfoProvider| |joschibrauchle@gmx.de --- Comment #6 from Hrvoje Senjan <hrvoje.senjan@gmail.com> 2014-03-12 00:00:35 UTC --- @Joschi, please submit the patch to KDE:Release:411 project, which serves as a 'maintenance base' for 13.1 updates. We have anyway 4.11.7 kde-workspace update pending for submission. Thanks! -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com