amdgpu_atpx_switch_disp_mux(9)
okay so bestie, this is the Kernel API Manual page for amdgpu_atpx_switch_disp_mux(9) β it's giving very specific kernel energy, and honestly? iconic. We're talking about switching the display mux, no cap. π
π NAME π
amdgpu_atpx_switch_disp_mux β switch display mux. That's the whole name vibe: it switches the display mux. Periodt.
β¨ SYNOPSIS β¨
Here's the signature, copy-paste safe, literally:
int amdgpu_atpx_switch_disp_mux (struct amdgpu_atpx *atpx , u16 mux_id
);
π ARGUMENTS π
atpxβ the atpx info struct, fr fr.mux_idβ the mux state:0= integrated GPU,1= discrete GPU. That's it, that's the whole vibe check.
πΈ DESCRIPTION πΈ
So what does it actually do? It executes the ATPX_FUNCTION_DISPLAY_MUX_CONTROL ATPX function to switch the display mux between the discrete GPU and integrated GPU β and yes, that's for all asics, no cap. π
Return vibe: 0 on success, error on failure. If it fails, it's not giving success, bestie. π
π¦ SEE ALSO π¦
Kernel file: ./drivers/gpu/drm/amd/amdgpu/amdgpu_atpx_handler.c
Also lowkey go look at the whole ATPX crew:
amdgpu_atpx_call(9)amdgpu_atpx_parse_functions(9)amdgpu_atpx_validate(9)amdgpu_atpx_verify_interface(9)amdgpu_atpx_set_discrete_state(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)
Source/version check: this page is from ./drivers/gpu/drm/amd/amdgpu, dated October 2026, and it's literally amdgpu_atpx_switch_disp_mux(9). Bye bestie, go switch that mux πβ¨
π¦ 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