Skip to content

backlight: fix "handle display brightness keys" setting

The callback for the keyboard brightness keys has its functionality restored, with clarifying comments added to avoid similar mistakes being made by future refactoring efforts.

The functions which return the next brightness level to be used are refactored to ensure the value never decreases below 0 or above the maximum brightness. Calls to these functions are updated accordingly.

Edited by Mark Gallagher

Merge request reports