Numlock on thinkpad stuck on while undocked

Asked by mark

I have upgraded to feisty fawn on my Thinkpad T42. While it is docked I can use the numlock key as expected. When it is undocked the numlock key is stuck on and I'm unable to turn it off, which makes using it useless. How do a rectify this issue?

Here is my keyboard section of xorg.conf:
Section "InputDevice"
 Identifier "Generic Keyboard"
 Driver "kbd"
 Option "CoreKeyboard"
 Option "XkbRules" "xorg"
 Option "XkbModel" "pc104"
 Option "XkbLayout" "us"
EndSection

I have add the following line to /etc/X11/gdm/InitDefault
if [ -x /usr/bin/numlockx ]; then
        /usr/bin/numlockx off
fi

and numlockx is there. Also this has no affect on the issue.

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
T-One (anton-hofmann) said :
#1

Add the following line to your ~/.Xmodmap or /etc/X11/Xmodmap and run xmodmap in your terminal
keycode 77 = Num_Lock

if you dont have xmodmap installed, simply install it with apt-get install xmodmap

kind regards

anton

Revision history for this message
Hamish Downer (mishd) said :
#2

A quick fix to get the Num Lock turned off so that you can make the change suggested above is to change to a non-X terminal and back again. That is

<Ctrl><Alt>F1

you will see a text login prompt. NumLock is now off (for me at least). Ignore it and go back to the graphical desktop with

<Ctrl><Alt>F7

and NumLock should stay off. (Works for me at least)

Revision history for this message
Benjamin (benjamin-bruno) said :
#3

I recently upgraded my ThinkPad T43 to Heron. Now I'm facing a similar problem. NumLock is on after startup. I can turn it off by hitting Shift-NumLock but it will pop back on whenever I hit capsLock oder switch to a non-X-console. That is quite an odd behaviour, end it's only started after i plugged in a USB keyboard for the first time.
I find that highly annoying. Any ideas on how to tell Heron to leave NumLock off?

Revision history for this message
philipp kretzschmar (kopernikus) said :
#4

I have an IBM Keyboard with Trackpoint and USB-Hub, which also suffered from an always active Numlock, and since it's an integrated one, it made the whole keyboard useless.

Adding the line "keycode 77 = Num_Lock" to the file "~/.Xmodmap" did the trick for me as well.

I just wanted to add that I didn't need to install it under Ubuntu 10.04 (in fact, it didn't let as it is not available anymore) but after a reboot a window was shown asking me to load the file, which I did. Now I can dis- and enable the Numlock with [Shift]+[Numlock].

Can you help with this problem?

Provide an answer of your own, or ask mark for more information if necessary.

To post a message you must log in.