HCONS(4)
π HCONS(4) β the HID consumer page controls driver, bestie edition π
okay so real talk, this is hcons(4) from the Kernel Interfaces Manual, and it's lowkey iconic once you get what it does. sit down, grab a strawberry drink π, and let's get into it.
β¨ NAME β¨
hcons β the HID consumer page controls driver. yes that's the whole name, she's concise, she's giving main character energy π
πΈ SYNOPSIS πΈ
so like, if you wanna compile this driver into the kernel (the commitment era), you drop these lines into your kernel configuration file:
device hcons
device hid
device hidbus
device hidmap
device evdev
or β and this is the chill option β you can load the driver as a module at boot time (the low-commitment era π¦) by putting this single line into loader.conf(5):
hcons_load="YES"
no cap, that's it. that's the whole vibe check. β¨
π DESCRIPTION π
the hcons driver provides support for HID consumer page controls, which are most often the ones used as "Multimedia keys" found on many keyboards. yk, the play/pause/volume situation? she handles all of that. π΅
and here's the cute part β the /dev/input/event* device presents the consumer page controls as a evdev type device. so everything just shows up where you'd expect it. obsessed.
π§ SYSCTL VARIABLES π§
the following variable is available as both a sysctl(8) variable and a loader(8) tunable, which is honestly so versatile of her π
:
dev.hcons.X.debugβ the debug output level, where0is debugging disabled and larger values increase debug message verbosity. Default is0.
and her default value is set with the loader(8) tunable:
hw.hid.hcons.debug
fr fr, if stuff's acting weird, this is your girl. just... maybe don't crank it for no reason π
π FILES π
/dev/input/event*β the input event device node. she's right there. living her life. π¦
β SEE ALSO β
go read those too, iykyk π
π HISTORY π
the hcons driver first appeared in FreeBSD 13.0. a legend was born π
π AUTHORS π
the hcons driver was written by Vladimir Kondratyev <wulf@FreeBSD.org>. thank you for your service king π«Ά
and that's the whole page, bestie! this particular edition is dated January 23, 2021 and comes to you from Debian, so go forth and enjoy your multimedia keys β they're literally working because of this. periodt. π β¨π
π¦ where this page comes from
- freebsd 15.1: base 15.1
- nixpkgs unstable: source
- Copyright (c) 2020 Vladimir Kondratyev <wulf@FreeBSD.org>
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms