Optimus Manager failed to NVidia After Update 20.2

After this update(KDE, kenerl from 5.8 to 5.9.8-2), optimus manager can’t change to hybrid mode or Nvidia mode. Thought some thing wrong with Nvidia driver, what should I do? Currently I can’t change the lightness and can’t light up my second screen which may due to this problem.

What nvidia driver are you using? Think only 450 and 455 are compatible with kernel 5.9, might even just be 455. The screen brightness issue maybe a bug as other people have reported the same issue. If you don’t want to update nvidia drivers then easiest solution is to switch to a LTS kernel like 5.4

1 Like

Can you run nvidia-smi? What does systemctl status optimus-manager print out? Without further input I would also remove and re-install the Nvidia drivers, restart, check status again.

1 Like
systemctl status optimus-manager
● optimus-manager.service - Optimus Manager Commands Daemon
     Loaded: loaded (/usr/lib/systemd/system/optimus-manager.service; enabled; vendor preset: disabled)
     Active: active (running) since Thu 2020-11-26 21:33:13 CST; 18min ago
   Main PID: 919 (python3)
      Tasks: 1 (limit: 19053)
     Memory: 14.9M
     CGroup: /system.slice/optimus-manager.service
             └─919 /usr/bin/python3 -u -m optimus_manager.daemon

Nov 26 21:33:13 bran-t500 python3[761]:     _load_module(available_modules, "nvidia", options="NVreg_UsePageAttributeTable=%d" % pat_value)
Nov 26 21:33:13 bran-t500 python3[761]:   File "/usr/lib/python3.8/site-packages/optimus_manager/kernel.py", line 175, in _load_module
Nov 26 21:33:13 bran-t500 python3[761]:     raise KernelSetupError(
Nov 26 21:33:13 bran-t500 python3[761]: optimus_manager.kernel.KernelSetupError: module nvidia is not available for current kernel. Is the corresponding package installed ?
Nov 26 21:33:13 bran-t500 python3[761]: [227] INFO: Removing /etc/X11/xorg.conf.d/10-optimus-manager.conf (if present)
Nov 26 21:33:13 bran-t500 python3[761]: [228] INFO: Writing state {'type': 'pre_xorg_start_failed', 'switch_id': '20201126T213313', 'requested_mode': 'hybrid'}
Nov 26 21:33:13 bran-t500 systemd[1]: Started Optimus Manager Commands Daemon.
Nov 26 21:33:13 bran-t500 python3[919]: [1] INFO: # Commands daemon
Nov 26 21:33:13 bran-t500 python3[919]: [1] INFO: Opening UNIX socket
Nov 26 21:33:13 bran-t500 python3[919]: [2] INFO: Awaiting commands

I use video-hybrid-intel-nvidia-450xx-prime(from mhwd), before the update , nvidia-smi can recognize the driver, but after updating, it shows:

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

SORRY FOR THE LATE REPLY and my poor english, thanks for all your help.

So both are very verbose and straightforward to what is happening, as said above I would remove 450 and install 455, then reboot. Configure Graphics Cards - Manjaro

1 Like

when i try to mhwd -i video-hybrid-intel-nvidia-450xx-prime -f before, it cames an error:script failed.
because the ‘cuda’ dependence. Should I remove cuda first ,then remove 450 and install 455 by mhwd -i ?

I would try first removing mhwd -r the 450 drivers, then installing mhwd-i the 455 drivers and see from there.

2 Likes
sudo mhwd -r pci video-hybrid-intel-nvidia-450xx-prime
Removing video-hybrid-intel-nvidia-450xx-prime...
Sourcing /etc/mhwd-x86_64.conf
Has lib32 support: true                                                                                                                                                                     
Sourcing /var/lib/mhwd/local/pci/video-hybrid-intel-nvidia-450xx-prime/MHWDCONFIG                                                                                                           
Processing classid: 0300                                                                                                                                                                    
Sourcing /var/lib/mhwd/scripts/include/0300                                                                                                                                                 
正在检查依赖关系...                                                                                                                                                                         
错误:无法准备事务处理 (无法满足依赖关系)// can't deal with the dependency                                                                                                                                                   
:: 删除 nvidia-450xx-utils 破坏依赖 'nvidia-utils' (cuda 需要)// this says cuda need depend on nvidia-450xx-utils                                                                                                                            
Error: pacman failed!                                                                                                                                                                       
Error: script failed!

it seems than still can’t remove without removing cuda

I just do these commend:

sudo pacman -R cuda
sudo mhwd -r pci video-hybrid-intel-nvidia-450xx-prime
sudo mhwd -i pci video-hybrid-intel-nvidia-455xx-prime

and then I find the nvidia-smi detected the driver. Then should I reboot?

nvidia-smi
Thu Nov 26 23:19:20 2020       
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 455.45.01    Driver Version: 455.45.01    CUDA Version: 11.1     |
|-------------------------------+----------------------+----------------------+
| GPU  Name        Persistence-M| Bus-Id        Disp.A | Volatile Uncorr. ECC |
| Fan  Temp  Perf  Pwr:Usage/Cap|         Memory-Usage | GPU-Util  Compute M. |
|                               |                      |               MIG M. |
|===============================+======================+======================|
|   0  GeForce GTX 1060    Off  | 00000000:01:00.0 Off |                  N/A |
| N/A   53C    P0    26W /  N/A |      0MiB /  6078MiB |      2%      Default |
|                               |                      |                  N/A |
+-------------------------------+----------------------+----------------------+
                                                                               
+-----------------------------------------------------------------------------+
| Processes:                                                                  |
|  GPU   GI   CI        PID   Type   Process name                  GPU Memory |
|        ID   ID                                                   Usage      |
|=============================================================================|
|  No running processes found                                                 |
+-----------------------------------------------------------------------------+
1 Like

Thank you! The problem now is solved after updating to 455.

2 Likes

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.