MAX44009(4)

πŸ“¦ version 15.1, in freebsd 14.5, freebsd 15.1, nixpkgs unstable

πŸ’– 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 of max44009, which can be either 0x4a or 0x4b. 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