amdgpu_atpx_...screte_state(9)
π 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:
- Kernel file
./drivers/gpu/drm/amd/amdgpu/amdgpu_atpx_handler.c amdgpu_atpx_call(9)amdgpu_atpx_parse_functions(9)amdgpu_atpx_validate(9)amdgpu_atpx_verify_interface(9)amdgpu_atpx_switch_disp_mux(9)amdgpu_atpx_switch_i2c_mux(9)amdgpu_atpx_switch_start(9)amdgpu_atpx_switch_end(9)amdgpu_atpx_switchto(9)amdgpu_atpx_power_state(9)amdgpu_atpx_pci_probe_handle(9)amdgpu_atpx_init(9)amdgpu_atpx_get_client_id(9)amdgpu_atpx_detect(9)amdgpu_register_atpx_handler(9)amdgpu_unregister_atpx_handler(9)
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
- 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