Unable to find Optimus Manager daemon

Hello, after the last Manjaro updates, I cannot start the Optimus Manager correctly.

Clicking on the icon and selecting "Settings" I receive this popup-error.

Screen Capture_optimus-manager-qt_20200610184920

Then, clicking Ok it appears another popup:
Screen Capture_optimus-manager-qt_20200610185103
What can I do?

Then, clicking Ok it opens the settings.

Screen Capture_optimus-manager-qt_20200610185400
The switching of the driver is working properly. But it seems I am unable to correctly run Optimus Manager.

Go trough the tutorial again and check what is inconsistent

Post the output of:

sudo systemctl status optimus-manager.service

journalctl -u optimus-manager.service

Or actually, input the second command to a file and copy/paste it here. In terminal most people send incomplete output (lines are too long and they are cut off and users don't understand they have to maximize the window first before running command and copying the result):

journalctl -u optimus-manager.service>optimus-manager.log

1 Like

Hi, sorry for the delay.

I just want to add that I am able to switch from drivers. The switching from Intel to NVIDIA works well.

systemctl status optimus-manager
[dlynfox@prophet ~]$ sudo 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 Sun 2020-07-19 11:21:35 CEST; 33min ago
    Process: 986 ExecStartPre=/usr/bin/python3 -u -m optimus_manager.hooks.pre_daemon_start (code=exited, status=0/S>
    Process: 1092 ExecStartPre=/usr/bin/python3 -u -m optimus_manager.hooks.pre_xorg_start (code=exited, status=0/SU>
   Main PID: 1249 (python3)
      Tasks: 1 (limit: 38078)
     Memory: 35.1M
     CGroup: /system.slice/optimus-manager.service
             └─1249 /usr/bin/python3 -u -m optimus_manager.daemon
lug 19 11:21:36 prophet python3[1249]: [1] INFO: Opening UNIX socket
lug 19 11:21:36 prophet python3[1249]: [1] INFO: Awaiting commands
lug 19 11:22:39 prophet python3[1249]: [63891] INFO: Received command : {
lug 19 11:22:39 prophet python3[1249]:     "args": {
lug 19 11:22:39 prophet python3[1249]:         "mode": "nvidia"
lug 19 11:22:39 prophet python3[1249]:     },
lug 19 11:22:39 prophet python3[1249]:     "type": "switch"
lug 19 11:22:39 prophet python3[1249]: }
lug 19 11:22:39 prophet python3[1249]: [63891] INFO: Writing requested GPU mode nvidia
lug 19 11:22:39 prophet python3[1249]: [63891] INFO: Writing state {'type': 'pending_pre_xorg_start', 'requested_mod>

[dlynfox@prophet ~]$ inxi -G
Graphics:  Device-1: Intel UHD Graphics 630 driver: i915 v: kernel 
           Device-2: NVIDIA TU117M [GeForce GTX 1650 Mobile / Max-Q] driver: nvidia v: 440.82 
           Display: x11 server: X.Org 1.20.8 driver: modesetting,nvidia resolution: 1920x1080~60Hz 
           OpenGL: renderer: GeForce GTX 1650/PCIe/SSE2 v: 4.6.0 NVIDIA 440.82 
[dlynfox@prophet ~]$ 

Here the output for journalctl -u optimus-manager:

lug 19 11:21:35 prophet systemd[1]: Starting Optimus Manager Commands Daemon...
lug 19 11:21:35 prophet python3[986]: [41] INFO: # Daemon pre-start hook
lug 19 11:21:35 prophet python3[986]: [41] INFO: Removing /etc/X11/xorg.conf.d/10-optimus-manager.conf (if present)
lug 19 11:21:35 prophet python3[986]: [42] INFO: Copying /etc/optimus-manager/optimus-manager.conf to /var/lib/optimus-manager/tmp/config_copy.conf
lug 19 11:21:35 prophet python3[986]: [46] INFO: Startup mode is: intel
lug 19 11:21:35 prophet python3[986]: [46] INFO: Writing state {'type': 'pending_pre_xorg_start', 'requested_mode': 'intel', 'current_mode': None}
lug 19 11:21:35 prophet python3[986]: [47] INFO: Daemon pre-start hook completed successfully.
lug 19 11:21:35 prophet python3[986]: [47] INFO: Calling Xorg pre-start hook.
lug 19 11:21:35 prophet python3[1092]: [12] INFO: # Xorg pre-start hook
lug 19 11:21:35 prophet python3[1092]: [12] INFO: Requested mode is: intel
lug 19 11:21:35 prophet python3[1092]: [12] INFO: Checking for GDM display servers
lug 19 11:21:35 prophet python3[1092]: [329] INFO: Available modules: ['nouveau', 'nvidia', 'nvidia_drm', 'nvidia_modeset', 'nvidia_uvm']
lug 19 11:21:35 prophet python3[1092]: [329] INFO: Unloading modules ['nvidia_drm', 'nvidia_modeset', 'nvidia_uvm', 'nvidia'] (if loaded)
lug 19 11:21:35 prophet python3[1092]: [333] INFO: Loading module nouveau
lug 19 11:21:35 prophet python3[1092]: [712] INFO: Loaded extra Intel Xorg options (0 lines)
lug 19 11:21:35 prophet python3[1092]: [713] INFO: Loaded extra Intel Xorg options (0 lines)
lug 19 11:21:35 prophet python3[1092]: [713] INFO: Writing to /etc/X11/xorg.conf.d/10-optimus-manager.conf
lug 19 11:21:35 prophet python3[1092]: [713] INFO: Writing state {'type': 'pending_post_xorg_start', 'switch_id': '20200719T112135', 'requested_mode': 'intel'}
lug 19 11:21:35 prophet python3[1092]: [713] INFO: Xorg pre-start hook completed successfully.
lug 19 11:21:35 prophet systemd[1]: Started Optimus Manager Commands Daemon.
lug 19 11:21:36 prophet python3[1249]: [1] INFO: # Commands daemon
lug 19 11:21:36 prophet python3[1249]: [1] INFO: Opening UNIX socket
lug 19 11:21:36 prophet python3[1249]: [1] INFO: Awaiting commands
lug 19 11:22:39 prophet python3[1249]: [63891] INFO: Received command : {
lug 19 11:22:39 prophet python3[1249]:     "args": {
lug 19 11:22:39 prophet python3[1249]:         "mode": "nvidia"
lug 19 11:22:39 prophet python3[1249]:     },
lug 19 11:22:39 prophet python3[1249]:     "type": "switch"
lug 19 11:22:39 prophet python3[1249]: }
lug 19 11:22:39 prophet python3[1249]: [63891] INFO: Writing requested GPU mode nvidia
lug 19 11:22:39 prophet python3[1249]: [63891] INFO: Writing state {'type': 'pending_pre_xorg_start', 'requested_mode': 'nvidia', 'current_mode': 'intel'}

Should I uninstall and re-install again Optimus-Manager?

It's worth a try. I can't see any errors in the journalctl -u optimus-manager.service.

1 Like

Why? If it works well, then it works. No need to mess with it any further. I see no errors in optimus-manager log.

1 Like

But the problem when I open the Settings is still present.

Now in the journal I see an ERROR, do you think it could be linked to the problem?

lug 19 14:20:04 prophet python3[1249]: [10708833] INFO: Received command : {
lug 19 14:20:04 prophet python3[1249]:     "args": {
lug 19 14:20:04 prophet python3[1249]:         "content": "[intel]\nDRI=3\naccel=\ndriver=modesetting\nmodeset=yes\ntearfree=\n\n[nvidia]\nDPI=96\nPAT=yes\nignore_abi=no\nmodeset=yes\noptions=overclocking\n\n[optimus]\nauto_logout=yes\n>
lug 19 14:20:04 prophet python3[1249]:     },
lug 19 14:20:04 prophet python3[1249]:     "type": "user_config"
lug 19 14:20:04 prophet python3[1249]: }
lug 19 14:20:04 prophet python3[1249]: [10708834] INFO: Replacing user config at /etc/optimus-manager/optimus-manager.conf with provided content
lug 19 14:20:04 prophet python3[1249]: [10708834] INFO: Received command : {
lug 19 14:20:04 prophet python3[1249]:     "args": {
lug 19 14:20:04 prophet python3[1249]:         "path": ""
lug 19 14:20:04 prophet python3[1249]:     },
lug 19 14:20:04 prophet python3[1249]:     "type": "temp_config"
lug 19 14:20:04 prophet python3[1249]: }
lug 19 14:20:04 prophet python3[1249]: [10708834] INFO: Removing temporary config file path
lug 19 14:20:04 prophet python3[1249]: [10708835] INFO: Received command : {
lug 19 14:20:04 prophet python3[1249]:     "args": {
lug 19 14:20:04 prophet python3[1249]:         "mode": "intel"
lug 19 14:20:04 prophet python3[1249]:     },
lug 19 14:20:04 prophet python3[1249]:     "type": "startup"
lug 19 14:20:04 prophet python3[1249]: }
lug 19 14:20:04 prophet python3[1249]: [10708835] ERROR: Invalid command  "{
lug 19 14:20:04 prophet python3[1249]:     "args": {
lug 19 14:20:04 prophet python3[1249]:         "mode": "intel"
lug 19 14:20:04 prophet python3[1249]:     },
lug 19 14:20:04 prophet python3[1249]:     "type": "startup"
lug 19 14:20:04 prophet python3[1249]: }
lug 19 14:20:04 prophet python3[1249]: " ! Unknown type startup
lines 1914-1969/1969 (END)

Well, startup is not a command, it's a setup, so it looks weird, I admit. As if configs were somehow bugged or as if you messed with them manually.
I guess you could try uninstalling and installing optimus-manager again:

sudo pacman -Rn optimus-manager
sudo pacman -S optimus-manager

Probably it will take down also the tray utility (optimus-manager-qt) so you need to install it again as well.
Note, that the command above is meant to delete backup configs as well, as those configs seems to be problematic anyway. So after install, you will have to configure things again, but first, test the defaults - maybe they will work fine.

I tried to uninstall and reinstall again, paying attention to all the steps in your Guide.

Now I can open the optimus-manager settings and the error is not present! That's good.

The problem now is that does not work properly the switch from Intel to NVIDIA. After logging again in the DE the mode is Intel and not NVIDIA.

[dlynfox@prophet ~]$ inxi -G
Graphics:  Device-1: Intel UHD Graphics 630 driver: i915 v: kernel 
          Device-2: NVIDIA TU117M [GeForce GTX 1650 Mobile / Max-Q] driver: nouveau v: kernel 
          Display: x11 server: X.Org 1.20.8 driver: modesetting resolution: 1920x1080~60Hz 
          OpenGL: renderer: Mesa Intel UHD Graphics 630 (CFL GT2) v: 4.6 Mesa 20.1.3 

Status:

● optimus-manager.service - Optimus Manager Commands Daemon
     Loaded: loaded (/usr/lib/systemd/system/optimus-manager.service; enabled; vendor preset: disabled)
     Active: active (running) since Tue 2020-07-21 16:02:23 CEST; 40s ago
    Process: 903 ExecStartPre=/usr/bin/python3 -u -m optimus_manager.hooks.pre_daemon_start (code=exited, status=0/SUCCESS)
    Process: 1019 ExecStartPre=/usr/bin/python3 -u -m optimus_manager.hooks.pre_xorg_start (code=exited, status=0/SUCCESS)
   Main PID: 1151 (python3)
      Tasks: 1 (limit: 38078)
     Memory: 35.6M
     CGroup: /system.slice/optimus-manager.service
             └─1151 /usr/bin/python3 -u -m optimus_manager.daemon

Jul 21 16:02:23 prophet python3[1019]: [380] INFO: Loading module nouveau
Jul 21 16:02:23 prophet python3[1019]: [869] INFO: Loaded extra Intel Xorg options (0 lines)
Jul 21 16:02:23 prophet python3[1019]: [869] INFO: Loaded extra Intel Xorg options (0 lines)
Jul 21 16:02:23 prophet python3[1019]: [869] INFO: Writing to /etc/X11/xorg.conf.d/10-optimus-manager.conf
Jul 21 16:02:23 prophet python3[1019]: [869] INFO: Writing state {'type': 'pending_post_xorg_start', 'switch_id': '20200721T160223', 'requested_mode': 'intel'}
Jul 21 16:02:23 prophet python3[1019]: [870] INFO: Xorg pre-start hook completed successfully.
Jul 21 16:02:23 prophet systemd[1]: Started Optimus Manager Commands Daemon.
Jul 21 16:02:23 prophet python3[1151]: [1] INFO: # Commands daemon
Jul 21 16:02:23 prophet python3[1151]: [1] INFO: Opening UNIX socket
Jul 21 16:02:23 prophet python3[1151]: [1] INFO: Awaiting commands

Config optimus:

[dlynfox@prophet ~]$ cat /etc/optimus-manager/optimus-manager.conf 
[intel]
DRI=3
accel=
driver=modesetting
modeset=yes
tearfree=

[nvidia]
DPI=96
PAT=yes
ignore_abi=no
modeset=yes
options=overclocking

[optimus]
auto_logout=yes
pci_power_control=no
pci_remove=no
pci_reset=no
switching=nouveau

Here the journal:


-- Reboot --
Jul 21 16:02:22 prophet systemd[1]: Starting Optimus Manager Commands Daemon...
Jul 21 16:02:22 prophet python3[903]: [47] INFO: # Daemon pre-start hook
Jul 21 16:02:22 prophet python3[903]: [47] INFO: Removing /etc/X11/xorg.conf.d/10-optimus-manager.conf (if present)
Jul 21 16:02:22 prophet python3[903]: [48] INFO: Copying /etc/optimus-manager/optimus-manager.conf to /var/lib/optimus-manager/tmp/config_copy.conf
Jul 21 16:02:22 prophet python3[903]: [55] INFO: Startup mode is: intel
Jul 21 16:02:22 prophet python3[903]: [55] INFO: Writing state {'type': 'pending_pre_xorg_start', 'requested_mode': 'intel', 'current_mode': None}
Jul 21 16:02:22 prophet python3[903]: [55] INFO: Daemon pre-start hook completed successfully.
Jul 21 16:02:22 prophet python3[903]: [55] INFO: Calling Xorg pre-start hook.
Jul 21 16:02:23 prophet python3[1019]: [18] INFO: # Xorg pre-start hook
Jul 21 16:02:23 prophet python3[1019]: [19] INFO: Previous state was: {'type': 'pending_pre_xorg_start', 'requested_mode': 'intel', 'current_mode': None}
Jul 21 16:02:23 prophet python3[1019]: [19] INFO: Requested mode is: intel
Jul 21 16:02:23 prophet python3[1019]: [19] INFO: Checking for GDM display servers
Jul 21 16:02:23 prophet python3[1019]: [375] INFO: Available modules: ['nouveau', 'nvidia', 'nvidia_drm', 'nvidia_modeset', 'nvidia_uvm']
Jul 21 16:02:23 prophet python3[1019]: [375] INFO: Unloading modules ['nvidia_drm', 'nvidia_modeset', 'nvidia_uvm', 'nvidia'] (if loaded)
Jul 21 16:02:23 prophet python3[1019]: [380] INFO: Loading module nouveau
Jul 21 16:02:23 prophet python3[1019]: [869] INFO: Loaded extra Intel Xorg options (0 lines)
Jul 21 16:02:23 prophet python3[1019]: [869] INFO: Loaded extra Intel Xorg options (0 lines)
Jul 21 16:02:23 prophet python3[1019]: [869] INFO: Writing to /etc/X11/xorg.conf.d/10-optimus-manager.conf
Jul 21 16:02:23 prophet python3[1019]: [869] INFO: Writing state {'type': 'pending_post_xorg_start', 'switch_id': '20200721T160223', 'requested_mode': 'intel'}
Jul 21 16:02:23 prophet python3[1019]: [870] INFO: Xorg pre-start hook completed successfully.
Jul 21 16:02:23 prophet systemd[1]: Started Optimus Manager Commands Daemon.
Jul 21 16:02:23 prophet python3[1151]: [1] INFO: # Commands daemon
Jul 21 16:02:23 prophet python3[1151]: [1] INFO: Opening UNIX socket
Jul 21 16:02:23 prophet python3[1151]: [1] INFO: Awaiting commands
Jul 21 16:09:00 prophet python3[1151]: [396290] INFO: Received command : {
Jul 21 16:09:00 prophet python3[1151]:     "args": {
Jul 21 16:09:00 prophet python3[1151]:         "mode": "nvidia"
Jul 21 16:09:00 prophet python3[1151]:     },
Jul 21 16:09:00 prophet python3[1151]:     "type": "switch"
Jul 21 16:09:00 prophet python3[1151]: }
Jul 21 16:09:00 prophet python3[1151]: [396290] INFO: Writing requested GPU mode nvidia
Jul 21 16:09:00 prophet python3[1151]: [396291] INFO: Writing state {'type': 'pending_pre_xorg_start', 'requested_mode': 'nvidia', 'current_mode': 'intel'}

In all logs you presented you chose Intel. There is no trace of attempt to switch to Nvidia... Maybe optimus-manager-qt is malfunctioning if you choose Nvidia and in the backed Intel is served. Try switching to Nvidia manually from terminal.

EDIT: Ah wait, I see something suspicious:

Current mode none? That's a first. Some optimus-configs are wrong or there is some conflict after all.

2 Likes

I tried to switch manually with:

sudo optimus-manager --switch nvidia

But after logging out and logging in nothing changed. I see the icon intel and here the journal from the boot to the logout - login session after the manual switch:

-- Reboot --
Jul 25 19:13:09 prophet systemd[1]: Starting Optimus Manager Commands Daemon...
Jul 25 19:13:09 prophet python3[915]: [23] INFO: # Daemon pre-start hook
Jul 25 19:13:09 prophet python3[915]: [24] INFO: Removing /etc/X11/xorg.conf.d/10-optimus-manager.conf (if present)
Jul 25 19:13:09 prophet python3[915]: [24] INFO: Copying /etc/optimus-manager/optimus-manager.conf to /var/lib/optimus-manager/tmp/config_copy.conf
Jul 25 19:13:09 prophet python3[915]: [27] INFO: Startup mode is: intel
Jul 25 19:13:09 prophet python3[915]: [27] INFO: Writing state {'type': 'pending_pre_xorg_start', 'requested_mode': 'intel', 'current_mode': None}
Jul 25 19:13:09 prophet python3[915]: [27] INFO: Daemon pre-start hook completed successfully.
Jul 25 19:13:09 prophet python3[915]: [27] INFO: Calling Xorg pre-start hook.
Jul 25 19:13:09 prophet python3[1011]: [17] INFO: # Xorg pre-start hook
Jul 25 19:13:09 prophet python3[1011]: [17] INFO: Previous state was: {'type': 'pending_pre_xorg_start', 'requested_mode': 'intel', 'current_mode': None}
Jul 25 19:13:09 prophet python3[1011]: [17] INFO: Requested mode is: intel
Jul 25 19:13:09 prophet python3[1011]: [17] INFO: Checking for GDM display servers
Jul 25 19:13:10 prophet python3[1011]: [302] INFO: Available modules: ['nouveau', 'nvidia', 'nvidia_drm', 'nvidia_modeset', 'nvidia_uvm']
Jul 25 19:13:10 prophet python3[1011]: [302] INFO: Unloading modules ['nvidia_drm', 'nvidia_modeset', 'nvidia_uvm', 'nvidia'] (if loaded)
Jul 25 19:13:10 prophet python3[1011]: [306] INFO: Loading module nouveau
Jul 25 19:13:10 prophet python3[1011]: [742] INFO: Loaded extra Intel Xorg options (0 lines)
Jul 25 19:13:10 prophet python3[1011]: [742] INFO: Loaded extra Intel Xorg options (0 lines)
Jul 25 19:13:10 prophet python3[1011]: [742] INFO: Writing to /etc/X11/xorg.conf.d/10-optimus-manager.conf
Jul 25 19:13:10 prophet python3[1011]: [742] INFO: Writing state {'type': 'pending_post_xorg_start', 'switch_id': '20200725T191309', 'requested_mode': 'intel'}
Jul 25 19:13:10 prophet python3[1011]: [743] INFO: Xorg pre-start hook completed successfully.
Jul 25 19:13:10 prophet systemd[1]: Started Optimus Manager Commands Daemon.
Jul 25 19:13:10 prophet python3[1174]: [1] INFO: # Commands daemon
Jul 25 19:13:10 prophet python3[1174]: [1] INFO: Opening UNIX socket
Jul 25 19:13:10 prophet python3[1174]: [1] INFO: Awaiting commands
Jul 25 19:17:13 prophet python3[1174]: [243172] INFO: Received command : {"type": "switch", "args": {"mode": "nvidia"}}
Jul 25 19:17:13 prophet python3[1174]: [243172] INFO: Writing requested GPU mode nvidia
Jul 25 19:17:13 prophet python3[1174]: [243172] INFO: Writing state {'type': 'pending_pre_xorg_start', 'requested_mode': 'nvidia', 'current_mode': 'intel'}

But still loaded the intel driver:

[dlynfox@prophet ~]$ inxi -G
Graphics:  Device-1: Intel UHD Graphics 630 driver: i915 v: kernel 
           Device-2: NVIDIA TU117M [GeForce GTX 1650 Mobile / Max-Q] driver: N/A 
           Display: x11 server: X.Org 1.20.8 driver: modesetting resolution: 1920x1080~60Hz 
           OpenGL: renderer: Mesa Intel UHD Graphics 630 (CFL GT2) v: 4.6 Mesa 20.1.3 

What do you suggest to me?

Reinstall optimus-manager. If that doesn't help, install git version and try again.

1 Like

Did it. I installed the git version for both Optimus-manager and Optimus-manager-qt.

But it does not work yet. :frowning_face: :frowning_face:

What I noticed is that after switching to Nvidia, Optimus forced me to logout and login.
After the login I still see the pending request from the cli:

[dlynfox@prophet ~]$ optimus-manager --version
A GPU switch from intel to nvidia is pending.
Log out and log back in to apply.
Optimus Manager (Client) version 1.3

I tried to logout again and then the screen became black and I forced reset for starting again the session.

I also tried to uninstall and reinstall the nvidia-prime-hybrid-440xx driver but nothing changed. :frowning:

Fortunately now it works!
What I tried to do is:

  • uninstall the nvidia driver
  • reinstall nvidia driver
  • modified the switching method to BBswitch in Optimus-manager

Now the switching works properly as you can see:

inxi -G
Graphics:  Device-1: Intel UHD Graphics 630 driver: i915 v: kernel 
           Device-2: NVIDIA TU117M [GeForce GTX 1650 Mobile / Max-Q] driver: nvidia v: 440.100 
           Display: x11 server: X.Org 1.20.8 driver: modesetting,nvidia resolution: 1920x1080~60Hz 
           OpenGL: renderer: GeForce GTX 1650/PCIe/SSE2 v: 4.6.0 NVIDIA 440.100

Is there anyone that can explain me what is the BBswitch method ? and the Neoveou?

Many Thanks.

1 Like

I'm glad you made it working.

As to your other question, let me quote proper documentation:

bbswitch is a kernel module which automatically detects the required ACPI calls for two kinds of Optimus laptops. It has been verified to work with "real" Optimus and "legacy" Optimus laptops

As to nouveau, it's an open source version of nvidia drivers made by community (by reverse engineering) and it does have ability to offload nvidia, so optimus-manager tries to use nouveau part to switch the card, but then Nvidia drivers take on. At least those are my assumptions, so if anyone knows better, correct me.

1 Like

The sad story is that the switching yesterday worked for a while, but I tried to switch from intel to nvidia and back to intel again and stopped working.

The weird fact is that with BBswitch when I try to switch I receive the message that the module is not available for this kernel. But yesterday, even if with the message, the switching went good.

So I tried again with noveou and again with BBswitch but is not working. I think there is something weird. I think I would try to restore a full functional backup before the update because I do not really what I can do.

Sometimes the switch will work one way and the other not, but after reboot it will again work. Of course, it should work in 90% time if everything is OK, but sometimes it can be wonky and doesn't work all the time. I had it in the past as well, but it fixed itself with time.

You can experiment with various switching settings. Currently, you have 4 switching settings. Also you may try to improve ACPI calls. It doesn't hurt to try:

You may also try different kernels.

Also, remember that after system update kernel modules won't work till the reboot happens, so maybe you just updated system? Sometimes simply something goes wrong under the hood and things won't work until reboot. Usually Linux is super stable, but that is true for servers. Desktop systems are way more complicated so it can result in some weird behavior and instability on some setups and hardware.

Forum kindly sponsored by