Keyboard LED's behavior when more than one keyboard is connected
Linux - DesktopThis forum is for the discussion of all Linux Software used in a desktop context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Keyboard LED's behavior when more than one keyboard is connected
Suppose, you have a computer, which does not have any specific nonstandard settings (such as multiseat).
If two or more keyboards are attached to the same machine (laptop with ext keyboard is common usecase), while the input is focused on a text entry (browser text area on a forum, text editor, terminal emulator or TTY), and you press one of keys which normally both change input mode and have a LED, indicating the current input mode, such as: Caps Lock, Num Lock, Scroll Lock (and others on exotic keyboards), then what will the system do:
a) Input mode is changed for all keyboards, LED is toggled for all keyboards simultaneously. b) Input mode and LED state are changed only for keyboard, where key is pressed, other keyboard retain their respective input mode and LED states c) Input mode is changed for all keyboards, however LED is toggled only on the keyboard, where the key was pressed.
Obviously, a and b are sane behaviors, since the input mode is always consistent with LED state, indicating the current input mode. However c is an erroneous behavior, since LED might indicate different input mode to what is actually active (for example, when you type, you get ALL CAPS, but CapsLed is off, or vice versa).
So, I was wondering, is there an option to select between a and b possibilities for Linux-based system?
I have not tried this on other operating systems yet. So can you tell me how they behave, if you have time and resources to test?
Last edited by Sunshine Glimmer; 02-09-2021 at 10:41 PM.
Sorry, but my question is not specific to any particular machine or GNU/Linux distribution, or even CPU ISA.
I have multiple machines, some are ARM, some i386, some amd64 and some are aarch64.
Though I am primarily thinking about X.org, I would like to receive answers regarding plain TTY, Wayland, and other non-linux OSes as well.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.