Bug 207333 - BATTERY INDICATOR DOESN'T WORK - TOSHIBA SATELLITE C855-155
Summary: BATTERY INDICATOR DOESN'T WORK - TOSHIBA SATELLITE C855-155
Status: CLOSED INSUFFICIENT_DATA
Alias: None
Product: ACPI
Classification: Unclassified
Component: Power-Battery (show other bugs)
Hardware: All Linux
: P1 high
Assignee: Zhang Rui
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-04-17 21:54 UTC by benjamin
Modified: 2021-06-03 03:05 UTC (History)
1 user (show)

See Also:
Kernel Version: 5.3.0-46-generic
Subsystem:
Regression: No
Bisected commit-id:


Attachments
screenshot (39.81 KB, image/png)
2020-04-17 21:54 UTC, benjamin
Details

Description benjamin 2020-04-17 21:54:24 UTC
Created attachment 288577 [details]
screenshot

Hello, i have TOSHIBA SATELLITE C855-155 and i have Linux Mint 19.3 tricia
on my system. My battery indicator seems as %0 when it's plugged to charger. When it's not plugged in, battery indicator says "It's empty".

My hardware info:

  ****upower -i /org/freedesktop/UPower/devices/battery_BAT0***


  native-path:          BAT0
  vendor:               TKBSS
  model:                NS2P3SZMC4WR
  power supply:         yes
  updated:              Sat 18 Apr 2020 12:47:21 AM +03 (93 seconds ago)
  has history:          yes
  has statistics:       yes
  battery
    present:             yes
    rechargeable:        yes
    state:               charging
    warning-level:       none
    energy:              0 Wh
    energy-empty:        0 Wh
    energy-full:         88,8 Wh
    energy-full-design:  88,8 Wh
    energy-rate:         0 W
    percentage:          0%
    capacity:            100%
    technology:          lithium-ion
    icon-name:          'battery-caution-charging-symbolic'



----



****acpi -V****



Battery 0: Unknown, 0%, rate information unavailable
Battery 0: design capacity 6000 mAh, last full capacity 6000 mAh = 100%
Adapter 0: on-line
Thermal 0: ok, 60.0 degrees C
Thermal 0: trip point 0 switches to mode critical at temperature 125.0 degrees C
Thermal 0: trip point 1 switches to mode passive at temperature 105.0 degrees C
Cooling 0: Processor 0 of 3
Cooling 1: Processor 0 of 3
Cooling 2: x86_pkg_temp no state information available
Cooling 3: Processor 0 of 3
Cooling 4: intel_powerclamp no state information available
Cooling 5: Processor 0 of 3



----
Comment 1 Zhang Rui 2020-06-30 06:32:54 UTC
please attach the acpidump output.
and please attach the output of "grep . /sys/class/power_supply/*/*" both with AC connected and disconnected.
Comment 2 benjamin 2020-07-01 16:57:35 UTC
Hi,



///
"acpidump":

Could not open table file: /sys/firmware/acpi/tables/SSDT4
Could not get ACPI tables, AE_ACCESS



///

AC CONNECTED 

