vianney / arch-luks-suspend

Lock encrypted root volume on suspend in Arch Linux
https://aur.archlinux.org/packages/arch-luks-suspend-git/
51 stars 30 forks source link

systemd-journald.service prevents sleep #10

Open afn opened 7 years ago

afn commented 7 years ago

I'm not sure I fully understand why, but the system fails to enter sleep mode (echo mem > /sys/power/state hangs indefinitely) if systemd-journald.service is running. Stopping the service before entering sleep mode, and restarting it after resuming, seems to do the trick.

vgivanovic commented 7 years ago

I'm not sure if my problem is the same as @afn or merely related. I have a ASUS Zenbook UX305FA with arch-luks-suspend installed. My rootfs partition is encrypted, and I followed the installation instructions in this package's README.md.

I cannot resume after a suspend if my screen contains messages about journald being unable to (re-?)start. The system is completely unresponsive and I have to reboot. A simple resume from a suspend works. But, I cannot resume from when I close the netbook's lid.

When I open the lid I see just:

systemd 232

I haven't found anything by googling around. FWIW:

# cat /sys/power/state
freeze mem disk

Does anyone know if there are unpleasant interactions between suspend and journald?

vgivanovic commented 7 years ago

If I stop systemd-journald, close my netbook's lid, and then open it, everything seems to work.