Quantcast
Channel: Debian User Forums
Viewing all articles
Browse latest Browse all 3474

[Software] Programmatically enable Numlock key on boot?

$
0
0
Forgive me if "programmatically" isnt the right term here. Perhaps "automatically" would be more appropriate, but whatever. Anyway, I have a Dell XPS 13 9360. The internal keyboard doesnt have a Numlock key. However, about a week ago I bought an RGB mechanical keyboard, Redragon K556 Pro Wireless, which supports connecting via wired/Bluetooth/wireless 2.5ghz USB dongle chip. I'm really liking it and dont want to return it. It has excellent compatibility with Debian, Windows, and my Playstation 5.

However, I've noticed that the Numlock key isnt always enabled after rebooting, I can tell it's off just by looking at the light above it (or lack of a light, if disabled). I'm not sure if this is a quirk of this keyboard, or if it's just something that's common behavior on mechanical keyboards. And while it's no big deal to just tap the button, I'd rather it always be enabled automatically. Perhaps by editing a config file, having a script autorun on every boot, whatever. I use the keyboard in wired mode most of the time, it's easily identifiable with the lsusb command, perhaps there is a way to use its' "identifier" to recognize the device and auto toggle the Numlock to be on. And in the cases where it's not connected on Debian boot, but instead manually connected to the laptop at whatever time, maybe a script that polls, say, once per minute until the keyboard is detected and toggles the key to be on.

Thanks!

Statistics: Posted by Enigma83 — 2024-04-06 06:58 — Replies 5 — Views 87



Viewing all articles
Browse latest Browse all 3474

Trending Articles