You are not logged in.

#1 2016-11-29 03:03:22

blahgeek
Member
Registered: 2012-01-01
Posts: 4

Cannot suspend after setting up LVM cache

Hello everyone,

I just added an HDD to my laptop (XPS 15 9550), and set up LVM cache together with the original SSD. It works well except the system cannot suspend anymore, either by `systemctl suspend` or closing the lid. The screen is black and power light is on and keyboard not responding, I had to force shutdown.

`journalctl -r -b -1` gave me:

```
...
Nov 29 10:41:43 BlahXPS sudo[3762]: blahgeek : TTY=pts/3 ; PWD=/home/blahgeek ; USER=root ; COMMAND=/usr/bin/systemctl suspend
Nov 29 10:41:43 BlahXPS sudo[3762]: pam_unix(sudo:session): session opened for user root by (uid=0)
Nov 29 10:41:43 BlahXPS systemd[1]: Created slice system-i3lock.slice.
Nov 29 10:41:43 BlahXPS systemd[1]: Created slice system-netctl\x2dauto\x2dresume.slice.
Nov 29 10:41:43 BlahXPS sudo[3762]: pam_unix(sudo:session): session closed for user root
Nov 29 10:41:43 BlahXPS systemd[1]: Starting i3lock...
Nov 29 10:41:43 BlahXPS systemd[1]: Started i3lock.
Nov 29 10:41:43 BlahXPS systemd[1]: Reached target Sleep.
Nov 29 10:41:43 BlahXPS systemd[1]: Starting restart netctl-auto on resume....
Nov 29 10:41:43 BlahXPS systemd[1]: Starting Suspend...
Nov 29 10:41:43 BlahXPS systemd-sleep[3771]: Suspending system...
Nov 29 10:41:43 BlahXPS systemd[1]: Stopping Automatic wireless network connection using netctl profiles...
```

And then nothing.


Any thoughts?

Thanks!

Offline

#2 2016-11-29 05:25:32

blahgeek
Member
Registered: 2012-01-01
Posts: 4

Re: Cannot suspend after setting up LVM cache

Sorry I found the problem myself...

Turns out it's not directly related to LVM. I have a systemd service to restart wifi after system sleep (https://wiki.archlinux.org/index.php/Ne … _on_resume), but maybe because the HDD makes my system suspend action slower,  that service now runs *before* system suspend, and so blocks the system (maybe because the interface is down.)

So I disabled that service, instead, use `/usr/lib/systemd/system-sleep/` to perform actions after resume, and it works good.

Offline

#3 2016-11-29 05:34:28

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: Cannot suspend after setting up LVM cache

Please remember to mark your thread as [Solved] by editing your first post and prepending it to the title.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

Board footer

Powered by FluxBB