Is it possible to disable the Touchscreen backlight rate limit?

I am developing an embedded application, and would like to fade the backlight smoothly on and off.

But the rate limit of no more than two backlight brightness changes per second in the firmware prevents fades.



I think this has been addressed in user linusg's rpi-backlight Python library on Github here. They've embedded a short video clip on that page which shows the effect they've achieved - looks like smooth fading to me.

They included a short example on running the code. I think the relevant line is bl.ets_brightness(20, smooth=True, duration=3):

>>> import rpi_backlight as bl
>>> bl.set_brightness(255)
>>> bl.set_brightness(20, smooth=True, duration=3)
>>> bl.get_max_brightness()
>>> bl.get_actual_brightness()
>>> bl.get_power()
>>> bl.set_power(False)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.