Back last month I covered a quick KDE tip on how to set the Num Lock key on when you log in to KDE.
While that generally works, it doesn't cover the KDE login screen (or KDM).
You might wonder why this is an issue, but I have found that on my Kubuntu Hardy system, if you don't have Num Lock on at the KDM screen, the keyboard Num Lock light will stay off when you log in to KDE. KDE will then dutifully turn Num Lock on, but the light won't go on for some reason.
This results in the confusing state of having the Num Lock light on the keyboard display the opposite to what the current Num Lock status is.
To fix this, you can set Num Lock on at the login screen, which toggles the light correctly.
Unfortunately, I can't find any way to change this setting graphically, so here's how to do it through configuration files. The file you need to edit is kdmrc.
The exact location of that file might vary according to your distribution. Here on Kubuntu it's /etc/kde3/kdm/kdmrc, but it might be in a share directory somewhere.
Try this to find it:
$ locate kdmrc
Open that file up in a text editor. You will probably need to have administrator privileges, so press Alt-F2 and type this:
kdesu kwrite /etc/kde3/kdm/kdmrc
In that file, find the first section that begins:
Right after that line, add this:
Save the file and quit. To see your changes, you might need to restart KDM. The easy, but slower, way to do this is to restart the computer, but you can also try pressing Ctrl-Alt-Backspace to restart the graphics server which should bring KDM back up again.
Num Lock should now be on at the login screen. Shame it had to be so complicated.