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%
@mbohun
Copy link
Author

mbohun commented Jun 16, 2024

Has this been resolved?

I have to double-check with @Fishwaldo - but my understanding is that you can fix/resume normal charging with adjusting some sysfs file; although I am not sure when is fix for that problem going to be officially added to the PineTab-V distro.

@barracuda156
Copy link

@mbohun Thank you for responding. I see.

By the way, could you refer me to how to set up wifi correctly? I recently got PineTab-V with KDE Plasma installed, but while it sees all wifi networks, I cannot make it connect. I also have no idea how to use a LAN connected (I have a USB-C dock with LAN port).

(Sorry for silly questions, I never used Linux in any form. But I want to make this usable to test MacPorts on it.)

@mbohun
Copy link
Author

mbohun commented Jun 16, 2024

@barracuda156 No problem, those are not silly questions.

  • WiFi: in my case I just installed the latest PinIx from https://pine64.my-ho.st:8443/pinetabv-image-plasma-pinetabv-2.1.wic.bz2 and i connected to my WiFi router at home, basically just entered the WiFi password - and i was connected.
  • USB-C docks: IMPORTANT that you plug the USB-C docks into the top USB-C port, the bottom USB-C port on PineTab-V is at the moment only for charging. I usually plug the USB-C dock into PineTab-V BEFORE I boot the tablet, I think I noticed some occasional problem when connecting/disconnecting the dock while the PineTab-V was running.
    • PinePhonePro_dock: I just plugged the PinePhonePro_dock in and it works fine (ethernet, USB ports)
    • KOGAN USB-C dock: i just plugged this one in at it worked fine (ethernet, USB, SD card readers); check the link for chipset info

@barracuda156
Copy link

@mbohun Thank you!

I need to check which version is installed (I purchased it with OS installed already). Do I just clone the extracted image onto the SD card (perhaps dd can be used)? If it is not too complex, I rather re-install the OS afresh even if the version is the latest at the moment.

@mbohun
Copy link
Author

mbohun commented Jun 16, 2024

Yes, normally I just put the new image onto a SD card (with dd) then I boot from the SD card, and then I copy or download that new image again while I am running from the SD card, and dd that image on the eMMC, then I reboot, pull out the SD card, so PineTab-V boots from the eMMC.
Obviously backup your files and data first, before doing a reinstall.

@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