ips_monitor(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… ips_monitor β€” the temp/power monitoring thread ✨

okay so bestie, this one's from the Kernel API Manual and it's called ips_monitor, and it is literally the main character of the IPS driver. no cap. let's get into it 🫢


🌸 SYNOPSIS

int ips_monitor (void *data );

that's it. that's the whole vibe check. one argument, one int coming back at you πŸ’–


πŸŽ€ ARGUMENTS

  • data β€” the ips driver structure. yes bestie, it's a void *, so it's giving "trust me, I know what I am" energy πŸ™ˆ

✨ DESCRIPTION

so <pink>this is the main function for the IPS driver</pink> β€” like, the whole thing runs through here πŸ‘‘

what does it actually do? it monitors power and temperature in the MCP and then adjusts the CPU and GPU power clamps accordingly. it's giving thermostat but make it kernel 🧚

here's the lil algorithm moment, and honestly? kinda iconic:

  • we keep a 5s moving average of power consumption and temperature ⭐
  • using that data, plus the CPU vs GPU preference, we adjust the power clamps up or down πŸ”₯

that's it. that's the whole loop. no notes. periodt πŸ’…


πŸ’œ RETURN

  • 0 on success πŸŽ‰
  • -errno on error 😭 (the classic, the beloved, the "something went sideways")

πŸ¦‹ SEE ALSO

the kernel file ./drivers/platform/x86/intel_ips.c β€” and yeah, this thing has friends, a whole squad, a group chat if you will 🌈:

like, twenty entries. she's popular. we love a social butterfly πŸ¦‹πŸ’–


ngl bestie, if you're touching this, go read the whole squad up there first β€” they're all in ./drivers/platform/x86/intel_ips.c and they very much do the work together 🫢

okay and before I go β€” this lil page lives in ./drivers/platform/x86 and the version/date stamp on it says October 2026. slay. that's the sign-off, mwah πŸ˜˜πŸ’…βœ¨

πŸ“¦ where this page comes from