Auto-wake behavior when external power is connected
#8
Even better news! Smile

No changes to the RK808 kernel driver are required, simply do the following as root and (un)plugging the charger will no longer wake up a suspended PineBook Pro:

Code:
echo disabled > /sys/devices/platform/dc-charger/power/wakeup

You may also create a sysctl rule and place it in /etc/sysctl.d, to have this configured automatically upon every boot.

Here are more details about the whole ordeal with charger (un)plugging detection.  As already described earlier in this thread, the RK808 PMIC has a very nice built-in feature that senses the charger voltage and generates interrupts upon the charger plug in and plug out events.  However, as visible on page 12 in the PineBook Pro schematicc, there's pretty much no way that anything reaches the RK808's pin #34 (VDC input).  Why would anyone connect capacitors in series with a stabilized DC input?

The ugly fix we're dealing with is that one of the RK3399's GPIO inputs is used for sensing the presence of charger, which makes no sense whatsoever.  That's the "dc-charger" device/node from above, which is just a charger present/absent flag.  This is clearly a bug in the PineBook Pro schematic, and I suppose that it could (and should) be fixed by using a pair of isolation diodes instead of the capacitors.

The proper way, however, is to use the RK808's functionality, instead of abusing a RK3399's GPIO line.  Furthermore, should we start a list of bugs to be fixed in the next PineBook Pro PCB revision?


Messages In This Thread
RE: Auto-wake behavior when external power is connected - by dsimic - 12-05-2020, 01:19 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Pinebook Pro on Debian 12 Power Issue u974615 1 304 03-13-2024, 10:46 AM
Last Post: u974615
  Increasing the maximum power draw dsimic 15 19,390 11-21-2022, 03:36 AM
Last Post: bircoph
  Alternative Power supply options gallomimia 13 17,831 11-13-2022, 06:10 PM
Last Post: pineymousepad
  PBP booting but stops at flashing power led jonasd 13 5,384 09-26-2022, 12:17 AM
Last Post: jonasd
  Blinking red light for charger, no power-on bifo 11 13,679 11-30-2021, 01:37 PM
Last Post: wdt
  power on PBP if your keyboard is dead? stozi 0 1,317 11-29-2021, 01:55 PM
Last Post: stozi
  Motherboard malfunction - a possible warning about power supplies mjc 8 7,054 07-28-2021, 01:04 PM
Last Post: mjc
Question External Monitor not Working sciolus 5 5,019 05-05-2021, 02:05 AM
Last Post: aurora.borealis
Question UK Power Supply User 11436 11 17,392 02-09-2021, 12:30 PM
Last Post: dieselnutjob
  Pinebook Pro Dock Power Requirements calinb 9 12,091 12-16-2020, 09:24 AM
Last Post: dsimic

Forum Jump:


Users browsing this thread: 1 Guest(s)