Can't Change Primary Video Card on Lenovo Legion Pro 5 16IAX10

I’m trying to play Final Fantasy XIV (XIVLauncher) and the game is laggy. I was surprised, given how much I spent on this laptop and the specs. After buying it, I didn’t even let Windows start up. I immediately installed Fedora and had to fix controller support. When I checked About I noticed that the NVIDIA card wasn’t running as primary, confusing me again.

I tried fixing it using this guide but on step 8 I get this error:

sudo cp -p /usr/share/X11/xorg.conf.d/nvidia.conf /etc/X11/xorg.conf.d/nvidia.conf

cp: cannot stat '/usr/share/X11/xorg.conf.d/nvidia.conf': No such file or directory

That guide is outdated. It is for X windows system, but you are on the superior Wayland windowing system.

Gnome should be using Switcheroo as default to use the onoard graphics, but switch to the Nvidia card when needed.

Did you install the Nvidia drivers from RPM Fusion?

1 Like

Should I undo what I did? I checked again and XIV is now using the NVIDIA card. I’m assuming that’s what you mean.. typical tasks are ran on the integrated card and heavier stuff will auto switch to the NVIDIA?

Yes, you understand correctly.

The guide is fine up until step 3.
In step 4 you have downloaded unnecessary x-org related packages.
So it is unclear to me now what drivers your GPU is running.
You will need to find that out and remove the x-org related packages.
In step 5 and 6 you have installed the worng drivers (I’m pretty sure).
You’ll have to get an expert on Nvidia like @computersavvy to help you with that as I don’t even normally respond to Nvidia posts as I’m an AMD fanboy (due to their open source drivers).

To run games on a laptop, even though you got a 5070 - its not the same 5070 as is in a desktop GPU - you’ll probably have to turn down or off anti-aliasing, ray-tracing etc. Personally I like to have full resolution with other settings lower.
But maybe fixing your drivers will help.

1 Like

You’re a saint. Thank, MatH!

1 Like
user@fedora:~$ lspci -n -n -k | grep -A 2 -e VGA -e 3D   
00:02.0 VGA compatible controller [0300]: Intel Corporation Arrow Lake-S [Intel Graphics] [8086:7d67] (rev 06)
	Subsystem: Lenovo Device [17aa:8016]
	Kernel driver in use: i915
--
02:00.0 VGA compatible controller [0300]: NVIDIA Corporation GB206M [GeForce RTX 5070 Max-Q / Mobile] [10de:2d58] (rev a1)
	Subsystem: Lenovo Device [17aa:8016]
	Kernel driver in use: nvidia
--
80:14.5 Non-VGA unclassified device [0000]: Intel Corporation Device [8086:7f2f] (rev 10)
	Subsystem: Lenovo Device [17aa:3d73]
80:15.0 Serial bus controller [0c80]: Intel Corporation Device [8086:7f4c] (rev 10)
user@fedora:~$ glxinfo | grep -e OpenGL.vendor -e OpenGL.renderer   
OpenGL vendor string: Intel
OpenGL renderer string: Mesa Intel(R) Graphics (ARL)
user@fedora:~$ lspci | grep -i nvidia   
02:00.0 VGA compatible controller: NVIDIA Corporation GB206M [GeForce RTX 5070 Max-Q / Mobile] (rev a1)
02:00.1 Audio device: NVIDIA Corporation Device 22eb (rev a1)
user@fedora:~$ lsmod | grep -i nvidia   
nvidia_uvm           4206592  0
nvidia_drm            155648  6
nvidia_modeset       2252800  4 nvidia_drm
nvidia              15863808  64 nvidia_uvm,nvidia_modeset
nvidia_wmi_ec_backlight    12288  0
drm_ttm_helper         16384  2 nvidia_drm,xe
video                  81920  5 nvidia_wmi_ec_backlight,ideapad_laptop,xe,i915,nvidia_modeset
wmi                    32768  5 video,nvidia_wmi_ec_backlight,lenovo_wmi_hotkey_utilities,wmi_bmof,ideapad_laptop

I think this will provide the necessary info?

According to Making sure you're not a bot!

You look okay. Run

modinfo -F version nvidia

to check further

user@fedora:~$ modinfo -F version nvidia
580.95.05

Looks great! Enjoy :slight_smile:

1 Like

One final check would be to run modinfo -l nvidia which for that gpu and using the drivers from rpmfusion should return Dual MIT/GPL

2 Likes

Sure does. Thanks. :]

1 Like