intel_wakeref_auto(9)
π intel_wakeref_auto(9) π
okay so this is a page straight out of the Kernel API Manual, and bestie, it's a tiny one but it matters. Buckle up π
β¨ NAME β¨
intel_wakeref_auto β delay the runtime-pm autosuspend π¦
β¨ SYNOPSIS β¨
void intel_wakeref_auto (struct intel_wakeref_auto *wf , unsigned long
timeout );
like, that's the whole vibe. two args, no cap β¨
β¨ ARGUMENTS β¨
wfβ the wakeref π that's it, that's the description, she's literally just the wakeref.timeoutβ the relative timeout, measured in jiffies β³ (yes, jiffies, not seconds, don't come for me)
β¨ DESCRIPTION β¨
okay so here's the tea β the runtime-pm core does this thing where, after the last wakeref gets released, it waits a lil' suspend delay before it actually triggers runtime suspend of the device. and that delay? it's configurable via sysfs, with, like, little regard to the device characteristics π which is lowkey not it.
so instead, the plan is: tune the autosuspend based on our HW knowledge π we know our hardware, so we should get a say, right? and that's exactly what intel_wakeref_auto does β it delays the sleep by the supplied timeout. slay π
and here's the iconic part: pass timeout = 0 to cancel a previous autosuspend by executing the suspend immediately β‘ not me cancelling my own nap, honestly. zero means go, periodt π₯
β¨ SEE ALSO β¨
the kernel file ./drivers/gpu/drm/i915/intel_wakeref.h β go read her, she's the main character π and also all her friends:
intel_wakeref_get(9)__intel_wakeref_get(9)intel_wakeref_get_if_active(9)__intel_wakeref_put(9)intel_wakeref_lock(9)intel_wakeref_unlock(9)intel_wakeref_unlock_wait(9)intel_wakeref_is_active(9)__intel_wakeref_defer_park(9)intel_wakeref_wait_for_idle(9)
like, the whole friend group π«Ά
ngl the vibes here are immaculate but remember:timeoutis in jiffies, and0is not "no timeout", it's "do it now". don't get it twisted π
and that's the page, bestie!! πΈ brought to you by the good people at ./drivers/gpu/drm/i915, dated October 2026, and yes this is intel_wakeref_auto(9) signing off β mwah ππ§β¨
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms