img_ir_enable_wake(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– img_ir_enable_wake πŸ’–

okay so this is a page straight out of the Kernel API Manual (yes bestie, the Kernel API Manual, we're fancy now ✨) and honestly? it's a little one but it's lowkey iconic. it's the img_ir_enable_wake function and it does exactly one thing: it flips the IR hardware into wake mode so your system can get yanked out of sleep by an IR signal. main character energy fr fr πŸ‘‘


✨ NAME ✨

img_ir_enable_wake β€” switch to wake mode, periodt πŸ’…


πŸ¦‹ SYNOPSIS πŸ¦‹

int img_ir_enable_wake (struct img_ir_priv *priv );

that's it, that's the whole signature. one argument, one int coming back at you 🌸


πŸŽ€ ARGUMENTS πŸŽ€

  • priv β€” the IR private data. that's the lil bundle of state for this IR device, and it's what you hand over so the function knows which IR thing we're switching into wake mode πŸ’œ

⭐ RETURN ⭐

it gives you back a non-zero value if the IR can wake the system 😭 like, that's the tea β€” non-zero means "yes bestie, this thing can wake you up", and you should treat that as the win condition 🫢

ngl, the return is the whole point of calling this β€” you're basically asking "can this IR wake the system?" and it answers with non-zero for yes πŸ”₯

🌈 SEE ALSO 🌈

the source lives in the kernel file ./drivers/media/rc/img-ir/img-ir-hw.c β€” go say hi to it, it's the home of all this 🏠 and here's the whole friend group of related pages, not one of them skipped because we don't do that here πŸ’–


and that's the whole page!! short and sweet, just like a good group chat message πŸ“ this came out of ./drivers/media/rc/img-ir, dated October 2026, and it's titled img_ir_enable_wake(9) β€” slay, go wake something up πŸ’…βœ¨

πŸ“¦ where this page comes from