this post was submitted on 29 Mar 2025
65 points (94.5% liked)
Linux
52683 readers
810 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 would try:
Sorry, mate, I'm a Linux noob.
I have no clue where to find the logs for this.
No idea what a VT is.
Don't know how to boot into single user mode....
logs are mostly at 2 places.
kernel logs are read with the
dmesg
command. use the--follow
parameter if you want it to keep printing new messages.dmesg does not save logs to disk.
broader system logs are read with
journalctl
. use-f
for it to keep printing. the journal records kernel messages, but it only shows them when you specifically request it. you can find the param for that inman journalctl
.the journalctl (journald actually) saves logs to disk. but if you don't/can't shut down the system properly, the last few messages will not be there.
some system programs log to files in /var/log/, but that's not relevant for now.
if you switch to a VT as the other user described, you should see a terminal prompt on aback background. log in and run
dmesg --follow > some_file
, some_file should not be something important that already exists in the current directory. switch to another VT, log in, and runsleep
. try to wake up. see if you could have waken up, and if not check the logs you piped to the file, maybe post it here for others to see.also, what did you do after setting the deep sleep kernel param? did you rebuild the grub config, and reboot before trying to sleep with it? that change only gets applied if you do those in that order.
there's an easier way to test different sleep modes temporarily, let me know if it would be useful
So, I did a BIOS update, as advised here, and got some interesting results!
The freeze still happens - but it now freezes BEFORE the PC shuts down.
As in: I click the Sleep button, all devices get disconnected (audio, network, BT, input - all of it goes), the OS freezes, but the screens stay on. I cannot switch to a different VT at this point as everything is disconnected.
here is the low-level documentation on sleep on linux, and the ways you can initiate it: https://docs.kernel.org/admin-guide/pm/sleep-states.html#standby
I would try if setting mem_sleep to any of its values and then sleeping fixes the issue. read this file first to know which options are available on your system, and what is the current default.
if none of them works, try to write freeze or standby into the
state
file to see of any of them works, in case your system does not do sleeping by writingmem
into this file.if this is a firmware issue, hopefully one of the ways that don't involve the firmware could work until a better solution is found.
the Arch Wiki has mostly the same info but with more (or different) details: https://wiki.archlinux.org/title/Power_management/Suspend_and_hibernate
it also mentions what are your options if deep sleep (which is real sleep) does not work.
let us know what results you got