Il 06/06/2011 15:08, Mattia Dongili ha scritto:
i.e. would it work if you always enable managed mode to receive the ambient light events and just let userpace react for automatic dimming? Also, userspace will intercept key-presses and scale the user requested brightness change to an appropriate value using the current lux values.
sony-acpid is already doing this without listening for key events (we can do that but we miss any other different backlight correction otherwise).
At this point you could have a generic software (modulo the not yet standardized als interface) handling any laptop that has these simpler features.
The small big issue is that not every notebook use the same LCD panel, so, in theory, different calculations are required (and this also the reason why a model specific parameter list is also provided by every Vaio notebook too). A single suboptimal formula for everybody is not likely to provide satisfactory results.
the question was why sending a "user requested to change brightness"-event instead of setting the brightness. The calculation should be done in userspace
...taking into account both the current user/power_saving_sofware/etc. backlight correction level and the ambient light level. We need to forward both informations to userspace otherwise no calculation is possible.
-- To unsubscribe from this list: send the line "unsubscribe platform-driver-x86" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html