Using USB HID Joystick with Ubuntu 10.04 LTS

After purchasing a USB HID joystick for my Linux entertainment center, I quickly noticed that it did not work out-of-the-box. This is what I did.

1) Plug in the device

/var/log/messages looks promising:
Sep 20 20:48:41 purkki kernel: [ 3510.988048] usb 4-1: new low speed USB device using uhci_hcd and address 2
Sep 20 20:48:41 purkki kernel: [ 3511.169143] usb 4-1: configuration #1 chosen from 1 choice
Sep 20 20:48:41 purkki kernel: [ 3511.273056] usbcore: registered new interface driver hiddev
Sep 20 20:48:41 purkki kernel: [ 3511.274817] usbcore: registered new interface driver usbhid
Sep 20 20:48:41 purkki kernel: [ 3511.276499] usbhid: v2.6:USB HID core driver
Sep 20 20:48:42 purkki kernel: [ 3511.377019] input: DragonRise Inc.   Generic   USB  Joystick   as /devices/pci0000:00/0000:00:1d.2/usb4/4-1/4-1:1.0/input/input5
Sep 20 20:48:42 purkki kernel: [ 3511.377389] dragonrise 0003:0079:0006.0001: input,hidraw0: USB HID v1.10 Joystick [DragonRise Inc.   Generic   USB  Joystick  ] on usb-0000:00:1d.2-1/input0
Sep 20 20:48:42 purkki kernel: [ 3511.377417] dragonrise 0003:0079:0006.0001: Force Feedback for DragonRise Inc. game controllers by Richard Walmsley <richwalm@gmail.com>
Also the device node /dev/input/js0 appeared, cat /dev/input/js0 showed some activity. However, playing with the joystick did not result any mouse/keyboard activity.

2) Install xorg driver

Xorg needs joystick driver which is not installed by default. Install "xserver-xorg-input-joystick", by root:

apt-get install xserver-xorg-input-joystick

Restart X (e.g. log out & in). The man page of the joystick driver (man joystick) gives you more information.

The default mappings appear to be ok.

Updated 20-SEP-2010 / Matti Lattu