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

Issue 817725 link

Starred by 1 user

Issue metadata

Status: WontFix
Owner: ----
Closed: Mar 2018
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Mac
Pri: 2
Type: Bug



Sign in to add a comment

Light sensor doesn't works on macbooks with touchbar

Reported by ivan.p.v...@gmail.com, Mar 1 2018

Issue description

UserAgent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/64.0.3282.186 Safari/537.36

Steps to reproduce the problem:
1. sensor = new AmbientLightSensor()
2. sensor.state === "errored"// => true

What is the expected behavior?
returns correct light sensor value

What went wrong?
Looks like Apple changed API for getting the light sensor for MacBooks with touchbar. 
I did some debugging and looks like chromium using something similar to perform fetching light sensor values https://bugzilla.mozilla.org/attachment.cgi?id=664102&action=edit

but looks like there a no `AppleLMUController` on Macbooks with touchbar anymore. So we need to find a proper solution to fetch data on new macs. 

here is some references to debug: https://github.com/Exelord/dark-mode/issues/3

Any ideas?

Did this work before? No 

Chrome version: 64.0.3282.186  Channel: stable
OS Version: OS X 10.13.3
Flash Version: 

-component:Blink>Sensor
 
and looks like there are no public way to get this data now https://forums.developer.apple.com/message/292695#292695

Comment 2 by lgrey@chromium.org, Mar 1 2018

Cc: alexis.m...@intel.com
Components: Blink>Sensor
[mac triage]
+ alexis.menard@intel.com who wrote the original code.
Status: WontFix (was: Unconfirmed)
Support for the Ambient Light Sensor on Apple laptops uses an undocumented API that appears to be unsupported on the new Macbook Pro with Touchbar.

See this issue from another project: https://github.com/Hammerspoon/hammerspoon/issues/1673

Unless Apple provides a supported API for accessing the system's ambient light sensor or someone figures out a new undocumented method of reading the device on this platform this cannot not be fixed.
:lol: I'd open this issue ;)

Sign in to add a comment