Olimex Support Forum

OLinuXino Android / Linux boards and System On Modules => A13 => Topic started by: jess on November 06, 2013, 07:04:33 PM

Title: PWR_BUT very tricky - why?
Post by: jess on November 06, 2013, 07:04:33 PM
I decided to open a new topic related to Power ON/OFF issues with A13-Olinuxino boards when applying the recommended elsewhere PWR_BUT.

My question is - HOW to reliably shut down the A13 boards?

The recommended use of PWR_BUT does NOT always work. It is hit and miss, sometime you press it and hold for 6 seconds and Android shuts down. Then again, sometime it goes into the "sleep" mode still keeping at least 3.1V alive across the USB. Often when on the batteries it suddenly becomes hard to shut it down via PWR_BUT. Then again, do connect a 12V external power supply and it occasionally (but NOT always) allows you to shut it down again... go figure.

Very very tricky!

Does anybody know how to reliably power down the A13-Olinuxino-WiFi boards so there's NO voltage present on USB ports?
Title: Re: PWR_BUT very tricky - why?
Post by: davidefa on November 06, 2013, 07:32:30 PM
QuoteDoes anybody know how to reliably power down those A13-Olinuxino-WiFI boards

I think you mean using Android 4.0.3 and a lipo battery
Title: Re: PWR_BUT very tricky - why?
Post by: jess on November 06, 2013, 08:22:31 PM
Quote from: davidefa on November 06, 2013, 07:32:30 PM
QuoteDoes anybody know how to reliably power down those A13-Olinuxino-WiFI boards

I think you mean using Android 4.0.3 and a lipo battery

Yes, all the A13 boards have Android 4.0.3 with 8000mAh LiPo batteries.
Title: Re: PWR_BUT very tricky - why?
Post by: JohnS on November 07, 2013, 11:17:53 AM
Chances are the fault lies with part of the software but even if it doesn't you'll need to trace what happens on pressing that button.

I think ALL the relevant code is available so your task will be much easier than having to reverse engineer it :)

John
Title: Re: PWR_BUT very tricky - why?
Post by: jess on November 07, 2013, 08:45:51 PM
@JohnS - Can you be a bit more specific where to search "in ALL relevant code" for the ev.solution?
Is it somewhere in the FEX file, and if yes - where should I start?

Thanks :)
Title: Re: PWR_BUT very tricky - why?
Post by: JohnS on November 08, 2013, 01:21:58 AM
I don't use Android on my board but they released the code so go looking.

John