amdgpu_atpx_...screte_state(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… amdgpu_atpx_...screte_state(9) β€” the Kernel API Manual entry, but make it make sense

okay so bestie, welcome to the Kernel API Manual ✨ β€” specifically the page for amdgpu_atpx_...screte_state(9), aka the little function that turns your discrete GPU on and off like a light switch. no cap, that's literally the whole vibe. let's get into it 🫢


πŸŽ€ NAME πŸŽ€

amdgpu_atpx_set_discrete_state β€” power up/down discrete GPU

like… the name is giving "I control the discrete GPU's whole mood" πŸ’…

✨ SYNOPSIS ✨

int amdgpu_atpx_set_discrete_state (struct amdgpu_atpx *atpx , u8 state
);

that's the whole signature, character for character, don't come for me πŸ‘‘

🌸 ARGUMENTS 🌸

  • atpx β€” the atpx info struct 🧚 (yes, that's the struct, it holds the atpx info, iconic)
  • state β€” discrete GPU state, and the numbers matter: 0 = power down, 1 = power up. periodt. πŸ”₯

πŸ¦‹ DESCRIPTION πŸ¦‹

okay so what it actually does: it executes the ATPX_FUNCTION_POWER_CONTROL ATPX function to power down/up the discrete GPU (all asics). that's the whole assignment, all asics included, no exceptions πŸ’€

returns 0 on success, error on failure. that's it. that's the function. lowkey elegant, highkey important 🌈

⚠️ real talk: 0 means success, error means… not success. keep an eye on that return value, bestie 😭

πŸ‘‘ SEE ALSO πŸ‘‘

the whole friend group, fr fr β€” go read these too, they're all linked together:


and that's the page, bestie πŸ’– you're now officially the main character of discrete GPU power control. mwah πŸŽ€

sign-off time: this page lives in ./drivers/gpu/drm/amd/amdgpu and it's dated October 2026 β€” the manual name for the record is Kernel API Manual, and the page is amdgpu_atpx_...screte_state(9). slay, go power up something πŸ”₯πŸ‘‘

πŸ“¦ where this page comes from