How to turn off and wake up display?
#1
Hi there,

each Android device has a few buttons like "Power", "Volume+" and "Volume-".
These buttons (especially "Power") are necessary to control the Android system.

How can we use these buttons for Android on Pine64?

Best regards
Julian
#2
I think that is going to be via gpio but volume it's in the navigation bar look in the the demos videos

It would be nice if we can wake up the display by double touch, like toc toc
And we'll se can put on sleep by double tap on the status bar
By. Zoidiano0!
Installed:
LAMP: Linux , Apache2.4 , Mariadb, phpMyadmin, PHP5 
Java 8 arm by oracle
Netbeans 8.1
chromium (uses way toooo much Ram)

Pine64 Head Unit Project.!
#3
(01-24-2016, 12:24 PM)Zoidiano0 Wrote: It would  be nice if we can wake up the display by double  touch,  like toc toc

Hi Zoidiano0,

I've got a LG G2. This device has a feature called "Knock Code" / "Knock On".
This feature is possible, because the device has it's own processor for this feature.

Of course, that feature is possible without an extra processor too, but it would drain the battery extremely, because the display would be permanently active.

Best regards
Julian
#4
More than That the touch panel is which is always on
But I had that feature on my nexus 7 2012

And no need to config extra things!
Cruz was like a build in feature on cyanogenmod
By. Zoidiano0!
Installed:
LAMP: Linux , Apache2.4 , Mariadb, phpMyadmin, PHP5 
Java 8 arm by oracle
Netbeans 8.1
chromium (uses way toooo much Ram)

Pine64 Head Unit Project.!
#5
Hi Zoidiano0,

there are some apps in Google Play Store to get a "Knock Off" feature, which means you can turn off the screen by double-tap on it.
That's absolutely no problem and don't need any extra processor or battery usage.
This feature has also be implemented into CyanogenMod (since version 11? I don't know exactly).

The main "problem" in your topic is "Knock On".
The device needs an extra processor for this, if the battery should not drain.

But please come back to the main topic.
Feel free to contact me, if you have any questions about Android and Android-running devices Wink

Best regards
Julian
#6
(01-24-2016, 12:09 PM)JulianM Wrote: Hi there,

each Android device has a few buttons like "Power", "Volume+" and "Volume-".
These buttons (especially "Power") are necessary to control the Android system.

How can we use these buttons for Android on Pine64?

Best regards
Julian

Hi Julian,

We have bring out the power and reset button circuit to EXP connector, you can access there. For Volume + and -, you can implement thru GPIO pin or just using on screen control.
#7
Hi tllim!

I'm not very familiar with these features, so, I'm sorry for the following questions!
Will the power button recognize the time of pushing it or does it immediately turning off the board?

I'll explain you what I mean exactly:
- 1 second: Turn off screen.
- 3 seconds push: Power menu.
- 10 seconds (or something else) push: Turn the board immediately off.
The times in seconds are just examples!

Are the Volume+ and Volume- functions via GPIO pins already implemented in your Android image?

Best regards
Julian
#8
(01-24-2016, 02:17 PM)JulianM Wrote: Hi tllim!

I'm not very familiar with these features, so, I'm sorry for the following questions!
Will the power button recognize the time of pushing it or does it immediately turning off the board?

I'll explain you what I mean exactly:
- 1 second: Turn off screen.
- 3 seconds push: Power menu.
- 10 seconds (or something else) push: Turn the board immediately off.
The times in seconds are just examples!

Are the Volume+ and Volume- functions via GPIO pins already implemented in your Android image?

Best regards
Julian
Similar process, just like Android table behave. We didn't implement the volume + and - which can be control thru on screen. I don't want 'hard" fix GPIO pin function and end up become less GPIO pins.
#9
Hey tllim, when is this power and reset button circuit on the store here, or do I just buy it online somewhere, if I do buy it online somewhere, do you have a specific brand or exact product you would recommend?
#10
(01-24-2016, 02:43 PM)T_ech Wrote: Hey tllim, when is this power and reset button circuit on the store here, or do I just buy it online somewhere, if I do buy it online somewhere, do you have a specific brand or exact product you would recommend?

Just a simple two wire push button. Very easy to DIY. We can sell them if somebody interested.


Possibly Related Threads…
Thread Author Replies Views Last Post
  Android 6.0 How to turn the screen back on modsbyus 4 5,382 11-28-2017, 01:03 PM
Last Post: modsbyus
  display problem florianl 6 6,952 06-11-2016, 10:12 AM
Last Post: kiko
  turn off display after inactivity Blindstealer 3 4,815 06-05-2016, 05:18 AM
Last Post: dkryder
Question Wake on LAN (WOL) Tarjei85 2 3,736 05-20-2016, 04:36 PM
Last Post: Tarjei85
  Anyone seeing occasional display stuttering? rakib-hasan 2 3,211 04-29-2016, 05:43 AM
Last Post: tkaiser
  Display too large for TV slamminsalmon 1 2,749 04-04-2016, 10:54 PM
Last Post: arpanj2

Forum Jump:


Users browsing this thread: 1 Guest(s)