IICHID(4)

πŸ“¦
version 15.1 Β· 2 versions
, in freebsd 15.1, nixpkgs unstable

πŸ’… IICHID(4) β€” the I2C HID transport driver, explained πŸŽ€

okay so bestie, this is the manual page for iichid(4) from the Kernel Interfaces Manual β€” yes it's giving kernel-interface realness, and we're gonna get through it together, no cap. ✨


πŸ¦‹ NAME

iichid β€” the I2C HID transport driver, aka the little connector that lets your kernel talk to I2C Human Interface Devices. literally it's the middleman. 🫢


🌸 SYNOPSIS

So there's two ways to get this baby into your life, and both are valid.

Way 1 β€” bake it into the kernel. drop these lines in your kernel configuration file:

device iichid

Way 2 β€” load it as a module at boot time. then go put this line into loader.conf(5):

iichid_load="YES"

both slay, pick your fighter. πŸ’–


✨ DESCRIPTION

The iichid driver provides a interface to I2C Human Interface Devices (HIDs).

that's the whole thing. short king energy. πŸ‘‘


πŸŽ€ SYSCTL VARIABLES

Next parameters are available as sysctl(8) variables. Also important: the debug parameter is available as a loader(8) tunable as well β€” so you can set that one early, before the kernel even gets its coffee. β˜•

  • dev.iichid.*.sampling_rate_fast β€” the active sampling rate, in num/second. this is the one that kicks in for sampling mode. πŸƒβ€β™€οΈ
  • dev.iichid.*.sampling_rate_slow β€” the idle sampling rate, in num/second (for sampling mode). chill mode. 😴
  • dev.iichid.*.sampling_hysteresis β€” how many missing samples it tolerates before it switches on slow mode (for sampling mode). like, how many texts go unanswered before it assumes you're busy. πŸ“΅
  • hw.iichid.debug β€” debug output level, where 0 means debugging disabled, and larger values increase debug message verbosity. default is 0. turn it up when you're nosy, iykyk. πŸ”

πŸ”₯ SEE ALSO

that's it, that's the whole list. quality over quantity bestie. πŸ’œ


πŸ’€ BUGS

Okay so, real talk β€” iichid does not support GPIO interrupts yet. 😭 and in that case, iichid enables sampling mode with periodic polling of hardware by driver means. like, it just keeps asking "you good? you good?" on repeat.

if you need to tune that polling life, see the dev.iichid.*.sampling_* sysctl(8) variables. that's where your knobs are, bestie. πŸŽ›οΈ

🌈 HISTORY

The iichid driver first appeared in FreeBSD 13.0. a whole era. ⭐


πŸ‘‘ AUTHORS

The iichid driver was written by Marc Priggemeyer <marc.priggemeyer@gmail.com> and Vladimir Kondratyev <wulf@FreeBSD.org>.

This manual page was written by Vladimir Kondratyev <wulf@FreeBSD.org>.

give them their flowers, fr fr. πŸŒΈπŸ’


and that's the page, bestie! 🧚 this version dropped on Debian, dated September 21, 2020, and it's the IICHID(4) page β€” go forth and interface with your HIDs. πŸ’…βœ¨

πŸ“¦ where this page comes from