Aliendalvik restart stalls until phone wakeup
Step to reproduce on my Jolla C:
- Press the power button to power off the display (I have no device lock code set)
- SSH into the phone, as root.
- Type
systemctl restart aliendalvik
.
Expected:
- The command completes almost immediately and restarts the Android layer.
Observed:
- The command stalls indefinitely (does nothing and does not terminate).
- If I Press the power button once more to wake up the phone, now the command terminates and I get the command prompt again.
This seems unusual. If I restart some other service, for instance bluetooth
, the command completes immediately.
I stumbled upon this behavior while looking for workarounds for Whatsapp messages arriving late and the web client web.whatsapp.com not working -- it seems that restarting the Android layer "wakes up" the Whatsapp app.
Does the same happen if the display is on? It could be that your cpu is underclocked and all commands are slow.
bomo ( 2016-11-21 14:58:59 +0200 )edit@bomo No, the command takes under a second to complete when the display is on.
Federico ( 2016-11-21 15:00:22 +0200 )editBut that's what i just wanted to say. If your screen is off then the cpu is running on a lower frequency and thus slower (to save power). it's not a bug but a feature.
bomo ( 2016-11-21 15:23:57 +0200 )edit