Skip to content

AngryNui/hid-logishifter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

hid-logishifter

Custom Linux HID driver for USB adapters that expose the Logitech H-pattern shifter as:

  • VID:PID 1209:f00d
  • HID name InterBiometrics Logitech@ Shifter

A Linux kernel HID driver for the Logitech H-pattern shifter connected via USB adapter. The driver exposes exactly 7 buttons (one per gear) plus neutral (no button pressed).

    1   3   5
    |   |   |
    +---N---+---+
    |   |   |   |
    2   4   6   R
Gear Bit Button
Neutral 0x0000 (none)
1 0x0001 BTN_TRIGGER
2 0x0002 BTN_THUMB
3 0x0004 BTN_THUMB2
4 0x0008 BTN_TOP
5 0x0010 BTN_TOP2
6 0x0020 BTN_PINKIE
Reverse 0x0040 BTN_BASE

Install (Arch / AUR)

# From AUR:
paru -S hid-logishifter-dkms

# Or manually:
makepkg -si

Install (DKMS, any distro)

Requires: kernel headers, dkms, make.

sudo dkms add .
sudo dkms build hid-logishifter/0.1.0
sudo dkms install hid-logishifter/0.1.0
sudo modprobe hid-logishifter

Bind the driver

Install the included udev rule to auto-bind the driver on plug-in:

sudo cp 99-hid-logishifter.rules /etc/udev/rules.d/
sudo udevadm control --reload-rules

Replug the shifter or trigger a rebind for the current session:

sudo udevadm trigger --subsystem-match=hid --action=add

Verify

sudo evtest  # select "Logitech H-Shifter (custom)"

You should see only BTN_TRIGGER through BTN_BASE — one button per gear, none when in neutral.

Build from source

make LLVM=1

License

GPL-2.0-only

  • packaging/aur/ AUR packaging template

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors