radeon_atpx_switchto(9)
π radeon_atpx_switchto(9)
okay so bestie, we're deep in the Kernel API Manual today β this is radeon_atpx_switchto, and honestly? she's a little function with one job and she does it. π«Ά
β¨ NAME β¨
radeon_atpx_switchto β switch to the requested GPU
like, the whole personality is right there in the name ngl πββοΈ
π SYNOPSIS π
int radeon_atpx_switchto (enum vga_switcheroo_client_id id );
one function, one arg, returns an int. short and iconic, no notes π
πΈ ARGUMENTS πΈ
idβ the GPU you wanna switch to. that's it, that's the whole parameter. it's anenum vga_switcheroo_client_id, so the vibes are very "pick your fave" π¦
π DESCRIPTION π
okay so what she actually does: radeon_atpx_switchto runs the necessary ATPX functions to switch between the discrete GPU and the integrated GPU, and this applies to all asics β every single one, no exceptions, we love an inclusive queen π
returns 0 on success, and an error on failure. that's literally the whole contract. no cap. β
lowkey important: 0 means slay, anything else means something went sideways. check your return values bestie, i'm begging π
π₯ SEE ALSO π₯
the kernel file where she lives, plus her entire friend group (they all have their own manpages, go read them, i'm serious):
- Kernel file:
./drivers/gpu/drm/radeon/radeon_atpx_handler.c radeon_atpx_call(9)radeon_atpx_parse_functions(9)radeon_atpx_validate(9)radeon_atpx_verify_interface(9)radeon_atpx_set_discrete_state(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_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)
and that's the page!! π§ this little beauty comes to you straight out of <cyan>./drivers/gpu/drm/radeon</cyan>, dated October 2026 β go forth and switch those GPUs responsibly, ily, bye bestie ππ
π¦ 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