Hello! I installed video-hybrid-intel-nvidia-prime and I cannot use prime-run to run applications with my nvidia graphic card. xrandr --listproviders also list only one provider.
prime-run glxinfo | grep "OpenGL"
X Error of failed request: BadValue (integer parameter out of range for operation)
Major opcode of failed request: 152 (GLX)
Minor opcode of failed request: 24 (X_GLXCreateNewContext)
Value in failed request: 0x0
Serial number of failed request: 39
Current serial number in output stream: 40
I did the installation via gui “Hardware Configuration” of KDE, I clicked on Auto Install Proprietary Driver and I think it auto installed video-hybrid.
But yes ok let me try.
Edit : So I uninstalled the driver (sudo mhwd -r pci video-hybrid-intel-nvidia-prime) and successfully reinstalled it (sudo mhwd -i pci video-hybrid-intel-nvidia-prime) then reboot, but it still outputs the same error :
X Error of failed request: BadValue (integer parameter out of range for operation)
Major opcode of failed request: 152 (GLX)
Minor opcode of failed request: 24 (X_GLXCreateNewContext)
Value in failed request: 0x0
Serial number of failed request: 39
Current serial number in output stream: 40
And additionally the output of lsmod | grep nvidia is now empty
There’s nothing saying “NVIDIA” in the logs, so there might be some misconfiguration. Please post the output of head -n 999 /etc/X11/xorg.conf.d/* /etc/X11/xorg.conf.
10 has a higher priority than 90 and therefore it uses the 10-optimus-manager.conf, but there is no nvidia gpu written, but in 90-mhwd.conf.bak… do you see it?
Ok I see! Yes I didn’t remember I have optimus-manager. And Indeed I cannot switch to hybrid mode directly
optimus-manager --switch hybrid
ERROR: a GPU setup was initiated but Xorg post-start hook did not run.
Log at /var/log/optimus-manager/switch/switch-20210322T094629.log
If your login manager is GDM, make sure to follow those instructions:
https://github.com/Askannz/optimus-manager#important--gnome-and-gdm-users
If your display manager is neither GDM, SDDM nor LightDM, or if you don't use one, read the wiki:
https://github.com/Askannz/optimus-manager/wiki/FAQ,-common-issues,-troubleshooting
Cannot execute command because of previous errors.
Should I remove optimus-manager then? Or modify 10-optimus-manager.conf?
optimus-manager --switch hybrid
WARNING : no power management option is currently enabled (this is the default since v1.2). Switching between GPUs will work but you will likely experience poor battery life.
Follow instructions at https://github.com/Askannz/optimus-manager/wiki/A-guide--to-power-management-options to enable power management.
You are about to switch GPUs. This will forcibly close all graphical sessions and all your applications WILL CLOSE.
(you can pass the --no-confirm option to disable this warning)
Continue ? (y/N)