optimus-manager
optimus-manager copied to clipboard
Not sure whether the system switches to integrated graphics on boot
Description
I have configured optimus-manager to enable hybrid mode on HDMI connected during boot and use integrated graphics for everything else. This worked for a long time. However, since recently, every time that I boot without an HDMI cable the NVIDIA card seems to be up, or at least that is what I believe because the NVIDIA driver seems to be able to communicate with it, which is not what used to happen previously when using integrated graphics. optimus-manager --print-mode
says that I'm using integrated. Running optimus-manager --switch integrated
seems to fix things, but it's not something that I enjoy running every time I boot up the system. I'm not too knowledgeable on optimus so I just followed the wiki, maybe I misconfigured something?
The command that I used was: nvidia-smi
, with output:
Wed Jul 24 14:35:24 2024
+-----------------------------------------------------------------------------------------+
| NVIDIA-SMI 555.58.02 Driver Version: 555.58.02 CUDA Version: 12.5 |
|-----------------------------------------+------------------------+----------------------+
| 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 RTX 4070 ... Off | 00000000:01:00.0 Off | N/A |
| N/A 34C P3 16W / 40W | 1MiB / 8188MiB | 3% Default |
| | | N/A |
+-----------------------------------------+------------------------+----------------------+
+-----------------------------------------------------------------------------------------+
| Processes: |
| GPU GI CI PID Type Process name GPU Memory |
| ID ID Usage |
|=========================================================================================|
| No running processes found |
+-----------------------------------------------------------------------------------------+
When optimus manager used to work, nvidia-smi
used to just say that it failed to communicate with the driver.
I started suspecting that something was wrong when my power usage ramped up to 30 watts when my system usually used 15-20.
System info
EndevaourOS, i3 wm with LightDM
Optimus manager was installed through the AUR using the optimus-manager-git package. optimus-manager -v
reports Optimus Manager (Client) version 1.5
. pacman -Qi optimus-manager-git
reports Version: 1:r736.1fcdcf2.python3.12-1
My config:
[optimus]
switching=bbswitch
pci_power_control=no
pci_remove=no
pci_reset=no
auto_logout=yes
startup_mode=auto_nvdisplay
startup_auto_battery_mode=integrated
startup_auto_extpower_mode=nvidia
startup_auto_nvdisplay_off_mode=integrated
startup_auto_nvdisplay_on_mode=hybrid
[intel]
driver=modesetting
accel=
tearfree=
DRI=3
modeset=yes
[nvidia]
modeset=yes
PAT=yes
DPI=96
ignore_abi=no
allow_external_gpus=no
options=overclocking
dynamic_power_management=fine
dynamic_power_management_memory_threshold=
Logs
$ optimus-manager --status
Optimus Manager (Client) version 1.5
Current GPU mode : integrated
GPU mode requested for next login : no change
GPU at startup : auto_nvdisplay
Temporary config path: no
Latest log in /var/log/optimus-manager/switch
:
[13] INFO: # Xorg pre-start hook
[13] INFO: Previous state was: {'type': 'pending_pre_xorg_start', 'requested_mode': 'integrated', 'current_mode': None}
[13] INFO: Requested mode is: integrated
[38] INFO: Available modules: ['nouveau', 'bbswitch', 'nvidia', 'nvidia_drm', 'nvidia_modeset', 'nvidia_uvm']
[38] INFO: Unloading modules ['nvidia_drm', 'nvidia_modeset', 'nvidia_uvm', 'nvidia'] (if loaded)
[306] INFO: Loading module bbswitch
[1450] INFO: Setting GPU power to OFF via bbswitch
[1586] WARNING: bbswitch is enabled, pci_power_control option ignored.
[2768] INFO: Writing to /etc/X11/xorg.conf.d/10-optimus-manager.conf
[2768] INFO: Writing state {'type': 'pending_post_xorg_start', 'switch_id': '20240724T143428', 'requested_mode': 'integrated'}
[2768] INFO: Xorg pre-start hook completed successfully.
[11] INFO: # Xorg post-start hook
[1022] INFO: Running /etc/optimus-manager/xsetup-integrated.sh
[1036] INFO: Writing state {'type': 'done', 'switch_id': '20240724T143428', 'current_mode': 'integrated'}
[1037] INFO: Xorg post-start hook completed successfully.
Latest log in /var/log/optimus-manager/daemon
:
[13] INFO: # Daemon pre-start hook
[13] INFO: Removing /etc/X11/xorg.conf.d/10-optimus-manager.conf (if present)
[13] INFO: Copying /etc/optimus-manager/optimus-manager.conf to /var/lib/optimus-manager/tmp/config_copy.conf
[15] INFO: Startup mode is: auto_nvdisplay
[2364] INFO: Effective startup mode is: integrated
[2364] INFO: Writing state {'type': 'pending_pre_xorg_start', 'requested_mode': 'integrated', 'current_mode': None}
[2365] INFO: Daemon pre-start hook completed successfully.
[2365] INFO: Calling Xorg pre-start hook.
[2] INFO: # Commands daemon
[2] INFO: Opening UNIX socket
[2] INFO: Awaiting commands
journalctl:
-- Boot dcb10149485a4bcc809034a6e210632a --
jul 24 14:34:25 HPLaptop systemd[1]: Starting Optimus Manager Commands Daemon...
jul 24 14:34:25 HPLaptop python3[882]: [13] INFO: # Daemon pre-start hook
jul 24 14:34:25 HPLaptop python3[882]: [13] INFO: Removing /etc/X11/xorg.conf.d/10-optimus-manager.conf (if present)
jul 24 14:34:25 HPLaptop python3[882]: [13] INFO: Copying /etc/optimus-manager/optimus-manager.conf to /var/lib/optimus-manager/tmp/config_copy.conf
jul 24 14:34:25 HPLaptop python3[882]: [15] INFO: Startup mode is: auto_nvdisplay
jul 24 14:34:28 HPLaptop python3[882]: [2364] INFO: Effective startup mode is: integrated
jul 24 14:34:28 HPLaptop python3[882]: [2364] INFO: Writing state {'type': 'pending_pre_xorg_start', 'requested_mode': 'integrated', 'current_mode': None}
jul 24 14:34:28 HPLaptop python3[882]: [2365] INFO: Daemon pre-start hook completed successfully.
jul 24 14:34:28 HPLaptop python3[882]: [2365] INFO: Calling Xorg pre-start hook.
jul 24 14:34:28 HPLaptop python3[1299]: [13] INFO: # Xorg pre-start hook
jul 24 14:34:28 HPLaptop python3[1299]: [13] INFO: Previous state was: {'type': 'pending_pre_xorg_start', 'requested_mode': 'integrated', 'current_mode': None}
jul 24 14:34:28 HPLaptop python3[1299]: [13] INFO: Requested mode is: integrated
jul 24 14:34:28 HPLaptop python3[1303]: modinfo: ERROR: Module acpi_call not found.
jul 24 14:34:28 HPLaptop python3[1299]: [38] INFO: Available modules: ['nouveau', 'bbswitch', 'nvidia', 'nvidia_drm', 'nvidia_modeset', 'nvidia_uvm']
jul 24 14:34:28 HPLaptop python3[1299]: [38] INFO: Unloading modules ['nvidia_drm', 'nvidia_modeset', 'nvidia_uvm', 'nvidia'] (if loaded)
jul 24 14:34:28 HPLaptop python3[1299]: [306] INFO: Loading module bbswitch
jul 24 14:34:29 HPLaptop python3[1299]: [1450] INFO: Setting GPU power to OFF via bbswitch
jul 24 14:34:29 HPLaptop python3[1299]: [1586] WARNING: bbswitch is enabled, pci_power_control option ignored.
jul 24 14:34:31 HPLaptop python3[1299]: [2768] INFO: Writing to /etc/X11/xorg.conf.d/10-optimus-manager.conf
jul 24 14:34:31 HPLaptop python3[1299]: [2768] INFO: Writing state {'type': 'pending_post_xorg_start', 'switch_id': '20240724T143428', 'requested_mode': 'integrated'}
jul 24 14:34:31 HPLaptop python3[1299]: [2768] INFO: Xorg pre-start hook completed successfully.
jul 24 14:34:31 HPLaptop systemd[1]: Started Optimus Manager Commands Daemon.
jul 24 14:34:31 HPLaptop python3[1434]: [2] INFO: # Commands daemon
jul 24 14:34:31 HPLaptop python3[1434]: [2] INFO: Opening UNIX socket
jul 24 14:34:31 HPLaptop python3[1434]: [2] INFO: Awaiting commands