Settings to remove power-off confirmation / dialogue

2,189 views
Skip to first unread message

kwok

unread,
Dec 4, 2010, 1:23:49 PM12/4/10
to Android-x86
Hi Chih-Wei,

Below patch added to new settings:
http://dl.dropbox.com/u/10672391/Android/power_off_settings.zip

1. Settings > Android-x86 settings > Disable power off confirmation
When checked, no confirmation is required during power-off selection

2. Settings > Android-x86 settings > Remove power off dialogue
when checked, the whole power-off dialogue will not be shown.
Thus, system will go to power directly after long press of the power-
off button.

If found useful, please apply the patch to the repository.

Thanks,
Kwok

Yi Sun

unread,
Dec 4, 2010, 2:14:11 PM12/4/10
to andro...@googlegroups.com
Why do we need to disable this power off confirmation?
Yi

> --
> 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.
>
>

--
Android-x86
http://www.android-x86.org

^_^

unread,
Dec 4, 2010, 3:56:30 PM12/4/10
to Android-x86
in a carpc with intelligent psu could be very useful, thanks kwok!

Yi Sun

unread,
Dec 4, 2010, 5:46:04 PM12/4/10
to andro...@googlegroups.com
What is an intelligent psu? How it behaves in a car?
Yi

kwok

unread,
Dec 4, 2010, 5:59:38 PM12/4/10
to Android-x86
Currently to power off, you need to:
1. Long press power button;
2. Select "power off"
3. Select "yes"

With the 'confirmation' setting, you can skip step 3.

With the 'remove dialog' setting, you can skip last 2 steps.

Thus, you can power off quicker ;)

Yi Sun

unread,
Dec 4, 2010, 7:22:50 PM12/4/10
to andro...@googlegroups.com
OK, thanks

Yi

kwok

unread,
Dec 12, 2010, 5:14:38 AM12/12/10
to Android-x86
Hi,

Could any one (who has commit privilege) apply this patch to the
froyo branch?

I think that some other people would like this feature as well.

Thanks,
Kwok

Chih-Wei Huang

unread,
Dec 13, 2010, 10:23:46 PM12/13/10
to andro...@googlegroups.com
Hi Kwok,
Sorry for reply late.

Just got some time to read your patches.
In 0001-Added-Android-x86-preference-for-power-off-dialog-an.patch,
you called it AndroidX86Settings,
I think that's not appropriate.
I hope to avoid more "android-x86 specific" changes.

Your patches is not really android-x86 specific.
So can you just name it like PowerSettings or so?


2010/12/12 kwok <kwok...@live.nl>:


> Could any one (who has commit privilege)  apply  this patch to the
> froyo branch?
>
> I think that some other people would like this feature as well.
>

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

kwok

unread,
Dec 14, 2010, 4:55:18 AM12/14/10
to Android-x86
Hi Chih-Wei,

Thanks for reviewing the patch.
Yes, these are not android-x86 specific changes. Need to change the
name.

Originally I included these settings change in an existing
'Preferences group'.
On the other hand I realized that I shouldn't make too many changes in
existing codes.
Also, I might want to add more settings (e.g. setting for screen/mouse
rotation) later.
Therefore I decided to introduce a new 'Preferences group' and put the
new settings inside this group.
This will simplify future changes.

I propose to use the name "More settings" (as the group supposed not
to be power-related solely in the future).

Please let me know what you think?

Thanks,
Kwok

On Dec 14, 4:23 am, Chih-Wei Huang <cwhu...@android-x86.org> wrote:
> Hi Kwok,
> Sorry for reply late.
>
> Just got some time to read your patches.
> In 0001-Added-Android-x86-preference-for-power-off-dialog-an.patch,
> you called it AndroidX86Settings,
> I think that's not appropriate.
> I hope to avoid more "android-x86 specific" changes.
>
> Your patches is not really android-x86 specific.
> So can you just name it like PowerSettings or so?
>
> 2010/12/12 kwok <kwok.w...@live.nl>:

Chih-Wei Huang

unread,
Dec 14, 2010, 5:07:38 AM12/14/10
to andro...@googlegroups.com
2010/12/14 kwok <kwok...@live.nl>:

> Thanks for reviewing the patch.
> Yes, these are not android-x86 specific changes. Need to change the
> name.
>
> Originally I included these settings change in an existing
> 'Preferences group'.
> On the other hand I realized that I shouldn't make too many changes in
> existing codes.
> Also, I might want to add more settings (e.g. setting for screen/mouse
> rotation) later.
> Therefore I decided to introduce a new 'Preferences group' and put the
> new settings inside this group.
> This will simplify future changes.
>
> I propose to use the name "More settings" (as the group supposed not
> to be power-related solely in the future).
>
> Please let me know what you think?

Sounds better. But where is it?

Al Sutton

unread,
Dec 14, 2010, 5:08:59 AM12/14/10
to andro...@googlegroups.com
How about "Advanced Settings" instead?

