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
regressions: hibernation issues from 254.5 to 255~rc2 #30083
Comments
Some logs, which I've made with:
in
If you need anything else, please tell me what :-) (I've been a bit reluctant to simply send the whole journal since it's so much any I didn't want to check all for any sensitive information ^^) Thanks, |
cc @YHNdnzj ? |
Indeed. Such setups are unintentionally invalidated in #29382, where more safety checks for hibernation were added. #30074 should help to generate more helpful error message. TBH, I'm not sure if this kind of setup is worth supporting. I mean, the swap space is always around, so why not keep it enabled? See more justifications of mine in https://wiki.archlinux.org/title/Talk:Power_management#On-demand_swap_for_hibernation_only . But, since it breaks compatibility, I'll submit a fix. |
Otherwise, ENOENT or ENXIO may be directly returned as error through bus. Should help to generate clearer error message for systemd#30083.
have no swap space at all But I shall still recommend https://chrisdown.name/2018/01/02/in-defence-of-swap.html to everyone ;-) Fixes systemd#30083
Well, I've been in the discussion about swap being considered nowadays again a good thing before, and I do understand the point that one cannot page anonymous memory without swap... but still, I think there are some niche cases, where it makes sense to run without general swap, but were one might still want it for hibernation. I've tested #30074, and when I rebooted the system with a build of systemd that had the patches applied, it froze at boot (while systemd was already doing its thing) and CPU went to 100% (assuming from the fan noise). Also, the commits fixed both issues. Especially Thanks for the fix :-) |
Otherwise, ENOENT or ENXIO may be directly returned as error through bus. Should help to generate clearer error message for systemd#30083.
have no swap space at all But I shall still recommend https://chrisdown.name/2018/01/02/in-defence-of-swap.html to everyone ;-) Fixes systemd#30083
systemd version the issue has been seen with
255~rc2
Used distribution
Debian sid
Linux kernel version used
6.5.0-4-amd64
CPU architectures issue was seen on
x86_64
Component
systemctl, systemd, systemd-logind
Expected behaviour you didn't see
Hey.
Forwarding this from Debian bug #1056135.
Since upgrading from 254.5 to 255~rc2, I see the following two issues (which both disappear when downgrading to 254.5-1 (and completely rebooting the system, before trying again - they also shop up again, only after completely rebooting the upgraded
systemd
again)):I have a somewhat special hibernation setup.
Hibernation goes to a btrfs swap file on top of dm-crypt.
The following unit files are used for that:
/etc/systemd/system/data-swap-hibernation.swap
:I also have a
/etc/systemd/system/hibernation-cleanup.service
:but I don't think this has anything to do with the issue here.
There are symlinks:
Especially, the hibernation file may not be availalbe (or activated as swap), yet, when I go into hibernation.
This caused desktop environments (I use Cinnamon) not to show the "Hibernate" button, which I've been able to solve via a:
/etc/systemd/system/systemd-logind.service.d/disable-hibernation-swap-check.conf
:However, starting with 255~rc2-1 (but solved when going back to 254.5-1) this no longer seems to have an effect. At least Cinnamon then doesn't show the Hibernate button anymore.
When, because of (1), manually calling:
The above error occurs (which itdoes not with 254.5-1), but the system then still seems to hibernate normally (and can also resume from that).
Notice also that I've changed
logind.conf
:and
sleep.conf
:Any ideas?
Thanks,
Chris.
Unexpected behaviour you saw
No response
Steps to reproduce the problem
No response
Additional program output to the terminal or log subsystem illustrating the issue
No response
The text was updated successfully, but these errors were encountered: