I use Asus Zephyrus laptop with AMD integrated graphics and an NVIDIA GPU as well. I use Asus Linux’ supergfxctl to switch between graphics modes like Integrated and Hybrid. I don’t like the Hybrid mode at all when I use my device unplugged, for example the Brave browser constantly uses Nvidia. So I switch to Integrated mode to force to use AMD always. It used to work quite well but somehow graphic intensive apps (browsers too??) now launch extremely slow. It probably looks for an NVIDIA GPU but it just can’t because I’m on integrated mode. It takes around 30 sec to launch a browser during my laptop is in Integrated mode. Any tips to fix this, I don’t know what caused to slow launch…?
Here are some terminal outputs that might be useful to fix.❯ lspci | grep -E “VGA|3D”
75:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Rembrandt [Radeon 680M] (rev 0a)
~
❯ glxinfo | grep “OpenGL renderer”
OpenGL renderer string: AMD Radeon 680M (radeonsi, rembrandt, LLVM 18.1.8, DRM 3.58, 6.11.0-2-cachyos)
❯ brave --enable-logging --v=1
Gtk-Message: 20:58:37.507: Failed to load module “appmenu-gtk-module”
Qt has caught an exception thrown from an event handler. Throwing
exceptions from an event handler is not supported in Qt.
You must not let any exception whatsoever propagate through Qt code.
[8189:8189:0919/205942.989872:ERROR:service_worker_task_queue.cc(239)] DidStartWorkerFail nngceckbapebfimnlniiiahkandclblb: 14
libva error: /usr/lib/dri/nvidia_drv_video.so init failed
[8237:8237:0919/210004.937128:ERROR:gl_surface_presentation_helper.cc(260)] GetVSyncParametersIfAvailable() failed for 1 times!
[8237:8237:0919/210011.651336:ERROR:gl_surface_presentation_helper.cc(260)] GetVSyncParametersIfAvailable() failed for 2 times!
[8237:8237:0919/210011.653511:ERROR:gl_surface_presentation_helper.cc(260)] GetVSyncParametersIfAvailable() failed for 3 times!
try removing libva-nvidia-driver. sudo pacman -Rns libva-nvidia-driver
you’re a life saver, thank you! as the name suggests, it seems like a crucial element to work nvidia, what kind of problems may i encounter after removal of this. i know i can install anytime i need but just wanted to ask.
It’s not. Contrary to the name, it is actually not a package directly from NVIDIA, rather a community package that translates NVENC/NVDEC calls to VAAPI. This package can break certain functionality in hybrid graphics, see PRIME: Remove libva-nvidia-driver from installable packages by 1Naim · Pull Request #132 · CachyOS/chwd · GitHub