Kali linux stuck in sleep mode
pupille -
Hello, It's been a good week now that I've had this problem. I have a Lenovo Legion 5 RTX3060 AMD Ryzen 7 with 32GB of RAM. A Windows 11 installation to which I've added Kali Linux in dual boot. On Windows, no problem, but Kali has me banging my head against the walls. When I let it go to sleep or when I lock it myself and put it to sleep, it is IMPOSSIBLE for me to wake it up. I'm forced to hold the power button to force it to shut down and restart. The problem is that typing a passphrase to unlock LUKS every time I just want to unlock it is annoying. It's been a week that I've been digging through all the forums on all possible and imaginable sites, and the solutions that worked for some don't work for me. I'm opening this post to ask for help; I don't know where to search or what to test anymore. Here's a small list of what I've tested: Firstly, many talked about doing Ctrl + Alt + F1/2/3 and seeing if the command prompt appears. Spoiler alert, it does nothing, not even a sound, not even a blink anywhere, nothing. The screen stays black, lit but black, no mouse and my keyboard lights up when I press a key. I've found many forums mentioning adding nomodeset at boot.
Well, actually, I already have nomodeset because during the installation I have no desktop after login if I don't have nomodeset (because supposedly my graphics card causes problems with the "nouveau" driver, so anyway, I already have it and it doesn't work, so that's not the solution for me. I found a guy who said to modify GRUB; he changed the line
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
to
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash atkbd.reset"
Then he did sudo update-grub
and finally restarted.
THAT DOESN'T WORK EITHER EITHER.
In the same post, he talked about disabling power saving in the BIOS, but the problem is that I don't have such an option in my BIOS, so I can't go through his solution, and I doubt that the solution is here.
So if someone can help me, that would be SUPER.
Feel free to ask me for screenshots or command outputs; I don't know which ones will be useful since I've tested so many things, so just ask me directly, it will be simpler.
Thank you.
3 réponses
So none of the mentioned solutions have worked, I've tinkered around with KDE, XFCE, and GNOME, and nothing is working anymore... I have one last idea in mind that I just came up with, I'll keep you updated.
I just tried an installation with a swap partition equal to my RAM, it doesn't change anything. With or without locking, if the screen goes off, it doesn't come back. I don't understand anything anymore, my logind.conf files and others are set up the same way as in your screenshots, I tried to tinker with them too and nothing works, and I would say it's starting to go beyond my capabilities, it's been years since I used Linux.
I just tried again like you, to just put the computer to sleep without asking for a password upon waking up, but unlike you, even then I can't wake it up.





I'm going to check that out, I'll be back. Thanks for your reply.
I hadn't seen it, but in the screenshot, those are the settings for XFCE while I'm on KDE, and that option is either not in that location or doesn't exist. (XFCE has the same problem and so does GNOME; the desktop environment isn't the cause, as far as I can tell.) I will still test XFCE to disable the option you've identified, but I need to uninstall and reinstall Linux AGAIN, and I don't know if I'll have time for that tonight.
If anyone else has an idea, I'm all ears.
Edit: I found a similar setting in KDE, but it doesn't solve the problem. I doubt that it will change anything in XFCE, but I will still try it when I have more time.
see maybe here
kali kde
I have already gone through this kind of topic, I tried to completely disable sleep mode and that "works", at least it bypasses the fact that the screen turns off. The solution given in the link doesn't work when the screen goes to sleep, even without locking; the screen doesn't come back on.
In fact, I just tried all the possible settings regarding autolock, auto suspend, and auto power saving screen, and no matter the method, if the screen goes black, it’s dead; I have to restart.
Basically, as a temporary solution, preventing the screen from turning off by disabling everything and only allowing the auto lock screen to function might work, but being able to at least put my machine to sleep in terms of the screen would be the minimum (to consume less) and allowing background tasks to go into "extended" sleep to consume nothing as indicated in the dock would be great. I would like to adjust the functions to fit my needs; that’s what it’s designed for in the first place.
If any other ideas come to mind, I’m all ears. I will check tomorrow for the installation under XFCE to see if it makes any difference, and I might even try with GNOME just to see. I will post the results of my tests here.