Talk:Quartz64 Model A Using a battery

From PINE64
Jump to navigation Jump to search

I can't find the temperature measured by the PTC resistor of my Renata battery. Is the reading of the temperature value available somewhere? If so, could this please also be documented here?

Answer: this has not yet (as of kernel version 6.11.2) been implemented.

Also: the maximum charging current seems to be ignored, I find the following (Armbian 6.6.52 kernel):

root@nas:~# od --endian=big -td4 < /sys/firmware/devicetree/base/battery/constant-charge-current-max-microamp
0000000     1400000
0000004

However:

root@nas:~# cat  /sys/class/power_supply/rk817-battery/constant_charge_current_max 
1000000

Answer: this is a hardware limitation, I have updated the Wiki-page accordingly.

More serious: I am trying to resurrect the PCI-Express bus after switching to battery and then reconnecting the 12V power supply. This does not seem to work. From reading various sources something like

echo 1 > /sys/bus/pci/rescan

But this does not hack it. Without disconnecting the 12V supply it is possible to soft-disconnect the PCIe bus and then recover like so:

root@nas:~# echo 1 > /sys/bus/pci/devices/0000:00:00.0/remove
sleep 5 # or whatever periode
echo 1 > /sys/bus/pci/rescan

Afterwards the PCIe SATA controller card is back again and operational.

However, the rescan command does not recover the SATA controller after switching to battery-powered mode and then switching back to 12V main power supply.