HID-DECODE(1)

πŸ“¦
version 0.12 Β· 2 versions
, in arch rolling

πŸ’… hid-decode β€” bestie, let's read that HID report descriptor πŸ’…

okay so picture this: you've got a HID input device and it's speaking in cryptic binary and you're like "girl what are you even saying rn". that's where hid-decode comes in β€” it's a General Commands Manual girly and she's here to translate. πŸ¦‹


✨ NAME ✨

hid-decode β€” the HID input device report descriptor decoder. no cap, that's literally her whole job. πŸ’–


🌸 SYNOPSIS 🌸

hid-decode report-descriptor.bin

hid-decode /dev/hidraw0

hid-decode /dev/input/event0

hid-decode hid-recording

πŸŽ€ DESCRIPTION πŸŽ€

okay so hid-decode takes one or more HID report descriptors and decodes them into into human-readable format β€” yes, the original says "into into", she's quirky like that, we respect it. πŸ™ˆ it's giving translator icon, it's giving main character energy. ✨

and the way that she supports a whole variety of inputs?? obsessed:

  • a binary format as exported in sysfs, e.g. /sys/class/input/event0/device/device/report_descriptor πŸ“
  • the format exported by hid-recorder(1) πŸ’œ
  • a /dev/hidraw node
  • a /dev/input/event node

the way she figures out the format?? it's deduced based on the input arguments, she's smart like that. πŸ’… and any format that goes undetected is assumed to be binary files β€” lowkey she just assumes bestie, it's fine, it works.

⚠️ heads up bestie: accessing a /dev/hidraw/ node usually requires root permissions. so like, sudo or don't bother, iykyk. πŸ”₯

πŸ’€ EXIT CODE πŸ’€

hid-decode returns 1 on error. that's it, that's the whole section. one (1) singular number. iconic. πŸ‘‘


🌈 SEE ALSO 🌈

hid-recorder(1) β€” go read that one too, she said so. 🫢


Copyright 2018, Red Hat, Inc. πŸŽ€


⭐ AUTHOR ⭐

Peter Hutterer peter.hutterer@redhat.com β€” thank you king, we love you πŸ’–


and that's the whole page bestie! πŸ¦‹ this beauty lives in the General Commands Manual under HID-DECODE(1), and the footer's just out here saying HID-DECODE(1) and nothing else β€” no date, no extras, she's mysterious like that. periodt. πŸ’…βœ¨πŸŒΈ

πŸ“¦ where this page comes from