[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

run apps on Nvidia in Optimus hybrid graphics, Wayland



I am on Debian Trixie on Gnome. I am on a Dell XPS 9550 with an Intel integrated graphics card and an Nvidia GTX 960M discrete card. This laptop uses the Optimus hybrid graphics. On Wayland I am using a 250% scaling, on X I would use 200% scaling.

I would love to get my card "to work" under Wayland offloading to the dgpu working on demand. I'm trying to run the Zed IDE on my Nvidia card.

On Wayland  doing __NV_PRIME_RENDER_OFFLOAD=1 __GLX_VENDOR_LIBRARY_NAME=nvidia zed
does not launch my app, it just doesn't launch. However, running the same command for glxgears does work.

Running the same command for some apps it works, for others it doesn't.

Do I need to enable modesetting? 
Which of the following commands should I use to achieve that?
echo 'GRUB_CMDLINE_LINUX="$GRUB_CMDLINE_LINUX nvidia-drm.modeset=1 nvidia-drm.fbdev=1"' > /etc/default/grub.d/nvidia-modeset.cfg
update-grub
Or :
echo "options nvidia-drm modeset=1" >> /etc/modprobe.d/nvidia-options.conf

Do I need to remove the xserver-xorg-video-intel package? (as suggested here: https://wiki.debian.org/NvidiaGraphicsDrivers#Wayland)

Should I try Bumblebee?

Should I give up and use X instead? (which appears to be working, apps do launch using the igpu with the above command, but doesn't have fractional scaling and the desktop seems clunckier).

Thanks for your help,


Anil F


Reply to: