Optimus-manager vs bumblebee

I have the following graphics on my laptop.
Which of these or both of these should I use?
Need some education on why each or one of these should be installed on my system.
Thanks

[demo@manjaro Downloads]$ inxi -G
Graphics:
  Device-1: Intel CometLake-U GT2 [UHD Graphics] driver: i915 v: kernel
  Device-2: NVIDIA GP108M [GeForce MX250] driver: nvidia v: 520.56.06
  Device-3: Chicony HP Wide Vision FHD Camera type: USB driver: uvcvideo
  Display: x11 server: X.Org v: 21.1.4 driver: X: loaded: modesetting
    dri: iris gpu: i915 resolution: 3840x2160~60Hz
  OpenGL: renderer: Mesa Intel UHD Graphics (CML GT2) v: 4.6 Mesa 22.2.1

Let me know if you need more info.

bumblebee is for the old legacy 390xx drivers, and is :poop:
if you want to switch between gpus, you should go with optimus manager if you have a optimus system…
check with:
mhwd -l -li

[demo@manjaro Downloads]$ mhwd -l -li
> Installed PCI configs:
--------------------------------------------------------------------------------
                  NAME               VERSION          FREEDRIVER           TYPE
--------------------------------------------------------------------------------
video-hybrid-intel-nvidia-prime            2021.12.18               false            PCI
     video-modesetting            2020.01.13                true            PCI


Warning: No installed USB configs!
> 0000:3b:00.0 (0302:10de:1d13) Display controller nVidia Corporation:
--------------------------------------------------------------------------------
                  NAME               VERSION          FREEDRIVER           TYPE
--------------------------------------------------------------------------------
video-hybrid-intel-nvidia-prime            2021.11.04               false            PCI
video-hybrid-intel-nvidia-470xx-prime            2021.11.04               false            PCI
          video-nvidia            2021.11.04               false            PCI
    video-nvidia-470xx            2021.11.04               false            PCI
           video-linux            2018.05.04                true            PCI


> 0000:00:02.0 (0300:8086:9b41) Display controller Intel Corporation:
--------------------------------------------------------------------------------
                  NAME               VERSION          FREEDRIVER           TYPE
--------------------------------------------------------------------------------
video-hybrid-intel-nvidia-prime            2021.11.04               false            PCI
video-hybrid-intel-nvidia-470xx-prime            2021.11.04               false            PCI
           video-linux            2018.05.04                true            PCI
     video-modesetting            2020.01.13                true            PCI
            video-vesa            2017.03.12                true            PCI



so you have optimus system, you have hybrid drivers, so you can use optimus-manager if you wish… here are instructions on how to install it, so that you dont end up with a black screen:

if you are using gnome, its a lot of tinkering, for kde, you have to only edit sddm.conf, then install it for kde:
pamac install optimus-manager optimus-manager-plasma
reboot

1 Like

Your spelling is terrible but I figured it out. Lol

[demo@manjaro Downloads]$ pamac install optimus-manager optimus-manager-plasma
Preparing...
Synchronizing package databases...
Refreshing AUR...                                                                                                        
                                                                                                                         
Choose optional dependencies for optimus-manager:
1:  bbswitch: alternative power switching method
2:  acpi_call: alternative power switching method
3:  xf86-video-intel: provides the Xorg intel driver

Enter a selection (default=none): 

Resolving dependencies...
Checking inter-conflicts...

To install (2):
  optimus-manager         1.4+r12-2    community  75.7 kB
  optimus-manager-plasma  1.6.9-2      community  212.7 kB

Total download size: 288.5 kB
Total installed size: 1.2 MB

Apply transaction ? [y/N] y
Download of optimus-manager-plasma (1.6.9-2) started                                                                     
Download of optimus-manager (1.4+r12-2) started                                                                          
Download of optimus-manager-plasma (1.6.9-2) finished                                                                    
Download of optimus-manager (1.4+r12-2) finished                                                                         
Checking keyring...                                                                                                 [2/2]
Checking integrity...                                                                                               [2/2]
Loading packages files...                                                                                           [2/2]
Checking file conflicts...                                                                                          [2/2]
Checking available disk space...                                                                                    [2/2]
Installing optimus-manager (1.4+r12-2)...                                                                           [1/2]
optimus-manager : enabling optimus-manager.service
tput: No value for $TERM and no -T specified
tput: No value for $TERM and no -T specified
tput: No value for $TERM and no -T specified
Please reboot your computer before using optimus-manager
Installing optimus-manager-plasma (1.6.9-2)...                                                                      [2/2]
Running post-transaction hooks...
Reloading system manager configuration...                                                                           [1/5]
Arming ConditionNeedsUpdate...                                                                                      [2/5]
Refreshing PackageKit...                                                                                            [3/5]
Updating icon theme caches...                                                                                       [4/5]
Updating the desktop file MIME type cache...                                                                        [5/5]
Transaction successfully finished.

rebooting now

I don’t think it installed correctly or I did something wrong:

[demo@manjaro Downloads]$ optimus-manager
Traceback (most recent call last):
  File "/usr/bin/optimus-manager", line 33, in <module>
    sys.exit(load_entry_point('optimus-manager==1.4', 'console_scripts', 'optimus-manager')())
  File "/usr/bin/optimus-manager", line 25, in importlib_load_entry_point
    return next(matches).load()
  File "/usr/lib/python3.10/importlib/metadata/__init__.py", line 171, in load
    module = import_module(match.group('module'))
  File "/usr/lib/python3.10/importlib/__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1050, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1006, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 688, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 883, in exec_module
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "/usr/lib/python3.10/site-packages/optimus_manager/client/__init__.py", line 8, in <module>
    from .. import checks
  File "/usr/lib/python3.10/site-packages/optimus_manager/checks.py", line 5, in <module>
    import dbus
ModuleNotFoundError: No module named 'dbus'

from what is this output? the installation was without errors …

I ran optimus-manager

i see…
right click on the optimus tray icon and select nvidia, it will log you out, and when you log in, you will be on nvidia

Ok I didn’t see the tray icon it was hidden.
Fixed that.
Chose nvidia
It said something about power management and some symbolic-icon error
It now says Current Video Card: Integrated.
Is that correct for Nvidia?

when you switch between gpus, there are 2 popups, you click ok/yes, log out/log in and you should be on the gpu, that you switched to…
so if you selected nvidia and it shows integrated/intel, so something is wrong…
post output from:
nvidia-smi

[demo@manjaro Downloads]$ nvidia-smi
Sun Oct 30 10:25:50 2022       
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 520.56.06    Driver Version: 520.56.06    CUDA Version: 11.8     |
|-------------------------------+----------------------+----------------------+
| 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  NVIDIA GeForce ...  Off  | 00000000:3B:00.0 Off |                  N/A |
| N/A   35C    P8    N/A /  N/A |      0MiB /  2048MiB |      0%      Default |
|                               |                      |                  N/A |
+-------------------------------+----------------------+----------------------+
                                                                               
+-----------------------------------------------------------------------------+
| Processes:                                                                  |
|  GPU   GI   CI        PID   Type   Process name                  GPU Memory |
|        ID   ID                                                   Usage      |
|=============================================================================|
|  No running processes found                                                 |
+-----------------------------------------------------------------------------+

try running it via command:
optimus-manager --switch nvidia

There is probably something else wrong with my system that I am unaware of because my system is running fine.
I am on unstable if that helps:

[demo@manjaro Downloads]$ optimus-manager --switch nvidia
Traceback (most recent call last):
  File "/usr/bin/optimus-manager", line 33, in <module>
    sys.exit(load_entry_point('optimus-manager==1.4', 'console_scripts', 'optimus-manager')())
  File "/usr/bin/optimus-manager", line 25, in importlib_load_entry_point
    return next(matches).load()
  File "/usr/lib/python3.10/importlib/metadata/__init__.py", line 171, in load
    module = import_module(match.group('module'))
  File "/usr/lib/python3.10/importlib/__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1050, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1006, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 688, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 883, in exec_module
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "/usr/lib/python3.10/site-packages/optimus_manager/client/__init__.py", line 8, in <module>
    from .. import checks
  File "/usr/lib/python3.10/site-packages/optimus_manager/checks.py", line 5, in <module>
    import dbus
ModuleNotFoundError: No module named 'dbus'

that could be a reason…
check if you have installed dbus:
pacman -Qs dbus

[demo@manjaro Downloads]$ pacman -Qs dbus
local/bluez-qt 5.99.0-1 (kf5)
    Qt wrapper for Bluez 5 DBus API
local/dbus 1.14.4-1
    Freedesktop.org message bus system
local/dbus-glib 0.112-2
    GLib bindings for DBUS
local/dbus-python 1.2.18-3
    Python bindings for DBUS
local/kdbusaddons 5.99.0-1 (kf5)
    Addons to QtDBus
local/lib32-dbus 1.14.4-1
    Freedesktop.org message bus system (32-bit)
local/lib32-dbus-glib 0.112-2
    GLib bindings for DBUS
local/lib32-libdbusmenu-glib 16.04.0-5
    Library for passing menus over DBus (32-bit)
local/lib32-libdbusmenu-gtk2 16.04.0-5
    Library for passing menus over DBus (32-bit) (GTK+ 2 library)
local/libcloudproviders 0.3.1-2
    DBus API that allows cloud storage sync clients to expose their services
local/libdbusmenu-glib 16.04.0-5
    Library for passing menus over DBus
local/libdbusmenu-gtk2 16.04.0-5
    Library for passing menus over DBus (GTK+ 2 library)
local/libdbusmenu-gtk3 16.04.0-5
    Library for passing menus over DBus (GTK+ 3 library)
local/libdbusmenu-qt5 0.9.3+16.04.20160218-6
    A library that provides a Qt implementation of the DBusMenu spec
local/modemmanager-qt 5.99.0-1 (kf5)
    Qt wrapper for ModemManager DBus API
local/python-pydbus 0.6.0-9
    Pythonic D-Bus library
local/xdg-dbus-proxy 0.1.4-1
    Filtering proxy for D-Bus connections

so you have it installed…
so could be because of the unstable branch…
or it could be because of kernel, what kernel are you running and have installed?:
mhwd-kernel -li

[demo@manjaro Downloads]$ mhwd-kernel -li
Currently running: 6.0.6-1-MANJARO (linux60)
The following kernels are installed in your system:
   * linux519
   * linux60
   * linux519-rt

if you dont need the linux519-rt, uninstall it, and reboot and switch to the normal 5.19, and try switching, so that we can rule out the kernel option

This should be the one I am running:

[demo@manjaro Downloads]$ uname -a
Linux manjaro 6.0.6-1-MANJARO #1 SMP PREEMPT_DYNAMIC Sat Oct 29 14:21:50 UTC 2022 x86_64 GNU/Linux

Do you want me to switch to 5.19?