https://github.com/hadess/retrode
Retrode joystick adapter driver
https://github.com/hadess/retrode
driver kernel linux retrode
Last synced: about 2 months ago
JSON representation
Retrode joystick adapter driver
- Host: GitHub
- URL: https://github.com/hadess/retrode
- Owner: hadess
- License: other
- Created: 2017-06-07T14:11:14.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2018-04-21T00:43:26.000Z (about 8 years ago)
- Last Synced: 2025-05-17T05:38:12.469Z (about 1 year ago)
- Topics: driver, kernel, linux, retrode
- Language: C
- Size: 20.5 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: COPYING
Awesome Lists containing this project
README
# 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.