Skip to content

Instantly share code, notes, and snippets.

@mbohun
Created October 14, 2023 08:34
Show Gist options
  • Save mbohun/7d24e6e3e2be7e9f852ee0451e454a80 to your computer and use it in GitHub Desktop.
Save mbohun/7d24e6e3e2be7e9f852ee0451e454a80 to your computer and use it in GitHub Desktop.
PineTab-V stopped charging battery when ON
pinetabv:~$ while true; do echo "`date +%Y-%m-%d_%H:%M`, `cat /sys/class/power_supply/cw2015-battery/capacity`"; sleep 120; done 
2023-10-14_18:29, 39
2023-10-14_18:31, 39
2023-10-14_18:33, 39
2023-10-14_18:35, 39
2023-10-14_18:37, 39
^C
pinetabv:~$ while true; do echo "`date +%Y-%m-%d_%H:%M`, `cat /sys/class/power_supply/cw2015-battery/status`, `cat /sys/cl
ass/power_supply/cw2015-battery/capacity`%"; sleep 120; done 
2023-10-14_18:39, Charging, 39%
2023-10-14_18:41, Charging, 39%
2023-10-14_18:43, Charging, 39%
2023-10-14_18:45, Charging, 39%
2023-10-14_18:47, Charging, 39%
2023-10-14_18:49, Charging, 39%
2023-10-14_18:51, Charging, 39%
2023-10-14_18:53, Charging, 39%
2023-10-14_18:55, Charging, 39%
2023-10-14_18:57, Charging, 39%
2023-10-14_18:59, Charging, 39%
2023-10-14_19:01, Charging, 39%
^C
pinetabv:~$ echo "connected USB-C dock to charging"
connected USB-C dock to charging
pinetabv:~$ 
pinetabv:~$ while true; do echo "`date +%Y-%m-%d_%H:%M`, `cat /sys/class/power_supply/cw2015-battery/status`, `cat /sys/class/power_supply/cw2015-battery/capacity`%"; sleep 120; done 
2023-10-14_19:03, Charging, 39%
2023-10-14_19:05, Charging, 39%
2023-10-14_19:07, Charging, 39%
2023-10-14_19:09, Charging, 39%
2023-10-14_19:11, Charging, 39%
2023-10-14_19:13, Charging, 39%
2023-10-14_19:15, Charging, 39%
2023-10-14_19:17, Charging, 39%
2023-10-14_19:19, Charging, 39%
2023-10-14_19:21, Charging, 39%
2023-10-14_19:23, Charging, 39%
2023-10-14_19:25, Charging, 39%
2023-10-14_19:27, Charging, 39%
2023-10-14_19:29, Charging, 39%
2023-10-14_19:31, Charging, 39%
@Fishwaldo
Copy link

The charging issue is hardware related. The fix is coming in the next revision of the hardware. The /sysfs/ trick just tricks the hardware into high current mode. There is no “fix” in software for the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment