You are not logged in.

#1 2023-07-20 15:57:04

Freakzz
Member
Registered: 2020-12-01
Posts: 59

[SOLVED] Optimus-manager fails to start

So I was experiencing some issues after an update when I switched to nvidia mode using optimus-manager. I tried to start minecraft only to find that all the textures were "bugging out" and the screen was flashing uncontrollably. Everything worked fine as I launched the game in hybrid mode so I figured there was something wrong with the latest nvidia drivers. After looking around I found a similar post and tried downgrading the following packages: nvidia, nvidia-utils and linux. The first two packages were downgraded to version 530.41.03-1 while the kernel was downgraded to 6.3.7.arch1-1. After restarting I tried running optimus-manager again.. here's the error message and the log that follows:

ERROR: the latest GPU setup attempt failed at Xorg pre-start hook.
Log at /var/log/optimus-manager/switch/switch-20230720T184343.log
Cannot execute command because of previous errors.
[20] INFO: # Xorg pre-start hook
[20] INFO: Previous state was: {'type': 'pending_pre_xorg_start', 'requested_mode': 'hybrid', 'current_mode': None}
[20] INFO: Requested mode is: hybrid
[64] INFO: Available modules: ['nouveau']
[64] INFO: Unloading modules ['nouveau'] (if loaded)
[68] INFO: switching=none, nothing to do
[96] INFO: Loading module nvidia
[97] ERROR: Xorg pre-start setup error
Traceback (most recent call last):
  File "/usr/lib/python3.11/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.11/site-packages/optimus_manager/kernel.py", line 22, in setup_kernel_state
    _nvidia_up(config, hybrid=(requested_mode == "hybrid"))
  File "/usr/lib/python3.11/site-packages/optimus_manager/kernel.py", line 95, in _nvidia_up
    _load_nvidia_modules(config, available_modules)
  File "/usr/lib/python3.11/site-packages/optimus_manager/kernel.py", line 164, in _load_nvidia_modules
    _load_module(available_modules, "nvidia", options=nvidia_options)
  File "/usr/lib/python3.11/site-packages/optimus_manager/kernel.py", line 241, in _load_module
    raise KernelSetupError(
optimus_manager.kernel.KernelSetupError: module nvidia is not available for current kernel. Is the corresponding package installed ?
[100] INFO: Removing /etc/X11/xorg.conf.d/10-optimus-manager.conf (if present)
[100] INFO: Writing state {'type': 'pre_xorg_start_failed', 'switch_id': '20230720T184343', 'requested_mode': 'hybrid'}

Please help, I don't know what else I should do.

EDIT: Forgot to mention, running nvidia-smi gave the following output:

 NVIDIA-SMI has failed because it couldn't communicate with the NVIDIA driver. Make sure that the latest NVIDIA driver is installed and running.

Last edited by Freakzz (2023-07-20 17:19:48)


Suffering from crippling rice addiction.

Offline

#2 2023-07-20 16:11:21

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 23,809

Re: [SOLVED] Optimus-manager fails to start

The nvidia package is the kernel module and rebuilt for a specific kernel version, you need to pick the exact version that was used for 6.3.7-arch1-1 which you can find out the easiest by looking at the package commits. So for this downgrade attempt to work your nvidia package needs to be nvidia 530.41.03-17 https://gitlab.archlinux.org/archlinux/ … 71d152ddf1

If you don't want to deal with that, another option would be to install the corresponding nvidia-dkms version as well as the current (or appropriately, together with the kernel, downgraded) linux-headers which will lead to the nvidia module build being done on your system to create a module that will match the currently installed kernel (that might however fail with an older kernel currently due to a gcc rebuild having happened in the mean time) .

Last edited by V1del (2023-07-20 16:15:25)

Offline

#3 2023-07-20 17:19:15

Freakzz
Member
Registered: 2020-12-01
Posts: 59

Re: [SOLVED] Optimus-manager fails to start

V1del wrote:

The nvidia package is the kernel module and rebuilt for a specific kernel version, you need to pick the exact version that was used for 6.3.7-arch1-1 which you can find out the easiest by looking at the package commits. So for this downgrade attempt to work your nvidia package needs to be nvidia 530.41.03-17 https://gitlab.archlinux.org/archlinux/ … 71d152ddf1

Installing nvidia 530.41.03-17 did the trick. Thank you!


Suffering from crippling rice addiction.

Offline

Board footer

Powered by FluxBB