New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 819276 link

Starred by 24 users

Issue metadata

Status: Fixed
Owner:
Closed: Apr 2018
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Chrome
Pri: 2
Type: Bug



Sign in to add a comment

Power Button: Mode specific power button behavior

Project Member Reported by minch@chromium.org, Mar 6 2018

Issue description

Adding the experimental flag to provide mode-specific power button behavior.

We have device consistency power button behavior currently. EVE is a force-clamshell-power-button device. This make it have the same power button behavior as clamshell devices, which means we can not turn its screen off by tapping the power button.

Mode-specific means we want to make all the devices have the same behavior in the same mode.
e.g,
We can turn the screen off by tapping the power button in tablet mode.
We can not turn the screen off by tapping the power button if the device is in laptop mode.

 

Comment 1 by derat@chromium.org, Mar 9 2018

Cc: mkarkada@chromium.org dhadd...@chromium.org sdantul...@chromium.org sontis@chromium.org
 Issue 820628  has been merged into this issue.

Comment 2 by derat@chromium.org, Mar 26 2018

Components: OS>Kernel>Power UI>Shell>WindowManager
Min, do you think you'll have a chance to add this before the M67 branch on Friday? I'd like us to have some time to experiment with this so we can consider turning it on for eve, because I'm concerned about regressing the UX there otherwise. If you're busy with other things, I can look into adding it this week -- let me know.

Comment 3 by minch@chromium.org, Mar 26 2018

yeah, I am the shadow gardener this week, and I am currently investigating about the cros config of the unibuild devices. Sorry I guess I may don't have time to add the flag this week.

Comment 4 by derat@chromium.org, Mar 26 2018

Owner: derat@chromium.org
Status: Started (was: Assigned)
Thanks, I'll take a look.

Comment 5 by derat@chromium.org, Mar 27 2018

Sent https://crrev.com/c/981607 for review.
Project Member

Comment 6 by bugdroid1@chromium.org, Mar 27 2018

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/9ef89ee744646b7d66922db1dca291963ebf0608

commit 9ef89ee744646b7d66922db1dca291963ebf0608
Author: Daniel Erat <derat@chromium.org>
Date: Tue Mar 27 03:46:46 2018

ash: Add feature for mode-specific power button behavior.

Add a new off-by-default feature that makes the power button
behave slightly differently depending on whether the device
is in tablet mode or laptop mode. Specifically, tapping the
power button turns the display off in tablet mode but does
nothing in laptop mode. Previously, tapping the button
turned the display off on most convertible devices
regardless of their mode.

