After running optimus-manager --switch nvidia
and it logging me out as supposed, after the new log in, if I check the status optimus-manager --status
I get:
ERROR: the latest GPU setup attempt failed at Xorg pre-start hook.
Log at /var/log/optimus-manager/switch/switch-20220502T212939.log
Cannot execute command because of previous errors.
I also tried editing the optimus conf file /etc/optimus-manager/optimus-manager.conf
to make nvidia de default boot, as showed on their instructions github - optimus-manager under: “Configuration # Main configuration file”, but I get the same error when I check the status after boot.
This is the content of the error log:
[11] INFO: # Xorg pre-start hook
[11] INFO: Previous state was: {'type': 'pending_pre_xorg_start', 'requested_mode': 'nvidia', 'current_mode': 'integrated'}
[11] INFO: Requested mode is: nvidia
[468] INFO: Available modules: ['nouveau', 'nvidia', 'nvidia_drm', 'nvidia_modeset', 'nvidia_uvm']
[468] INFO: Unloading modules ['nouveau'] (if loaded)
[471] INFO: switching=none, nothing to do
[482] INFO: Nvidia card not visible in PCI bus, rescanning
[483] INFO: Rescanning PCI bus
[495] ERROR: Nvidia card not showing up in PCI bus after rescan. Continuing anyways.
[511] INFO: Loading module nvidia
[810] 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
[811] INFO: Removing /etc/X11/xorg.conf.d/10-optimus-manager.conf (if present)
[811] INFO: Writing state {'type': 'pre_xorg_start_failed', 'switch_id': '20220502T204038', 'requested_mode': 'nvidia'}
I tried with both kernel 5.15.32 LTS and 5.16.18, with same results.
In their general notes github - optimus-manager over “IMPORTANT : Manjaro KDE users” (I am running KDE) they state that one should edit the /etc/sddm.conf
and comment two lines: DisplayCommand
and DisplayStopCommand
, which I did back in the day.
I checked that file, in case it was modified in recent KDE updates, and now I don’t see any line that starts with those parameters. If the idea was to comment them out, it shouldn’t be a problem if they are not present anymore, but I notice the difference.
Any ideas where I should start?
(Asus ROG flow x13)