A few years ago I had a problem with this laptop Nvidia drivers don't work - #24 by XRaTiX
and now here we are again.
I had delayed downloading this update for a couple of weeks, but now I had to do it and I find out this.
It seems optimus-manager is broken in Wayland, so I tried installing plasma-x11-session
And yet the problem remains. It seems the latest optimus-manager is borked in every possible way, so not even working with xorg!
I have tested optimus-manager --print-mode
The resutls are pretty much the same:
ERROR: the latest GPU setup attempt failed at Xorg pre-start hook. Log at /var/log/optimus-manager/switch/switch-20260114T204339.log Cannot execute command because of previous errors.
The log says this:
[17] INFO: # Xorg pre-start hook [17] INFO: Previous state was: {'type': 'pending_pre_xorg_start', 'requested_mode': 'nvidia', 'current_mode': None} [18] INFO: Requested mode is: nvidia [42] INFO: Available modules: ['nouveau', 'bbswitch', 'acpi_call', 'nvidia', 'nvidia_drm', 'nvidia_modeset', 'nvidia_uvm'] [42] INFO: Unloading modules ['nouveau'] (if loaded) [45] INFO: Loading module bbswitch [51] INFO: Setting GPU power to ON via bbswitch [80] INFO: Loading module nvidia [1311] ERROR: Xorg pre-start setup error Traceback (most recent call last): File "/usr/lib/python3.13/site-packages/optimus_manager/kernel.py", line 245, in _load_module subprocess.check_call( ~~~~~~~~~~~~~~~~~~~~~^ f"modprobe {module} {' '.join(options)}", ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ shell=True, text=True, stderr=subprocess.PIPE, stdout=subprocess.DEVNULL) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.13/subprocess.py", line 419, 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.13/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.13/site-packages/optimus_manager/kernel.py", line 22, in setup_kernel_state _nvidia_up(config, hybrid=(requested_mode == "hybrid")) ~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.13/site-packages/optimus_manager/kernel.py", line 95, in _nvidia_up _load_nvidia_modules(config, available_modules) ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.13/site-packages/optimus_manager/kernel.py", line 164, in _load_nvidia_modules _load_module(available_modules, "nvidia", options=nvidia_options) ~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.13/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 [1318] INFO: Removing /etc/X11/xorg.conf.d/10-optimus-manager.conf (if present) [1318] INFO: Writing state {'type': 'pre_xorg_start_failed', 'switch_id': '20260114T204339', 'requested_mode': 'nvidia'}
Tried a few things, asked AI for help and ultimately decided to try envycontrol. But to do that I will have to completely uninstall optimus-manager. I wonder what is wrong with it, why can’t the devs keep things working correctly?
WIsh me luck, I will update this post. If envycontrol fixes this then at least things will be functional, but I guess I will still miss some of the features that optimus-manager provided.