-
-
Notifications
You must be signed in to change notification settings - Fork 40.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature : Backlight - New option : BACKLIGHT_CAPS_LOCK #4769
Feature : Backlight - New option : BACKLIGHT_CAPS_LOCK #4769
Conversation
b19e8bb
to
f022a0d
Compare
f022a0d
to
62cce8f
Compare
Hello @drashna, |
38e2234
to
336bf48
Compare
I've implemented this feature because S65-X doesn't have LED indicators and the existing led_set_kb(usb_led) function try to use backlight as indicator but that creates an inconsistency with backlight_config state. - define `BACKLIGHT_CAPS_LOCK_INDICATOR` to enable Caps Lock indicator using backlight (for keyboards without dedicated LED) - Don't turn off LED indicators when suspend because backlight is already turned off. Else led_set(0) will turn back on backlight. - Documentation has been updated
…ps Lock if BACKLIGHT_CAPS_LOCK_INDICATOR
4f482df
to
8a55889
Compare
This feature would be quite useful to me. I haven't had the chance to test this on a real board yet, but at first glance the changes look okay (though I don't think I've considered all the edge cases). |
* [BACKLIGHT_CAPS_LOCK_INDICATOR] Use backlight toggling as Caps Lock LED I've implemented this feature because S65-X doesn't have LED indicators and the existing led_set_kb(usb_led) function try to use backlight as indicator but that creates an inconsistency with backlight_config state. - define `BACKLIGHT_CAPS_LOCK_INDICATOR` to enable Caps Lock indicator using backlight (for keyboards without dedicated LED) - Don't turn off LED indicators when suspend because backlight is already turned off. Else led_set(0) will turn back on backlight. - Documentation has been updated * [BACKLIGHT_CAPS_LOCK_INDICATOR] Turn off all LED indicators except Caps Lock if BACKLIGHT_CAPS_LOCK_INDICATOR * [BACKLIGHT_CAPS_LOCK] Rename BACKLIGHT_CAPS_LOCK_INDICATOR * [BACKLIGHT_CAPS_LOCK] Use new IS_LED_ON method
* [BACKLIGHT_CAPS_LOCK_INDICATOR] Use backlight toggling as Caps Lock LED I've implemented this feature because S65-X doesn't have LED indicators and the existing led_set_kb(usb_led) function try to use backlight as indicator but that creates an inconsistency with backlight_config state. - define `BACKLIGHT_CAPS_LOCK_INDICATOR` to enable Caps Lock indicator using backlight (for keyboards without dedicated LED) - Don't turn off LED indicators when suspend because backlight is already turned off. Else led_set(0) will turn back on backlight. - Documentation has been updated * [BACKLIGHT_CAPS_LOCK_INDICATOR] Turn off all LED indicators except Caps Lock if BACKLIGHT_CAPS_LOCK_INDICATOR * [BACKLIGHT_CAPS_LOCK] Rename BACKLIGHT_CAPS_LOCK_INDICATOR * [BACKLIGHT_CAPS_LOCK] Use new IS_LED_ON method
Does anybody know why it's backward for me? The led is lit up when caps lock is off and led is turned off when caps lock is on? I've tried toggling caps locks with the keyboard unplugged and it consistently exhibits the same behavior |
Description
I've implemented this new option in backlight feature because my keyboard (S65-X) doesn't have LED indicators and the existing led_set_kb(usb_led) function try to use backlight as Caps Lock indicator but that creates an inconsistency with backlight_config state. Another bug, when suspending the power, the backlight stays on instead of turning off.
BACKLIGHT_CAPS_LOCK
to enable Caps Lock indicator using backlight (for keyboards without dedicated LED). Default state : Not defined.Types of changes
Issues Fixed or Closed by this PR
Checklist: