acpi_dev_resume(9)
π acpi_dev_resume (kernel API manual, bestie edition)
Okay so this is a page from the Kernel API Manual β the acpi_dev_resume(9) one specifically β and it's honestly kind of a glow-up story: we're taking a device that's been napping and putting it back into the full-power state using ACPI. Iconic behavior. Let's get into it. β¨
πΈ NAME πΈ
acpi_dev_resume β put device into the full-power state using ACPI.
Like, wake it up. Give it the full-power moment. Main character energy only. π
π SYNOPSIS π
int acpi_dev_resume (struct device *dev );
π¦ ARGUMENTS π¦
devβ the device you're putting into the full-power state. That's the one. Your little guy. The one getting resurrected. π«Ά
β¨ DESCRIPTION β¨
So here's the vibe check: you take the given device and you put it into the full-power state using the standard ACPI mechanism. No cap, that's the whole job.
Concretely (and this part matters, so listen up fr fr):
- Set the power state of the device to ACPI D0.
- Disable wakeup.
That's it. That's the entire arc. Device goes to D0, wakeup gets turned off, everyone moves on with their lives. π
π₯ SEE ALSO π₯
Okay bestie, buckle in, because this list is long and we are not skipping a single one of them β these are all the siblings and cousins in the ACPI device power family, iykyk. π§
Kernel file ./drivers/acpi/device_pm.c β that's where the magic lives β
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_suspend(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)
Slay. Every single one of them, present and accounted for. π
Go read them. All of them. I'll wait. π
<div align=βcenterβ>π π π</div>
Alright, that's the whole page! It lives under ./drivers/acpi, and this edition is dated October 2026 β so like, future vibes but make it kernel documentation. Byeee, go resume some devices responsibly! πβπ
π¦ 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