set_power_state(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– 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 🌈

mwah πŸ’‹ β€” this page's source/version is ./arch/x86/kernel, and it's dated October 2026 πŸŽ€.

πŸ“¦ where this page comes from