Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I would like to have my num-lock turned on permanently. I never turn it off. But every once in a while it gets turned off. Is there any way to do this in Windows 7 and Ubuntu 10.10.?

share|improve this question

migrated from Oct 17 '11 at 1:28

This question came from our site for system and network administrators.

Could be a bad idea. Num-lock and Caps-lock are handy/quick indicators for checking the severity of a PC hang or freeze. I.E. if the PC fails to respond to X-lock presses by toggling its keyboard LED, then the PC is really hosed. – sawdust Oct 17 '11 at 1:45
In that case you've got capslock and scroll lock to test with..? – Mark Henderson Oct 17 '11 at 2:09
The failure to toggle the LEDs does not necessarily mean the PC is hosed. What an extraordinary statement. – John Gardeniers Oct 17 '11 at 4:30
up vote 6 down vote accepted

For windows

Have numlock activate on startup with a VBS script

create a custom layout with MSKLC with numlock disabled

For linux

Enable numlock at boot

disable key with xmodmap

share|improve this answer
I don't think MSKLC will allow you to disable a modifier key. I remember being unable to use it to disable caps lock... – jiggunjer Jun 24 at 16:54

I compiled a usable solution to this. Using a .reg file I turn the numlock key on at boot, as well as disable the numlock key in the keyboard mappings.

The file looks like this:

Windows Registry Editor Version 5.00

[HKEY_USERS\.DEFAULT\Control Panel\Keyboard]

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Keyboard Layout]
"Scancode Map"=hex:00,00,00,00,00,00,00,00,02,00,00,00,00,00,45,00,00,00,00,00

More about the background is on my blog.

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .