]> www.opopop.net Git - reminder/blob - Debian_Bookworm_with_Mate_and_the_shepherd_init_system/README.elogind
attachment upload
[reminder] / Debian_Bookworm_with_Mate_and_the_shepherd_init_system / README.elogind
1 Shepherd and Mate: restore suspend/poweroff/reboot, automounting drives
2 =======================================================================
3
4 lightdm and Mate will offer that automatically or with a click on a
5 menu. But today they will ask directly systemd for these functions,
6 and that won't work with shepherd.
7
8 Package elogind is intended to help you in that case, but it has a
9 conflict with systemd (which has the competing executable
10 systemd-logind). In the case of running shepherd-debian with
11 systemd-sysv as the failsafe init system, this is not a real conflict,
12 so I offer also a modified elogind package (with dependencies
13 libpam-elogind and libelogind0) which you can install. It uses
14 alternatives to not clobber original systemd files, and elogind-daemon
15 is dbus activated.
16
17 In the case of Mate, you still have a polkit issue
18 (polkit-mate-authentication-agent-1 can't be launched, so no
19 authentication window). This can be solved by editing these files:
20
21 /usr/share/polkit-1/actions/org.freedesktop.login1.policy
22
23 /usr/share/polkit-1/actions/org.freedesktop.UDisks2.policy
24
25 and setting the appropriate "allow_any" and "allow_inactive" to
26 "yes". See files login1.patch and udisk2.patch for a minimal set of
27 mofifications.
28
29 For halt/reboot, you have also to add the following script in
30 /lib/elogind/system-shutdown:
31
32 #! /bin/sh
33 if [ "$1" = "reboot" ]; then
34     /sbin/reboot
35 elif [ "$1" = "poweroff" ]; then
36     /sbin/halt
37 fi