acpi_device_set_power(9)
π acpi_device_set_power(9)
okay so bestie, welcome to the Kernel API Manual β¨ β yes, that Kernel API Manual β and today's main character is acpi_device_set_power(9). she sets power states on ACPI devices and she's lowkey iconic for it. let's get into it π
πΈ NAME πΈ
acpi_device_set_power β set the power state of an ACPI device, no cap π
β¨ SYNOPSIS β¨
int acpi_device_set_power (struct acpi_device *device , int state );
like, that's the whole vibe. it returns an int and takes two things. slay π«Ά
π¦ ARGUMENTS π¦
deviceβ the device whose power state you're about to change. the one getting the glow-up β¨stateβ the shiny new power state you wanna set it to. the new era, if you will π
π§ DESCRIPTION π§
so here's the tea, and it's kind of important, so listen up π β callers must make sure the device is power manageable before they use this function. that's not a suggestion, that's the rule. check first, then call. periodt π
fr fr do the power-manageable check before you call this. nobody wants a device that can't even do power states getting asked to do power states π
β SEE ALSO β
the whole friend group π«Ά β and heads up, the kernel file lives at ./drivers/acpi/device_pm.c:
acpi_power_state_string(9)acpi_device_get_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_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)
π and that's the page!! π
cute little sign-off bestie: this one comes from the source dir ./drivers/acpi, and it's dated October 2026 π so yeah, she's fresh, she's documented, she's acpi_device_set_power(9). go forth and set those power states 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