this post was submitted on 08 Jun 2024
614 points (97.7% liked)
Linux
48338 readers
475 users here now
From Wikipedia, the free encyclopedia
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.
Rules
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.
- No misinformation
- No NSFW content
- No hate speech, bigotry, etc
Related Communities
Community icon by Alpár-Etele Méder, licensed under CC BY 3.0
founded 5 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
I did some more digging on this last night. I’m more confused now than I was before, and I don’t know what it’s doing.
The arch wiki defines three states, suspend to ram (sleep), suspend to disk(hibernate), and a hybrid suspend(presumably what my steam deck does).
First there is the “turn off the display” behavior. Doing anything brings the monitor back alive and I’m presented with the Lock Screen.
Second is what I believe to be sleep. This happens when I select “suspend” from the menu or leave it alone for a very long time. This mode doesn’t happen soon (maybe at all) if the computer is doing stuff. It appears to be in a lower power state-but I can’t say why I think that (maybe it’s just because the fans aren’t running? I dunno). Wiggling the mouse or doing anything wakes it back up.
Third is another state. It’s just like the above state, except it will not wake up with mouse movement, or clicking keys on a Bluetooth keyboard. I must push a key on the keyboard, the power button, or open the lid. It’s weird because it responds to things other than the power button.
Interestingly, my desktop behaves exactly the same way. But what’s interesting on the desktop is that I can hear a power relay clicking on from this third state. It’s distinctly different than the 2nd state - exhibiting power cutoff, but still responding to the keyboard.
Neither computer enters any other state even after days of being left alone.
So I dunno. Are modes 2 and 3 like two versions of sleep, and hibernate never activates? Or is state three hibernation but it responds to things it shouldn’t?
I have no idea. But now that I’ve played with it some more - I don’t want to say hibernate is working because I don’t know what it’s doing. All I know is that it has the above three behaviors which are consistent with my desktop machine.
See what happens after actually running:
systemctl hibernate
Systems don't normally enter hibernate automatically unless they are at low battery. There is something called modern standby or s0 sleep, versus traditional s3 sleep. The "third state" you describe sounds very much like s3 sleep. I doubt it would switch between s0 and s3 sleep though, normally one or the other is enabled. Maybe it's going to hybrid suspend? In fact that would probably explain it. I believe hybrid suspend involves using s3 sleep state.
Also there are no power relays in modern ATX PSUs to my knowledge, you are describing something else. They use transistors to do all of the switching I believe, aside from the physical switch on the back which also isn't a power relay.
Excellent, that makes sense. I’ll try that command tonight at home, see what it does, and report back. I kind of want to know what it’s doing just because I’m curious.
I say a relay, but I agree with you - I couldn’t imagine a relay being used. But whatever it is on my desktop, it sounds just like a traditional ice cube relay clicking - and it’s quite loud. But I have no idea what it is. I’m not sure I’ve ever had a computer that made that noise before. My laptop makes no such noise obviously.
Could be the transformer, or the inductors. Those can move when in use and they can also make sounds like coil wine.