Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Suspend to ram working, but not Hibernate (KDE + consolekit)
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
Kimitsune
n00b
n00b


Joined: 26 May 2018
Posts: 4

PostPosted: Mon May 28, 2018 1:56 pm    Post subject: Suspend to ram working, but not Hibernate (KDE + consolekit) Reply with quote

Hi,
I'm not really sure if this post is in the right forum, because it is related to power management but is more of a DE permission issue.

Suspend to ram and suspend to disk (Hibernate) work fine as root from command line (with "echo [mem/disk] > /sys/power/state"),
but only suspend to ram work in KDE + consolekit + polkit.
If I choose Hibernate, the suspend LED blinks(Why does it do that ? This does not happen when using command line...), the screen powers off and is locked, the wifi turns off. Then it does not Hibernate it just turns everything back on again. (wifi and screen for example)
I added this polkit rule in /etc/polkit-1/rules.d/10-hibernate.rules :
Code:

polkit.addRule(function(action, subject) {
    if (action.id == "org.freedesktop.upower.hibernate") {
        return polkit.Result.YES;
    }
});

And it makes no difference.

I was suspicious of libvirtd and Networkmanager at first,
because NetworkManager once printed "requesting wake up" in syslog, and libvirtd because I got "error : virNodeSuspendSupportsTarget:336 : internal error: Cannot probe for supported suspend types" in syslog.
But disabling both with "rc-service SERVICE stop" do not fix anything. (I stopped all services too [I left sysklogd and dbus only], and it still does not hibernate from KDE)

When using kde hibernate menu, nothing is printed to kernel logs (except network interface going down),
Parts of the syslog during attempt to suspend from GUI :

Quote:

NetworkManager[8064] <info> [1527512126.5926] manager: sleep requested (sleeping: no enabled: yes)
NetworkManager[8064] <info> [1527512126.5926] manager: sleeping...
NetworkManager[8064] <info> [1527512126.6179] device (enp0s25): state change: unavailable -> unmanaged (reason 'sleeping', internal state 'managed')
kernel [12102.344492] e1000e: enp0s25 NIC Link is Down
NetworkManager[8064] <info> [1527512126.8724] device (wlp2s0): state change: unavailable -> unmanaged (reason 'sleeping', internal state 'managed')
NetworkManager[8064] <info> [1527512126.8752] device (wlp2s0): set-hw-addr: reset MAC address to 90:48:9A:33:6D:47 (unmanage)
NetworkManager[8064] <info> [1527512126.8757] manager: NetworkManager state is now ASLEEP
NetworkManager[8064] <info> [1527512126.8766] device (eth0): state change: activated -> deactivating (reason 'sleeping', internal state 'managed')
NetworkManager[8064] <info> [1527512127.1672] device (eth0): state change: deactivating -> disconnected (reason 'sleeping', internal state 'managed')
dbus[7958] [system] Activating service name='org.freedesktop.nm_dispatcher' (using servicehelper)
NetworkManager[8064] <info> [1527512127.2084] dhcp4 (eth0): canceled DHCP transaction, DHCP client pid 47586
NetworkManager[8064] <info> [1527512127.2084] dhcp4 (eth0): state changed bound -> done
avahi-daemon[8213] Withdrawing address record for fe80::8900:58f7:1262:fc0f on eth0.
avahi-daemon[8213] Leaving mDNS multicast group on interface eth0.IPv6 with address fe80::8900:58f7:1262:fc0f.
avahi-daemon[8213] Interface eth0.IPv6 no longer relevant for mDNS.
avahi-daemon[8213] Withdrawing address record for 192.168.1.4 on eth0.
avahi-daemon[8213] Leaving mDNS multicast group on interface eth0.IPv4 with address 192.168.1.4.
avahi-daemon[8213] Interface eth0.IPv4 no longer relevant for mDNS.
dbus[7958] [system] Successfully activated service 'org.freedesktop.nm_dispatcher'
nm-dispatcher req:1 'connectivity-change': new request (2 scripts)
nm-dispatcher req:1 'connectivity-change': start running ordered scripts...
NetworkManager[8064] <info> [1527512127.7365] device (eth0): state change: disconnected -> unmanaged (reason 'sleeping', internal state 'managed')
nm-dispatcher req:2 'down' [eth0]: new request (2 scripts)
nm-dispatcher req:2 'down' [eth0]: start running ordered scripts...
99-auto-disable-wireless[61962] enabling wifi radio
NetworkManager[8064] <info> [1527512134.0205] audit: op="radio-control" arg="wireless-enabled:1" pid=61974 uid=0 result="success"
laptop-mode enabled, not active
NetworkManager[8064] <info> [1527512136.3168] device (eth0): link connected
kernel [12112.404552] IPv6: ADDRCONF(NETDEV_UP): enp0s25: link is not ready
kernel [12112.626560] IPv6: ADDRCONF(NETDEV_UP): enp0s25: link is not ready
kernel [12112.627775] IPv6: ADDRCONF(NETDEV_UP): wlp2s0: link is not ready
NetworkManager[8064] <info> [1527512136.7653] manager: wake requested (sleeping: yes enabled: yes)
NetworkManager[8064] <info> [1527512136.7654] manager: waking up...
NetworkManager[8064] <info> [1527512136.7654] device (enp0s25): state change: unmanaged -> unavailable (reason 'managed', internal state 'managed')
kernel [12112.404552] IPv6: ADDRCONF(NETDEV_UP): enp0s25: link is not ready
NetworkManager[8064] <info> [1527512136.9887] device (wlp2s0): state change: unmanaged -> unavailable (reason 'managed', internal state 'managed')
kernel [12112.626560] IPv6: ADDRCONF(NETDEV_UP): enp0s25: link is not ready
kernel [12112.627775] IPv6: ADDRCONF(NETDEV_UP): wlp2s0: link is not ready
NetworkManager[8064] <info> [1527512136.9912] device (wlp2s0): set-hw-addr: set MAC address to E6:3D:CB:22:F9:54 (scanning)
NetworkManager[8064] <info> [1527512136.9918] device (eth0): state change: unmanaged -> unavailable (reason 'managed', internal state 'managed')
NetworkManager[8064] <info> [1527512136.9935] manager: NetworkManager state is now CONNECTING
NetworkManager[8064] <info> [1527512137.0049] device (eth0): state change: unavailable -> disconnected (reason 'none', internal state 'managed')
NetworkManager[8064] <info> [1527512137.0117] policy: auto-activating connection 'Wired connection 2'
NetworkManager[8064] <info> [1527512137.0400] device (eth0): Activation: starting connection 'Wired connection 2' (0350eb26-1e6d-3061-9952-bc1e3f8d86df)
NetworkManager[8064] <info> [1527512137.0402] device (eth0): state change: disconnected -> prepare (reason 'none', internal state 'managed')
NetworkManager[8064] <info> [1527512137.0408] device (eth0): state change: prepare -> config (reason 'none', internal state 'managed')
NetworkManager[8064] <info> [1527512137.1014] device (eth0): state change: config -> ip-config (reason 'none', internal state 'managed')
NetworkManager[8064] <info> [1527512137.1458] dhcp4 (eth0): activation: beginning transaction (timeout in 45 seconds)
NetworkManager[8064] <info> [1527512137.2474] dhcp4 (eth0): dhclient started with pid 63333
dhclient DHCPREQUEST on eth0 to 255.255.255.255 port 67
dhclient DHCPACK from 192.168.1.1
NetworkManager[8064] <info> [1527512137.5450] dhcp4 (eth0): address 192.168.1.4
NetworkManager[8064] <info> [1527512137.5450] dhcp4 (eth0): plen 24 (255.255.255.0)
NetworkManager[8064] <info> [1527512137.5450] dhcp4 (eth0): gateway 192.168.1.1
NetworkManager[8064] <info> [1527512137.5450] dhcp4 (eth0): lease time 43200
NetworkManager[8064] <info> [1527512137.5450] dhcp4 (eth0): nameserver '192.168.1.1'
NetworkManager[8064] <info> [1527512137.5450] dhcp4 (eth0): domain name 'aircard'
NetworkManager[8064] <info> [1527512137.5451] dhcp4 (eth0): state changed unknown -> bound
avahi-daemon[8213] Joining mDNS multicast group on interface eth0.IPv4 with address 192.168.1.4.
avahi-daemon[8213] New relevant interface eth0.IPv4 for mDNS.
avahi-daemon[8213] Registering new address record for 192.168.1.4 on eth0.IPv4.
NetworkManager[8064] <info> [1527512137.5476] device (eth0): state change: ip-config -> ip-check (reason 'none', internal state 'managed')
NetworkManager[8064] <info> [1527512137.5487] device (eth0): state change: ip-check -> secondaries (reason 'none', internal state 'managed')
NetworkManager[8064] <info> [1527512137.5494] device (eth0): state change: secondaries -> activated (reason 'none', internal state 'managed')
NetworkManager[8064] <info> [1527512137.6573] manager: NetworkManager state is now CONNECTED_GLOBAL
NetworkManager[8064] <info> [1527512137.6575] policy: set 'Wired connection 2' (eth0) as default for IPv4 routing and DNS
dhclient bound to 192.168.1.4 -- renewal in 19921 seconds.
NetworkManager[8064] <info> [1527512137.8284] device (eth0): Activation: successful, device activated.
nm-dispatcher req:3 'up' [eth0]: new request (2 scripts)
nm-dispatcher req:3 'up' [eth0]: start running ordered scripts...
nm-dispatcher req:4 'connectivity-change': new request (2 scripts)
/etc/init.d/NetworkManager[63365] status: inactive
/etc/init.d/NetworkManager[63385] status: inactive


99-auto-disable-wireless is a script launched by NetworkManager at each network interface change, it executes nm radio wifi [on/off] depending if wired connection is available or not.

How can I fix this ?
I'm not really opposed to switching to elogind, but I would prefer not to as long as it is not in the official desktop/kde profile.
USEs and versions :
Code:

kde-plasma/powerdevil-5.12.5:5::gentoo  USE="consolekit handbook wireless -debug"
sys-auth/consolekit-1.2.0::gentoo  USE="acl evdev pam pm-utils (policykit) udev -cgroups -debug -doc (-selinux) {-test}"
sys-auth/polkit-0.113-r4::gentoo  USE="gtk introspection kde nls pam -elogind -examples -jit (-selinux) -systemd {-test}"
sys-power/upower-0.99.5:0/3::gentoo  USE="introspection -doc -ios (-selinux)"
sys-power/pm-utils-1.4.1-r7::gentoo  USE="alsa -debug -ntp" VIDEO_CARDS="intel -radeon"


After looking up internet for a solution, I found a lot of similar problems, but none where only suspend to ram works....

If you need more data/logs etc.. just ask, I did not find anything else that would be relevant here.
Thanks a lot for your help.
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