That usually keeps users from fiddling too much :).

Al.

kwok

unread,
Dec 14, 2010, 6:40:57 AM12/14/10
to Android-x86
It is just above the "About phone" preference group in the Settings.

On Dec 14, 11:07 am, Chih-Wei Huang <cwhu...@android-x86.org> wrote:
> 2010/12/14 kwok <kwok.w...@live.nl>:

kwok

unread,
Dec 14, 2010, 3:22:48 PM12/14/10
to Android-x86
Hi Chih-Wei,

Here is the new patch: http://dl.dropbox.com/u/10672391/Android/AdvancedSetting.zip

"Android-x86 Settings" is renamed to "Advanced Settings"

Thanks,
Kwok

Chih-Wei Huang

unread,
Dec 16, 2010, 3:57:22 AM12/16/10
to andro...@googlegroups.com
2010/12/15 kwok <kwok...@live.nl>:

>
> Here is the new patch: http://dl.dropbox.com/u/10672391/Android/AdvancedSetting.zip
> "Android-x86 Settings" is renamed to "Advanced Settings"

Thank you for the updates.

* Please merge the two changes in Settings app.
You can use git commit --amend to modify previous commit.

* In res/values/strings.xml of Settings app, you moved
'Disable showing screen lock' to <!-- Advanced settings -->.
Any reason to do that? It didn't belongs to the advanced settings.
Please do not touch unrelated part to avoid review overheads.
If you hope to change it, it should belong to another commit.

Chih-Wei Huang

unread,
Dec 16, 2010, 4:08:03 AM12/16/10
to andro...@googlegroups.com
Besides, could you disable the confirmation
of reboot item as well?

Maybe rename 'Disable power off confirmation'
to 'Disable power off/reboot confirmation'.

2010/12/16 Chih-Wei Huang <cwh...@android-x86.org>:


> 2010/12/15 kwok <kwok...@live.nl>:
>>
>> Here is the new patch: http://dl.dropbox.com/u/10672391/Android/AdvancedSetting.zip
>> "Android-x86 Settings" is renamed to "Advanced Settings"

kwok

unread,
Dec 16, 2010, 10:33:25 AM12/16/10
to Android-x86
The only reason is to keep all changes for the Android-x86 in one
place.

On Dec 16, 9:57 am, Chih-Wei Huang <cwhu...@android-x86.org> wrote:
> 2010/12/15 kwok <kwok.w...@live.nl>:

kwok

unread,
Dec 16, 2010, 10:35:25 AM12/16/10
to Android-x86
Sure, I will look at how I can do that for the reboot part.

Maybe you could apply the current patch in the mean time.


On Dec 16, 10:08 am, Chih-Wei Huang <cwhu...@android-x86.org> wrote:
> Besides, could you disable the confirmation
> of reboot item as well?
>
> Maybe rename 'Disable power off confirmation'
> to 'Disable power off/reboot confirmation'.
>
> 2010/12/16 Chih-Wei Huang <cwhu...@android-x86.org>:
>
> > 2010/12/15 kwok <kwok.w...@live.nl>:

Chih-Wei Huang

unread,
Dec 20, 2010, 4:04:18 AM12/20/10
to andro...@googlegroups.com
2010/12/16 kwok <kwok...@live.nl>:

> Sure, I will look at how I can do that for the reboot part.
> Maybe you could apply the current patch in the mean time.

Ok, applied (with some modifications)
Thank you for the contributions.

kwok

unread,
Dec 21, 2010, 7:47:40 AM12/21/10
to Android-x86
And here is the reboot part of the patch: http://dl.dropbox.com/u/10672391/Android/reboot.zip

Thanks,
Kwok

On Dec 20, 10:04 am, Chih-Wei Huang <cwhu...@android-x86.org> wrote:
> 2010/12/16 kwok <kwok.w...@live.nl>:

Chih-Wei Huang

unread,
Dec 30, 2010, 9:28:46 PM12/30/10
to andro...@googlegroups.com
Applied. Thanks.

2010/12/21 kwok <kwok...@live.nl>:


> And here is the reboot part of the patch: http://dl.dropbox.com/u/10672391/Android/reboot.zip
>

--

Din Assegaf

unread,
Jun 26, 2019, 6:16:45 AM6/26/19
to Android-x86


On Friday, 31 December 2010 09:28:46 UTC+7, Chih-Wei Huang wrote:
Applied. Thanks.

2010/12/21 kwok <kwok...@live.nl>:
> And here is the reboot part of the patch: http://dl.dropbox.com/u/10672391/Android/reboot.zip
>



I am sorry resuming old thread,
I am looking of this file or information how to disable Confirmation Dialog on Press Power Button when powering off machine, disable power off confirmation also used on receive ACPI Shutdown event (like in virtualbox/emulator), anybody ?

 
Reply all
Reply to author
Forward
0 new messages