So, when I suspend my laptop, then wake it up later, my laptop does turn on, I'm able to, for example, turn up and down the volume with audio confirmation using the kepboard, but my screen remains black and doesn't show anything until after I restart my laptop.
It is the buggy nouveau driver again. That's what solved the issue for me.
Edit the file
/etc/default/grub (using Vi editor -- some users have not been able to save after editing in Vi and have had to use the alternate "Ex" editing mode, which substitutes
sudo edit below, then Alt+:w and :x for the save and exit commands).
$ sudoedit /etc/default/grub
nouveau.modeset=0 to the line that says
GRUB_CMDLINE_LINUX then press CtrlO to save the file and CtrlX to leave Editor.
$ sudo update-grub
Sorry if what I'm saying is weird (I'm using the google translator). In my case, I am using an Asus Vivobook S15. After desperately searching, I accidentally gave the solution (in my case) and I wanted to share it. What I did was install the Unity Desktop:
$ sudo apt install ubuntu-unity-desktop
And although it seems absurd, it began to work, almost magically. I hope this information is useful for someone. A greeting!
Here is what fixed this issue for me on Kubuntu 20.04 Intel NUC PC (NUC8i7HVK), which has Intel HD graphics + embedded Radeon RX Vega M GH:
I went into UEFI BIOS settings and enabled PCIe ASPM (Active State Power Management). I left some other settings such as "Native ACPI OS PCIe" disabled
This is very easy to test so give it a shot and see if it helps.
I don't know how to really solve the problem, but remember: before you hold down the power button to hard reboot, you can always soft reboot with this funky sequence:
Hold down Ctrl + Alt + PrScr, then press the following keys one-at-a-time while holding those first 3 keys down the whole time: R, E, I, S, U, B.
Note that on some (many?) laptops/keyboards,the PrScr button may require your Function key, Fn, to activate it, so you may have to hold down Ctrl + Alt + PrScr + Fn instead, while typing the REISUB reboot key sequence.
I don't remember where I learned this, but I read it from someone else years ago on Ask Ubuntu or SuperUser somewhere. The last key, "B", stands for 'B'oot. So, when you press that key your computer will restart.
Keep this in mind for any Linux problem. Only do a hard reboot if this soft reboot sequence first fails.
A few final thoughts:
- If you have a Yubikey plugged in, unplug it! It enumerates itself as a USB keyboard to your computer and may have a "jammed key" or otherwise interfere with your computer's normal operation. I make a USB keyboard device called the "Computa Pranksta" and sometimes have a similar problem.
- You may have a hardware problem, as I once had on my computer here. To test this, boot into your BIOS/UEFI boot menu and choose to run a full hardware diagnostics test suite, assuming your computer has such an option from the factory. It may reveal bad RAM, a bad motherboard, or something else.
- This answer by @Vijay Prema looks promising, but unfortunately I don't have the BIOS password on the computer I'm having problems on, so I can't change the BIOS settings to find out.
I tried all the answers given in this post, none of them helped me(changed drivers, updated drivers, edited /etc/default/grub, changed display manager, made more swap, spent some hours, prayed to laptop).
I then finally gave up & thought to enable hibernate mode, while enabling that I ran
Which gave me
Then I felt it is due to UEFI
boot mode in BIOS. Made that option to
legacy support which enabled another option
Boot priority, let this be default as
After this I am able to resume the system after suspend.
now gives more options which has
This was done on Legion Y540 (GTX 1650 with Nvidia drivers - 418 (no IGPU) /Ubuntu 20 LTS/ Kernel 5.4/ latest BIOS as of date)
P.S. Windows never had any problem resuming from sleep.
This seems to work for me (as a temporary solution).
Device: HP 245 G5
OS: Xubuntu 18.04
When your screen is blank, this sequence of actions seems to do the trick:
(wait 5 seconds)
CTRL + ALT + F2 (wait a second)
CTRL + ALT + F3 (wait a second)
CTRL + ALT + F7 (wait a second)
ESC (wait a second)
ENTER (3 times XD)
Close your laptop (wait 5 seconds).
Open back your laptop.
And the terrific blank screen is gone.