New installed F36, nvidia no work

According to this page: How to Set Nvidia as Primary GPU on Optimus-based Laptops :: Fedora Docs

Here is my status.

⭕ uname -a
Linux eexpss-f36 5.17.11-300.fc36.x86_64 #1 SMP PREEMPT Wed May 25 15:04:05 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux

⭕ lspci | egrep 'VGA|3D'
00:02.0 VGA compatible controller: Intel Corporation HD Graphics 630 (rev 04)
01:00.0 3D controller: NVIDIA Corporation GP107M [GeForce GTX 1050 Ti Mobile] (rev a1)
⭕ modinfo -F version nvidia
510.68.02
⭕ env|grep x11
XDG_SESSION_TYPE=x11
⭕ sudo akmods --force
Checking kmods exist for 5.17.11-300.fc36.x86_64           [  确定  ]
⭕ sudo dracut --force
⭕ g PrimaryGPU /etc/X11/xorg.conf.d/nvidia.conf
	Option "PrimaryGPU" "yes"

⭕ glxinfo | egrep "OpenGL vendor|OpenGL renderer"    <------------------------
OpenGL vendor string: Intel
OpenGL renderer string: Mesa Intel(R) HD Graphics 630 (KBL GT2)

In fact, I install driver within software.

Actually I do not need nvidia as Primary GPU, also I want use wayland normally, I only need launch games with context menu as this. But it false to launch. Of course this game can launch normally with intel video card.
3d450ea4e764ac12c3244a2fe4ae9b2a5b7227df.png

Any advise, thanks.

5.17.12 and reinstall xorg-x11-drv-nvidia, it works.

1 Like