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
  Case for Pinephone totilele 13 6,855 04-11-2024, 11:48 AM
Last Post: gramonyl
  keyboard case charging but not typing new2pinephone 18 5,463 02-19-2024, 07:30 AM
Last Post: theResonant
  Keyboard doesn't charge my phone no matter what, so can I charge my phone directly ragreenburg 3 7,394 01-14-2024, 03:34 PM
Last Post: acid andy
  PinePhone Dock with laptop? Mikey1977Y2J 2 581 12-12-2023, 05:43 PM
Last Post: Mikey1977Y2J
  I've added an I2C connector to the PP keyboard eugenr 0 392 11-26-2023, 07:24 AM
Last Post: eugenr
  Update the PinePhone keyboard driver to support missing characters? Peter Gamma 8 8,031 10-22-2023, 08:43 PM
Last Post: Peter Gamma
  key repeat with pinephone keyboard rotwang 0 424 10-22-2023, 03:39 PM
Last Post: rotwang
Exclamation USB mouse isn't working when a PP keyboard is attached? mikeb 3 1,169 10-21-2023, 08:21 PM
Last Post: Peter Gamma
  Pinephone with mini keyboard, trackpad and large power bank? Peter Gamma 0 487 10-21-2023, 07:50 AM
Last Post: Peter Gamma
  Which mini keyboard and mouse to choose for the PP? Peter Gamma 0 590 10-21-2023, 02:55 AM
Last Post: Peter Gamma

Forum Jump:


Users browsing this thread: 1 Guest(s)