Skip to content

Loading…

Suspend is not working when laptop's lid is closed with systemd-login1 method #59

Closed
raveit65 opened this Issue · 2 comments

2 participants

@raveit65
MATE member

consolekit checks in code prevent systemd-login1 to suspend on lid close.

Orginal fedora bug report:
https://bugzilla.redhat.com/show_bug.cgi?id=972881

BUG is in gpm-manager.c in several places like this:

static void
gpm_manager_button_pressed_cb (GpmButton *button, const gchar *type, GpmManager *manager)
{
gchar *message;
egg_debug ("Button press event type=%s", type);

    /* ConsoleKit says we are not on active console */
    if (!egg_console_kit_is_active (manager->priv->console)) {
            egg_debug ("ignoring as not on active console");
            return;
    }

In short, if systemd-login1 support is enabled, it needs to skip this ConsoleKit-specific check, and instead query
org.freedesktop.login1.Manager.CanSuspend
and friends for the capability.

@raveit65
MATE member

new debug output with lattest systemd commit. :-\
https://dl.dropboxusercontent.com/u/49862637/Mate-desktop/Bugs/m-p_output

@stefano-k
MATE member
@stefano-k stefano-k closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.