You are not logged in.

#1 2012-05-11 11:23:03

kralyk
Member
Registered: 2009-04-27
Posts: 73

[Solved] Suspend doesn't work for regular user (upower problem)

Hi,
  recently, suspend stopped working for me from regular desktop environment, ie KDE.
now, suspend as such works, ie

sudo pm-suspend

works just fine, but the d-bus command as suggested on wiki doesn't work:

$> dbus-send --system --print-reply --dest="org.freedesktop.UPower" /org/freedesktop/UPower org.freedesktop.UPower.Suspend
Error org.freedesktop.UPower.GeneralError: not authorized

If I try the above with sudo, it does work, though. So I reckon the problem must be somewhere in upower policy settings,
I also noticed that the file /etc/dbus-1/system.d/org.freedesktop.UPower.conf has been modified recently,
any tips how to fix this?

Last edited by kralyk (2012-05-11 19:51:29)

Offline

#2 2012-05-11 18:41:19

Tuxe
Member
From: Finland
Registered: 2005-02-28
Posts: 8
Website

Re: [Solved] Suspend doesn't work for regular user (upower problem)

I have the same problem since today. Also, NetworkManager doesn't allow me to connect to a network: "(32) Not authorized to control networking."

I suspect this has something to do with PolicyKit, but I don't know what caused this. I don't think I have upgraded anything related to PolicyKit or UPower recently. I did upgrade kernel to 3.3.5-1 last night – maybe I should try to downgrade to the previous version.

Offline

#3 2012-05-11 19:25:24

kralyk
Member
Registered: 2009-04-27
Posts: 73

Re: [Solved] Suspend doesn't work for regular user (upower problem)

I tried downgrading the kernel just now (to 3.3.4) and it did not help. This seems like a user-space thing anyway...

In pacman log, I noticed only three suspicious upgrades: kernel, kde and slim. Do you use slim?

EDIT: consolekit downgrade didn't help, too...

Last edited by kralyk (2012-05-11 19:46:27)

Offline

#4 2012-05-11 19:51:01

kralyk
Member
Registered: 2009-04-27
Posts: 73

Re: [Solved] Suspend doesn't work for regular user (upower problem)

Solved.

Remove ck-launch-session from xinitrc,
it's not needed any more and the problem was because two sessions were started simultaneously, one of which was inactive.

Offline

#5 2012-05-14 23:16:00

Tuxe
Member
From: Finland
Registered: 2005-02-28
Posts: 8
Website

Re: [Solved] Suspend doesn't work for regular user (upower problem)

Thanks, that solved the problem also for me!

Offline

#6 2012-07-06 05:11:17

phryk
Member
Registered: 2012-07-06
Posts: 1

Re: [Solved] Suspend doesn't work for regular user (upower problem)

Thank you very much! It worked for me too.

Offline

Board footer

Powered by FluxBB