poliva / lightum

MacBook automatic light sensor daemon
GNU General Public License v2.0
96 stars 29 forks source link

don't work in dark rooms #17

Open clausmuus opened 12 years ago

clausmuus commented 12 years ago

I use a MBA 5.1 and have a problem in dark rooms. If there is to less light in the room, lightum don't work correct. It seems, that the sensor detects the screen light, that reflects by the user who sit before the Mac. So the sensor detects a bright room and rise the screen light. In the next step, the sensor detects more light and rise the light again. In the result I get a very bright display. A second problem occur, if there is only a little light in the room. In this case the brightness switch continually between two steps.

Do you see a change to fix this?

Claus

poliva commented 12 years ago

You can change the minbacklight / maxbacklight parameters in the configuration file, if you put a smaller range there will be less steps and you'll experience less switches between steps.

If you don't want to change the min/max backlight values, you can also increase the MAXLV define (lightum.c line 30) to control hysteresis.