You are not logged in.

#1 2016-09-09 20:57:08

Registered: 2016-09-06
Posts: 15

Toggling keyboard illumination/backlight with Scroll Lock

A problem i've solved for myself but not sure for how long.

On my current keyboard the key illumination is toggled using Scroll Lock and apparently it's not a very special rare case either. From what i've dug up the Xorg/X/X11 display server by default ignores(?) does not register(?) the Scroll Lock key - it's off by default and pressing it has no effect.

I didn't manage to find anything about the specific problem on arch wiki/forums so i just followed these instructions i found by googling.

I used Kate text editor

sudo kate /usr/share/X11/xkb/symbols/us

Ctrl+F to find

xkb_symbols "basic"

and at the end of its sub entries added

modifier_map Mod3 { Scroll_Lock };

And "Reset the XKB layout cache" with

sudo rm -f /var/lib/xkb/*
sudo rm -f /var/lib/lib/xkb/*

I guess a regular pacman -Syu is unlikely to overwrite this and break it but every fresh install still needs a manual Scroll Lock fix.
If anyone has a better solution to this, please do share.


#2 2022-11-23 04:59:31

Jean Rabelo
Registered: 2022-06-24
Posts: 4

Re: Toggling keyboard illumination/backlight with Scroll Lock

I'm sure you might have thought about this "half-solution before", but just make be sure it's cited, here it is:

Appending to the file .xbindkeysrc

The following code:

# Turn on keyboard backlight
"xset led"
    m:0x0 + c:78

# Turn off keyboard backlight
"xset -led"
    m:0x1 + c:78
    Shift + Scroll_Lock

This makes "Scroll Lock" turn the lights on and "Shift + Scroll Lock" turn the lights off.


Board footer

Powered by FluxBB