Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Suspend hangs up in echo mem > /sys/power/state stage #9

Open
Yannik opened this issue Apr 26, 2020 · 3 comments
Open

Suspend hangs up in echo mem > /sys/power/state stage #9

Yannik opened this issue Apr 26, 2020 · 3 comments
Labels

Comments

@Yannik
Copy link

Yannik commented Apr 26, 2020

Thank you for this project, I really appreciate it.
I am using this (with some alterations due to a different initramfs setup) on fedora.

About 2/3 of the time, everything works fine, but sometimes, the suspend hangs at the echo mem > /sys/power/state command. I've had this issue for quite some time, thinking it would possibly get resolved by the new sync_on_suspend feature in kernel 5.6. Unfortunately, this did not fix it.

Can you give me some tips on how to debug this and find out what is causing the hang?

@nailfarmer nailfarmer added the bug label Apr 28, 2020
@nailfarmer
Copy link
Owner

Hi Yannik,

I'm thrilled that you're working on getting this functional on fedora!

The first thing I'd recommend doing is checking out the hangs-wip branch, I have added a couple of additional tricks that I use to reduce hangs.

In particular, I've used rtcwake to introduced a one-second normal suspend-resume cycle before attempting to lock the crypt volume. I also make sure to stop networking, bluetooth, and journald to reduce potential io. Before doing any further debugging, you may want to try this to see if it resolves your hangs.

Debugging is not easy, but the first thing I'd recommend is allowing console messages on the kernel command line by removing the 'quiet' option if you have it, and changing the console loglevel to 7. There's some additional advice here about how to debug suspend and resume in general, but not specific to dealing with cryptsetup.

For general information on the suspend-resume process, this guide is helpful reading, if you haven't seen it before.

@Yannik
Copy link
Author

Yannik commented Apr 28, 2020

Thank you, that will certainly be helpful!

@Maryse47
Copy link

@Yannik hang may be related to lack of firmware in chroot env: https://salsa.debian.org/mejo/cryptsetup-suspend/-/issues/38#note_146745

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants