W3C home > Mailing lists > Public > public-device-apis@w3.org > August 2012

Re: Next step for DAP Ambient Light Events

From: Marcos Caceres <w3c@marcosc.com>
Date: Tue, 28 Aug 2012 15:09:26 +0100
To: Doug Turner <dougt@mozilla.com>
Cc: "Tab Atkins Jr." <jackalmage@gmail.com>, www-style@w3.org, public-device-apis@w3.org, Daniel Glazman <daniel.glazman@disruptive-innovations.com>, Dzung D Tran <dzung.d.tran@intel.com>
Message-ID: <F34769A444034E3BBE6851B342F5585B@marcosc.com>


On Tuesday, 28 August 2012 at 03:28, Marcos Caceres wrote:

>  
> On Tuesday, 28 August 2012 at 03:09, Doug Turner wrote:
>  
> > The data in this report is not consistent with what Tab or I reported wrt the Galaxy Nexus. F.E., putting a flashlight 1 inch from the sensor only generated what this report terms "Cloudy Outdoors". Maybe this is just a bad sensor in this device, or something else we are not considering.
>  
> Maybe related - or at least something to consider (particularly if the light sensor can be covered by a finger or by the persons head):
> http://www.displaymate.com/AutoBrightness_Controls_2.htm
>  
> "...In a smartphone the light sensor is facing your head and is measuring the brightness of your face instead of the ambient light level that is behind and to either side of the phone, which is what actually sets your eye’s light sensitivity and what should be determining the brightness level of the screen."
>  

Just to be clear: the problem is that a screen is dynamically adjusting to lighting conditions…  this might be problematic for a web app if it's also simultaneously trying adjust to a given lighting condition without knowing how bright the screen is. A solution might be to allow the stylesheet or API to provide a way to query and potentially adjust the screen brightness (though that might conflict with the user's brightness preferences: I certainly don't want a web page to automatically adjust to 100% when I'm reading from my phone when I first wake up… ouch!)… so asking for permission to change the brightness is important.   

A real-world example I have seen on the iPhone is Eventbrite, which needs to put the brightness level to 100% to allow bar codes to be scanned in bright environments. Without adjusting the brightness, it's sometimes not possible to scan the bar codes.  

HTH,
Marcos  

--  
Marcos Caceres
http://datadriven.com.au
Received on Tuesday, 28 August 2012 14:10:09 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 28 August 2012 14:10:09 GMT