HID-REPLAY(1)
πΈ HID-REPLAY πΈ
okay so you found the hid-replay page in the General Commands Manual and you're like "what is this" β don't worry bestie, I got you, let's go π
π NAME π
hid-replay β replaying a HID input device through uhid, and yes it's exactly as cool as it sounds β¨
π¦ SYNOPSIS π¦
hid-replay [--verbose] [FILENAME]
π OPTIONS π
--verboseβ turns on debugging output. that's the whole option, she's simple, she's iconic π«Ά
π DESCRIPTION π
so hid-replay spins up a virtual HID device built from a recorded file β and like, usually a file that hid-recorder(1) made for you. the device genuinely behaves as if it was physically connected to the system. everything in that recorded file gets replayed in realtime. main character energy, no cap π
this is a low-level debugging tool, bestie β it uses the uhid kernel model to create the device, and all the data gets processed by the respective HID kernel module for that device. iykyk π₯
and listen: hid-replay needs to be able to write to /dev/uhid, which usually means it must be run as root. sorry, them's the rules π
π FILE FORMAT π
files that hid-replay supports have this syntax:
#comment lines are ignored when parsing πD:the device index β only used when recording multiple devicesR:the report descriptor length in bytes, followed by the report descriptor bytes in hexadecimalN:the name of the deviceP:physical pathI:busvendor_idproduct_idE:timestamp size report in hexadecimal
π CAUTION π
hid-replayis a very low level events injector. to have the virtual device handled by the correct HID kernel module,hid-replayfakes that the device is on the original bus (USB, I2C or BT). so β if the kernel module in use has to write back to the device, the kernel may oops if the module is trying to directly talk to the physical layer. ππ
ensure to use this program with friendly HID modules that rely only on the generic hid callbacks. please. for me. π₯Ί
β EXIT CODE β
hid-replay returns 1 on error. that's it, that's the exit code πΈ
π§ SEE ALSO π§
hid-recorder(1) β go read that one too, bestie π¦
π COPYRIGHT π
Copyright 2012-2018, Benjamin Tissoires.
Copyright 2018, Red Hat, Inc.
π AUTHOR π
Benjamin Tissoires benjamin.tissoires@redhat.com
and that's the whole page, fr fr π it's from the General Commands Manual and the version/date line down at the bottom is just the manual heading again β HID-REPLAY(1) β so nothing extra to report. slay, you read the whole thing, so proud of you πβ¨
π¦ where this page comes from
- arch rolling: hid-tools 0.12-2 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms