#optimus manager not loading nvidia driver

24 messages · Page 1 of 1 (latest)

cosmic harness
#

hi, i switched from linux to linux lts and installed nvidia-lts package. Optimus manager is trying to load nvidia package, but failed.
output of my switch log
[6] INFO: # Xorg pre-start hook [7] INFO: Previous state was: {'type': 'pending_pre_xorg_start', 'requested_mode': 'nvidia', 'current_mode': None} [7] INFO: Requested mode is: nvidia [30] INFO: Available modules: ['nouveau'] [30] INFO: Unloading modules ['nouveau'] (if loaded) [32] INFO: switching=none, nothing to do [48] INFO: Loading module nvidia [48] ERROR: Xorg pre-start setup error 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 241, in _load_module raise KernelSetupError( optimus_manager.kernel.KernelSetupError: module nvidia is not available for current kernel. Is the corresponding package installed ? [48] INFO: Removing /etc/X11/xorg.conf.d/10-optimus-manager.conf (if present) [48] INFO: Writing state {'type': 'pre_xorg_start_failed', 'switch_id': '20230429T112943', 'requested_mode': 'nvidia'}
thanks for help

mystic comet
#

Do you need optimus manager for some reason?
It is an old and quite problematic way to manage Optimus.

cosmic harness
#

its the best way i found for switching gpus

mystic comet
#

Since Nvidia implemented Prime in its Linux driver, there is no need to install bumblebee / optimus manager / etc. and they quite often cause issues due to their additions to xorg.conf and such.

#

To solve such issues:

  • Remove optimus manager
  • Check ls -al /etc/X11/xorg.conf*
  • Remove everything in those configs related to graphics.
  • Install nvidia-prime and use prime-run in front of a command to run anything with the dGPU.
cosmic harness
#

thanks, i will try it

mystic comet
#

btw if you have xf86-video-intel, remove it.

#

except for potentially some older iGPUs, the default modesetting driver in the kernel is better, and that is an older driver.

cosmic harness
#

its done, but if i want to start steam, it says yhis

#

Installing breakpad exception handler for appid(steam)/version(1682573004)/tid(4405)
SteamUpdateUI: An X Error occurred
X Error of failed request: BadValue (integer parameter out of range for operation)

#

but if i want to start minecraft, launcher starts but game refuses to start because this

#

GLFW error 65543: GLX: Failed to create context: GLXBadFBConfig. Please make sure you have up-to-date drivers (see aka.ms/mcdriver for instructions).

mystic comet
#

do you have multilib enabled in pacman for 32-bit packages?

cosmic harness
#

yes, i have

mystic comet
#

oh btw are you starting steam with prime-run? shouldn't do that.

cosmic harness
#

i make it somehow work. it seems that prime-run depends on some newer library

#

thanks a lot

cosmic harness
#

hi, i switched to prime but i cannot use hdmi. i have lenovo legion 5 with archlinux with plasma

#

i can see connected monitor but i cant set it as output

mystic comet
#

I have a Lenovo Legion Y520

#

Intel + Nvidia GTX 1050 TI

#

Did you clear xorg.conf's ?

cosmic harness
#

Yes i did

mystic comet
#

If you'd like, let's do my common pre-checks for Optimus issues:

lspci -k | grep -A 3 VGA : check drivers in use for both GPUs
pacman -Qs "(mesa|nvidia|nouv|xf86-video|optimus)" : check relevant packages installed
ls -alt /etc/X11/xorg.conf* : check any xorg confs