Also see: Infrared connectivity (IrDATM) in
It is simple, the actual command is xset led 2 (not sure about the
number for you). You must also uncomment this line in your XF86Config,
located in Keyboard section and put:
Xleds 2
The manual manipulation is no longer possible during X session (am I wrong,
I'd really want numlock key to behave just as under console). According to
'man xset' the command changes only the light, not the flag, unlike command
setleds under console. So if you put xset led 2, let's say into your
.xsession (I use xdm and have it in my Xsetup_0 (Debian)), you'll probably
have numlock light on but getting num. keypad left arrow instead of 4.
Somehow these two lines in my Keyboard section do the trick:
# Server NumLock (normally, I use it uncommented, now, pressing numlock key
doesn't even toggle state of num. keypad, I don't care)
XkbDisable (I use it anyway, because I get slovene.map from console into
X. If you want this line commented, I think you should do
something with xmodmap)
xset -led 2 turns only the light off.
I RTFM everything possible for more elegant solution, searched web and
Usenet and nothing found or answered. Is solution trivial or impossible or?
Or: "setleds -L +num
This is possible under Linux too; see the Access Howto under "Making the keyboard behave" (http://sunsite.unc.edu/mdw/HOWTO/Access-HOWTO-5.html#ss5.3) and the Keyboard and Console HowTo under "I can use only one finger to type with" (http://sunsite.unc.edu/mdw/HOWTO/Keyboard-and-Console-HOWTO-16.html#ss16.1).
However, that documentation isn't very clear to me. My guess is that you'll need to use a recent XFree release, enable XKB, and add "StickKeys" to the XkbOptions in XF86Config.