Askannz / optimus-manager

A Linux program to handle GPU switching on Optimus laptops.
MIT License
2.25k stars 165 forks source link

[Failed] to start NVIDIA Persistence Daemon. #555

Open noahhipp opened 6 months ago

noahhipp commented 6 months ago

Describe the bug After running

optimus-manager --switch nvidia I am greeted with [FAILED ] to start NVIDIA Persistence Daemon. on a black screen and a blinking cursor.

I can still switch to TTY2 using CTRL+ALT+F2.

Running reboot allows me to use my system again with integrated graphics.

System info

[amd]
DRI=3
driver=modesetting
tearfree=

[intel]
DRI=3
accel=
driver=modesetting
modeset=yes
tearfree=

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

[optimus]
auto_logout=yes
pci_power_control=no
pci_remove=no
pci_reset=no
startup_auto_battery_mode=integrated
startup_auto_extpower_mode=nvidia
startup_mode=integrated
switching=none

Logs optimus-manager --status does not cast an error.

The two most recent switch logs:

[8] INFO: # Xorg pre-start hook
[8] INFO: Previous state was: {'type': 'pending_pre_xorg_start', 'requested_mode': 'integrated', 'current_mode': None}
[8] INFO: Requested mode is: integrated
[30] INFO: Available modules: ['nouveau', 'acpi_call', 'nvidia', 'nvidia_drm', 'nvidia_modeset', 'nvidia_uvm']
[30] INFO: Unloading modules ['nvidia_drm', 'nvidia_modeset', 'nvidia_uvm', 'nvidia'] (if loaded)
[33] INFO: switching=none, nothing to do
[55] INFO: Writing to /etc/X11/xorg.conf.d/10-optimus-manager.conf
[55] INFO: Writing state {'type': 'pending_post_xorg_start', 'switch_id': '20231212T153558', 'requested_mode': 'integrated'}
[55] INFO: Xorg pre-start hook completed successfully.
[6] INFO: # Xorg post-start hook
[25] INFO: Running /etc/optimus-manager/xsetup-integrated.sh
[33] INFO: Writing state {'type': 'done', 'switch_id': '20231212T153558', 'current_mode': 'integrated'}
[33] INFO: Xorg post-start hook completed successfully.
[7] INFO: # Xorg pre-start hook
[7] INFO: Previous state was: {'type': 'pending_pre_xorg_start', 'requested_mode': 'nvidia', 'current_mode': 'integrated'}
[7] INFO: Requested mode is: nvidia
[31] INFO: Available modules: ['nouveau', 'acpi_call', 'nvidia', 'nvidia_drm', 'nvidia_modeset', 'nvidia_uvm']
[31] INFO: Unloading modules ['nouveau'] (if loaded)
[34] INFO: switching=none, nothing to do
[55] INFO: Loading module nvidia
[58] INFO: Loading module nvidia_drm
[1138] INFO: Writing to /etc/X11/xorg.conf.d/10-optimus-manager.conf
[1138] INFO: Writing state {'type': 'pending_post_xorg_start', 'switch_id': '20231212T153340', 'requested_mode': 'nvidia'}
[1138] INFO: Xorg pre-start hook completed successfully.

The two most recent daemon logs

[25] INFO: # Daemon pre-start hook
[25] INFO: Removing /etc/X11/xorg.conf.d/10-optimus-manager.conf (if present)
[26] INFO: Copying /etc/optimus-manager/optimus-manager.conf to /var/lib/optimus-manager/tmp/config_copy.conf
[28] INFO: Startup mode is: integrated
[28] INFO: Writing state {'type': 'pending_pre_xorg_start', 'requested_mode': 'integrated', 'current_mode': None}
[28] INFO: Daemon pre-start hook completed successfully.
[28] INFO: Calling Xorg pre-start hook.
[0] INFO: # Commands daemon
[0] INFO: Opening UNIX socket
[1] INFO: Awaiting commands
[38] INFO: # Daemon pre-start hook
[39] INFO: Removing /etc/X11/xorg.conf.d/10-optimus-manager.conf (if present)
[39] INFO: Copying /etc/optimus-manager/optimus-manager.conf to /var/lib/optimus-manager/tmp/config_copy.conf
[41] INFO: Startup mode is: integrated
[41] INFO: Writing state {'type': 'pending_pre_xorg_start', 'requested_mode': 'integrated', 'current_mode': None}
[41] INFO: Daemon pre-start hook completed successfully.
[41] INFO: Calling Xorg pre-start hook.
[0] INFO: # Commands daemon
[0] INFO: Opening UNIX socket
[1] INFO: Awaiting commands
[278587] INFO: Received command : {"type": "switch", "args": {"mode": "nvidia"}}
[278587] INFO: Writing requested GPU mode nvidia
[278587] INFO: Writing state {'type': 'pending_pre_xorg_start', 'requested_mode': 'nvidia', 'current_mode': 'integrated'}
[397174] INFO: Process stop requested
[397174] INFO: Closing and removing the socket...
[397174] INFO: Goodbye !

Thank you so much in advance! Please let me know if more information is required.