Auto-wake behavior when external power is connected
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:

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
  Increasing the maximum power draw dsimic 12 4,540 06-11-2021, 10:34 AM
Last Post: dsimic
Question External Monitor not Working sciolus 5 975 05-05-2021, 02:05 AM
Last Post: aurora.borealis
  Alternative Power supply options gallomimia 10 5,192 02-13-2021, 04:36 AM
Last Post: angryminer
Question UK Power Supply Feakster 11 5,486 02-09-2021, 12:30 PM
Last Post: dieselnutjob
  Blinking red light for charger, no power-on bifo 9 1,942 01-07-2021, 07:31 AM
Last Post: dsimic
  Pinebook Pro Dock Power Requirements calinb 9 3,155 12-16-2020, 09:24 AM
Last Post: dsimic
Question Why two power ports on a budget laptop?? gurk 58 23,345 11-26-2020, 02:40 PM
Last Post: dsimic
Question Powering off & won't power back on w/o battery disconnect jimsurvak 5 1,665 11-10-2020, 08:42 PM
Last Post: wdt
  Horrible screen flicker/strobe on battery power mattjb 19 9,255 09-14-2020, 03:19 AM
Last Post: m.bakhterev
  PBP Battery issues. Drainage on load with external accessories WhiteDragon 11 6,321 09-02-2020, 05:42 AM
Last Post: Nora No

Forum Jump:

Users browsing this thread: 2 Guest(s)