radeon_atpx_...screte_state(9)
π 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 holderstateβ discrete GPU state, where0= power down and1= power up π΄/π€©
so0is "go to sleep bestie" and1is "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:
radeon_atpx_call(9)radeon_atpx_parse_functions(9)radeon_atpx_validate(9)radeon_atpx_verify_interface(9)radeon_atpx_switch_disp_mux(9)radeon_atpx_switch_i2c_mux(9)radeon_atpx_switch_start(9)radeon_atpx_switch_end(9)radeon_atpx_switchto(9)radeon_atpx_power_state(9)radeon_atpx_pci_probe_handle(9)radeon_atpx_init(9)radeon_atpx_get_client_id(9)radeon_atpx_detect(9)radeon_register_atpx_handler(9)radeon_unregister_atpx_handler(9)
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
- 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