You are not logged in.
I have an old laptop Acer Aspire A515 with arch installed (X11, sddm, kde plasma) and until now I have used the integrated intel graphic card.
[armand@arch-laptop ~]$ lspci | grep -E "VGA|3D"
00:02.0 VGA compatible controller: Intel Corporation HD Graphics 620 (rev 02)
01:00.0 3D controller: NVIDIA Corporation GM108M [GeForce MX130] (rev a2)
[armand@arch-laptop ~]$ The Nvidia card must be poweful and I decided to install and activate Optimus.
[armand@arch-laptop ~]$ sudo pacman -S nvidia [armand@arch-laptop ~]$ yay -S optimus-manager optimus-manager-qt[armand@arch-laptop ~]$ systemctl status optimus-manager.service
● optimus-manager.service - Optimus Manager Commands Daemon
Loaded: loaded (/usr/lib/systemd/system/optimus-manager.service; enabled; vendor preset: disabled)
Active: active (running) since Sat 2021-12-11 12:22:40 +07; 1h 10min ago
Process: 385 ExecStartPre=/usr/bin/python3 -u -m optimus_manager.hooks.pre_daemon_start (code=exited, status=0/SUCCESS)
Process: 409 ExecStartPre=/usr/bin/python3 -u -m optimus_manager.hooks.pre_xorg_start (code=exited, status=0/SUCCESS)
Main PID: 423 (python3)
Tasks: 1 (limit: 4539)
Memory: 43.3M
CPU: 1.764s
CGroup: /system.slice/optimus-manager.service
└─423 /usr/bin/python3 -u -m optimus_manager.daemon
déc. 11 12:22:39 arch-laptop python3[409]: [1853] INFO: Available modules: ['nouveau', 'nvidia', 'nvidia_drm', 'nvidia_modeset', 'nvidia_uvm']
déc. 11 12:22:39 arch-laptop python3[409]: [1853] INFO: Unloading modules ['nvidia_drm', 'nvidia_modeset', 'nvidia_uvm', 'nvidia'] (if loaded)
déc. 11 12:22:39 arch-laptop python3[409]: [1857] INFO: switching=none, nothing to do
déc. 11 12:22:40 arch-laptop python3[409]: [2389] INFO: Writing to /etc/X11/xorg.conf.d/10-optimus-manager.conf
déc. 11 12:22:40 arch-laptop python3[409]: [2390] INFO: Writing state {'type': 'pending_post_xorg_start', 'switch_id': '20211211T122237', 'requested_mode': 'integrate>
déc. 11 12:22:40 arch-laptop python3[409]: [2390] INFO: Xorg pre-start hook completed successfully.
déc. 11 12:22:40 arch-laptop systemd[1]: Started Optimus Manager Commands Daemon.
déc. 11 12:22:40 arch-laptop python3[423]: [2] INFO: # Commands daemon
déc. 11 12:22:40 arch-laptop python3[423]: [2] INFO: Opening UNIX socket
déc. 11 12:22:40 arch-laptop python3[423]: [2] INFO: Awaiting commands
[armand@arch-laptop ~]$ I try to switch to the Nviidia card and the trouble starts.
optimus-manager --switch nvidia
ERROR: cannot check the active card (should be "integrated"). Reason: Cannot run glxinfo: /bin/sh: ligne 1: glxinfo : commande introuvable
Something went wrong during the last GPU setup...
Log at /var/log/optimus-manager/switch/switch-20211211T122237.log
Cannot execute command because of previous errors.
[armand@arch-l[armand@arch-laptop ~]$aptop ~]$ glxinfo seems to belong to 'mesa-demos', I install the package
[armand@arch-laptop ~]$ pacman -Qi mesa-demos
Nom : mesa-demos
Version : 8.4.0-6
Description : Mesa demos
Architecture : x86_64
URL : https://www.mesa3d.org/
Licences : custom
Groupes : --
Fournit : --
Dépend de : glew freeglut
Dépendances opt. : --
Requis par : optimus-manager
Optionnel pour : --
Est en conflit avec : --
Remplace : --
Taille installée : 7,78 MiB
Paqueteur : Andreas Radke <andyrtr@archlinux.org>
Compilé le : mer. 24 nov. 2021 05:01:04
Installé le : sam. 11 déc. 2021 13:19:11
Motif d’installation : Installé comme dépendance d’un autre paquet
Script d’installation : Oui
Validé par : Signature
[armand@arch-laptop ~]$ But nothing change.
[armand@arch-laptop ~]$ nano /var/log/optimus-manager/switch/switch-20211211T164050.log
141] INFO: # Xorg pre-start hook
[141] INFO: Previous state was: {'type': 'pending_pre_xorg_start', 'requested_mode': 'integrated', 'current_mode': None}
[142] INFO: Requested mode is: integrated
[1955] INFO: Available modules: ['nouveau', 'bbswitch', 'acpi_call', 'nvidia', 'nvidia_drm', 'nvidia_modeset', 'nvidia_uvm']
[1955] INFO: Unloading modules ['nvidia_drm', 'nvidia_modeset', 'nvidia_uvm', 'nvidia'] (if loaded)
[1960] INFO: switching=none, nothing to do
[2635] INFO: Writing to /etc/X11/xorg.conf.d/10-optimus-manager.conf
[2636] INFO: Writing state {'type': 'pending_post_xorg_start', 'switch_id': '20211211T164050', 'requested_mode': 'integrated'}
[2637] INFO: Xorg pre-start hook completed successfully.
[15] INFO: # Xorg post-start hook
[28] INFO: Running /etc/optimus-manager/xsetup-integrated.sh
[98] INFO: Writing state {'type': 'done', 'switch_id': '20211211T164050', 'current_mode': 'integrated'}
[100] INFO: Xorg post-start hook completed successfully.[armand@arch-laptop ~]$ nano /etc/X11/xorg.conf.d/10-optimus-manager.conf
Section "Device"
Identifier "integrated"
Driver "modesetting"
BusID "PCI:0:2:0"
Option "DRI" "3"
EndSectionAm I missing something? Thanks in advance for your help.
Last edited by Breizh29 (2021-12-16 04:26:43)
Offline
glxinfo is newly present in mesa-utils rather than mesa-demos, the optimus-manager package's dependencies should be relevantly updated.
Last edited by V1del (2021-12-11 11:47:18)
Offline
glxinfo is newly present in mesa-utils rather than mesa-demos, the optimus-manager package's dependencies should be relevantly updated.
OK. Thank you V1del
After installing the 'mesa-utils' package I succeed to swicth to the Nvidia card:
[armand@arch-laptop optimus-manager]$ optimus-manager --switch nvidia
WARNING : no power management option is currently enabled (this is the default since v1.2). Switching between GPUs will work but you will likely experience poor battery life.
Follow instructions at https://github.com/Askannz/optimus-manager/wiki/A-guide--to-power-management-options to enable power management.
You are about to switch GPUs. This will forcibly close all graphical sessions and all your applications WILL CLOSE.
(you can pass the --no-confirm option to disable this warning)
Continue ? (y/N)
> [armand@arch-laptop ~]$ nano Xorg.0.log
déc. 12 06:21:08 arch-laptop kernel: NVRM: loading NVIDIA UNIX x86_64 Kernel Module 495.44 Fri Oct 22 06:13:12 UTC 2021
déc. 12 06:21:08 arch-laptop systemd-udevd[4665]: nvidia: Process '/usr/bin/bash -c '/usr/bin/mknod -Z -m 666 /dev/nvidiactl c $(grep nvidia-frontend /proc/devices | >
déc. 12 06:21:08 arch-laptop kernel: nvidia-modeset: Loading NVIDIA Kernel Mode Setting Driver for UNIX platforms 495.44 Fri Oct 22 06:05:22 UTC 2021
déc. 12 06:21:08 arch-laptop kernel: [drm] [nvidia-drm] [GPU ID 0x00000100] Loading driver
déc. 12 06:21:09 arch-laptop systemd-udevd[4666]: nvidia: Process '/usr/bin/bash -c 'for i in $(cat /proc/driver/nvidia/gpus/*/information | grep Minor | cut -d \ -f>
déc. 12 06:21:09 arch-laptop kernel: [drm] Initialized nvidia-drm 0.0.0 20160202 for 0000:01:00.0 on minor 0Another point, when I try to run "optimus-manager" on KDE destop, nothing is happening...
[armand@arch-laptop ~]$ journalctl -f
déc. 12 07:25:37 arch-laptop systemd[4750]: Started Optimus Manager.
déc. 12 07:25:37 arch-laptop kwin_x11[4808]: qt.qpa.xcb: QXcbConnection: XCB error: 3 (BadWindow), sequence: 4649, resource id: 41943422, major code: 18 (ChangeProperty), minor code: 0
déc. 12 07:25:37 arch-laptop kwin_x11[4808]: qt.qpa.xcb: QXcbConnection: XCB error: 3 (BadWindow), sequence: 4657, resource id: 41943423, major code: 18 (ChangeProperty), minor code: 0Last edited by Breizh29 (2021-12-12 00:57:46)
Offline
What do you think should happen?
Offline
A system tray application ??
Offline
If you installed optimus-manager-qt and try to run that, did you actually check your system tray settings? It's potentially hidden by default.
Last edited by V1del (2021-12-12 02:57:54)
Offline
If you installed optimus-manager-qt and try to run that, did you actually check your system tray settings? It's potentially hidden by default.
No I didn't and how to do that?
Offline
It's possibly in the popup menu you can reach with the arrow or in the settings if you right click the tray (empty space or again the arrow), FWIW though I't shouldn't be inherently necessary, I assume you didn't enable plasma integration as mentioned here: https://aur.archlinux.org/packages/opti … ned-683887 ?
Offline
It's possibly in the popup menu you can reach with the arrow or in the settings if you right click the tray (empty space or again the arrow),
No I can't open the popup menu (nothing happens)
FWIW though I't shouldn't be inherently necessary, I assume you didn't enable plasma integration as mentioned here: https://aur.archlinux.org/packages/opti … ned-683887 ?
I Recompiled with _plasma=true in PKGBUILD but it doesn't change anything.
It is not serious. I will continue to use tty to switch between integrated and Nvidia.
Last edited by Breizh29 (2021-12-13 08:30:37)
Offline
I think I had something missing or corrupted. After reinstalling the system the popup menu also works.
I go to the solved status!
Offline