Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(43)

Issue 2651313004: chromeos: Avoid shutdown for delayed power button events. (Closed)

Created:
3 years, 10 months ago by Daniel Erat
Modified:
3 years, 10 months ago
Reviewers:
Qiang(Joe) Xu
CC:
chromium-reviews, kalyank, sadrul, oshima+watch_chromium.org, derat+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

chromeos: Avoid shutdown for delayed power button events. powerd makes blocking D-Bus calls to Chrome to turn the display on or off. When a power-button-down event turns the display on, this can result in the corresponding power-button-up event being delayed, which can then cause the system to be shut down prematurely. As a hopefully low-risk workaround for this, make TabletPowerButtonController wait 2000 (rather than 500) milliseconds before starting the shutdown animation if the screen was off when the power button was pressed. BUG=685734 Review-Url: https://codereview.chromium.org/2651313004 Cr-Commit-Position: refs/heads/master@{#446832} Committed: https://chromium.googlesource.com/chromium/src/+/97f83d816742eef5677384925fd92d10eaa7dc9a

Patch Set 1 #

Patch Set 2 : switch to two seconds #

Unified diffs Side-by-side diffs Delta from patch set Stats (+13 lines, -5 lines) Patch
M ash/system/chromeos/power/tablet_power_button_controller.cc View 1 2 chunks +13 lines, -5 lines 0 comments Download

Messages

Total messages: 17 (10 generated)
Daniel Erat
3 years, 10 months ago (2017-01-27 20:14:09 UTC) #3
Qiang(Joe) Xu
On 2017/01/27 20:14:09, Daniel Erat wrote: This is a good workaround. Helps fix for crbug.com/685734. ...
3 years, 10 months ago (2017-01-27 20:33:58 UTC) #5
Daniel Erat
On 2017/01/27 20:33:58, Qiang(Joe) Xu wrote: > On 2017/01/27 20:14:09, Daniel Erat wrote: > > ...
3 years, 10 months ago (2017-01-27 21:12:21 UTC) #8
Qiang(Joe) Xu
On 2017/01/27 21:12:21, Daniel Erat wrote: > On 2017/01/27 20:33:58, Qiang(Joe) Xu wrote: > > ...
3 years, 10 months ago (2017-01-27 22:35:08 UTC) #9
Daniel Erat
thanks again! i've switched it to two seconds.
3 years, 10 months ago (2017-01-27 22:59:01 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2651313004/20001
3 years, 10 months ago (2017-01-27 22:59:48 UTC) #14
commit-bot: I haz the power
3 years, 10 months ago (2017-01-27 23:43:42 UTC) #17
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/chromium/src/+/97f83d816742eef5677384925fd9...

Powered by Google App Engine
This is Rietveld 408576698