I have an issue with NVIDIA and wayland which persists since Kubuntu 22.10. It still happens in 23.10.
Normally I run Wayland with the integrated Intel GPU and everything is fine.
If I want to play a game then I run "prime-select nvidia" and reboot. However if I run "glxinfo | grep renderer" after that, the output is the Intel GPU. ("prime-select query" outputs nvidia).
If I switch to X11 then everything runs on the NVIDIA GPU which is fine. But I wanted to use Wayland with NVIDIA and thought it should work by now.
Any ideas what is going on?
Your reply solved my problem. Thank you!