On Wayland, Fedora GNOME defaults to hybrid mode and handles GPU switching per-app rather than switching the whole desktop like X11 tools did. For C++ and CUDA development, you do not actually need to switch your display mode at all—as long as the proprietary NVIDIA drivers (akmod-nvidia and xorg-x11-drv-nvidia-cuda from RPM Fusion) are installed, CUDA binaries will automatically talk directly to the RTX 2050 while the Intel iGPU drives the desktop.
If you need to force a GUI or OpenGL/Vulkan app onto the NVIDIA card, right-click its icon in the GNOME app grid and select Launch using Discrete Graphics Card, or run it from the terminal with __NV_PRIME_RENDER_OFFLOAD=1 __GLX_VENDOR_LIBRARY_NAME=nvidia ./your_app. If you still want full hardware/mode switching (like disabling the dGPU completely on battery), supergfxctl from the lukenukem/asus-linux COPR (paired with the supergfxctl-gex GNOME extension) is the current actively maintained replacement for envycontrol on ASUS laptops.
1
u/coldbrew_goblin 3d ago
On Wayland, Fedora GNOME defaults to hybrid mode and handles GPU switching per-app rather than switching the whole desktop like X11 tools did. For C++ and CUDA development, you do not actually need to switch your display mode at all—as long as the proprietary NVIDIA drivers (
akmod-nvidiaandxorg-x11-drv-nvidia-cudafrom RPM Fusion) are installed, CUDA binaries will automatically talk directly to the RTX 2050 while the Intel iGPU drives the desktop.If you need to force a GUI or OpenGL/Vulkan app onto the NVIDIA card, right-click its icon in the GNOME app grid and select Launch using Discrete Graphics Card, or run it from the terminal with
__NV_PRIME_RENDER_OFFLOAD=1 __GLX_VENDOR_LIBRARY_NAME=nvidia ./your_app. If you still want full hardware/mode switching (like disabling the dGPU completely on battery),supergfxctlfrom thelukenukem/asus-linuxCOPR (paired with thesupergfxctl-gexGNOME extension) is the current actively maintained replacement forenvycontrolon ASUS laptops.