MAX44009(4)
π max44009(4) β bestie's guide to the MAX44009 driver π
okay so like, this is the max44009 man page, from the Kernel Interfaces Manual section (4, the drivers girlies β¨). it's a whole driver for the MAX44009 Ambient Light Sensor and honestly? she's lowkey iconic for it. let's get into it π«Ά
β¨ SYNOPSIS β¨
so you wanna compile this driver into the kernel? periodt, drop these lines in your kernel configuration file, no cap:
device max44009
device iicbus
ORRR, if you'd rather load the driver as a module at boot time (very main character of you), put this one line in loader.conf(5):
max44009_load="YES"
slay, that's it π
πΈ DESCRIPTION πΈ
so the max44009 driver reports illuminance data from MAX44009 Ambient Light Sensor. that's the whole vibe. she senses the light and she tells you about it. π
the way she delivers the data? via a sysctl(8) entry, sitting in the device's node in the sysctl(8) tree. literally so organized:
illuminanceβ the illuminance, in lux units. that's the tea π
now, on an FDT(4) based system, these properties must be set (like, non-negotiable bestie):
compatibleβ must be set to"maxim,max44009". exactly like that, character for character, iykyk πregβ the I2C address ofmax44009, which can be either0x4aor0x4b. pick your fighter π
π¦ SEE ALSO π¦
go read them, they're giving supportive bestie energy β¨
π HISTORY π
the max44009 driver and this manual page were written by Andriy Gapon <avg@FreeBSD.org>. we stan a legend who ships code AND docs π
π BUGS π
okay so here's the thing β the max44009 driver does not support illuminance thresholds and the corresponding interrupt. like, that feature? not invited to the party π. everything else? cute. that part? missing. just so you know fr fr.
reminder bestie: the synopsis lines, device names, properties and addresses above are literal. copy them exactly, don't get creative with the spelling or your kernel will simply not cooperate π
and that's the whole page! this one came from the Debian edition, dated November 6, 2021 β so go forth, sense that light, and remember: illuminance in lux only, thresholds are not on the menu π π
π¦ where this page comes from
- freebsd 14.5: base 14.5
- freebsd 15.1: base 15.1
- nixpkgs unstable: source
- π the page's license: BSD-2-Clause
- Copyright (c) 2020 Andriy Gapon <avg@FreeBSD.org>
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms