How to power off Android on Pine64
#1
Hi,

Apologies for asking a low level question, but I can't find any way to stop Android on the Pine 64 other than just killing the power.

All 'normal' android devices have a power button - and there seems to be no way to do a clean power off without one - the problem occurs in many android forums from users with phones/tablets with broken power buttons.

Is there any obvious way to do this without soldering a power button onto the board or finding some solution via rooting the installation?

John.
#2
I think I found my own answer - the best solution is adding the power button - the Pine 64 board has circuitry/mounting holes for two buttons - power and reset (might be good to use different colours) - may as well solder both at the same time.
#3
You are correct.

... also be advised that a short 'click' on the power button puts the unit to sleep , for which atm there is no recovery except reset or power pull. Always use a long push -- click the power button and 'hold' it until the power-off dialogue appears.
marcushh777    Cool

please join us for a chat @  irc.pine64.xyz:6667   or ssl  irc.pine64.xyz:6697

( I regret that I am not able to respond to personal messages;  let's meet on irc! )
#4
Will look. Maybe we can fix that.
#5
I use the on off button on my airmouse
#6
(09-15-2016, 02:30 PM)Boring Wrote: I use the on off button on my airmouse

Yes, the on off button on the openhour IR controller works also... to power off, but not to power on.
marcushh777    Cool

please join us for a chat @  irc.pine64.xyz:6667   or ssl  irc.pine64.xyz:6697

( I regret that I am not able to respond to personal messages;  let's meet on irc! )
#7
Although, on the "Android 5.1.1 Image (HDMI Video Output) Release 20160711", my pine64+ 1G does come out of standby in response to both the power button being pressed, and a key on the keyboard being pressed. I'll upload the videos tonight and link them in tomorrow.

(09-15-2016, 11:27 AM)MarkHaysHarris777 Wrote: You are correct.

... also be advised that a short 'click' on the power button puts the unit to sleep , for which atm there is no recovery except reset or power pull.  Always use a long push -- click the power button and 'hold' it until the power-off dialogue appears.
#8
I have the power button now, but before I put it on I had found an app called "Power Off" which did the trick. It does require root though.
#9
So here are two videos which show that the pine64+ 1GB can wake up from a short press sleep/standby on android with either a press to the bower button (just like with your typical tablet) or with a press to a key on the keyboard (which also supports TL Lim's comment on this in another thread). I'll re-iterate that this is with the "Android 5.1.1 Image (HDMI Video Output) Release 20160711" 8GB DD image, and was the non-rooted version IIRC. 

Also, although the power button wakes my board up almost every time, there was one occasion when it would NOT wake up form sleep (and my USB power meter readings didn't change at all, indicating it was not responding at all). So it is not 100%.. more like 99% reliable for me so far Wink

Pine64+ Android Power Button wake-from-sleep

Pine64+ Android Keyboard wake-from-sleep
#10
My AirMouse doesn't have a PowerOn/Off button, thus after some digging in PlayStore, I settled down on a small app called "Assistive Touch".

Basically it emulates a floating button on screen with configuration shortcuts. If you had used iOS, it looks very familiar.
The shortcut menu it triggered can have Power option, where it simulates the Power Button action.

Many similar apps requires ROOT, this one doesn't.


Possibly Related Threads…
Thread Author Replies Views Last Post
  Android 6.0 Tablet and TV (release candidate, maintained) ayufan 228 381,878 12-29-2020, 01:13 AM
Last Post: firmwarefile
Shocked Remote for Android? liodra 18 29,172 12-23-2020, 06:11 AM
Last Post: Learnincurve
  Adding an accelerometer to Android modsbyus 11 16,533 11-02-2020, 08:12 PM
Last Post: Little_Johnny
  Android Things OS dqvsra 2 6,870 12-03-2019, 09:52 AM
Last Post: hangglider
  Is there another link for Android images? Maalth 3 6,937 10-10-2019, 07:57 AM
Last Post: tophneal
Question Android SDK Oreo NGC6691 2 5,522 07-15-2019, 08:29 PM
Last Post: dazza5000
  Putting Android 9 RockPro64 source into easier to manage repositories dazza5000 0 3,291 07-15-2019, 08:29 PM
Last Post: dazza5000
  Android 5.1.1 TV (old-stable, no longer maintained) ayufan 194 253,880 03-12-2019, 04:53 PM
Last Post: neosapien
  Issues with SD Card and Running Android Twistedx 0 3,495 02-26-2019, 11:58 AM
Last Post: Twistedx
  Android 7.1 (PINE A64(+)) pineadmin 59 103,815 02-10-2019, 07:44 PM
Last Post: mmmarcus

Forum Jump:


Users browsing this thread: 1 Guest(s)