this post was submitted on 27 Feb 2024
86 points (95.7% liked)

Linux

48176 readers
732 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

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 5 years ago
MODERATORS
 

Recently bought a new laptop that comes with an AMD Radeon gpu and installed OpenSuse Tumbleweed on it which I had installed on my previous laptop as well but never had issues with suspending and resuming. However, with the new laptop, I am unable to resume after suspending or closing the lid unless I force it to shut down by holding the power button which is a major inconvenience.

I'm also dual booting alongside Windows and have secure boot enabled and have the Linux and Windows partitions encrypted if that's what's causing it which I doubt since this is the same setup I had on my old laptop

Any suggestions or advice would be greatly appreciated.

Edit: I was able to figure out that it does not suspend at all when I close the lid or click the suspend button on Gnome. Only found this out because when going through YaST Services Manager and manually starting systemctl suspend, the laptop suspends just fine and wakes back up. So I'm starting to think it's more of a systemd issue? Any inputs?

Edit: turns out it was an issue with the official opensuse built kernel not sitting well. Downloaded a community version from the opensuse repository and it works fine. Very odd

all 34 comments
sorted by: hot top controversial new old
[–] fhek@lemmy.dbzer0.com 7 points 8 months ago

These problems, 9/10 times is solved by using another kernel.

[–] CameronDev@programming.dev 5 points 8 months ago (1 children)

I have/had a similar issue, but for an old nvidia laptop. What happens if you get it to suspend and resume again? Mine would come back the second time.

[–] MagneticFusion@lemm.ee 3 points 8 months ago (1 children)

I can't even get it to resume again which is the problem lol

[–] CameronDev@programming.dev 3 points 8 months ago

Yeah, but for mine, i could close the lid and it would suspend again, and then i could resume. Pressing the power button briefly also worked.

[–] kusivittula@sopuli.xyz 5 points 8 months ago* (last edited 8 months ago)

