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 |
# From AUR:
paru -S hid-logishifter-dkms
# Or manually:
makepkg -siRequires: 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-logishifterInstall 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-rulesReplug the shifter or trigger a rebind for the current session:
sudo udevadm trigger --subsystem-match=hid --action=addsudo evtest # select "Logitech H-Shifter (custom)"You should see only BTN_TRIGGER through BTN_BASE — one button per gear, none when in neutral.
make LLVM=1GPL-2.0-only
packaging/aur/AUR packaging template