radeon_atpx_...screte_state(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… radeon_atpx_set_discrete_state(9) β€” the Kernel API Manual page you didn't know you needed

okay bestie, so this is radeon_atpx_set_discrete_state from the Kernel API Manual, and it's literally the on/off switch for your laptop's discrete GPU πŸ”Œβœ¨ no cap.


πŸŽ€ NAME πŸŽ€

radeon_atpx_set_discrete_state β€” power up/down the discrete GPU 🫢

Like, it's giving "big red button but for hardware."


✨ SYNOPSIS ✨

int radeon_atpx_set_discrete_state (struct radeon_atpx *atpx , u8 state );

two args, one int back. lowkey elegant ngl πŸ’…


🧚 ARGUMENTS 🧚

  • atpx β€” the atpx info struct πŸ—‚οΈ your little info bundle, your vibe holder
  • state β€” discrete GPU state, where 0 = power down and 1 = power up 😴/🀩
so 0 is "go to sleep bestie" and 1 is "wake up, you're the main character now". that's it. that's the whole bit.

πŸ”₯ DESCRIPTION πŸ”₯

So what it actually does: it executes the ATPX_FUNCTION_POWER_CONTROL ATPX function to power down/up the discrete GPU β€” and yes, that's for all asics, every single one, no exceptions πŸ’€.

It returns 0 on success, error on failure. periodt. 🌈


🌸 SEE ALSO 🌸

Kernel file ./drivers/gpu/drm/radeon/radeon_atpx_handler.c πŸ‘‘ β€” go read the source, iykyk

and the whole friend group of sibling functions, all of them, in this exact order:

that's the whole squad, not one missing 🫢✨


πŸŽ€ cute lil sign-off: this page lives in ./drivers/gpu/drm/radeon, and it's dated October 2026. mwah, go power-cycle something responsibly πŸ’œπŸ¦‹β­
πŸ“¦ where this page comes from