optimus-manager: ERROR: the active card is "integrated" but it should be "nvidia".
Describe the bug
On any optimus-manager command I get ERROR: the active card is "integrated" but it should be "nvidia".
System info
- Arch Linux
- Hyprland x Wayland
- SDDM
- Asus with Nvidia dGPU x AMD iGPU
- optimus-manager v1.5
Logs
$ optimus-manager --status
ERROR: the active card is "integrated" but it should be "nvidia".
Something went wrong during the last GPU setup...
Log at /var/log/optimus-manager/switch/switch-20250120T165938.log
Optimus Manager (Client) version 1.5
# /var/log
[28] INFO: # Xorg pre-start hook
[28] INFO: Previous state was: {'type': 'pending_pre_xorg_start', 'requested_mode': 'nvidia', 'current_mode': None}
[29] INFO: Requested mode is: nvidia
[100] INFO: Available modules: ['nouveau', 'nvidia', 'nvidia_drm', 'nvidia_modeset', 'nvidia_uvm']
[100] INFO: Unloading modules ['nouveau'] (if loaded)
[109] INFO: switching=none, nothing to do
[346] INFO: Setting Nvidia PCI power state to on
[577] INFO: Writing "on" to /sys/bus/pci/devices/0000:01:00.0/power/control
[589] INFO: Loading module nvidia
[599] INFO: Loading module nvidia_drm
[848] INFO: Writing to /etc/X11/xorg.conf.d/10-optimus-manager.conf
[848] INFO: Writing state {'type': 'pending_post_xorg_start', 'switch_id': '20250120T165938', 'requested_mode': 'nvidia'}
[848] INFO: Xorg pre-start hook completed successfully.
[24] INFO: # Xorg post-start hook
[36] INFO: Running xrandr commands
[46] ERROR: Cannot setup PRIME (xrandr error):
None
[46] INFO: Running /etc/optimus-manager/xsetup-nvidia.sh
[66] INFO: Writing state {'type': 'done', 'switch_id': '20250120T165938', 'current_mode': 'nvidia'}
[67] INFO: Xorg post-start hook completed successfully.
$ ❯ lspci | grep NVIDIA; pacman --query --info nvidia optimus-manager-git
01:00.0 3D controller: NVIDIA Corporation GA107M [GeForce RTX 3050 Mobile] (rev a1)
Name : nvidia-dkms
Version : 565.77-2
Description : NVIDIA kernel modules - module sources
Architecture : x86_64
URL : http://www.nvidia.com/
Licenses : custom
Groups : None
Provides : NVIDIA-MODULE nvidia
Depends On : dkms nvidia-utils=565.77 libglvnd
Optional Deps : None
Required By : optimus-manager-git
Optional For : None
Conflicts With : NVIDIA-MODULE nvidia
Replaces : None
Installed Size : 85.14 MiB
Packager : Peter Jung <ptr1337@archlinux.org>
Build Date : Fri Dec 13 11:40:43 2024
Install Date : Mon Jan 20 11:47:41 2025
Install Reason : Explicitly installed
Install Script : No
Validated By : Signature
Name : optimus-manager-git
Version : 1:r771.6b3d3e5.python3.12-1
Description : Allows using Nvidia Optimus laptop graphics
Architecture : any
URL : https://github.com/Askannz/optimus-manager
Licenses : MIT
Groups : None
Provides : optimus-manager=r771.6b3d3e5.python3.12
Depends On : dbus-python glxinfo NVIDIA-MODULE python xorg-xrandr
Optional Deps : gdm-prime: needed if your login screen is gdm
bbswitch: alternatively switches GPUs by using standard Optimus ACPI calls
acpi_call: alternatively switches GPUs by brute forcing ACPI calls
Required By : None
Optional For : None
Conflicts With : bumblebee envycontrol nvidia-exec nvidia-switch nvidia-xrun optimus-manager switcheroo-control
Replaces : None
Installed Size : 361.22 KiB
Packager : Unknown Packager
Build Date : Mon Jan 20 16:58:50 2025
Install Date : Mon Jan 20 16:59:02 2025
Install Reason : Explicitly installed
Install Script : Yes
Validated By : None
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 18
Sorry for the confusion, I missed an obvious detail about your bug report. That you are using a Wayland session.
On Wayland xorg tools don’t necessarily work, same with the
optimus-managerservice and settings.Instead what optimus-manager does is changing environment variables, so the desktop launches on the iGPU and any EGL app on the dGPU independently of any configuration in
optimus-manager.conf.The performance of the desktop may vary depending if the screen is internal or external, as one GPU is attached to the internal screen and the other to the external port. Sadly I don’t see how this could be improved.
When you launch any app on Wayland it runs on the dGPU, doesn’t it?
Anyway xserver shall work somehow better with Nvidia.