Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
can't suspend with xfce buttons. xfce-pm-helper works though
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
AnDrumz
n00b
n00b


Joined: 01 Nov 2019
Posts: 3

PostPosted: Fri Nov 01, 2019 9:37 am    Post subject: can't suspend with xfce buttons. xfce-pm-helper works though Reply with quote

when i try to perform suspend from xfce menu my system becomes unresponsive and need to hard restart with my laptop's power button.
but when i'm using 'pm-suspend' comand or 'pkexec xfce4-pm-helper --suspend' everything works like a charm: system suspends and wakes up without any problem. please help me to find a solution. thanx in advance.
Back to top
View user's profile Send private message
AnDrumz
n00b
n00b


Joined: 01 Nov 2019
Posts: 3

PostPosted: Fri Nov 01, 2019 4:59 pm    Post subject: Reply with quote

same issue when tryin to suspend with xfce4-power-manager through closing laptop lid - system freezes and hard restart needed.
no idea where to look for.
Back to top
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 15603

PostPosted: Fri Nov 01, 2019 11:53 pm    Post subject: Reply with quote

Start by understanding what each of those methods actually does. Do both of them enter S3 (suspend-to-ram)? If yes, how does each one do it?
Back to top
View user's profile Send private message
AnDrumz
n00b
n00b


Joined: 01 Nov 2019
Posts: 3

PostPosted: Sat Nov 02, 2019 1:55 pm    Post subject: Reply with quote

Hu wrote:
Start by understanding what each of those methods actually does. Do both of them enter S3 (suspend-to-ram)? If yes, how does each one do it?

thank you for reply and for your hint.
so i realized that xfce calls the dbus method for suspend. and when i tried this:
Code:

dbus-send --print-reply --dest=org.freedesktop.PowerManagement /org/freedesktop/PowerManagement org.freedesktop.PowerManagement.Suspend

i got the same system freeze, and then before next attempt to run dbus-send i ran this:
Code:

# busctl monitor

and i have gotten this error:
Code:

 Type=error  Endian=l  Flags=1  Version=1  Priority=0 Cookie=57  ReplyCookie=52
  Sender=org.freedesktop.DBus  Destination=:1.40
  ErrorName=org.freedesktop.DBus.Error.AccessDenied  ErrorMessage="Rejected send message, 4 matched rules; type="method_call", sender=":1.40" (uid=1000 pid=7301 comm="xfce4-power-manager --restart --sm-client-id 21de3" label="kernel") interface="org.freedesktop.NetworkManager" member="Sleep" error name="(unset)" requested_reply="0" destination=":1.3" (uid=0 pid=4222 comm="/usr/sbin/NetworkManager --pid-file /run/NetworkMa" label="kernel")"
  MESSAGE "s" {
          STRING "Rejected send message, 4 matched rules; type="method_call", sender=":1.40" (uid=1000 pid=7301 comm="xfce4-power-manager --restart --sm-client-id 21de3" label="kernel") interface="org.freedesktop.NetworkManager" member="Sleep" error name="(unset)" requested_reply="0" destination=":1.3" (uid=0 pid=4222 comm="/usr/sbin/NetworkManager --pid-file /run/NetworkMa" label="kernel")";
  };

it seems like that is the problem. but i'm not entirely shure.
could you please provide me with any advice how to workaround this or where to dig next?
thanx again.
regards.
Back to top
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 15603

PostPosted: Sat Nov 02, 2019 4:00 pm    Post subject: Reply with quote

I cannot. I sleep using ACPI events, not the GUI. For me, acpid reacts to ACPI events (button tap, lid close, etc.) by running an appropriate sleep/hibernate command. If you want to pursue that, I might be able to help. I cannot offer assistance with xfce though.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum