2009-03-17

Ubuntu 8.10: fixing lost usb keyboard/mouse in X after reconnect

I have been losing my USB keyboard/mouse connection in X when switching cables back and forth between my laptop and desktop PC. This is not hardware related as CTRL+ALT+F1 works. Some people on the forums report similar problems with KVM-switches.

Solution: configure keyboard and mouse in /etc/X11/xorg.conf. Auto detection in Ubuntu 8.10 x.org does not work perfectly.

9.10 Karmic Koala update: it seems that the update-manager commented out these rows and some of the symptoms are back. Tried removing comments and follow up if problems still occur. My motherboard is an Asus P5Q.

Example:

Section "ServerLayout"
Identifier  "Simple Layout"
Screen "Default Screen"
InputDevice "Mouse1" "CorePointer"
InputDevice "Keyboard" "CoreKeyboard"
EndSection

Section "InputDevice"
Identifier  "Mouse1"
Driver      "mouse"
Option "Protocol"    "Auto"
Option "Device"      "/dev/input/mice"
Option "ZAxisMapping"    "4 5"
EndSection

Section "InputDevice"
Identifier      "Keyboard"
Driver          "kbd"
Option          "CoreKeyboard"
Option          "XkbRules"      "xorg"
Option          "XkbModel"      "pc105"
Option          "XkbLayout"     "fi"
EndSection

...

Bug report that helped to solve the problem.

No comments: