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 substitutessudo edit
below, then Alt+:w and :x for the save and exit commands).Add
nouveau.modeset=0
to the line that saysGRUB_CMDLINE_LINUX
then press CtrlO then Enter to save the file and CtrlX to leave Editor.Run
Now reboot.
That seems graphics card driver problem.
Try Ctrl + Alt + F3 then Ctrl + Alt + F2 (might be F7) this might turn on display.
But it's temporary solution.
You may want to persistent solution then you can try to upgrade or change your graphics driver or try @cascagrossa's grub settings solution.
for me switching from gdm3 to lightdm display manager did the trick
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.
Ubuntu 21.10/22.04 NVIDIA 470/510
nv_restore_user_channels
bugThis started happening to me as soon as I moved to Ubuntu 21.10 on my Lenovo ThinkPad P51 NVIDIA Quadro M1200, and based on kernel traces, it is this exact bug: https://bugs.launchpad.net/ubuntu/+source/nvidia-graphics-drivers-510/+bug/1946303 My duplicated investigation: https://bugs.launchpad.net/ubuntu/+source/nvidia-graphics-drivers-510/+bug/1953674
To reproduce the problem easily, I had to disconnect the power cable from my laptop and be on battery only. Otherwise, the problem would only happen sometimes, and more commonly after suspending for a few hours.
Workarounds:
(tested for several days now, seems to be working) the bug report links to https://forums.developer.nvidia.com/t/fixed-suspend-resume-issues-with-the-driver-version-470/187150/3 from heroic user humblebee which has workaround:
and reboot.
In case you nuke it, the contents of
nvidia.bak
are:That post gives their root cause:
PURGE EVERYTHING FROM NVIDIA: uninstall all nvidia packages (
dpkg -l | grep -i nvidia
,sudo apt uninstall
), and purge their configs as well (sudo apt purge ...
). But then you have no acceleration.Note that even non graphic stuff like NVIDIA's CUDA/OpenCL package was still breaking things, notably I couldn't suspend after removing the graphics but keeping them, related: Ubuntu 18.04.2 immediately wakes up from suspend
It is easy to know if you've hit the same bug or not, just look for the following stack traces on your dmesg.
Because you are likely shutting down the computer and restarting, you have to look for them in the dmesg of the previous boot as per How to find previous boot log after Ubuntu 16.04+ restarts? :
The traces are:
I was also seeing the following ACPI error:
Related:
i fixed it by changing Graphics BIOS configuration: Advanced -> Built-In Device Options -> Graphics, then switched from Hybrid Graphics to UMA Graphics. (on an HP laptop)
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:
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:
And although it seems absurd, it began to work, almost magically. I hope this information is useful for someone. A greeting!
For me worked:
And edit:
I've found that simply pressing the function ("Fn") key wakes the screen up when all else fails. All else being other random key-resses.