You are not logged in.

#1 2017-01-20 05:36:52

lumeno
Member
Registered: 2014-04-21
Posts: 20

Can suspend only after rfkill block wlan

I am running Gnome3/GDM. If I do:

$ systemctl suspend

the screen goes blank, I hear the hard disk make a click sound, and then I'm back on the GDM login view. Nothing useful shows up in dmesg or journalctl between sleeping and waking.

After trying many things, I found that the following works:

$ rfkill block all
$ systemctl suspend

which causes the computer to go to sleep. I cannot wake it up with my (wireless) keyboard or mouse, but I can by pressing the power button. Blocking only bluetooth does NOT allow me to suspend

$ rfkill list
1: phy0: Wireless LAN
	Soft blocked: no
	Hard blocked: no
20: hci0: Bluetooth
	Soft blocked: no
	Hard blocked: no
$ rfkill block 1
$ systemctl suspend # doesn't work immediately, works if I wait a while
$ rfkill unblock 1
$ rfkill block 20
$ systemctl suspend # doesn't work even if I wait
$ rfkill block 1
$ systemctl suspend # works if I wait a while
$ rfkill block all
$ systemctl suspend # works!

Why do I have to block wlan to get suspend to work?

Last edited by lumeno (2017-01-20 06:27:58)

Offline

#2 2017-01-20 09:03:23

n0vember
Member
Registered: 2013-07-01
Posts: 9

Re: Can suspend only after rfkill block wlan

your can try to set

SuspendKeyIgnoreInhibited=yes

in your /etc/systemd/logind.conf

This will make suspend unstoppable. There is a similar option for hibernation.

Offline

#3 2017-01-20 12:31:00

tuxayo
Member
Registered: 2013-02-26
Posts: 27

Re: Can suspend only after rfkill block wlan

I got the same issue few time lately.

I'll try your solution next time it happens.

Also, I got this in my logs at boot that might be related:

janv. 17 17:35:16 some-laptop systemd[1]: systemd-rfkill.socket: Socket service systemd-rfkill.service not loaded, refusing.
janv. 17 17:35:16 some-laptop systemd[1]: Failed to listen on Load/Save RF Kill Switch Status /dev/rfkill Watch.

Offline

#4 2017-01-21 04:31:26

lumeno
Member
Registered: 2014-04-21
Posts: 20

Re: Can suspend only after rfkill block wlan

n0vember wrote:

your can try to set

SuspendKeyIgnoreInhibited=yes

in your /etc/systemd/logind.conf

This will make suspend unstoppable. There is a similar option for hibernation.

I did this and rebooted and try to suspend again. It didn't help, it wakes up immediately.

Offline

#5 2017-01-23 08:18:08

tuxayo
Member
Registered: 2013-02-26
Posts: 27

Re: Can suspend only after rfkill block wlan

@n0vember it seems that SuspendKeyIgnoreInhibited=yes just prevents to ignore the suspend key press event https://www.freedesktop.org/software/sy … .conf.html

Where did you find that it does more?

So I tried SuspendKeyIgnoreInhibited=yes and suspending still fails.

And `rfkill block all`didn't work either although it worked for @lumeno

Offline

Board footer

Powered by FluxBB