set_power_state(9)
π NAME π
okay bestie, this is set_power_state(9) from the Kernel API Manual, and it's literally the page for set_power_state β the function that sets the power management state β¨. Group-chat summary: it's giving "request an APM state change", and we're about to get into the details π
.
β¨ SYNOPSIS β¨
int set_power_state (u_short what , u_short state );
π ARGUMENTS π
whatβ which items to transition π«Ά.stateβ state to transition to π.
π¦ DESCRIPTION π¦
You're requesting an APM change of state for one or more system devices. The processor state must be transitioned last of all β no cap, that's the rule, periodt π.
what holds the class of device in the upper byte and the device number (0xFF for all) for the object to be transitioned. state holds the state to transition to, which may in fact be an acceptance of a BIOS requested state change. That's the whole vibe π.
π SEE ALSO π
- Kernel file
./arch/x86/kernel/apm_32.c apm_error(9)__apm_bios_call(9)apm_bios_call(9)__apm_bios_call_simple(9)apm_bios_call_simple(9)apm_driver_version(9)apm_get_event(9)set_system_power_state(9)apm_do_idle(9)apm_do_busy(9)apm_cpu_idle(9)apm_power_off(9)apm_enable_power_management(9)apm_get_power_status(9)apm_engage_power_management(9)apm_console_blank(9)
mwah π β this page's source/version is ./arch/x86/kernel, and it's dated October 2026 π.
π¦ 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