This is actually the thing that originally triggered me into wiping my windows OS and switching to Linux a couple years back. Unbelievable that I can put my machine into long-term low power mode and minutes later windows is like ‘lol, did you mean to click update??’
Can’t believe how much better Linux is for 0$.
“My PC” was even replaced with “this PC” since Windows 11, which feels almost too symbolic…
I had to spend an annoying amount of time finding all of the settings to make it so that my windows machine would never wake up on its own, spread out over an even longer period of time because some of them aren’t easy to trigger on my own so it was a matter of trying something and then trying more things if I find it awake on its own again.
Even disabling the wake on mouse movement was a pain because it doesn’t properly label mice and keyboards and doesn’t have a global setting. I wanted to keep wake on keyboard but not have it wake if my mouse moved a nm because a butterfly flapped its wings too vigorously as it flew by the closed window.
After I installed Linux, I went to do the same thing there only to find it already had sensible defaults set.
To be fair, Linux has not been especially awesome at suspended/hibernate/resume, historically.
Yea, I like to suspend my machine, but rather than hit suspend and walk away I have to wait to find out what has prevented suspend from suspending. That and it trying to goto sleep when I don’t want it to. Drives me nuts
Suspend / hibernate / resume is really a test of the quality of all your device drivers. That’s always been a weakness in Linux, not because of Linux itself but because Windows is so dominant.
My linux PC used to be unable to hibernate/sleep at all, and my current laptop occasionally gets some kind of backlight burn-in from sleeping when the lid’s closed
this meme is especially true for students and the likes 😂 whenever you share a one-room flat with a laptop made by clueless techbros for clueless techbros, the increased fan whirring really shines.
Nope. My Linux Mint randomly wakes up from sleep mode all the time. It’s just a bug. Tried to fix it, never found solution. I guess I am fine with it. Well. Not really. Help me if you can!!11!!
Apparently you can see which devices can wake your PC with
cat /proc/acpi/wakeup
. S3 should be sleep and S4 hibernation. Though I have no idea which device is which.Lspci and lsusb will help you match up with the list
Thank you guys! Lemmy is great!
My first guess world be unplug your mouse and keyboard and see if it still happens. Your mouse or keyboard could be sending phantom inputs sometimes. If it’s a laptop maybe not though or you’d have to test it another way at least. But it’s the first thing I’d do.
Put chrome on it, that should fix it
sudo apt update && sudo apt upgrade -y
That’s how easy updating is on (Debian flavors)Linux.
On arch it is sudo pacman -Syu or yay
sudo nixos-rebuild switch --update
Sudo flatpak update
On RHEL it’s simply sudo dnf update -y
🤭and sometimes, if you wake your linux things go to shit and all you see is black screen and white mouse on it
Sometimes super+ctrl+alt+F8 saves me and I can restart PC from TTY, and sometimes, there is only a flashing cursor. In second case, I have to take hard measures and forcefully manually restart it
(Yes nvidia card with latest proprietary driver and kde on wayland) -> everything latest meaning from endeavour/arch/aur repos.
Not every Nvidia but always Nvidia.
Maybe it is kinda a bias since nvidia is easy to blame and is existing in most PCs 🤔
All my hybernation issues went away after i switched to an AMD GPU. Not evidence in itself, just an experience an opinion.
AMD had a problems with hibernation, too. amdgpu driver sometimes crashed on waking up. Problems disappeared about a year ago.
Well i switched somewhat around that time. Guess i was lucky.
I like how you corrected opinion to experience 😃👌🏻
And yes, I would call that an evidence, not a proof but clearly an evidence, especially if you did not change anything else (hardware or start from scratch setting up Linux distribution).
My PC does this really annoying thing, whenever I tell it to Install and Shut Down the bloody thing restarts every time
That’s because the shutdown hardly exists anymore. When you choose shutdown now it just hibernates. Reboot is the only way to get the full refresh of a shutdown unless you’re using CMD.
So I dualboot and each time i shuts down, i get boot menu. Are you telling me that is not shutdown in windows?
Another day of learning about Linux from the comments under a meme.
I like and I do use Linux as my main OS. No dual boot BS, just pure Linux
butttttttttttttt
getting hibernate working perfectly in Linux on new hardware is PITA. I’m just happy with suspend working well, let alone hibernation.
Modern standby is the absolute shit of an invention.
This is the ONLY reason I wish I have a Mac. Forget all the memes and jokes about Apple, their laptops suspend very well. IIRC, they also have a hibernation timer built in, so if your laptop automatically hibernates after X hrs. But I dont want to be stuck in their ecosystem, so yeh…
Linux devs are not that keen to make hibernate work well either. Remember systemd dev forcefully removed the “suspend then hibernate” feature? You can still find the thread on Github lol.
this meme is really true for windows, sometimes my pc wakes up the second I put it to sleep. seems to be some random app I have open allowing it to wake up again. infuriating. With intel macs, they wasted a lot of battery asleep, but my silicon mac can sleep for weeks without losing hardly any battery. linux I still can’t get sound to work properly.
Forget all the memes and jokes about Apple, their laptops suspend very well
The advantage of Apple is that the number of possible hardware combinations is pretty small. With Windows / Linux it’s nearly infinite.
With a small number of possible hardware configurations, it’s much easier to get sleep/suspend to work well because you can test every possible hardware combination and make sure it works.
But yeah, their system is basically flawless.
OpenSUSE hibernate works. Just have to add extention to show the hibernate button (in GNOME)
I heard mac won’t shutdown at all but only does sleep and someone mentioned any keypress will wake it from sleep so that you can’t clean keyboard…
Ugh, the updates…my work PC is Win 11, I got an email from IT last night telling me I had to install the latest update I had been putting off. This morning after I clocked out I started the update. I have 500 down and it took almost 2 hours to download and 3 hours later the installation is only at 53%. I’m just going to go to bed and hope it’s done by the time I have to clock in tonight.
And my coworkers wonder why I prefer Linux…
Windows would always wake from hibernation/suspension by itself after 2 or 3 hours. Truly a feature, not a bug
I love how they wake up in my backpack so they can overheat AND drain the battery at the same time.
That’s efficiency.
Reach into your backpack and get 3rd degree burns.
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
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
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.
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.
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.
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.
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.
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.
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. :)
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! :)
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<number> states that add confusion to all that.)
Windows is too self-important. Daddy, chill.