Skip to content
Snippets Groups Projects
Commit e5ce994b authored by Juan I Carrano's avatar Juan I Carrano Committed by Gaël Bonithon
Browse files

Handle keyboard backlight toggle keys.

Pressing the XF86XK_KbdLightOnOff (kbdillumtoggle) will cycle through
the available brightness levels (it will increase brightness up to the
maximum and then go back to minimum).

If the keyboard has only two states, this behaves as a simple toggle.

The reason for cycling is that it is unlikely that a laptop will have
all three buttons for brightness up, down and toggle. If the machine
has only a toggle button and more than one brightness level, a simple
on/off (or min/max) toggle will not allow to use the intermediate
levels.

Closes: #222
parent 9515a249
No related branches found
No related tags found
1 merge request!61Handle keyboard backlight toggle keys.
Pipeline #26350 passed
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment