Devuan bug report logs - #479
xcfe4-power-manager: Can't configure laptop lid

Package: xcfe4-power-manager; Maintainer for xcfe4-power-manager is (unknown);

Reported by: Michaela Merz <mischmerz@googlemail.com>

Date: Tue, 2 Jun 2020 23:33:01 UTC

Severity: normal

Done: Mark Hindley <mark@hindley.org.uk>

Full log


Message #28 received at 479@bugs.devuan.org (full text, mbox, reply):

Received: (at 479) by bugs.devuan.org; 4 Jun 2020 09:30:50 +0000
Return-Path: <mark@hindley.org.uk>
Delivered-To: devuanbugs@dyne.org
Received: from tupac3.dyne.org [195.169.149.119]
	by doc.devuan.org with IMAP (fetchmail-6.4.0.beta4)
	for <debbugs@localhost> (single-drop); Thu, 04 Jun 2020 09:30:04 +0000 (UTC)
Received: from mx.hindley.org.uk (mohindley.plus.com [81.174.245.179])
	(using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits))
	(No client certificate requested)
	by vm6.ganeti.dyne.org (Postfix) with ESMTPS id 841CBF60CEA
	for <479@bugs.devuan.org>; Thu,  4 Jun 2020 11:25:52 +0200 (CEST)
Authentication-Results: vm6.ganeti.dyne.org;
	dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=googlemail.com header.i=@googlemail.com header.b="ewE5wmyr";
	dkim-atps=neutral
Received: from apollo.hindleynet ([192.168.1.3] helo=hindley.org.uk)
	by mx.hindley.org.uk with smtp (Exim 4.84_2)
	(envelope-from <mark@hindley.org.uk>)
	id 1jgm8E-0001cH-VD
	for 479@bugs.devuan.org; Thu, 04 Jun 2020 10:25:51 +0100
Received: (nullmailer pid 20032 invoked by uid 1000);
	Thu, 04 Jun 2020 09:25:50 -0000
Resent-From: Mark Hindley <mark@hindley.org.uk>
Resent-Date: Thu, 4 Jun 2020 10:25:50 +0100
Resent-Message-ID: <20200604092550.GJ3124@hindley.org.uk>
Resent-To: 479@bugs.devuan.org
Received: from mail-ot1-f68.google.com ([209.85.210.68])
	by mx.hindley.org.uk with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
	(Exim 4.84_2)
	(envelope-from <mischmerz@googlemail.com>)
	id 1jgd5I-0001PI-Ql
	for mark@hindley.org.uk; Thu, 04 Jun 2020 00:46:13 +0100
Received: by mail-ot1-f68.google.com with SMTP id 69so3372940otv.2
        for <mark@hindley.org.uk>; Wed, 03 Jun 2020 16:46:05 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=googlemail.com; s=20161025;
        h=mime-version:references:in-reply-to:from:date:message-id:subject:to;
        bh=stt5Qq1iUHLyFOjxhBVa9Ot4GRQI6OM/WCDcap3YV8I=;
        b=ewE5wmyr8D9TJWn4IU6eflGYJ6cag3vsrjuDg2fi+0TpAH7ah4AnXuAg+Z8y3Ojg7J
         wo13BZBbe0Vm+E9v52YQqMYjqTitMcpgPx3YSl1Nd8vsm4OpGy8ijXGTqUDG276NnfER
         2pon2QsXmXMj9MyIpH3MMPE2SS9Kz4dLiR32bVMTGXXXsazwt8wnzcfAVF2N7mCBsxaI
         TC7uOdN579T43ugkhNcvJTKXnVBnC4TUhIElH5ezLsdXBKvr0n1BrG1VU9OMTwByO5TL
         P21toCHwjWCTIQmSFmbruJareVw3H7Y9ZQW4HArJtosWamAShLDNAzVObfvYsoFeJAoX
         Tocw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20161025;
        h=x-gm-message-state:mime-version:references:in-reply-to:from:date
         :message-id:subject:to;
        bh=stt5Qq1iUHLyFOjxhBVa9Ot4GRQI6OM/WCDcap3YV8I=;
        b=hx62lDIFJzfvy7LVVH0mWuLLi8+rmpOxThvBgbadyQ4xVhCYGgyA0zJ05/qU2u4LUG
         qKG7xZXFK55Bgv7q0AxWhzxoq25zEBAwtdbMVYREttDu2+VdpjjSMDPjLAPBMW0dgT5X
         n2Y6QHbz6z3HyaNd6bI9vUSLps/2g4vq9i1nSyNZWA05Q1fT85Y/QSpUbD983W/4wdaI
         YvkuWNVqf3EWhDGc2tDOBXyoue1PPlnoIx7R/qnoWH/9tyNkjHue7ZkGeDexFbdyC+Cb
         TRY1914L72Vx83/MzCduxYviG2+oZBBeoNFBrnADZ83n2SpG0h4LpdP5MyR2EP7c1B0y
         gLBQ==
X-Gm-Message-State: AOAM532291Mlv0DHHQOt3uPehQ96TPt5Onb89x4KjO2g/I+YUfZuUbXO
	Fsd/ANWTsTz9bfVxqjR8LDZdbmLziiVFdt+ph5JhwrAo
X-Google-Smtp-Source: ABdhPJwqWrufyRpUI08jbB3ZYm+GOIhYZQwnDE4xYq1tr01Na1tNDk0e+IB4y4swpLqEk6RicTOgjpdEca8TgnQO584=
X-Received: by 2002:a9d:909:: with SMTP id 9mr1784149otp.325.1591227958310;
 Wed, 03 Jun 2020 16:45:58 -0700 (PDT)
MIME-Version: 1.0
References: <CAKDb+y7fOevVvtPQw+5Vgme0K9+r3mWwnD3jMh+cebpXHfQ1pQ@mail.gmail.com>
 <20200603092553.GT3124@hindley.org.uk> <CAKDb+y4s7-t3acQuNLTaV3ozZ7JWx7Rp+C-ehz4pCqbH+RU0UA@mail.gmail.com>
 <20200603192716.GE3124@hindley.org.uk>
In-Reply-To: <20200603192716.GE3124@hindley.org.uk>
From: Michaela Merz <mischmerz@googlemail.com>
Date: Wed, 3 Jun 2020 18:45:47 -0500
Message-ID: <CAKDb+y5XwN9KBW6Y-h2MFDMxz5OyAecUgjcmdqdT2+6bGC12QA@mail.gmail.com> (sfid-20200604_004614_282079_85D975D2)
Subject: Re: bug#479: xcfe4-power-manager: Can't configure laptop lid
To: Mark Hindley <mark@hindley.org.uk>
Content-Type: multipart/alternative; boundary="000000000000363b9205a736a176"
Received-SPF: pass client-ip=209.85.210.68; envelope-from=mischmerz@googlemail.com; helo=mail-ot1-f68.google.com
X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-27CA1CFB 
X-CRM114-CacheID: sfid-20200604_004614_282079_85D975D2 
X-CRM114-Status: GOOD (  13.42  )
X-UID: 46528                                                  
X-Spam-Status: No, score=1.6 required=5.0 tests=DKIM_ADSP_CUSTOM_MED,
	DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,HTML_MESSAGE,
	NML_ADSP_CUSTOM_MED,SPF_PASS,T_DKIM_INVALID autolearn=disabled
	version=3.4.2
X-Spam-Level: *
X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on tupac3.dyne.org
[Message part 1 (text/plain, inline)]
Mark:

I installed vanilla Devuan Beowulf and noticed, that the power-manager
didn't give me an option to suspend on laptop lid. There also was no option
to suspend in the system settings. I installed pm-utis and rebooted and on
the first try, the power-manager offered "suspend" on laptop-lid, but it
didn't do anything. Subsequent calls to power manager had the "suspend"
options removed again.

I called it a day and installed acpid because it allows me to run scripts
on events. I created a laptop-lif script script that echo "mem" >>
/sys/power/state and, though a bit hacky, it works fine.

Here's the requested output:

** (xfce4-power-manager:9707): WARNING **: 18:43:58.202: Failed to get name
owner: GDBus.Error:org.freedesktop.DBus.Error.NameHasNoOwner: Could not get
owner of name 'org.freedesktop.PowerManagement': no such name


** (xfce4-power-manager:9707): WARNING **: 18:43:58.202: Failed to get name
owner: GDBus.Error:org.freedesktop.DBus.Error.NameHasNoOwner: Could not get
owner of name 'org.xfce.PowerManager': no such name


(xfce4-power-manager:9707): GLib-GObject-WARNING **: 18:43:58.215:
../../../gobject/gsignal.c:2523: signal 'Changed' is invalid for instance
'0x55599ae301b0' of type 'GDBusProxy'

(xfce4-power-manager:9707): xfce4-power-manager-WARNING **: 18:43:58.235:
could not map keysym 1008ffa8 to keycode

TRACE[xfpm-main.c:205] xfpm_start(): Starting the power manager
TRACE[xfpm-xfconf.c:165] xfpm_xfconf_load(): Using default configuration
for lock-screen-suspend-hibernate
TRACE[xfpm-xfconf.c:165] xfpm_xfconf_load(): Using default configuration
for critical-power-level
TRACE[xfpm-xfconf.c:165] xfpm_xfconf_load(): Using default configuration
for show-brightness-popup
TRACE[xfpm-xfconf.c:165] xfpm_xfconf_load(): Using default configuration
for handle-brightness-keys
TRACE[xfpm-xfconf.c:165] xfpm_xfconf_load(): Using default configuration
for hibernate-button-action
TRACE[xfpm-xfconf.c:165] xfpm_xfconf_load(): Using default configuration
for sleep-button-action
TRACE[xfpm-xfconf.c:165] xfpm_xfconf_load(): Using default configuration
for brightness-level-on-ac
TRACE[xfpm-xfconf.c:165] xfpm_xfconf_load(): Using default configuration
for brightness-level-on-battery
TRACE[xfpm-xfconf.c:165] xfpm_xfconf_load(): Using default configuration
for brightness-slider-min-level
TRACE[xfpm-xfconf.c:165] xfpm_xfconf_load(): Using default configuration
for dpms-enabled
TRACE[xfpm-xfconf.c:165] xfpm_xfconf_load(): Using default configuration
for dpms-sleep-mode
TRACE[xfpm-xfconf.c:165] xfpm_xfconf_load(): Using default configuration
for inactivity-on-ac
TRACE[xfpm-xfconf.c:165] xfpm_xfconf_load(): Using default configuration
for inactivity-sleep-mode-on-ac
TRACE[xfpm-xfconf.c:165] xfpm_xfconf_load(): Using default configuration
for network-manager-sleep
TRACE[xfpm-xfconf.c:165] xfpm_xfconf_load(): Using default configuration
for logind-handle-power-key
TRACE[xfpm-xfconf.c:165] xfpm_xfconf_load(): Using default configuration
for logind-handle-suspend-key
TRACE[xfpm-xfconf.c:165] xfpm_xfconf_load(): Using default configuration
for logind-handle-hibernate-key
TRACE[xfpm-xfconf.c:165] xfpm_xfconf_load(): Using default configuration
for heartbeat-command
TRACE[xfpm-dpms.c:75] xfpm_dpms_set_timeouts(): Settings dpms: standby=3600
suspend=0 off=3600

TRACE[xfpm-polkit.c:287] xfpm_polkit_init_data(): Using unix session polkit
subject
TRACE[xfpm-polkit.c:345] xfpm_polkit_check_auth_intern(): polkit request:
(('unix-process', {'pid': <uint32 9707>, 'start-time': <uint64 2432178>}),
'org.freedesktop.login1.power-off', @a{ss} {}, uint32 0, '')
TRACE[xfpm-polkit.c:366] xfpm_polkit_check_auth_intern():
Action=org.freedesktop.login1.power-off is authorized=TRUE
TRACE[xfpm-polkit.c:345] xfpm_polkit_check_auth_intern(): polkit request:
(('unix-process', {'pid': <uint32 9707>, 'start-time': <uint64 2432178>}),
'org.freedesktop.login1.reboot', @a{ss} {}, uint32 0, '')
TRACE[xfpm-polkit.c:366] xfpm_polkit_check_auth_intern():
Action=org.freedesktop.login1.reboot is authorized=TRUE
TRACE[xfpm-polkit.c:345] xfpm_polkit_check_auth_intern(): polkit request:
(('unix-process', {'pid': <uint32 9707>, 'start-time': <uint64 2432178>}),
'org.freedesktop.login1.suspend', @a{ss} {}, uint32 0, '')
TRACE[xfpm-polkit.c:366] xfpm_polkit_check_auth_intern():
Action=org.freedesktop.login1.suspend is authorized=TRUE
TRACE[xfpm-polkit.c:345] xfpm_polkit_check_auth_intern(): polkit request:
(('unix-process', {'pid': <uint32 9707>, 'start-time': <uint64 2432178>}),
'org.freedesktop.login1.hibernate', @a{ss} {}, uint32 0, '')
TRACE[xfpm-polkit.c:366] xfpm_polkit_check_auth_intern():
Action=org.freedesktop.login1.hibernate is authorized=TRUE
TRACE[xfpm-power.c:936] xfpm_power_get_power_devices(): Power device
detected at : /org/freedesktop/UPower/devices/line_power_AC
TRACE[xfpm-power.c:898] xfpm_power_add_device(): 'line-power' device added
TRACE[xfpm-power.c:936] xfpm_power_get_power_devices(): Power device
detected at : /org/freedesktop/UPower/devices/battery_BAT0
TRACE[xfpm-power.c:898] xfpm_power_add_device(): 'battery' device added
TRACE[xfpm-power.c:908] xfpm_power_add_device(): Battery device type
'battery' detected at: /org/freedesktop/UPower/devices/battery_BAT0
TRACE[xfpm-button.c:183] xfpm_button_xevent_key(): Grabbed key 124 :
((XfpmButtonKey) BUTTON_POWER_OFF)
TRACE[xfpm-button.c:183] xfpm_button_xevent_key(): Grabbed key 213 :
((XfpmButtonKey) BUTTON_HIBERNATE)
TRACE[xf
(xfce4-power-manager:9707): GLib-CRITICAL **: 18:43:58.247: g_error_free:
assertion 'error != NULL' failed

** (xfce4-power-manager:9707): WARNING **: 18:43:58.248: No outputs have
backlight property
xfce4-power-manager-Message: 18:43:58.264: Set kernel brightness switch to 0
xfce4-power-manager-Message: 18:44:04.142: Restored brightness switch value
to: 1

(xfce4-power-manager:9707): Gtk-WARNING **: 18:44:04.142: A floating object
was finalized. This means that someone
called g_object_unref() on an object that had only a floating
reference; the initial floating reference is not owned by anyone
and must be removed with g_object_ref_sink().

(xfce4-power-manager:9707): Gtk-WARNING **: 18:44:04.142: A floating object
was finalized. This means that someone
called g_object_unref() on an object that had only a floating
reference; the initial floating reference is not owned by anyone
and must be removed with g_object_ref_sink().
pm-button.c:183] xfpm_button_xevent_key(): Grabbed key 150 :
((XfpmButtonKey) BUTTON_SLEEP)
TRACE[xfpm-button.c:183] xfpm_button_xevent_key(): Grabbed key 233 :
((XfpmButtonKey) BUTTON_MON_BRIGHTNESS_UP)
TRACE[xfpm-button.c:183] xfpm_button_xevent_key(): Grabbed key 232 :
((XfpmButtonKey) BUTTON_MON_BRIGHTNESS_DOWN)
TRACE[xfpm-button.c:183] xfpm_button_xevent_key(): Grabbed key 244 :
((XfpmButtonKey) BUTTON_BATTERY)
TRACE[xfpm-button.c:183] xfpm_button_xevent_key(): Grabbed key 238 :
((XfpmButtonKey) BUTTON_KBD_BRIGHTNESS_UP)
TRACE[xfpm-button.c:183] xfpm_button_xevent_key(): Grabbed key 237 :
((XfpmButtonKey) BUTTON_KBD_BRIGHTNESS_DOWN)
TRACE[xfpm-power.c:936] xfpm_power_get_power_devices(): Power device
detected at : /org/freedesktop/UPower/devices/battery_BAT1
TRACE[xfpm-power.c:898] xfpm_power_add_device(): 'battery' device added
TRACE[xfpm-power.c:908] xfpm_power_add_device(): Battery device type
'battery' detected at: /org/freedesktop/UPower/devices/battery_BAT1
TRACE[xfpm-dpms.c:75] xfpm_dpms_set_timeouts(): Settings dpms: standby=1260
suspend=0 off=1560

TRACE[xfpm-dpms.c:348] xfpm_dpms_set_on_battery(): dpms on battery TRUE
TRACE[xfpm-power.c:1446] xfpm_update_blank_time(): Timeout: 10
TRACE[xfpm-power.c:1446] xfpm_update_blank_time(): Timeout: 10
TRACE[xfpm-power.c:213] xfpm_power_check_polkit_auth(): using logind
suspend backend
TRACE[xfpm-polkit.c:345] xfpm_polkit_check_auth_intern(): polkit request:
(('unix-process', {'pid': <uint32 9707>, 'start-time': <uint64 2432178>}),
'org.freedesktop.login1.suspend', @a{ss} {}, uint32 0, '')
TRACE[xfpm-polkit.c:366] xfpm_polkit_check_auth_intern():
Action=org.freedesktop.login1.suspend is authorized=TRUE
TRACE[xfpm-polkit.c:345] xfpm_polkit_check_auth_intern(): polkit request:
(('unix-process', {'pid': <uint32 9707>, 'start-time': <uint64 2432178>}),
'org.freedesktop.login1.hibernate', @a{ss} {}, uint32 0, '')
TRACE[xfpm-polkit.c:366] xfpm_polkit_check_auth_intern():
Action=org.freedesktop.login1.hibernate is authorized=TRUE
TRACE[xfpm-power.c:1446] xfpm_update_blank_time(): Timeout: 10
TRACE[xfpm-power.c:1446] xfpm_update_blank_time(): Timeout: 10
TRACE[xfpm-power.c:1446] xfpm_update_blank_time(): Timeout: 13
TRACE[xfpm-power.c:1446] xfpm_update_blank_time(): Timeout: 13
TRACE[xfpm-manager.c:645] xfpm_manager_inhibit_sleep_systemd(): Inhibiting
systemd sleep: handle-power-key:handle-suspend-key:handle-hibernate-key
TRACE[xfpm-backlight.c:256]
xfpm_backlight_brightness_on_ac_settings_changed(): Alarm on ac timeout
changed 120
TRACE[xfpm-backlight.c:277]
xfpm_backlight_brightness_on_battery_settings_changed(): Alarm on battery
timeout changed 120
TRACE[xfpm-main.c:68] xfpm_quit_signal(): sig 2
TRACE[xfpm-manager.c:939] xfpm_manager_stop(): Stopping
TRACE[xfpm-manager.c:266] xfpm_manager_quit(): Exiting
TRACE[xfpm-polkit.c:244] xfpm_polkit_free_data(): Destroying Polkit data




On Wed, Jun 3, 2020 at 2:27 PM Mark Hindley <mark@hindley.org.uk> wrote:

> On Wed, Jun 03, 2020 at 12:04:32PM -0500, Michaela Merz wrote:
> >    Hey Mark - hope you are not doing all the work alone. Thanks for your
> >    help. Here is the requested policykit listing:
> >    ii  elogind                               241.4-2
> >          amd64        user, seat and session management daemon
> >    ii  gir1.2-polkit-1.0                     0.105-25+devuan8
> >           amd64        GObject introspection data for PolicyKit
> >    ii  libelogind0:amd64                     241.4-2
> >          amd64        user, seat and session management library
> >    ii  libpam-elogind:amd64                  241.4-2
> >          amd64        elogind PAM module
> >    ii  libpolkit-agent-1-0:amd64             0.105-25+devuan8
> >           amd64        PolicyKit Authentication Agent API
> >    ii  libpolkit-backend-1-0                 0.105-25+devuan8
> >           all          PolicyKit Authorization API
> >    ii  libpolkit-backend-elogind-1-0:amd64   0.105-25+devuan8
> >           amd64        PolicyKit backend API
> >    ii  libpolkit-gobject-1-0                 0.105-25+devuan8
> >           all          PolicyKit Authorization API
> >    ii  libpolkit-gobject-elogind-1-0:amd64   0.105-25+devuan8
> >           amd64        PolicyKit Authorization API
> >    ii  policykit-1                           0.105-25+devuan8
> >           amd64        framework for managing administrative policies and
> >    privileges
> >    ii  policykit-1-gnome                     0.105-7
> >          amd64        authentication agent for PolicyKit
>
> OK. That looks fine.
>
> So You need to use either xfce4-power-manager/pm-utils or elogind for
> this, but
> not both.
>
> Details are available at
> https://docs.xfce.org/xfce/xfce4-power-manager/faq and
> in man logind.conf(5) (particularly the HandleLidSwitch* options).
>
> How have you tried to set this up and exactly what doesn't work?
>
> Is xfce4-power-manager actually running?
>
> If it still isn't working please enable xfce4-power-manager debugging:
>
>  xfce4-power-manager -q
>  xfce4-power-manager --no-daemon --debug
>
> and see what it reports when it runs.
>
> Thanks.
>
> Mark
>
[Message part 2 (text/html, inline)]

Send a report that this bug log contains spam.


Devuan BTS -- Powered by Debian bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson,
2005-2017 Don Armstrong, and many other contributors.

Devuan Bugs Owner <owner@bugs.devuan.org>.
Last modified: Mon Nov 25 11:54:15 2024;