Skip to content

hadess/retrode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Retrode Linux driver

This repository was used for driver development when the driver was still out-of-tree. The repository is however still updated with the latest upstream patches, to make it easier to experiment and review changes.

New features, and bug reports should be made using the usual kernel development process, through the linux-input@ mailing-list.

The code is under the same license as the Linux kernel itself. See COPYING file for details.

Installation

After compiling with make and make install (the latter as root or through sudo), you'll need to create a few files to load the driver correctly.

Create a /etc/udev/load_hid_retrode.sh file with the content:

#!/bin/bash
DRIVER=$1
DEVICE=$2
HID_DRV_PATH=/sys/bus/hid/drivers
/sbin/modprobe hid_retrode_standalone
echo ${DEVICE} > ${HID_DRV_PATH}/hid-generic/unbind
echo ${DEVICE} > ${HID_DRV_PATH}/hid-retrode/bind

Create a /etc/udev/rules.d/80-retrode.rules file with the content:

DRIVER=="hid-generic", ENV{MODALIAS}=="hid:b0003g*v00000403p000097C1", RUN+="/bin/sh /etc/udev/load_hid_retrode.sh hid-generic %k"

After a reboot, the driver should be loaded automatically when the dongle gets plugged in.

Releases

No releases published

Packages

No packages published