optimus-manager: `ERROR: a GPU setup was initiated but Xorg post-start hook did not run.` on latest amd_support branch
Describe the bug
➜ optimus-manager --status
ERROR: a GPU setup was initiated but Xorg post-start hook did not run.
Log at /var/log/optimus-manager/switch/switch-20200624T234730.log
If your login manager is GDM, make sure to follow those instructions:
https://github.com/Askannz/optimus-manager#important--gnome-and-gdm-users
If your display manager is neither GDM, SDDM nor LightDM, or if you don't use one, read the wiki:
https://github.com/Askannz/optimus-manager/wiki/FAQ,-common-issues,-troubleshooting
Cannot execute command because of previous errors.
System info Please include :
- Your distribution: Gentoo
- Your desktop manager: none
- You display manager (SDDM, GDM, LightDM…): LightDM
- Your laptop model, if you think it could be related to the problem: Lenove Legion R7000 2020(probably not related)
- The version of optimus-manager you are using : latest amd_support branch
Logs
➜ cat /var/log/optimus-manager/switch/switch-20200624T234730.log [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
[9] INFO: Checking for GDM display servers
[84] INFO: Available modules: ['nouveau', 'nvidia', 'nvidia_drm', 'nvidia_modeset']
[84] INFO: Unloading modules ['nvidia_drm', 'nvidia_modeset', 'nvidia'] (if loaded)
[119] INFO: Loaded extra intel Xorg options (0 lines)
[119] INFO: Loaded extra nvidia Xorg options (0 lines)
[120] INFO: Writing to /etc/X11/xorg.conf.d/10-optimus-manager.conf
[120] INFO: Writing state {'type': 'pending_post_xorg_start', 'switch_id': '20200624T234730', 'requested_mode': 'integrated'}
[120] INFO: Xorg pre-start hook completed successfully.
➜ cat /var/log/optimus-manager/daemon/daemon-20200624T234730.log
[16] INFO: # Daemon pre-start hook
[16] INFO: Removing /etc/X11/xorg.conf.d/10-optimus-manager.conf (if present)
[17] INFO: Copying /etc/optimus-manager/optimus-manager.conf to /var/lib/optimus-manager/tmp/config_copy.conf
[20] INFO: Startup mode is: integrated
[20] INFO: Writing state {'type': 'pending_pre_xorg_start', 'requested_mode': 'integrated', 'current_mode': None}
[21] INFO: Daemon pre-start hook completed successfully.
[21] INFO: Calling Xorg pre-start hook.
[0] INFO: # Commands daemon
[0] INFO: Opening UNIX socket
[0] INFO: Awaiting commands
➜ sudo systemctl status optimus-manager.service
Alias tip: _ systemctl status optimus-manager.service
Password:
● optimus-manager.service - Optimus Manager Commands Daemon
Loaded: loaded (/lib/systemd/system/optimus-manager.service; enabled; vendor preset: disabled)
Active: active (running) since Wed 2020-06-24 23:47:30 CST; 13min ago
Process: 1852 ExecStartPre=/usr/bin/python3 -u -m optimus_manager.hooks.pre_daemon_start (code=exited, status=0/SUCCESS)
Process: 1890 ExecStartPre=/usr/bin/python3 -u -m optimus_manager.hooks.pre_xorg_start (code=exited, status=0/SUCCESS)
Main PID: 1905 (python3)
Tasks: 1 (limit: 37768)
Memory: 29.3M
CGroup: /system.slice/optimus-manager.service
└─1905 /usr/lib/python-exec/python3.7/python3 -u -m optimus_manager.daemon
Jun 24 23:47:30 Avalon-Laptop python3[1890]: [84] INFO: Unloading modules ['nvidia_drm', 'nvidia_modeset', 'nvidia'] (if loaded)
Jun 24 23:47:30 Avalon-Laptop python3[1890]: [119] INFO: Loaded extra intel Xorg options (0 lines)
Jun 24 23:47:30 Avalon-Laptop python3[1890]: [119] INFO: Loaded extra nvidia Xorg options (0 lines)
Jun 24 23:47:30 Avalon-Laptop python3[1890]: [120] INFO: Writing to /etc/X11/xorg.conf.d/10-optimus-manager.conf
Jun 24 23:47:30 Avalon-Laptop python3[1890]: [120] INFO: Writing state {'type': 'pending_post_xorg_start', 'switch_id': '20200624T234730', 'requested_mode': 'integrated'}
Jun 24 23:47:30 Avalon-Laptop python3[1890]: [120] INFO: Xorg pre-start hook completed successfully.
Jun 24 23:47:30 Avalon-Laptop systemd[1]: Started Optimus Manager Commands Daemon.
Jun 24 23:47:30 Avalon-Laptop python3[1905]: [0] INFO: # Commands daemon
Jun 24 23:47:30 Avalon-Laptop python3[1905]: [0] INFO: Opening UNIX socket
Jun 24 23:47:30 Avalon-Laptop python3[1905]: [0] INFO: Awaiting commands
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Reactions: 1
- Comments: 19 (14 by maintainers)
Thanks to @PetrusZ and @KannebTo answers I could solve this for sddm as well with configuring
in
/etc/sddm.conf
.