You are not logged in.

#1 2013-12-25 00:45:36

javex
Member
Registered: 2011-12-30
Posts: 79

sytemd: cannot hibernate as user, suspend works

When issuing

systemctl hibernate

I get

Failed to issue method call: Operation not supported
Failed to issue method call: Access denied

I took a look around and stumpled upon this (which suggest a systemd downgrade), this (which is a lightdm issue) and this (needed polkit configure flags that are now in the repo by default).

My problem at this point is, that I can do everything except hibernate (as a normal user) and everything works as root. I get the following entries when trying to issue hibernate as a normal user:

Dec 25 01:36:34 archlaptop polkitd[466]: Registered Authentication Agent for unix-process:21708:706008 (system bus name :1.96 [/usr/bin/pkttyagent --notify-fd 5 --fallback], object path /org/freedesktop/PolicyKit1/AuthenticationAgent, locale en_US.UTF-8)
Dec 25 01:36:34 archlaptop dbus-daemon[400]: dbus[400]: [system] Rejected send message, 2 matched rules; type="method_call", sender=":1.95" (uid=1000 pid=21708 comm="systemctl hibernate ") interface="org.freedesktop.systemd1.Manager" member="StartUnit" error name="(unset)" requested_reply="0" destination="org.freedesktop.systemd1" (uid=0 pid=1 comm="/sbin/init ")
Dec 25 01:36:34 archlaptop dbus[400]: [system] Rejected send message, 2 matched rules; type="method_call", sender=":1.95" (uid=1000 pid=21708 comm="systemctl hibernate ") interface="org.freedesktop.systemd1.Manager" member="StartUnit" error name="(unset)" requested_reply="0" destination="org.freedesktop.systemd1" (uid=0 pid=1 comm="/sbin/init ")
Dec 25 01:36:34 archlaptop polkitd[466]: Unregistered Authentication Agent for unix-process:21708:706008 (system bus name :1.96, object path /org/freedesktop/PolicyKit1/AuthenticationAgent, locale en_US.UTF-8) (disconnected from bus)

If it is relevant, I am also in the power group.

Nothing I could find so far seems to be related to my problem. Please tell me which additional details I could provide or how this may be fixed. Note that this is a completely fresh installation, so everything is brand new (though I may still have messed up something during setup).

Offline

#2 2014-01-12 06:11:39

LeftyAce
Member
Registered: 2012-08-18
Posts: 162

Re: sytemd: cannot hibernate as user, suspend works

I am having the same problem as Javex, regular user can poweroff, suspend, reboot, but not hibernate. I'm using a swapfile not a swap partition, if that makes a difference.

Javex, are you using a swap partition? What's your /etc/fstab swap line?

Offline

#3 2014-01-12 06:19:31

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,414

Re: sytemd: cannot hibernate as user, suspend works

javex, I don't know that it has anything to do with this particular issue, but is there any reason why you have put your user in the power group?  With logind and udev's 'uaccess' tag, there really should be no reason to be in anything more than your default group as well as probably 'wheel' (for sudo) and a very few others potential groups for specific applications.  But the generic audio, video, usb, etc are no longer necessary.

Offline

#4 2014-01-13 23:47:10

javex
Member
Registered: 2011-12-30
Posts: 79

Re: sytemd: cannot hibernate as user, suspend works

LeftyAce wrote:

I am having the same problem as Javex, regular user can poweroff, suspend, reboot, but not hibernate. I'm using a swapfile not a swap partition, if that makes a difference.

Javex, are you using a swap partition? What's your /etc/fstab swap line?

Yeah how dumb of me. I use a swapfile:

/home/swapfile          none            swap            defaults                                0 0

So I would think this is clearly realted to the swapfile, which I definitely want to keep (I have 8GB RAM, I never swap, only hibernate, so I don't want to make a dedicated partition). So is it possible that I have encountered a rare combination where there is a bug or misconfiguration?

@WonderWoofy: I just added my self to the group to make sure that was not the problem. These groups don't hurt, do they?

Offline

Board footer

Powered by FluxBB