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

Issue 2447273002: [sensors] [mac] Fix ambient light sensor not updating its value when closing the lid with a monitor… (Closed)

Created:
4 years, 1 month ago by darktears
Modified:
4 years, 1 month ago
CC:
chromium-reviews, mac-reviews_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[sensors] [mac] Fix ambient light sensor not updating its value when closing the lid with a monitor connected. Right now we use IOServiceAddInterestNotification with kIOGeneralInterest as a way to get value changes from the AppleLMUController whenever the ambient light condition changes. However when closing the lid rapidly and a monitor is connected (which prevents the computer to go to sleep) we don't receive a notification and callback from the controller the whole way (until the lid is fully closed). It means that the latest value received in JavaScript is not what would be expected : as a developer point of view, lid closed = dark = 0.0 as a lux value. The patch now listen kIOBusyInterest as well because when closing the lid the AppleLMUController sends busy events which we can use to fetch the value of the sensor and report it back in JavaScript. BUG=606766 Committed: https://crrev.com/8fd4ba018ddfebcfc47966eea9ea3a75ed0b5fa0 Cr-Commit-Position: refs/heads/master@{#431046}

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+11 lines, -0 lines) Patch
M device/generic_sensor/platform_sensor_ambient_light_mac.h View 1 chunk +3 lines, -0 lines 0 comments Download
M device/generic_sensor/platform_sensor_ambient_light_mac.cc View 2 chunks +8 lines, -0 lines 0 comments Download

Messages

Total messages: 22 (4 generated)
darktears
Let's discuss the above patch.
4 years, 1 month ago (2016-10-25 22:09:34 UTC) #2
darktears
On 2016/10/25 at 22:09:34, darktears wrote: > Let's discuss the above patch. Any feedback?
4 years, 1 month ago (2016-10-31 16:22:04 UTC) #3
Robert Sesek
Sorry I didn't have time to look at what AppleSMCLMU was doing last week to ...
4 years, 1 month ago (2016-11-01 21:48:31 UTC) #4
darktears
On 2016/11/01 at 21:48:31, rsesek wrote: > Sorry I didn't have time to look at ...
4 years, 1 month ago (2016-11-02 15:33:36 UTC) #5
Robert Sesek
On 2016/11/02 15:33:36, darktears wrote: > On 2016/11/01 at 21:48:31, rsesek wrote: > > Sorry ...
4 years, 1 month ago (2016-11-04 19:23:33 UTC) #6
darktears
On 2016/11/04 at 19:23:33, rsesek wrote: > On 2016/11/02 15:33:36, darktears wrote: > > On ...
4 years, 1 month ago (2016-11-04 21:30:22 UTC) #7
Robert Sesek
On 2016/11/04 21:30:22, darktears wrote: > On 2016/11/04 at 19:23:33, rsesek wrote: > > On ...
4 years, 1 month ago (2016-11-04 21:30:57 UTC) #8
darktears
On 2016/11/04 at 21:30:57, rsesek wrote: > On 2016/11/04 21:30:22, darktears wrote: > > On ...
4 years, 1 month ago (2016-11-07 23:16:33 UTC) #9
Robert Sesek
LGTM
4 years, 1 month ago (2016-11-08 22:56:08 UTC) #10
darktears
timvolodine@chromium.org, reillyg@chromium.org : please review.
4 years, 1 month ago (2016-11-08 23:07:38 UTC) #12
Reilly Grant (use Gerrit)
I am concerned that trying to make a request to the LMU when it is ...
4 years, 1 month ago (2016-11-09 00:34:11 UTC) #13
Reilly Grant (use Gerrit)
On 2016/11/09 at 00:34:11, Reilly Grant wrote: > I am concerned that trying to make ...
4 years, 1 month ago (2016-11-09 00:36:42 UTC) #14
darktears
On 2016/11/09 at 00:36:42, reillyg wrote: > On 2016/11/09 at 00:34:11, Reilly Grant wrote: > ...
4 years, 1 month ago (2016-11-09 19:03:07 UTC) #15
Reilly Grant (use Gerrit)
On 2016/11/09 at 19:03:07, alexis.menard wrote: > On 2016/11/09 at 00:36:42, reillyg wrote: > > ...
4 years, 1 month ago (2016-11-09 19:20:20 UTC) #16
darktears
On 2016/11/09 at 19:20:20, reillyg wrote: > On 2016/11/09 at 19:03:07, alexis.menard wrote: > > ...
4 years, 1 month ago (2016-11-09 20:49:53 UTC) #17
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/2447273002/1
4 years, 1 month ago (2016-11-09 20:54:17 UTC) #19
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years, 1 month ago (2016-11-09 22:03:48 UTC) #20
commit-bot: I haz the power
4 years, 1 month ago (2016-11-09 22:07:09 UTC) #22
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/8fd4ba018ddfebcfc47966eea9ea3a75ed0b5fa0
Cr-Commit-Position: refs/heads/master@{#431046}

Powered by Google App Engine
This is Rietveld 408576698