acpi_dev_suspend(9)
π
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, veryboolof 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:
- set up remote wakeup if that's what you want (
wakeupsays so). - choose the state to put the device into β and heads up, this step also checks whether remote wakeup is expected to work π
- 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:
acpi_power_state_string(9)acpi_device_get_power(9)acpi_device_set_power(9)acpi_device_fix_up_power(9)acpi_device_fix_up_power_extended(9)acpi_device_fix_up_power_children(9)acpi_dev_power_up_children_with_adr(9)acpi_dev_power_state_for_wake(9)acpi_add_pm_notifier(9)acpi_remove_pm_notifier(9)acpi_dev_pm_get_state(9)acpi_pm_device_sleep_state(9)acpi_pm_notify_work_func(9)acpi_device_wakeup_enable(9)acpi_device_wakeup_disable(9)acpi_pm_set_device_wakeup(9)acpi_dev_pm_low_power(9)acpi_dev_pm_full_power(9)acpi_dev_resume(9)acpi_subsys_runtime_suspend(9)acpi_subsys_runtime_resume(9)acpi_subsys_prepare(9)acpi_subsys_complete(9)acpi_subsys_suspend(9)acpi_subsys_suspend_late(9)acpi_subsys_suspend_noirq(9)acpi_subsys_resume_noirq(9)acpi_subsys_resume_early(9)acpi_subsys_resume(9)acpi_subsys_freeze(9)acpi_subsys_restore_early(9)acpi_subsys_poweroff(9)acpi_subsys_poweroff_late(9)acpi_subsys_poweroff_noirq(9)acpi_dev_pm_detach(9)acpi_dev_pm_attach(9)acpi_storage_d3(9)acpi_dev_state_d0(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
- 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