Can't switch to legacy nvidia dGPU on linux kernal 6.0

Hello i am linux noob here, need some help my laptop refuse to switch/boot to my dGPU nvidia gf 820m with 390.154.2 driver on linux kernal 6.0.
It stuck on loading graphical interface boot.
but on linux kernal LTS 5.15 is fine.

my specs
Operating System: EndeavourOS
KDE Plasma Version: 5.26.1
KDE Frameworks Version: 5.99.0
Qt Version: 5.15.6
Kernel Version: 5.15.74-1-lts (64-bit)
Graphics Platform: X11
Processors: 4 × Intel® Core™ i5-4200U CPU @ 1.60GHz
Memory: 3.7 GiB of RAM
Graphics Processor: GeForce 820M/PCIe/SSE2
Manufacturer: Acer
Product Name: Aspire E1-472G
System Version: V2.08

PS.I use Optimus manager qt to switch GPU.Sorry for my bad english

Welcome to the forum! :smile:

Have you tried the 470 series driver? It is supported as well for your card.

Replace all you nvidia 390 series packages with nvidia 470 series packages.
To see your 390 packages, run

pacman -Qs nvidia 390

Have you tried the 430.xx Drivers? They are in the AUR. Both nvidia-430xx and nvidia-430xx-dkms

Hey thank you,but it fail to install

==> dkms install --no-depmod nvidia/430.40 -k 6.0.2-arch1-1
Error! Bad return status for module build on kernel: 6.0.2-arch1-1 (x86_64)
Consult /var/lib/dkms/nvidia/430.40/build/make.log for more information.
==> WARNING: dkms install --no-depmod nvidia/430.40 -k 6.0.2-arch1-1' exited 10 ==> dkms install --no-depmod nvidia/430.40 -k 5.15.74-1-lts Error! Bad return status for module build on kernel: 5.15.74-1-lts (x86_64) Consult /var/lib/dkms/nvidia/430.40/build/make.log for more information. ==> WARNING: dkms install --no-depmod nvidia/430.40 -k 5.15.74-1-lts’ exited 10
(3/4) Check if user should be informed about rebooting after certain system package upgrades.
==> INFO: Reboot is recommended due to the upgrade of core system package(s).
(4/4) Checking which packages need to be rebuilt
==> Making package: nvidia-430xx 430.40-1 (พฤ. 20 ต.ค. 2565, 10:45:12)
==> Checking runtime dependencies…
==> Checking buildtime dependencies…
==> Retrieving sources…
==> Removing existing $srcdir/ directory…
==> Extracting sources…
==> Sources are ready.
==> Making package: nvidia-430xx 430.40-1 (พฤ. 20 ต.ค. 2565, 10:45:14)
==> Checking runtime dependencies…
==> Checking buildtime dependencies…
==> WARNING: Using existing $srcdir/ tree
==> Starting build()…
Sign command: /usr/lib/modules/6.0.2-arch1-1/build/scripts/sign-file
Signing key: /var/lib/dkms/mok.key
Public certificate (MOK): /var/lib/dkms/mok.pub
Creating symlink /home/tune/.cache/yay/nvidia-430xx/src/nvidia/430.40/source → /usr/src/nvidia-430.40
Building module:
Cleaning build area…
‘make’ -j4 IGNORE_PREEMPT_RT_PRESENCE=1 NV_EXCLUDE_BUILD_MODULES=‘__EXCLUDE_MODULES’ KERNEL_UNAME=6.0.2-arch1-1 IGNORE_CC_MISMATCH=‘__IGNORE_CC_MISMATCH’ modules…(bad exit status: 2)
Error! Bad return status for module build on kernel: 6.0.2-arch1-1 (x86_64)
Consult /home/tune/.cache/yay/nvidia-430xx/src/nvidia/430.40/build/make.log for more information.
==> ERROR: A failure occurred in build().
Aborting…
→ error making: nvidia-430xx

Thank you.but the 470xx driver fail load.

$ optimus-manager --switch nvidia
ERROR: the latest GPU setup attempt failed at Xorg pre-start hook.
Log at /var/log/optimus-manager/switch/switch-20221020T113730.log
Cannot execute command because of previous errors.

$ cat /var/log/optimus-manager/switch/switch-20221020T113730.log
[35] INFO: # Xorg pre-start hook
[35] INFO: Previous state was: {‘type’: ‘pending_pre_xorg_start’, ‘requested_mode’: ‘nvidia’, ‘current_mode’: ‘integrated’}
[35] INFO: Requested mode is: nvidia
[211] INFO: Available modules: [‘nouveau’, ‘nvidia’, ‘nvidia_drm’, ‘nvidia_modeset’, ‘nvidia_uvm’]
[211] INFO: Unloading modules [‘nouveau’] (if loaded)
[216] INFO: switching=none, nothing to do
[240] INFO: Loading module nvidia
[1092] ERROR: Xorg pre-start setup error
Traceback (most recent call last):
File “/usr/lib/python3.10/site-packages/optimus_manager/kernel.py”, line 245, in _load_module
subprocess.check_call(
File “/usr/lib/python3.10/subprocess.py”, line 369, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command ‘modprobe nvidia NVreg_UsePageAttributeTable=1’ returned non-zero exit status 1.
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File “/usr/lib/python3.10/site-packages/optimus_manager/hooks/pre_xorg_start.py”, line 51, in main
setup_kernel_state(config, prev_state, requested_mode)
File “/usr/lib/python3.10/site-packages/optimus_manager/kernel.py”, line 22, in setup_kernel_state
_nvidia_up(config, hybrid=(requested_mode == “hybrid”))
File “/usr/lib/python3.10/site-packages/optimus_manager/kernel.py”, line 95, in _nvidia_up
_load_nvidia_modules(config, available_modules)
File “/usr/lib/python3.10/site-packages/optimus_manager/kernel.py”, line 164, in _load_nvidia_modules
_load_module(available_modules, “nvidia”, options=nvidia_options)
File “/usr/lib/python3.10/site-packages/optimus_manager/kernel.py”, line 249, in _load_module
raise KernelSetupError(f"Error running modprobe for {module}: {e.stderr}") from e
optimus_manager.kernel.KernelSetupError: Error running modprobe for nvidia: None
[1093] INFO: Removing /etc/X11/xorg.conf.d/10-optimus-manager.conf (if present)
[1093] INFO: Writing state {‘type’: ‘pre_xorg_start_failed’, ‘switch_id’: ‘20221020T113730’, ‘requested_mode’: ‘nvidia’}

When i check driver to support .here

$ nvidia-inst --drivers
NVIDIA card id: 1140
The nvidia-dkms version: 520.56.06-2
Series 390: supported (Nvidia: 390.154)

1 Like

OK, your card id is 1140 which is not supported by 470 series, but the 390 series. I searched only with 820M, it showed 470 series, but the card id was different.

That’s why it is so important to have enough details available, like the output of

inxi -Gzxx

Not sure, but maybe kernel 6.x does not, either temporarily or permanently, support your card. So it is possible that a future kernel 6 update fixes this.
Good to have the LTS kernel available. :wink:

EDIT: one idea is to try the open source nouveau driver instead of the Nvidia driver.

1 Like