LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 12-24-2015, 05:09 AM   #1
moesasji
Member
 
Registered: May 2008
Distribution: Slackware Current / OpenBSD
Posts: 322

Rep: Reputation: 104Reputation: 104
current - xfce4-power-manager error messages on suspend/resume


On current 20151223 I get error messages in /var/log/messages when I go through a suspend/resume cycle from xfce, although suspend itself appears to work fine if I look through the suspend log. The first error below happens when triggering a suspend; second when resuming.

Code:
Dec 24 10:42:58 aurora dbus[1342]: [system] Rejected send message, 4 matched rules; type="method_call", sender=":1.13" (uid=1000 pid=1597 comm="xfce4-power-manager --restart --sm-client-id 2838d") interface="org.freedesktop.NetworkManager" member="Sleep" error name="(unset)" requested_reply="0" destination="org.freedesktop.NetworkManager" (uid=0 pid=1363 comm="/usr/sbin/NetworkManager ")
Dec 24 10:43:23 aurora dbus[1342]: [system] Rejected send message, 4 matched rules; type="method_call", sender=":1.13" (uid=1000 pid=1597 comm="xfce4-power-manager --restart --sm-client-id 2838d") interface="org.freedesktop.NetworkManager" member="Sleep" error name="(unset)" requested_reply="0" destination="org.freedesktop.NetworkManager" (uid=0 pid=1363 comm="/usr/sbin/NetworkManager ")
The closest bug-report I've found is an older one for Debian, see https://bugs.debian.org/cgi-bin/bugr...cgi?bug=718458 It contains the exact same error-message. My guess is that something relating to UPower isn't working as expected on this laptop. Can someone reproduce this?
 
Old 12-24-2015, 02:23 PM   #2
ReaperX7
LQ Guru
 
Registered: Jul 2011
Location: California
Distribution: Slackware64-15.0 Multilib
Posts: 6,558
Blog Entries: 15

Rep: Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097
-Comment removed-

Last edited by ReaperX7; 12-24-2015 at 08:23 PM.
 
Old 12-24-2015, 03:16 PM   #3
rworkman
Slackware Contributor
 
Registered: Oct 2004
Location: Tuscaloosa, Alabama (USA)
Distribution: Slackware
Posts: 2,559

Rep: Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351
Quote:
Originally Posted by ReaperX7 View Post
We're in the process of fixing this from work being done here:

http://www.linuxquestions.org/questi...-a-4175561577/
Who is this "we" you mention?

Quote:
Suggested:

... snipped lots of irrelevant text ...

Resume and suspend should now work.
The OP stated that suspend/resume worked fine - the concern was the rejected dbus messages.

Please try to refrain from postings that are Not Even Wrong.
https://en.wikipedia.org/wiki/Not_even_wrong
 
Old 12-24-2015, 03:17 PM   #4
rworkman
Slackware Contributor
 
Registered: Oct 2004
Location: Tuscaloosa, Alabama (USA)
Distribution: Slackware
Posts: 2,559

Rep: Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351
Quote:
Originally Posted by moesasji View Post
On current 20151223 I get error messages in /var/log/messages when I go through a suspend/resume cycle from xfce, although suspend itself appears to work fine if I look through the suspend log. The first error below happens when triggering a suspend; second when resuming.

Code:
Dec 24 10:42:58 aurora dbus[1342]: [system] Rejected send message, 4 matched rules; type="method_call", sender=":1.13" (uid=1000 pid=1597 comm="xfce4-power-manager --restart --sm-client-id 2838d") interface="org.freedesktop.NetworkManager" member="Sleep" error name="(unset)" requested_reply="0" destination="org.freedesktop.NetworkManager" (uid=0 pid=1363 comm="/usr/sbin/NetworkManager ")
Dec 24 10:43:23 aurora dbus[1342]: [system] Rejected send message, 4 matched rules; type="method_call", sender=":1.13" (uid=1000 pid=1597 comm="xfce4-power-manager --restart --sm-client-id 2838d") interface="org.freedesktop.NetworkManager" member="Sleep" error name="(unset)" requested_reply="0" destination="org.freedesktop.NetworkManager" (uid=0 pid=1363 comm="/usr/sbin/NetworkManager ")
The closest bug-report I've found is an older one for Debian, see https://bugs.debian.org/cgi-bin/bugr...cgi?bug=718458 It contains the exact same error-message. My guess is that something relating to UPower isn't working as expected on this laptop. Can someone reproduce this?
Yes, it is reproducible here.

I'll have to confirm this with upstream NM, but I think this is a bug in xfpm - I don't think the Sleep method is expected to be called any more.

The NM dbus config indicates that it's a root-only method, but I'll figure out what's supposed to be happening there and follow up.

Last edited by rworkman; 12-24-2015 at 03:19 PM.
 
1 members found this post helpful.
Old 12-24-2015, 04:34 PM   #5
moesasji
Member
 
Registered: May 2008
Distribution: Slackware Current / OpenBSD
Posts: 322

Original Poster
Rep: Reputation: 104Reputation: 104
Thanks rworkman. If it is on your radar I'm sure it is in good hands and I'll leave it at that!

@ReaperX7: enabling that kernel-option makes no difference; the error-message remains. Note that I don't see why rebuilding upower is needed; just enabling that kernel option makes "upower -w" work.
 
1 members found this post helpful.
Old 12-24-2015, 05:46 PM   #6
rworkman
Slackware Contributor
 
Registered: Oct 2004
Location: Tuscaloosa, Alabama (USA)
Distribution: Slackware
Posts: 2,559

Rep: Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351
If you want to follow the the upstream discussion, here it is: https://mail.gnome.org/archives/netw.../msg00053.html
 
1 members found this post helpful.
Old 12-24-2015, 08:23 PM   #7
ReaperX7
LQ Guru
 
Registered: Jul 2011
Location: California
Distribution: Slackware64-15.0 Multilib
Posts: 6,558
Blog Entries: 15

Rep: Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097
Quote:
Originally Posted by rworkman View Post
Who is this "we" you mention?

The OP stated that suspend/resume worked fine - the concern was the rejected dbus messages.

Please try to refrain from postings that are Not Even Wrong.
https://en.wikipedia.org/wiki/Not_even_wrong
"We" as in those of us who actually took the time to test and diagnose upower related issues not behaving with you, trying to duplicate results, and give you feedback, or are we just all lowly chopped carrots?

Well I figured I'd try and help since I remembered something about pm-utils and upower involving suspend issues. I'm sorry if it wasn't exactly helpful. Maybe I'll edit my post and remove the obviously offending comments!
 
Old 12-26-2015, 12:34 AM   #8
rworkman
Slackware Contributor
 
Registered: Oct 2004
Location: Tuscaloosa, Alabama (USA)
Distribution: Slackware
Posts: 2,559

Rep: Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351
Quote:
Originally Posted by ReaperX7 View Post
"We" as in those of us who actually took the time to test and diagnose upower related issues not behaving with you, trying to duplicate results, and give you feedback, or are we just all lowly chopped carrots?
That's not what I said. I think you should be more careful of using the term "We" because it carries an implication that you are involved in Slackware development.

Quote:
Well I figured I'd try and help since I remembered something about pm-utils and upower involving suspend issues. I'm sorry if it wasn't exactly helpful. Maybe I'll edit my post and remove the obviously offending comments!
Whatever. Look, I get that you're trying to help, and that is sincerely appreciated, but here are some (unsolicited) thoughts on that.

1) You have made quite a few helpful posts, as evidenced by your rating here on LQ.

2) However, you have also made quite a few unhelpful posts as result of misunderstanding (or not understanding at all) the actual problem, making your replies look something like an ISP's Tier 1 support team response.

3) In recent times, I have seen more of (2) than of (1), which has led to me just glancing over most of your posts without spending a lot time on them - essentially, the signal to noise ratio has been too low to bother.

3a) I've missed at least one quite useful bit of information from you because of that (the bit about xf86-video-modesetting now being part of xorg-server -- a post from another user referred me back to it), so this situation is bad for *all* of us here on LQ.

4) In short, don't feel the need to comment on All. Of. The. Posts. Comment when you *know* you can help. Comment when you think you *maybe* can help but aren't sure (and make it clear that you're not sure). Basically, don't hone in on a few key words and throw out whatever comes to mind - make sure you understand the problem before attempting to offer solutions.

5) Don't take criticism personally (most of the time). Emotions make bad decisions. Even if a person's criticism isn't intended to be constructive, *you* treat it as if it is. Learn from it. Sometimes the only thing to learn is that a person should be ignored, but *all* criticism is constructive in some way.
 
7 members found this post helpful.
Old 01-04-2016, 11:12 PM   #9
rworkman
Slackware Contributor
 
Registered: Oct 2004
Location: Tuscaloosa, Alabama (USA)
Distribution: Slackware
Posts: 2,559

Rep: Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351
Okay, I'm pretty sure I know what the problem is here, and I'm (mostly) to blame.

I'm going to seem like I'm rambling, and maybe I am a bit, but bear with me.

If you've ever suspended your laptop and gone somewhere else with a different AP to which your laptop also autoconnects, you have likely noticed that it often takes a while for NM to "notice" that your home AP is no longer present, and thus it will attempt to reconnect to it before doing another scan, noticing the new one, and connecting to it instead.

The solution to that problem is to put NM to "sleep" on suspend and "wake" it up on resume. The way to do that is this:

Code:
# On suspend:
dbus_send --system \
  --dest=org.freedesktop.NetworkManager \
  /org/freedesktop/NetworkManager \
  org.freedesktop.NetworkManager.sleep
# On resume:
dbus_send --system \
  --dest=org.freedesktop.NetworkManager \
  /org/freedesktop/NetworkManager \
  org.freedesktop.NetworkManager.wake
In the old days when pm-utils ruled the world of power management, that was done by a sleep hook at /usr/lib(64)/pm-utils/sleep.d/55NetworkManager, so it "just works" as expected.

At some point, upower entered the picture, and it allegedly handled this part of the suspend/resume cycle, although I find no evidence to suggest that in the upower-0.9.23 code -- perhaps it is present in 0.99.x, but I find no evidence there either. I'm certainly not an expert in that realm, but I know this: I understood from talking with upstream that upower handled this, and thus the conclusion was that we no longer needed the pm-utils sleep hook, so it was removed from the NM package (well, still shipped in docs until recently, but obviously nonfunctional there). I want to stress that I am NOT accusing NM devs of giving me incorrect information either intentionally or unintentionally - I'm pretty much certain that the confusion/misunderstanding was *entirely* mine.

The result is that I've been trying to track down this annoying bug of "my laptop keeps seeing my home AP when I get to work, so I have to manually rescan for APs or send NM a HUP" for quite some time.

Xfce4-power-manager added support to call the NM sleep/wake quite some time ago in response to some/most distributions using uppwer and NOT pm-utils for suspend/resume - see, upower deprecated the suspend/hibernate functionality in favor of using systemd, and you only get it without systemd if you compile upower with --enable-deprecated (which we do).

Code:
#ifdef ENABLE_DEPRECATED
#define UP_BACKEND_SUSPEND_COMMAND              "/usr/sbin/pm-suspend"
#define UP_BACKEND_HIBERNATE_COMMAND            "/usr/sbin/pm-hibernate"
#define UP_BACKEND_POWERSAVE_TRUE_COMMAND       "/usr/sbin/pm-powersave true"
#define UP_BACKEND_POWERSAVE_FALSE_COMMAND      "/usr/sbin/pm-powersave false"
#endif
Since some distributions were not doing that, xfpm decided to call out to pm-utils directly to do the suspend/hibernate operations, which should have poked the NM Sleep/Wake without any special work, but for whatever reason, xfpm's dev decided to implement that within xfpm too (using --enable-network-manager). The problem is that NM's dbus config looks like this:

Code:
...
<!-- Root-only functions -->
<deny send_interface="org.freedesktop.NetworkManager" send_member="SetLogging"/>
<deny send_interface="org.freedesktop.NetworkManager" send_member="Sleep"/>
...
As result, those dbus calls as a normal user (which is how xfpm is run - as your user account) fail, which is what you (and I) see in the logs are rejected dbus messages.

Long story short, the proper solution seems to be two things:
1. Restore the 55NetworkManager script to /usr/lib(64)/pm-utils/sleep.d/ with 0755 permissions
2. Recompile xfce4-power-manager with --disable-network-manager

After doing that here, both the error messages *and* my longstanding bug are gone :-)
 
2 members found this post helpful.
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Current: xfce4-power-manager not working burdi01 Slackware 11 06-14-2015 04:27 AM
xfce4-power-manager crashes on resume from suspend (Slackware64 14.0) ruario Slackware 2 04-03-2013 08:31 PM
Wireless radio does not power on after resume from suspend. g_davis SUSE / openSUSE 1 05-03-2010 02:13 PM
[SOLVED] acpid, pm-utils, suspend/resume and -current tuxrules Slackware 12 09-16-2009 09:33 PM
upgrade to slackware 12.2 + xfce4.6 (xfce4-power-manager doesn't work) zux Slackware 4 04-22-2009 11:28 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 09:01 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration