I'm forcefully telling optimus-manager to boot on 'nvidia' mode now, of course it fails, and this is what the logs say:
[384] INFO: # Xorg pre-start hook
[385] INFO: Previous state was: {'type': 'pending_pre_xorg_start', 'requested_mode': 'nvidia', 'current_mode': None}
[387] INFO: Requested mode is: nvidia
[1137] INFO: Available modules: ['nouveau']
[1138] INFO: Unloading modules ['nouveau'] (if loaded)
[4888] INFO: switching=none, nothing to do
[5251] INFO: Loading module nvidia
[5252] 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 ?
[5266] INFO: Removing /etc/X11/xorg.conf.d/10-optimus-manager.conf (if present)
[5268] INFO: Writing state {'type': 'pre_xorg_start_failed', 'switch_id': '20220114T135857', 'requested_mode': 'nvidia'}
It says there's no nvidia kernel modules to load? Prior to installing this optimus-manager stuff i've been using my nvidia card just fine with prime-run so i don't see why they would be missing now.