had the same issue on nobara and i always thought it was nvidia problems. for me the only solution was to use another distro :( sometimes ctrl + alt + F2 or F1 got me back to the login screen.

[–] incogtino@lemmy.zip 5 points 8 months ago (1 children)

If it is powered on but blank screen, you can try terminating the user session from a terminal

https://linuxiac.com/how-to-terminate-user-session-in-linux/

[–] MagneticFusion@lemm.ee 5 points 8 months ago

Unfortunately does not work for me because the screen is black and the laptop is suspended and refuses to wake up

[–] KryptonNerd 4 points 8 months ago (1 children)

I don't have any advice, but I just wanted to confirm I have the same issue sometimes with my laptop running fedora.

[–] souperk@reddthat.com 4 points 8 months ago

If you use a recent release of Fedora (last 2-3 years). Try disabling WiFi and/or Bluetooth before suspending. There is an issue with some hardware, especially adapters. It doesn't happen everytime, and it's hard to accurately reproduce. Also, the symptoms can vary from black screen to sudo being stuck.

[–] ShaunaTheDead@kbin.social 3 points 8 months ago (1 children)

Are you using the dedicated GPU as your primary GPU or the integrated GPU? I've found using the dGPU as the primary can sometimes lead to suspend/resume issues.

[–] MagneticFusion@lemm.ee 2 points 8 months ago

Pretty sure it only has an integrated GPU

[–] paradox2011@lemmy.ml 3 points 8 months ago* (last edited 8 months ago) (1 children)

I know it's not super helpful, but I'll add that this happens to me periodically on my EndeavourOS, Intel based desktop as well. Not even all of the time, just sometimes when it suspends. It seemed to get better when I changed my settings to hybrid sleep, but it just happened again yesterday, so I'm back to square one. Bookmarking to check for possible solutions later.

[–] charliegrahamm@lemm.ee 1 points 8 months ago (1 children)

I have the same problem with shutdown occasionally too, using > sudo shutdown now solves the problem.

[–] paradox2011@lemmy.ml 1 points 8 months ago

Interesting, I'll look in to that

[–] backhdlp@iusearchlinux.fyi 3 points 8 months ago (2 children)

Can you check dmesg and/or journald? What model Laptop is it?

[–] MagneticFusion@lemm.ee 3 points 8 months ago* (last edited 8 months ago) (1 children)

Where do I go to check those? Sorry in advance I've never been the most knowledgeable about Linux

Edit: here is the exact laptop https://www.bestbuy.com/site/lenovo-yoga-7-16-wuxga-2-in-1-touch-screen-laptop-amd-ryzen-5-7535u-8gb-memory-512gbssd-arctic-grey/6533956.p?skuId=6533956

[–] backhdlp@iusearchlinux.fyi 2 points 8 months ago (1 children)

sudo dmesg | less and something with journalctl (not sure because I don't use that currently). There should be some other logs you can check in /var/log too, kern.log sounds useful (though that might just come from sysklogd).

[–] ABeeinSpace@lemmy.world 1 points 8 months ago

journalctl -b -1 should get you logs from the last boot

[–] MagneticFusion@lemm.ee 2 points 8 months ago

I was able to figure out that it does not suspend at all when I close the lid or click the suspend button on Gnome. Only found this out because when going through YaST Services Manager and manually starting systemctl suspend, the laptop suspends just fine and wakes back up. So I'm starting to think it's more of a systemd issue? Any inputs?

[–] gunpachi@lemmings.world 3 points 8 months ago

I have a similar issue but for me the black screen comes at random times when I open, close or move my windows or mouse.

I found a temporary fix for it by checking out the archwiki amdgpu page

But it still occurs , especially when I wake up my computer after suspending it.

[–] Goingdown@sopuli.xyz 2 points 8 months ago

I have seen this on HP laptop with WWAN device installed. Disabled device from Bios and problem went away.

[–] TwoBeeSan@lemmy.world 2 points 8 months ago

Happens on my manjaro desktop too. Hope you find a solution.

[–] souperk@reddthat.com 2 points 8 months ago* (last edited 8 months ago) (1 children)

It's a wild guess, but try to disable Bluetooth or WiFi before suspending.

It's doesn't happen with all hardware, but it is a knowing issue.

[–] MagneticFusion@lemm.ee 1 points 8 months ago

Did not do anything sadly

[–] Hector@lemmy.ca 2 points 8 months ago (1 children)

It is happening to me too on my surface tablet. Do you have TLP installed? Just out of curiosity

[–] MagneticFusion@lemm.ee 2 points 8 months ago (1 children)

Yes I do. This is the same exact setup I had on my previous laptop and the previous one worked fine but this one does not. Would you advise I uninstall TLP?

[–] Hector@lemmy.ca 2 points 8 months ago (1 children)

According to this https://github.com/linux-surface/linux-surface/issues/1113 TLP is one of the culprits but I would rather the boot sequence and wake up from suspend process hang than uninstall TLP. Without it, intel boost keeps overheating my tablet and the battery becomes shit.

[–] MagneticFusion@lemm.ee 2 points 8 months ago

Just uninstalled it and it did not fix the issue sadly

[–] olympicyes@lemmy.world 1 points 8 months ago

I have this same problem when passing an AMD GPU to a virtual machine on my Linux desktop. It works the first time and then doesn’t initialize the card on reset. What you’re experiencing sounds an awful lot like the AMD Reset Bug. In my case a host machine restart resets the card. I’d suggest checking the bios to see if it’s got some kind of quick restart feature that is intended for Windows. Not being able to close the lid is unacceptable. You should return it if you can or run windows.

[–] GolfNovemberUniform@lemmy.ml 1 points 8 months ago* (last edited 8 months ago)

I have exactly the same issue (though in my case sometimes there are artifacts instead of just a black screen). I would love a solution but I never found one unfortunately

[–] Schorsch@feddit.de 1 points 8 months ago

I had a similar issue on a new out of the box HP Prodesk. Independently of the distro I was running it wouldn't want to wake up from standby. Turned out to be an (firmware?) issue with the SSD. After replacing it everything worked fine.