powerbtnd improvement

196 views
Skip to first unread message

Chih-Wei Huang

unread,
Feb 22, 2012, 12:02:43 AM2/22/12
to Android-x86
Hi,
I've pushed the double-click poweroff feature to ics-x86.
It is controlled by the poweroff.double-click property.

On poweroff.doubleclick=0, one click to power button invokes poweroff
dialog directly.

On poweroff.doubleclick=1, one click to power button suspends the system,
while double click in one second invokes poweroff dialog.

Since suspend doesn't work on all devices, or some devices
are unable to do double-click, the default behavior is
poweroff.doubleclick=0.

See tegav2 as an example for how to enable it.

Thanks to RvdB who first implemented the double-click feature.

--
Chih-Wei
Android-x86 project
http://www.android-x86.org

Ziv Kong

unread,
Feb 22, 2012, 12:38:28 AM2/22/12
to andro...@googlegroups.com
Chih-Wei, I don't have a system that can compile the iso myself. can you please update the ISO with latest update?

Million Thanks

--
You received this message because you are subscribed to the Google Groups "Android-x86" group.
To post to this group, send email to andro...@googlegroups.com.
To unsubscribe from this group, send email to android-x86...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/android-x86?hl=en.




--
Ziv Kong.
De' Vox Talent Management.
Talent Management Agency for company dinner, wedding dinner and musical cafe.

Robill Tian Supatrio

unread,
Feb 22, 2012, 8:37:35 AM2/22/12
to andro...@googlegroups.com
Hi,

why do we need double click for power off dialog? I thought press and hold power button will do just that?

regards,

Robill

Chih-Wei Huang

unread,
Feb 22, 2012, 8:51:06 AM2/22/12
to andro...@googlegroups.com
Most x86 board I have seen
don't support long press of power button.

If your power button support long press,
you don't need powerbtnd.

2012/2/22 Robill Tian Supatrio <rsup...@gmail.com>:

Stefan

unread,
Feb 22, 2012, 6:29:27 PM2/22/12
to andro...@googlegroups.com
Hello,

pressing the powerbutton 4 seconds immedialety powers off the tabelt or
PC by hardware. So a running OS has no chance for a clean shutdown. This
feature was introduced to PC technoloy arround 1996 with the soft power
button for the at that time new ATX mainboard form factor.

powerbtnd does something different from that, in fact it sends a signal
to Android for a clean shutdown. Usually this is the better method for
an OS shutdown.

Stefan

Ooop Yooo

unread,
Feb 22, 2012, 9:32:44 PM2/22/12
to andro...@googlegroups.com
Well, what I did on my old Tablet PC is that with a very short Power Button press, the system resumes after sleep. With a normal Power Button press, the Shutdown function popup as usual, and a long press just power off the hard way.

if by any bad chance, I press the Power Button too long, the Shutdown Popup appears, so just have to click on the cancel button, but got system resumed anyway. ;)


2012/2/23 Stefan <matthaeu...@googlemail.com>
--
You received this message because you are subscribed to the Google Groups "Android-x86" group.
To post to this group, send email to andro...@googlegroups.com.
To unsubscribe from this group, send email to android-x86+unsubscribe@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages