Gentoo Xorg Server Upgraded from 1.3 to 1.5

When you upgrade, please make sure you read the upgrade guide Xorg 1.5 Upgrade Guide.

Input devices

According the Xorg 1.5 Upgrade Guide, evdev is now the preferred input device, regardless whether you use USB for mouse/keyboard or not. Thus, let's put evdev in INPUT_DEVICES in the /etc/make.conf:

INPUT_DEVICES="keyboard mouse evdev"

Now, update the xorg-server:

# emerge -vu xorg-server

To use evdev as the input device, we have to check what device is mapped to what event. Here is how to check your devices:

# cat /proc/bus/input/devices

I: Bus=0011 Vendor=0001 Product=0001 Version=ab41
N: Name="AT Translated Set 2 keyboard"
P: Phys=isa0060/serio0/input0
S: Sysfs=/devices/platform/i8042/serio0/input/input1
U: Uniq=
H: Handlers=kbd event1
B: EV=120013
B: KEY=4 2000000 3803078 f800d001 feffffdf ffefffff ffffffff fffffffe
B: MSC=10
B: LED=7

I: Bus=0003 Vendor=046d Product=c03d Version=0110
N: Name="Logitech USB-PS/2 Optical Mouse"
P: Phys=usb-0000:00:1d.0-2/input0
S: Sysfs=/devices/pci0000:00/0000:00:1d.0/usb2/2-2/2-2:1.0/input/input2
U: Uniq=
H: Handlers=mouse1 event2
B: EV=17
B: KEY=70000 0 0 0 0 0 0 0 0
B: REL=103
B: MSC=10
 

In this case, the keyboard is at /dev/input/event1, and the mouse is at /dev/input/event2. Now update xorg.conf file:

Section "InputDevice"
        Identifier  "Keyboard0"
#       Driver      "kbd"
        Driver      "evdev"
        Option      "Protocol" "auto"
        Option      "Device" "/dev/input/event1"
EndSection
 

Section "InputDevice"
        Identifier  "Mouse0"
        Driver      "evdev"
        Option      "Protocol" "auto"
        Option      "Device" "/dev/input/event2"
EndSection

 

A few more references: