Light sensor doesn't works on macbooks with touchbar
Reported by
ivan.p.v...@gmail.com,
Mar 1 2018
|
|||
Issue descriptionUserAgent: 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
,
Mar 1 2018
[mac triage] + alexis.menard@intel.com who wrote the original code.
,
Mar 1 2018
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.
,
Mar 2 2018
:lol: I'd open this issue ;) |
|||
►
Sign in to add a comment |
|||
Comment 1 by ivan.p.v...@gmail.com
, Mar 1 2018