You are not logged in.
I have a Framework 16 laptop with a:
AMD Ryzen 9 7940 HS CPU with Radeon 780M (integrated) GPU
AMD Radeon RX 7700S dedicated GPU
These GPU units are both supported by the amdgpu driver which is loaded correctly at boot.
Installed are mesa, lib32-mesa, vulkan-radeon, lib32-vulkan-radeon
I use Gnome on Wayland.
I have switcheroo-control installed and it works.
I experience small delays when opening most applications and the culprit seems waking of the dedicated GPU for small amounts of time looking at the output of: /sys/class/drm/card1/device/power/runtime_status in a loop script.
I found in the Wiki this remark, but that didn't help, and it seems NVIDIA only anyway:
/etc/environment
__EGL_VENDOR_LIBRARY_FILENAMES=/usr/share/glvnd/egl_vendor.d/50_mesa.json
__GLX_VENDOR_LIBRARY_NAME=mesa
I tried software rendering as per this wiki remark, but that was very slow and the gnome-session crashed:
/etc/environment
MESA_LOADER_DRIVER_OVERRIDE=kms_swrast
When I load applications from the terminal with DRI_PRIME=0 application (0 is my iGPU, checked that) the same happens. Always triggering a wakeup from the dGPU with a small delay.
So, does anybody know what to try next or even has a solution for this? Not only are the delays very annoying, but it also drains the battery. I only want to use the dedicated GPU when gaming, rendering GNOME (shell) is for the iGPU.
Last edited by MeganerdNL (2024-12-10 12:49:09)
Offline
https://bbs.archlinux.org/viewtopic.php?id=301641
EDIT: I'll leave seth's suggestion here so it can be seen by non-members:
Try "GSK_RENDERER=ngl" or "GSK_RENDERER=gl"?
https://bbs.archlinux.org/viewtopic.php … 1#p2211391
Last edited by Head_on_a_Stick (2024-12-10 11:05:49)
Para todos todo, para nosotros nada
Offline
https://bbs.archlinux.org/viewtopic.php?id=301641
EDIT: I'll leave seth's suggestion here so it can be seen by non-members:
seth wrote:Try "GSK_RENDERER=ngl" or "GSK_RENDERER=gl"?
Thanks, but that's not a fix. It just activates the dedicated GPU for a long time draining battery.
It works for the delays though.
Edit: above this is for the first link you posted (you edited it).
I will try the next solution and be back.
EDIT2: I now see that is a different problem. Very confusing. The thing you added fixed it though, see below in my final post.
Last edited by MeganerdNL (2024-12-10 11:34:31)
Offline
https://bbs.archlinux.org/viewtopic.php?id=301641
EDIT: I'll leave seth's suggestion here so it can be seen by non-members:
seth wrote:Try "GSK_RENDERER=ngl" or "GSK_RENDERER=gl"?
Ok doing this:
/etc/environment
GSK_RENDERER=ngl
fixed it indeed as per https://bbs.archlinux.org/viewtopic.php … 1#p2211391.
Thank you very much.
For further reading for people finding this: https://docs.gtk.org/gtk4/running.html
Offline