Score:1

Screen not coming back after suspension or sleep on Lenovo Legion 5 pro running Ubuntu 20.04

us flag

I recently bought a Lenovo Legion 5 pro. Ubuntu does not support a few things on this device, since there are a lot of issues including Wifi/Bluetooth not working and not being able to adjust the screen brightness, but here I am addressing the one where the screen does not come back after sleeping or suspension of the session.

Scenario One

I close the lid, open it again, and no response. I can't see the screen irrespective of what I do, i.e clicking, pressing buttons on the keyboard or the power button.

Scenario Two

I click on the suspend option provided on the ubuntu menu, I move the cursor, the password screen comes back. Upon entering the password, the screen disappears again with no response. While doing some hit and trial, when the blank screen came again, I entered the password again and hit enter. I noticed the screen is very very dim to the point where I can't make out what's written or wheres what but I can see it a bit.

In both cases, the only option I am left with is a hard shut down.

Kernel version is 5.11.0.37

Edit (17/10/2021)

As suggested by @zanna, when I did the systemctl suspend, it had the normal suspension behavior where I could log back in with proper screen visibility. I am not sure what happened but it magically fixed the issue for now. (I do have my doubts if it will work when the Nvidia GPU is active, I changed it in windows to the dynamic mode and that seems to affect the ubuntu environment too.

How can I solve this issue?

David avatar
cn flag
Probably generic there is hwe kernel as well with for many people better hardware support.
Van Wilder avatar
us flag
Well, I installed mainline to see if there were kernel updates available or not, it didn't show me anything, I also read on a post that updated kernel can be dangerous?
David avatar
cn flag
Untested sure but HWE is simply another kernel stream and not dangerous.
Van Wilder avatar
us flag
I am assuming that I can revert back to initial kernel after changing it to another version in case things fail?
David avatar
cn flag
Yes when you boot do you notice the second option to boot Ubuntu with options maybe not quite that wording look at that it lets you choose other kernels other then the last running one.
Van Wilder avatar
us flag
Yes, there is an advanced options with options such as safe mode. Is that the one you are referring to?
David avatar
cn flag
Yes could not remember the name and not able to reboot to check it >)
Van Wilder avatar
us flag
So I am using this website to see the latest version `https://kernel.ubuntu.com/~kernel-ppa/mainline/` and according to this latest version is 5.15-rc4, I should install this one?
David avatar
cn flag
rc4 not fully tested.
Van Wilder avatar
us flag
Which ones are the tested ones?
David avatar
cn flag
Any that dont say rc which is release candidate they are still working them. You are only looking at mainline not HWE?
Van Wilder avatar
us flag
I am installing 5.14, I am doing this for the first time. :) After installation it said `errors encountered while processing linux-headers-5.14.11.051411-generic`. Should I be worried?
David avatar
cn flag
Reboot and find out is all I can say.
Van Wilder avatar
us flag
I just did ahah, It gave me an error. `error: /boot/vmlinuz-5.14.11-051411 has invalid signature.` `error: you need the load the kernel first`
David avatar
cn flag
Well load an old kernel on boot up. I still think an HWE kernel might be better for you.
Van Wilder avatar
us flag
Apparently, that error is caused because mainline kernels are not signed and I need to turn off secure boot in bios which I am not sure is a good idea or not. Also, I used this command ` hwe-support-status --verbose` the output came to be `Your Hardware Enablement Stack (HWE) is supported until April 2025.`, does that mean HWE is already there?
David avatar
cn flag
Secure boot should almost never be on when running Ubuntu. I do not know what that message means sorry.
Van Wilder avatar
us flag
What about the issues that come with disabling secure boot? or is it just a nuisance thing?
David avatar
cn flag
It is a feature that for the most part only windows wants.
Van Wilder avatar
us flag
I was able to load 5.14 kernel but it has a number of broken packages. It has also discarded my nividia drivers too. :) But it has fixed my wifi adapter problems.
David avatar
cn flag
1 step forward 2 steps back but you will get there.
Van Wilder avatar
us flag
I just got back to my windows and suddenly the wifi adapter is not working- it doesn't make sense. Can i mess up my wifi with these things?
David avatar
cn flag
Not in windows.
Van Wilder avatar
us flag
Well it's bizzare, i can't fry hardware with kernel updates right?
Zanna avatar
kr flag
no, the card will be okay... maybe it's turned off (like airplane mode) or there's a problem with the network, or try turning it off and on again. Anyway, with suspend/sleep, can you please [edit] and clarify your question to explain exactly when suspend does and does not work? I mean describe the behaviour & your actions in each case. I also suggest searching for your device on [Ubuntu Forums](https://ubuntuforums.org/) to see if anyone has figured out which kernel solves this. If you find the answer you can post it here. Ubuntu Forums is often better for new HW support struggles.
Van Wilder avatar
us flag
Thank you for the edit Zanna! The wifi adapter started working again after i restarted it the next day. I will put more details in.
Zanna avatar
kr flag
Thanks a lot, that's much clearer (and good to know the wifi is okay at least in Windows!). Can you try running `systemctl suspend` in a terminal and see if you get any response or useful output?
Van Wilder avatar
us flag
After doing `systemctl suspend` the screen blacked out and upon using the cursor, I could put a password and the screen was visible.
Score:0
mx flag

I resolved this by switching to Nouveau drivers under "Software & Updates" > "Additional Drivers".

And then rebooting the computer.

I noticed some weird behavior after doing a systemctl suspend (which was the first thing I tried after rebooting). Afterwards I could close my laptop and it would wake up correctly.

enter image description here

Van Wilder avatar
us flag
Bizzare enough, it started working by itself for me. I have no idea how.
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.