Search:  
Gentoo Wiki

Logitech_Precision_Gamepad

Contents

Introduction

This small HOWTO explains how to get your Logitech Gamepad working. Tested at least with Logitech Precision Gamepad.

Kernel

In kernel you need the following:

 # cd /usr/src/linux
 # make menuconfig
Code: Kernel options
 Device Drivers -> Input device support -> Joystick interface (as module)
 Device Drivers -> HID Devices
 Device Drivers -> HID Devices -> USB Human Interface Device (full HID) support

And if your gamepad has own driver at Joysticks enable it too. Joysticks cannot be compiled as a module, but drivers under it can.

Code: Kernel options
Device Drivers -> Input device support -> Input device support -> Joysticks

Here's a list of drivers and what gamepads they support.

Save kernel config and compile.

 # make && make modules_install

Then install your kernel.

Modules

Next thing we are going to do is modprobing the modules:

# modprobe joydev usbhid

If you had some special drivers, modprobe them too.

And because we want the modules to be loaded in boot, open /etc/modules.autoload.d/kernel-2.6 with your favorite editor

# nano /etc/modules.autoload.d/kernel-2.6

add following lines:

Code: /etc/modules.autoload.d/kernel-2.6
# Logitech Precision Gamepad
joydev
usbhid

Testing

Then we check is our gamepad working. Connect your gamepad and

Code: dmesg
input: Logitech Logitech(R) Precision(TM) Gamepad as /class/input/input3
input: USB HID v1.10 Joystick [Logitech Logitech(R) Precision(TM) Gamepad] on usb-0000:00:02.0-2

Then

# cat /dev/input/js0 

and press some buttons. If symbols appear, the gamepad is working, if not, then there's probably something wrong with your kernel configuration.

QJoyPad

For using gamepad with games, you need QJoyPad. Installation is easy, as usual with Gentoo:

# emerge qjoypad

QJoyPad has a nice GUI and it's very easy to configurate.

Retrieved from "http://www.gentoo-wiki.info/Logitech_Precision_Gamepad"

Last modified: Thu, 04 Sep 2008 22:47:00 +0000 Hits: 10,358