FS#32177 - slim fails to start with systemd
Attached to Project:
Arch Linux
Opened by Jon Gjengset (Jonhoo) - Tuesday, 23 October 2012, 09:39 GMT
Last edited by Andrea Scarpino (BaSh) - Tuesday, 23 October 2012, 17:22 GMT
Opened by Jon Gjengset (Jonhoo) - Tuesday, 23 October 2012, 09:39 GMT
Last edited by Andrea Scarpino (BaSh) - Tuesday, 23 October 2012, 17:22 GMT
|
Details
Description:
slim fails to start with the error message "no screens found" if using systemd and it is started before console-kit-daemon. Logging in on tty1 and running "systemctl restart slim" starts slim normally. Editing slim.service and adding "After=console-kit-daemon.service" solves the problem I propose adding the "After=" line to the slim.service unit file included with the Arch package as this seems to solve the problem. Additional info: * package version(s) slim 1.3.4-3 consolelkit 0.4.6-4 systemd 194-4 See attached logfile. Notice how consolekit is started after slim even though slim requires consolekit to be running. Steps to reproduce: 1. Install slim on a systemd running systemd 2. Enable slim on boot using "systemctl enable slim.service" 3. Reboot 4. Notice how slim fails to start 5. Log in on tty1 6. Run "systemctl restart slim" 7. Notice how slim starts normally |
This task depends upon
Closed by Andrea Scarpino (BaSh)
Tuesday, 23 October 2012, 17:22 GMT
Reason for closing: Fixed
Additional comments about closing: slim 1.3.4-4
Tuesday, 23 October 2012, 17:22 GMT
Reason for closing: Fixed
Additional comments about closing: slim 1.3.4-4
I can see that the difference is that it disables consolekit integration, so it would be another effective solution to this problem.
This is on a Lenovo X1 Carbon, running an up-to-date 64-bit default kernel Arch install with xf86-video-intel.
1. install slim from testing + reboot
2. slim starts correctly
3. reboot
4. slim fails to start
5. remove consolekit + reboot
6. slim fails to start
7. reinstall xf86-video-intel + reboot
8. slim starts correctly (?!?!)
9. reinstall consolekit + reboot
10. slim fails to start
So, it seems not only must consolekit be removed for slim to start at all with the version from [testing], but the graphics driver (at least for intel) has to be reinstalled after removing consolekit!
Furthermore, removing consolekit is a bit of a problem since operations like shutdown and reboot now require root access since systemd does not yet support consolekit-like privilege management.
Also, even after installing polkit from [testing], "systemctl poweroff" and "systemctl reboot" fail with access denied. See attached file for the dbus/systemd errors appearing in the logs.
Not sure what happened here, but I guess this is one of those times where rebooting again fixes the problem?