this post was submitted on 11 Mar 2025
1208 points (100.0% liked)

linuxmemes

24149 readers
2826 users here now

Hint: :q!


Sister communities:


Community rules (click to expand)

1. Follow the site-wide rules

2. Be civil
  • Understand the difference between a joke and an insult.
  • Do not harrass or attack users for any reason. This includes using blanket terms, like "every user of thing".
  • Don't get baited into back-and-forth insults. We are not animals.
  • Leave remarks of "peasantry" to the PCMR community. If you dislike an OS/service/application, attack the thing you dislike, not the individuals who use it. Some people may not have a choice.
  • Bigotry will not be tolerated.
  • 3. Post Linux-related content
  • Including Unix and BSD.
  • Non-Linux content is acceptable as long as it makes a reference to Linux. For example, the poorly made mockery of sudo in Windows.
  • No porn, no politics, no trolling or ragebaiting.
  • 4. No recent reposts
  • Everybody uses Arch btw, can't quit Vim, <loves/tolerates/hates> systemd, and wants to interject for a moment. You can stop now.
  • 5. πŸ‡¬πŸ‡§ Language/язык/Sprache
  • This is primarily an English-speaking community. πŸ‡¬πŸ‡§πŸ‡¦πŸ‡ΊπŸ‡ΊπŸ‡Έ
  • Comments written in other languages are allowed.
  • The substance of a post should be comprehensible for people who only speak English.
  • Titles and post bodies written in other languages will be allowed, but only as long as the above rule is observed.
  • 6. (NEW!) Regarding public figuresWe all have our opinions, and certain public figures can be divisive. Keep in mind that this is a community for memes and light-hearted fun, not for airing grievances or leveling accusations.
  • Keep discussions polite and free of disparagement.
  • We are never in possession of all of the facts. Defamatory comments will not be tolerated.
  • Discussions that get too heated will be locked and offending comments removed.
  • Β 

    Please report posts and comments that break these rules!


    Important: never execute code or follow advice that you don't understand or can't verify, especially here. The word of the day is credibility. This is a meme community -- even the most helpful comments might just be shitposts that can damage your system. Be aware, be smart, don't remove France.

    founded 2 years ago
    MODERATORS
     
    you are viewing a single comment's thread
    view the rest of the comments
    [–] [email protected] 7 points 2 weeks ago (2 children)

    I started down the Linux route over the weekend and put my computer in hibernation and couldn't figure out how to wake it up from its torpor without restarting. So I'm going with suspension for the time being

    [–] [email protected] 8 points 2 weeks ago (2 children)

    Firstly, welcome :)

    Secondly, hibernation on Linux requires swap partition 2x size of the RAM. If you didn't set it big enough or did not set at all, hibernation wouldn't work. However if you set it correctly, there should be another reason to consider.

    If you are not sure, you can use this command on terminal to compare your RAM and swap sizes. free -m

    [–] [email protected] 2 points 2 weeks ago (1 children)

    According to the FAQ I found, you mostly don't need double your RAM. Especially for systems with lots of memory, they suggest instead the swap should be the square root of the RAM if you don't hibernate. If you do it should be RAM + SQRT(RAM).

    I'm not sure where the square root part comes from, but I think the general idea is that if you're using more swap than that, you should just add RAM.

    I'm still trying to get hibernate working on Bazzite. I followed the instructions I found and got it to the point that "Hibernate" is showing up in the menu, and when I use that menu item it seems to be saving state, but on boot I can't get it to restore my previous session. I suspect it has to do with the Bazzite / Universal Blue bootc weirdness, but I haven't spent much time digging into it yet.

    [–] [email protected] 2 points 2 weeks ago (1 children)

    That's interesting. I guess I understand now why my 2 GB swap can get filled rather quickly. After I read that FAQ, I delved a little more and found this. Apparently it's not feasible to use hibernation if you have more than 64 GB RAM, well at least until we got much more faster SSDs it seems.

    Not the same but if you're using KDE on Bazzite, KDE has a restore previous windows option (or something like that). You can use it until find a solution.

    [–] [email protected] 2 points 2 weeks ago (1 children)

    It looks like they say "not recommended" rather than "not feasible".

    It's annoying when there's a doc like that without a date on it. That could be 10 years old now, and might not be taking into account NVMe drives.

    And yeah, I've been using "restore previous session", but it's annoying because it's not restoring windows in their previous positions on their previous desktops. There is probably a way to enable it to remember previous window positions, but I've been trying to get hibernate working rather than poke at that. Besides, what I really want it to remember is my tmux windows and what they were running. That's really not possible without hibernation / sleep / suspend.

    [–] [email protected] 1 points 2 weeks ago (1 children)

    I guess not feasible was a strong word. I saw on a couple forums and it seems it takes around 2 minutes to hibernate if you have that much RAM, even with an NVMe. Probably that's why it's not recommended, which is understandable. Also it says Redhat 8, so it shouldn't be older than 5 years.

    I checked and it seems Bazzite doesn't support hibernation out of the box and you need to disable zram if you want to use it. Kinda weird to me but I never used an immutable distro before so maybe it's related to that.

    [–] [email protected] 2 points 2 weeks ago (1 children)

    Yeah, I already disabled zram. I was following that web page.

    I think the issue is that I need to add resume support to the initramfs. Because it's an immutable distro, I have to do that a bit differently. As for the zram and immutable distro weirdness, I think it's also Bazzite which is designed to work on the SteamDeck and other portable devices. I remember reading something about their sometimes having low amounts of RAM so they do some weird things to make up for it.

    Anyhow, I'm going to try it tonight, wish me luck. :)

    [–] [email protected] 1 points 2 weeks ago (1 children)

    I remember reading something about their sometimes having low amounts of RAM so they do some weird things to make up for it.

    That makes sense. I was doing a similar but opposite thing when I was still using Windows. It comes with hibernate but I never used it so I was removing the swap equivalent of it every time I install it.

    Well, at least have fun with it. Good luck! :)

    [–] [email protected] 2 points 2 weeks ago (1 children)

    I'm sure I'll understand those words eventually. I wasn't sure what the difference was, so just tried hibernation. But I haven't tried any swapping of partitions or partitioning at all, it was just a standard debian install that gave me the option, which I haven't touched since.

    [–] [email protected] 1 points 2 weeks ago

    Yeah, you will, in time. If I recall correctly, Debian gives 3 options for pre-set partitioning and the first one has just enough swap partition for normal usage, and the others are one with enough for hibernation and one with no swap. As for many things, hibernation is also optional in Linux world.

    On Windows, there is something similar to swap called hiberfil.sys. You can delete that to gain space if you don't need hibernation. However unlike Windows, swap is also useful for things other than hibernation so we usually include it on our installations even if we have RAM more than 16 GB.

    [–] [email protected] 1 points 2 weeks ago

    When you say hibernation, do you mean essentially powered off?

    My understanding is that hibernation has always meant that the system is 100% off, but that when it next boots it can read from disk into RAM and then let you resume where you were before you shut down. I ask because "waking" a system in hibernate means turning it on, and it goes through the normal boot process. If it's still on in some way, that doesn't sound like hibernation to me. It sounds like "sleep" or "suspend" (ugh, but there are now annoying s states that add confusion to all that.)