Display brightness is controlled by liblights.so (in
android_rootfs/system/lib/hw/)

AFAIK, the automatic-brightness display "feature" is a vendor feature and
not part of standard Android. (i maybe wrong. havent looked into ICS
sources regarding display backlight brightness).

Usually the ambient-light sensor OR the LCD content itself is used to scale
the backlight brightness levels automatically to enhance the effective
dynamic contrast of the display.

Just implementing the ambient light sensor will NOT create the
auto-brightness options in the setting menu.

regards
ChinmayVS



On Wed, Feb 1, 2012 at 8:44 AM, Alvin Wong <[email protected]> wrote:

> Hi,
>
> I think you have to add libsensors to your build. Refer to that of
> other devices and make your own one.
>
> Good luck
> Alvin Wong
>
> On 1月31日, 上午7時02分, abr <[email protected]> wrote:
> > Hi folks,
> >
> > I have a device with an uncommon Ambient Light Sensor I'm just
> implementing
> > a driver for.
> > I have derived it from another on an the kernel recognize it
> > (drivers/internal/.../light something) device created is prompted.
> > Problem is in the the Display Menu there is no AutoBrightness Switch
> like I
> > know from other device.
> > Should it appear once a driver is implemented or do I have to change
> > something in userland?
> >
> > abr
>
> --
> unsubscribe: [email protected]
> website: http://groups.google.com/group/android-porting
>

-- 
unsubscribe: [email protected]
website: http://groups.google.com/group/android-porting

Reply via email to