grep . /sys/class/power_supply/*/*


grep: /sys/class/power_supply/AC0/device: Is a directory
grep: /sys/class/power_supply/AC0/hwmon0: Is a directory
/sys/class/power_supply/AC0/online:1
grep: /sys/class/power_supply/AC0/power: Is a directory
grep: /sys/class/power_supply/AC0/subsystem: Is a directory
/sys/class/power_supply/AC0/type:Mains
/sys/class/power_supply/AC0/uevent:POWER_SUPPLY_NAME=AC0
/sys/class/power_supply/AC0/uevent:POWER_SUPPLY_ONLINE=1
grep: /sys/class/power_supply/AC0/wakeup18: Is a directory
/sys/class/power_supply/BAT0/alarm:0
grep: /sys/class/power_supply/BAT0/capacity: No such device
/sys/class/power_supply/BAT0/capacity_level:Normal
/sys/class/power_supply/BAT0/charge_full:6000000
/sys/class/power_supply/BAT0/charge_full_design:6000000
grep: /sys/class/power_supply/BAT0/charge_now: No such device
grep: /sys/class/power_supply/BAT0/current_now: No such device
/sys/class/power_supply/BAT0/cycle_count:0
grep: /sys/class/power_supply/BAT0/device: Is a directory
grep: /sys/class/power_supply/BAT0/hwmon2: Is a directory
/sys/class/power_supply/BAT0/manufacturer:TKBSS
/sys/class/power_supply/BAT0/model_name:NS2P3SZMC4WR
grep: /sys/class/power_supply/BAT0/power: Is a directory
/sys/class/power_supply/BAT0/present:1
/sys/class/power_supply/BAT0/serial_number:  
/sys/class/power_supply/BAT0/status:Unknown
grep: /sys/class/power_supply/BAT0/subsystem: Is a directory
/sys/class/power_supply/BAT0/technology:Li-ion
/sys/class/power_supply/BAT0/type:Battery
/sys/class/power_supply/BAT0/uevent:POWER_SUPPLY_NAME=BAT0
/sys/class/power_supply/BAT0/uevent:POWER_SUPPLY_STATUS=Unknown
/sys/class/power_supply/BAT0/uevent:POWER_SUPPLY_PRESENT=1
/sys/class/power_supply/BAT0/uevent:POWER_SUPPLY_TECHNOLOGY=Li-ion
/sys/class/power_supply/BAT0/uevent:POWER_SUPPLY_CYCLE_COUNT=0
/sys/class/power_supply/BAT0/uevent:POWER_SUPPLY_VOLTAGE_MIN_DESIGN=14800000
/sys/class/power_supply/BAT0/uevent:POWER_SUPPLY_CHARGE_FULL_DESIGN=6000000
/sys/class/power_supply/BAT0/uevent:POWER_SUPPLY_CHARGE_FULL=6000000
/sys/class/power_supply/BAT0/uevent:POWER_SUPPLY_CAPACITY_LEVEL=Normal
/sys/class/power_supply/BAT0/uevent:POWER_SUPPLY_MODEL_NAME=NS2P3SZMC4WR
/sys/class/power_supply/BAT0/uevent:POWER_SUPPLY_MANUFACTURER=TKBSS
/sys/class/power_supply/BAT0/uevent:POWER_SUPPLY_SERIAL_NUMBER=  
/sys/class/power_supply/BAT0/voltage_min_design:14800000
grep: /sys/class/power_supply/BAT0/voltage_now: No such device


///


AC DISCONNECTED


grep: /sys/class/power_supply/AC0/device: Is a directory
grep: /sys/class/power_supply/AC0/hwmon0: Is a directory
/sys/class/power_supply/AC0/online:0
grep: /sys/class/power_supply/AC0/power: Is a directory
grep: /sys/class/power_supply/AC0/subsystem: Is a directory
/sys/class/power_supply/AC0/type:Mains
/sys/class/power_supply/AC0/uevent:POWER_SUPPLY_NAME=AC0
/sys/class/power_supply/AC0/uevent:POWER_SUPPLY_ONLINE=0
grep: /sys/class/power_supply/AC0/wakeup18: Is a directory
/sys/class/power_supply/BAT0/alarm:0
grep: /sys/class/power_supply/BAT0/capacity: No such device
/sys/class/power_supply/BAT0/capacity_level:Normal
/sys/class/power_supply/BAT0/charge_full:6000000
/sys/class/power_supply/BAT0/charge_full_design:6000000
grep: /sys/class/power_supply/BAT0/charge_now: No such device
grep: /sys/class/power_supply/BAT0/current_now: No such device
/sys/class/power_supply/BAT0/cycle_count:0
grep: /sys/class/power_supply/BAT0/device: Is a directory
grep: /sys/class/power_supply/BAT0/hwmon2: Is a directory
/sys/class/power_supply/BAT0/manufacturer:TKBSS
/sys/class/power_supply/BAT0/model_name:NS2P3SZMC4WR
grep: /sys/class/power_supply/BAT0/power: Is a directory
/sys/class/power_supply/BAT0/present:1
/sys/class/power_supply/BAT0/serial_number:  
/sys/class/power_supply/BAT0/status:Unknown
grep: /sys/class/power_supply/BAT0/subsystem: Is a directory
/sys/class/power_supply/BAT0/technology:Li-ion
/sys/class/power_supply/BAT0/type:Battery
/sys/class/power_supply/BAT0/uevent:POWER_SUPPLY_NAME=BAT0
/sys/class/power_supply/BAT0/uevent:POWER_SUPPLY_STATUS=Unknown
/sys/class/power_supply/BAT0/uevent:POWER_SUPPLY_PRESENT=1
/sys/class/power_supply/BAT0/uevent:POWER_SUPPLY_TECHNOLOGY=Li-ion
/sys/class/power_supply/BAT0/uevent:POWER_SUPPLY_CYCLE_COUNT=0
/sys/class/power_supply/BAT0/uevent:POWER_SUPPLY_VOLTAGE_MIN_DESIGN=14800000
/sys/class/power_supply/BAT0/uevent:POWER_SUPPLY_CHARGE_FULL_DESIGN=6000000
/sys/class/power_supply/BAT0/uevent:POWER_SUPPLY_CHARGE_FULL=6000000
/sys/class/power_supply/BAT0/uevent:POWER_SUPPLY_CAPACITY_LEVEL=Normal
/sys/class/power_supply/BAT0/uevent:POWER_SUPPLY_MODEL_NAME=NS2P3SZMC4WR
/sys/class/power_supply/BAT0/uevent:POWER_SUPPLY_MANUFACTURER=TKBSS
/sys/class/power_supply/BAT0/uevent:POWER_SUPPLY_SERIAL_NUMBER=  
/sys/class/power_supply/BAT0/voltage_min_design:14800000
grep: /sys/class/power_supply/BAT0/voltage_now: No such device



///


Thanks.
Comment 3 benjamin 2020-07-02 06:41:09 UTC
In addition, maybe it may be helpful. I realized that when i was using Debian 10 (it's kernel version was 4.19 //last year), my battery indicator was working without problem.
Comment 4 benjamin 2020-10-27 18:03:00 UTC
i can help if the more information is needed.
thanks.
Comment 5 Zhang Rui 2020-11-19 11:37:27 UTC
(In reply to benjamin from comment #3)
> In addition, maybe it may be helpful. I realized that when i was using
> Debian 10 (it's kernel version was 4.19 //last year), my battery indicator
> was working without problem.

First please check if the problem still exists with latest upstream kernel.

As this is probably a kernel regression, please check if the problem exists or not with vanilla 4.19 kernel.
If the problem does not exist with upstream 4.19 kernel and exist with latest upstream kernel, please run git bisect to find out which commit introduces this regression.
Comment 6 benjamin 2020-12-30 13:39:31 UTC
Hi, sorry for late responding.



uname -a output // Debian 10 (first release)

Linux debian 4.19.0-5-amd64 #1 SMP Debian 4.19.37-5 (2019-06-19) x86_64 GNU/Linux



uname -a output //Debian 10 (up-to-date)

Linux debian 4.19.0-13-amd64 #1 SMP Debian 4.19.160-2 (2020-11-28) x86_64 GNU/Linux


-

I tried and this are the results:

In Debian 10's first release on 2019 my battery indicator worked without problem.

In Debian 10's last release, i have battery indicator problem anyway.

Now, i have debian 10's last up-to-date release version on my computer. 

I run git bisect on my terminal and output is:

fatal: not a git repository (or any of the parent directories): .git




Before i forget, i see this thing when system is booting. May be helpful.

i.imgur.com/vCcdvnW.jpg
Comment 7 Zhang Rui 2021-03-19 07:34:01 UTC
Hi, Benjamin,
please confirm if the problem exists with latest upstream kernel or not, because we focus on upstream issues only. If the problem does not exists in latest upstream kernel, then this sounds a problem in debian distro kernel, which we can not cover.

BTW, the image URL attached does not work.
Comment 8 Zhang Rui 2021-06-03 03:05:09 UTC
Bug closed as there is no response from the bug reporter.
Please feel free to re-open it if the problem still exists with latest upstream kernel.
And please confirm if this is a duplicate of bug #203563, by applying the patch at https://bugzilla.kernel.org/show_bug.cgi?id=203563#c16 on top of latest upstream kernel.

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