Auto-wake behavior when external power is connected
#1
I've noticed that my Pinebook Pro immediately wakes up from a suspend-to-RAM state whenever external power is connected or disconnected. I find this concerning, because this is approximately the last time I would ever want it to wake from sleep mode automatically - particularly since it does this even if the lid is closed at the time, and it's very hard to tell from the outside if the device is asleep or awake with the lid down.

What will it take to change this? I'm bracing myself for the worst, because I can't imagine the OS is involved at all in wake conditions - hence my posting in the hardware section. Is this something that could be fixed in the firmware with a straightforward method, or is it going to require attaching debugging clips to an IC in there somewhere, or what?

It's puzzling to me how this behavior was established in the first place. Is it affecting other units as well, or is ours somehow a fluke?
  Reply
#2
Just confirmed that our pinebook pro exhibits the same behavior running ayufan's bionic lxde image 0.9.16 using the barrel connector for power.

Also agree that this is sub-optimal.
  Reply
#3
After having dealt with it for a couple days, this behavior is driving me mad. I can't close the lid and then put it on its charger, because connecting the charger immediately wakes it up. I can't unplug it and stuff it into a backpack, either, because that wakes it up too. If the power flickers in the night, it wakes up. If I jostle the cord by accident and it momentarily loses contact, it wakes up. It's kind of absurd.

Can anyone familiar with the hardware tell us more about why this happens, and perhaps how it might be fixed? Keeping my computers asleep until I purposefully wake them is a rather important part of my use of them.
  Reply
#4
If I had to guess, I would say it's the PMIC interrupt from the RK808 that notifies the OS of a power management event:

15.2.5.4 INT_STS_MSK_REG2 : Interrupt Status Register #2
Bit 1 PLUG_OUT_INT_IM: Charger plug out event interrupt mask.
1: Mask the interrupt
0: Do not mask the interrupt
Bit 0 PLUG_IN_INT_IM: Charger plug in event interrupt mask
1: Mask the interrupt
0: Do not mask the interruptk

In normal operation you want to handle those to know that a charger is present, in suspend probably those and other PMIC IRQs should be masked.
The question is, where in the software stack is this handled exactly, ATF or Linux?
Come have a chat in the Pine A64 IRC channel >>
  Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  PBP lines across screen, halts whilst running (prev. will not power on) ajcollins 5 266 Today, 02:30 AM
Last Post: ajcollins
Question UK Power Supply Feakster 7 480 06-24-2020, 05:26 AM
Last Post: rrgmitchell
  Problem with ESP32 connected to USB2. USB3 - seems OK. erikbotta 0 79 06-22-2020, 01:28 PM
Last Post: erikbotta
  Horrible screen flicker/strobe on battery power mattjb 17 1,485 06-16-2020, 02:10 AM
Last Post: cefre00
Question No Power to Pinebook Pro jimsurvak 4 212 05-24-2020, 07:46 AM
Last Post: jimsurvak
  Some power usage results of my Lexar NM520 M.2 2242 256GB NVMe Redbeard 0 365 02-07-2020, 04:42 PM
Last Post: Redbeard
  Alternative Power supply options gallomimia 3 491 01-31-2020, 05:33 AM
Last Post: DrYak
  Power Draw Heuristics 13 1,124 01-28-2020, 03:14 PM
Last Post: xmixahlx
  PBP Battery issues. Drainage on load with external accessories WhiteDragon 10 1,225 01-22-2020, 06:25 AM
Last Post: WhiteDragon
  Wrong resolution on external monitor vfr400racer 2 359 01-11-2020, 04:46 PM
Last Post: regivanx

Forum Jump:


Users browsing this thread: 1 Guest(s)