acpi_dev_suspend(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… acpi_dev_suspend β€” Kernel API Manual, section 9

okay so bestie, welcome to the Kernel API Manual, section 9, and today's main character is acpi_dev_suspend. she's the one who puts your device to sleep the official ACPI way, and honestly? iconic. let's get into it πŸ’€βœ¨


✨ NAME ✨

acpi_dev_suspend β€” put a device into a low-power state using ACPI. no cap, that's literally her whole job πŸŽ€


🌸 SYNOPSIS 🌸

int acpi_dev_suspend (struct device *dev , bool wakeup );

πŸ¦‹ ARGUMENTS πŸ¦‹

  • dev β€” the device you're putting into a low-power state. she's the one going night-night πŸ’€
  • wakeup β€” whether or not to enable wakeup for the device. yes-or-no energy, very bool of her 🫢

πŸ’œ DESCRIPTION πŸ’œ

so here's the vibe: you take the given device and you put it into a low-power state using the standard ACPI mechanism. that's the whole flex πŸ”₯

the steps, in order, because she's organized:

  1. set up remote wakeup if that's what you want (wakeup says so).
  2. choose the state to put the device into β€” and heads up, this step also checks whether remote wakeup is expected to work πŸ‘€
  3. set the power state of the device. done. slay.

πŸ’– SEE ALSO πŸ’–

kernel file: ./drivers/acpi/device_pm.c β€” that's where she lives 🏠

and because she does NOT gatekeep her friends, here's the whole group chat, all in section 9:

like, that's the whole friend group. say hi to all of them or whatever πŸ’…


mwah, that's the page 🫢 this one comes from ./drivers/acpi, version stamped October 2026, and it's filed under acpi_dev_suspend(9) β€” go take a nap, you earned it πŸ’€πŸ’–

πŸ“¦ where this page comes from