radeon_atpx_switchto(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 an enum 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):


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