Sunday, July 03, 2005

Xorg Keyboard and Mouse

A couple of problems with X which needed to be sorted out. The keyboard layout was incorrect - fine for alphanumeric stuff, but some of the punctuation was in odd places - and the scroll wheel on my mouse didn't work. Both problems were solved by some simple editing of xorg.conf.

For the keyboard, I added the lines 'Option "KbdModel" "pc104"' and 'Option "KbdLayout" "gb"'.

For the mouse I added the line 'Option "ZAxisMapping" "4 5"' and changed the protocol from PS/2 to IMPS/2.