Bug:  819276 
Change-Id: Iecd2e7aea74132018c3d88c88199e8d733c24fd2
Reviewed-on: https://chromium-review.googlesource.com/981607
Commit-Queue: Dan Erat <derat@chromium.org>
Reviewed-by: Qiang Xu <warx@google.com>
Reviewed-by: Min Chen <minch@chromium.org>
Cr-Commit-Position: refs/heads/master@{#546000}
[modify] https://crrev.com/9ef89ee744646b7d66922db1dca291963ebf0608/ash/public/cpp/ash_features.cc
[modify] https://crrev.com/9ef89ee744646b7d66922db1dca291963ebf0608/ash/public/cpp/ash_features.h
[modify] https://crrev.com/9ef89ee744646b7d66922db1dca291963ebf0608/ash/system/power/power_button_controller.cc
[modify] https://crrev.com/9ef89ee744646b7d66922db1dca291963ebf0608/ash/system/power/power_button_controller.h
[modify] https://crrev.com/9ef89ee744646b7d66922db1dca291963ebf0608/ash/system/power/power_button_controller_test_api.cc
[modify] https://crrev.com/9ef89ee744646b7d66922db1dca291963ebf0608/ash/system/power/power_button_controller_test_api.h
[modify] https://crrev.com/9ef89ee744646b7d66922db1dca291963ebf0608/ash/system/power/power_button_controller_unittest.cc
[modify] https://crrev.com/9ef89ee744646b7d66922db1dca291963ebf0608/ash/system/power/power_button_test_base.cc
[modify] https://crrev.com/9ef89ee744646b7d66922db1dca291963ebf0608/ash/system/power/power_button_test_base.h
[modify] https://crrev.com/9ef89ee744646b7d66922db1dca291963ebf0608/chrome/browser/about_flags.cc
[modify] https://crrev.com/9ef89ee744646b7d66922db1dca291963ebf0608/chrome/browser/flag_descriptions.cc
[modify] https://crrev.com/9ef89ee744646b7d66922db1dca291963ebf0608/chrome/browser/flag_descriptions.h
[modify] https://crrev.com/9ef89ee744646b7d66922db1dca291963ebf0608/tools/metrics/histograms/enums.xml

Comment 7 by derat@chromium.org, Apr 16 2018

I've gotten the go-ahead from UI review to turn this on.
Project Member

Comment 8 by bugdroid1@chromium.org, Apr 17 2018

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/fd33ca87c35e2ee3cdf19629fbd1ee38c2958520

commit fd33ca87c35e2ee3cdf19629fbd1ee38c2958520
Author: Daniel Erat <derat@chromium.org>
Date: Tue Apr 17 19:18:44 2018

chromeos: Enable mode-specific power button behavior.

Enable mode-specific power button behavior by default. In
short, tapping the power button turns the display off on
devices that are in tablet mode but is ignored on devices
that are in laptop mode.

Bug:  819276 ,  783164 
Change-Id: Ic658e034366a32066940c647a73b8c61ecec2840
Reviewed-on: https://chromium-review.googlesource.com/1014486
Commit-Queue: Dan Erat <derat@chromium.org>
Reviewed-by: Min Chen <minch@chromium.org>
Reviewed-by: Qiang Xu <warx@google.com>
Cr-Commit-Position: refs/heads/master@{#551427}
[modify] https://crrev.com/fd33ca87c35e2ee3cdf19629fbd1ee38c2958520/ash/accelerators/accelerator_controller_unittest.cc
[modify] https://crrev.com/fd33ca87c35e2ee3cdf19629fbd1ee38c2958520/ash/lock_screen_action/lock_screen_note_display_state_handler_unittest.cc
[modify] https://crrev.com/fd33ca87c35e2ee3cdf19629fbd1ee38c2958520/ash/public/cpp/ash_features.cc
[modify] https://crrev.com/fd33ca87c35e2ee3cdf19629fbd1ee38c2958520/ash/system/power/power_button_controller_unittest.cc

Comment 9 by derat@chromium.org, Apr 17 2018

Labels: Merge-Request-67
(The merge request is just for the flag flip and unit test updates in #8.)
Sounds like this was fully tested in experiment and verified good to go by switching as default behavior?

Comment 11 by derat@chromium.org, Apr 18 2018

Yes, this has been verified first while it was behind a flag and now on ToT.
Project Member

Comment 12 by sheriffbot@chromium.org, Apr 18 2018

Labels: -Merge-Request-67 Merge-Approved-67 Hotlist-Merge-Approved
Your change meets the bar and is auto-approved for M67. Please go ahead and merge the CL to branch 3396 manually. Please contact milestone owner if you have questions.
Owners: cmasso@(Android), cmasso@(iOS), kbleicher@(ChromeOS), govind@(Desktop)

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
Project Member

Comment 13 by bugdroid1@chromium.org, Apr 18 2018

Labels: -merge-approved-67 merge-merged-3396
The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/9c4acd68284aaedac09e49df38abec5e644c0f96

commit 9c4acd68284aaedac09e49df38abec5e644c0f96
Author: Daniel Erat <derat@chromium.org>
Date: Wed Apr 18 20:15:29 2018

chromeos: Enable mode-specific power button behavior.

Enable mode-specific power button behavior by default. In
short, tapping the power button turns the display off on
devices that are in tablet mode but is ignored on devices
that are in laptop mode.

Bug:  819276 ,  783164 
Change-Id: Ic658e034366a32066940c647a73b8c61ecec2840
Reviewed-on: https://chromium-review.googlesource.com/1014486
Commit-Queue: Dan Erat <derat@chromium.org>
Reviewed-by: Min Chen <minch@chromium.org>
Reviewed-by: Qiang Xu <warx@google.com>
Cr-Original-Commit-Position: refs/heads/master@{#551427}(cherry picked from commit fd33ca87c35e2ee3cdf19629fbd1ee38c2958520)
Reviewed-on: https://chromium-review.googlesource.com/1017662
Reviewed-by: Dan Erat <derat@chromium.org>
Cr-Commit-Position: refs/branch-heads/3396@{#98}
Cr-Branched-From: 9ef2aa869bc7bc0c089e255d698cca6e47d6b038-refs/heads/master@{#550428}
[modify] https://crrev.com/9c4acd68284aaedac09e49df38abec5e644c0f96/ash/accelerators/accelerator_controller_unittest.cc
[modify] https://crrev.com/9c4acd68284aaedac09e49df38abec5e644c0f96/ash/lock_screen_action/lock_screen_note_display_state_handler_unittest.cc
[modify] https://crrev.com/9c4acd68284aaedac09e49df38abec5e644c0f96/ash/public/cpp/ash_features.cc
[modify] https://crrev.com/9c4acd68284aaedac09e49df38abec5e644c0f96/ash/system/power/power_button_controller_unittest.cc

Comment 14 by derat@chromium.org, Apr 18 2018

Status: Fixed (was: Started)
Thanks!

Comment 15 by derat@chromium.org, Apr 27 2018

Labels: -Restrict-View-Google

Comment 16 by derat@chromium.org, Apr 27 2018

 Issue 783164  has been merged into this issue.

Sign in to add a comment