On Wed, 2020-04-22 at 16:07 +0000, Sreyan Chakravarty wrote:
> On Mon, 2020-04-20 at 23:19 +0530, Sreyan Chakravarty wrote:
> So read up a little on this so you won't be confused by
> advice
I actually tried to understand what was the deal with switcheroo from
here:
https://developer.gnome.org/switcheroo-control/stable/gdbus-net.hadess.Sw...
But it provided no workable insights.
On my system I only have a switcheroo binary running from
/usr/libexec/switcheroo
Other than that there seem to be no configurable options.
Your original question/problem has slipped my mind.
But I gather that you have a hybrid laptop with Intel
CPU and AMD GPU. I have no personal experience with
such beasts but I would think that it 'justs works'
with recent kernels and radeon/amdgpu drivers.
The problem is of course 'what' is working the Intel
graphics or the AMD graphics. And you would like to be
able to use either one by command.
First make sure everything is up and running:
lsmod |grep radeon amdgpu
dnesg |grep radeon amdgpu
Then you can try the commands specified in
https://help.ubuntu.com/community/HybridGraphics
(that is how switcheroo is used!)
BUT: This only works under Xorg not Wayland
something like xrandr does not exist for Wayland.
AND: I am not 100% sure but I belief that switcheroo
is not suited for radeon/amdgpu. If you want to specify
which GPU is going to be used you have to use the PRIME
option (with commands DRI_PRIME = 0 or DRI_PRIME = 1) see
https://wiki.archlinux.org/index.php/PRIME
https://wiki.archlinux.org/index.php/AMDGPU
On Wayland you can get some info about running graphics
with 'glxinfo' see
https://vstinner.github.io/debug-hybrid-graphics-issues-linux.html
AV