mate-desktop / mate-session-manager

MATE session manager
https://mate-desktop.org
GNU General Public License v2.0
28 stars 35 forks source link

systems logs out when invoking shutdown ore reboot #53

Closed sunweaver closed 10 years ago

sunweaver commented 10 years ago

Forwarding Debian bug #744264 [1] to upstream:

Package: mate-session-manager Version: 1.8.0-1 Severity: normal

Dear Maintainer,

Since I installed mate-session manager 1.8.1 it is impossible to shutdown or reboot the system as the only effect I have is a normal logout from the MATE session.

Also tried with the 1.8.0 package taken from the MATE repository and the problem is the same. Downgrading to version 1.6.0 (MATE repositories) solves the problem.

[1] http://bugs.debian.org/744264

Michael-AU commented 10 years ago

@stefano-k, just updated my i7 desktop and it did not make any difference to reboot-shutdown apart from I now have only 3 options (restart, cancel, shutdown) instead of the 5 I had before the update. It still shutsdown the gui but simply goes to a flashing cursor on a blank screen and if I leave it it will stay like that untill I force it to shutdown via the power button.

monsta commented 10 years ago

I've experimented a little...

Installed Wheezy (netinstall, no GUI) in a VM, enabled backports, installed MATE.

Of all systemd-related packages, only libsystemd-login0 was installed. Checked shutdown/reboot: ok. Upgraded libsystemd-login0 from backports: shutdown/reboot ok. Installed systemd package (which pulled in libsystemd-journal0 and libsystemd-daemon0): shutdown/reboot ok. Installed kernel 3.14 from backports: shutdown/reboot ok. Installed libpam-systemd and systemd-sysv (had to install them simultaneously), thus making systemd the default init system: shutdown/reboot ok.

I'm aware that @sunweaver rebuilt mate-session-manager without systemd support for wheezy-backports (version 1.8.1-4~bpo70+1). Nevertheless, I was a little surprised that shutdown and reboot continued to work fine even when systemd became the default init system. :)

@stefano-k: the only thing I can't figure out - why only 3 buttons (reboot/cancel/shutdown) in the shutdown/reboot dialog (like @k3lt01 reported)? Where are suspend and hibernate?

stefano-k commented 10 years ago

@monsta

Nevertheless, I was a little surprised that shutdown and reboot continued to work fine even when systemd became the default init system.

This because in debian there is still consolekit package, instead it is removed in other distributions that use systemd

monsta commented 10 years ago

Ok thanks... but what about the missing buttons?

stefano-k commented 10 years ago

@sunweaver @k3lt01 @monsta I think I understand why hibernate/suspend arent working now. On sid we disabled upower functions, because they are removed in upower 0.99. But we need to enable again upower in wheezy. See http://git.mate-desktop.org/mate-session-manager/tree/mate-session/gsm-logout-dialog.c#n224

monsta commented 10 years ago

Aha... so in Debian Testing or Unstable hibernate and suspend are handled by systemd when it's the default init system...?

stefano-k commented 10 years ago

@monsta yes, these functions are removed from upower 0.99

EverEve commented 10 years ago
Just a link to understand shutdown procedure with systemd enabled: http://git.mate-desktop.org/mate-session-manager/tree/mate-session/gsm-manager.c#n480

@stefano-k excuse me, could the check against consolekit simply be made before the check against systemd?

stefano-k commented 10 years ago

@EverEve there is no sense, given that most of DEs are using systemd