Setting DRI_PRIME=1
does not switch from the Intel HD Graphics 520 to the AMD Radeon R5 M330 when using the X session, but it works fine on Wayland.
Output of xrandr --listproviders
on the X session:
Providers: number : 1
Provider 0: id: 0x46 cap: 0x9, Source Output, Sink Offload crtcs: 4 outputs: 3 associated providers: 0 name:Intel
radeontop
detects the AMD GPU, and so does lspci | grep AMD
:
01:00.0 Display controller: Advanced Micro Devices, Inc. [AMD/ATI] Sun XT [Radeon HD 8670A/8670M/8690M / R5 M330 / M430 / R7 M520] (rev 83)
It is using the amdgpu
kernel module.
This happened just recently (around 3 days ago), So I think an update to something caused it.