linux icon indicating copy to clipboard operation
linux copied to clipboard

Toshiba Laptop battery 0% problem

Open noobandnothing opened this issue 1 year ago • 7 comments

Hello bro, Thanks for your kernel ,I always use it. Excuse me, My laptop always show 0% battery . This issue happens with all distro

I tried much but I failed . To be honest (I) , I tracked issue and found that issue started with kernel 4.15 (It was working until 4.14.X). I knew from trying all old ubuntu distro , I found that it was working with 16.04.6 (with kernel 4.4)and issue started with 16.04.7(with kernel 4.15) . I tried all version until I found that issue happens with 4.15 or higher (until now).

dmesg-4.4.x.txt dmesg-4.15.x.txt 5.18.15-xanmod1.txt

Screenshot_20220802_221113 Screenshot_20220802_221125

noobandnothing avatar Aug 02 '22 20:08 noobandnothing

Have you tried with a recent distribution?

Recent kernel versions should be supported with current Debian and Ubuntu LTS distributions. Apparently this problem is due to the outdated linux-firmware package.

xanmod avatar Aug 02 '22 20:08 xanmod

I am using last Kubuntu 22.04 with latest kernel ,also I made sure that latest linux-firmware package is installed. Also I tried with ubuntu ,debian , fedora,archlinux , All has the issue (0% battery perentage) Screenshot_20220802_224717 Screenshot_20220802_225108 Screenshot_20220802_225252 .

noobandnothing avatar Aug 02 '22 20:08 noobandnothing

I found this possible solution in several forums.

  1. Try adding this kernel parameter in /etc/default/grub: GRUB_CMDLINE_LINUX_DEFAULT="quiet splash acpi=copy_dsdt"
  2. sudo update-grub
  3. reboot

Ref. https://www.linuxquestions.org/questions/slackware-14/battery-detection-issue-acpi-878227/

xanmod avatar Aug 02 '22 21:08 xanmod

Thanks bro for replying ,Unfortunately it is not fixed ! IDK if Changes which were added in 4.15 caused this issue until now ! https://kernelnewbies.org/Linux_4.15

noobandnothing avatar Aug 02 '22 22:08 noobandnothing

Try: acpi_osi=Linux acpi_osi=! acpi_osi=Windows

xanmod avatar Aug 02 '22 22:08 xanmod

Tried to put 3 props in GRUB_CMDLINE_LINUX_DEFAULT (one by one ) but unfortunately it is not fixed !

noobandnothing avatar Aug 03 '22 06:08 noobandnothing

Copy here upower -i /org/freedesktop/UPower/devices/battery_BAT0 output

xanmod avatar Aug 07 '22 21:08 xanmod

Without Charger : upower -i /org/freedesktop/UPower/devices/battery_BAT0 native-path: BAT0 vendor: TKBSS model: NS2P3SZMC4WR power supply: yes updated: Fri 12 Aug 2022 11:14:18 PM EET (88 seconds ago) has history: yes has statistics: yes battery present: yes rechargeable: yes state: empty 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 charge-cycles: N/A percentage: 0% capacity: 100% technology: lithium-ion icon-name: 'battery-empty-symbolic'

With charger :

upower -i /org/freedesktop/UPower/devices/battery_BAT0 native-path: BAT0 vendor: TKBSS model: NS2P3SZMC4WR power supply: yes updated: Fri 12 Aug 2022 11:16:38 PM EET (1 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 charge-cycles: N/A percentage: 0% capacity: 100% technology: lithium-ion icon-name: 'battery-caution-charging-symbolic'

noobandnothing avatar Aug 12 '22 21:08 noobandnothing

I found this : https://linux-hardware.org/?probe=14ac6c1f51&log=upower

Same battery model and it doesn't have this issue ! then something else should be the cause.

noobandnothing avatar Aug 19 '22 08:08 noobandnothing

hello pro I found the cause : It is if statment was added in 4.19.86 kernel https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/diff/drivers/acpi/acpica/evregion.c?id=v4.19.86&id2=v4.19.85

noobandnothing avatar Sep 20 '22 18:09 noobandnothing

I tried to remove it , Thanks God battery is working now . 0001-Bypass-for-fixing-Toshiba-battery.patch.txt

Do you see any better solution if yes please add it to xanmod kernel ?

Screenshot_20220920_205916

noobandnothing avatar Sep 20 '22 18:09 noobandnothing

ok issue relates to ACPI_ADR_SPACE_SYSTEM_MEMORY , idk how ! here is patch 0001-ACPI-Bypass-for-my-toshiba-power-issue.patch.txt

noobandnothing avatar Sep 21 '22 08:09 noobandnothing