PinePhone Keyboard Doesn't charge?
#21
(01-30-2022, 03:23 PM)VaZso Wrote: This is because phone needs aproximately all of the supplied 500 mA of current to work, so practically it can not really charge the battery if that is the limit while phone needs less energy when it is suspended and it allows battery to charge.

OK so if I understand correctly, the phone battery discharges as the connection between it and the keyboard battery is limited to 500 mA. So even though there is enough juice in the keyboard battery and the keyboard battery is connected to a mains charger the phone battery discharges.

This can easily be tested by running the battery down to a certain level, then sleeping the phone. If there is still sufficient charge in the keyboard battery then while the phone is suspended then the phone battery will be charged by the keyboard battery.

OK I let the PinePhone suspend itself at around 87%. An hour or so later I woke it up an the charge was 92%. The keyboard was not connected to a charger so the only thing that could have charged the phone battery is the keyboard battery. So I guess time to experiment with changing the charging current value.
  Reply
#22
(01-31-2022, 10:09 AM)grump_fiddle_reinstall Wrote: OK so if I understand correctly, the phone battery discharges as the connection between it and the keyboard battery is limited to 500 mA. So even though there is enough juice in the keyboard battery and the keyboard battery is connected to a mains charger the phone battery discharges.

It is not really the connection what limits the current (it is mostly depends on the width of PCB traces) but the USB specification itself.
For an USB 2.0 port, basically a device can draw up to 500 mA of current and not more (otherwise it may cause problems like blowing a fuse or overdrive PSU).

So this is where charging protocols may come up or at least charger should tell the phone somehow if it can provide higher current.

However, keyboard only has five connectors - SDA/SCL/VCC/GND/INT, so basically it can not communicate directly with charging controller.
So that is what can be overridden by the method above, but not for any power sources which can not provide this amount of current.

That means a real solution would be an automatism... I don't know what is the internal schematics of keyboard, so what information of its microcontroller has.
Ideally, it may has some information which may be communicated towards OS.
...or at least OS knows keyboard is attached and if it is, it may set higher current rate when current limit is set to 500 mA.

However, it is also an interesting question what happens if phone's own USB connector is powered but it depends on the circuit(s)... it may has to be handled somehow even if this scenario is not supported... (I hope internal PSU may not overrun this case).
  Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Searching for a PinePhone Keyboard Case RubiksCube 1 599 10-07-2024, 11:08 PM
Last Post: tllim
  Seeking your experiences: PinePhone in snug cases of other phones mycycles 9 5,189 08-16-2024, 06:19 AM
Last Post: 67man
  So which keyboard you suggest for the Pinephone? Peter Gamma 21 4,669 07-19-2024, 08:05 AM
Last Post: Peter Gamma
  Rii mini 4 keyboard and touchpad work over Bluetooth Peter Gamma 0 390 07-19-2024, 08:02 AM
Last Post: Peter Gamma
  Keyboards for the PinePhone? Peter Gamma 1 1,423 07-04-2024, 10:22 PM
Last Post: Peter Gamma
  Bring the Pinephone keyboard back, it is worth it! Peter Gamma 1 754 07-04-2024, 07:32 AM
Last Post: Kevin Kofler
Heart The Pinephone keyboard offers alternative layouts Peter Gamma 0 287 07-04-2024, 05:40 AM
Last Post: Peter Gamma
  Keyboard & 2.4G usb dongle for the Pinephone? Peter Gamma 2 903 06-29-2024, 09:36 PM
Last Post: Peter Gamma
  Bluetooth keyboard with trackpad Zebulon Walton 11 11,202 06-29-2024, 04:09 AM
Last Post: Peter Gamma
  Was someone able to use the Pinephone keyboard & an usb mouse at the same? Peter Gamma 4 2,302 06-26-2024, 07:11 AM
Last Post: dachalife

Forum Jump:


Users browsing this thread: 2 Guest(s)