USB Foot Mouse Linux
Documentation for getting a cheap USB HID foot mouse to work on Linux
About This Project
USB-Foot-Mouse-Linux is a documentation repository that describes how a cheap, unbranded USB HID foot pedal purchased from AliExpress was configured to send the F13 key on OpenSUSE Tumbleweed. The device originally emitted the letter "b" and offered no driver support or configuration tooling. The guide walks through identifying the device's vendor and product IDs with lsusb, capturing press, hold, and release events with evtest, and mapping the scan code to KEY_F13 through a custom rule in /etc/udev/hwdb.d, applied with systemd-hwdb update and udevadm trigger. The author notes that Input Remapper was considered but could not be made to start automatically at boot, which led to the HWDB approach.
The project is relevant to Linux users who need generic USB input hardware to produce specific keystrokes without vendor software or firmware reprogramming. The document distinguishes between tap and hold events, which is useful for push-to-talk workflows such as voice dictation. It also states the limits of the method: the mapping applies only to the host system and does not rewrite the device firmware, so each machine requires its own rule, and the document suggests EEPROM configuration on Windows or a Linux-compatible pedal as alternatives.
The repository is likely to be of interest to users of voice typing tools, accessibility-oriented input setups, and anyone working with low-cost USB HID hardware on Linux. It is licensed under CC BY 4.0 and is authored by Daniel Rosehill.