I have just installed Ubuntu 22.04 LTS. It works fine but after I suspend the session, the screen remains black after restarting the session.
How can I solve it?
Thanks
I have just installed Ubuntu 22.04 LTS. It works fine but after I suspend the session, the screen remains black after restarting the session.
How can I solve it?
Thanks
**update 3 FINAL SOLUTION
(if anyone having confusion seeing so many updates please know that I haven't undone any updates that are written, the solution is stacked).
TURN OFF SWAP
(in addition also turned on UEFI boot, the system is much more responsive now. The system was stable even without UEFI)
Disabling the swap didn't work for me (it was re-enabling at reboot, and adding a cron job wasn't my choice ), I had to clear (delete) the swap partition all together. Use Gparted (preinstalled in Ubuntu) it is very intuitive.
swap is the Linux version of paging files in Windows, A segment of Harddisk where data stored in RAM gets shifted if memory uses exceeds the system RAM. Sometimes unchanged data (that is unchanged for a while) also get moved there, even if RAM uses are very minimal.
*Speculation-
Ubuntu probably stores some of the data on the Harddrive (even in suspend mode) the hard disk, for my case the laptop has 2 Harddisks (SSD and HDD) the SSD, boot drive for Ubuntu appears in bios as Disk 2, I believe that's the reason behind. If it's a common scenario, please inform the community.*
**update 2
Pressing the power button sometimes act very delayed or doesn't work, in that case after pressing the power button once. count to 20, if no response, try pressing 'ALT' 'CTRL' + 'F1'
Depending on the system a stable/ unstable (will auto exit) text input field opens, just press 'ESC' and login.
**update
The issue reoccurred
Solution - Just press the power button once, don't hold
please allow sometime after pressing the power button
Some modifications performed after the old answer, are-
Suspecting the swap size is too low (mine is 2gb) and to eliminate multiple writes to the SSD I have changed the lid close function to SUSPEND (suspended stores the data in RAM instead of writing to the disk, beware it's risky) from the /etc/systems/logind.conf. (just delete the # (commenting) before the - lid close suspended option
After that the issue has been reappeared, fortunately, I have found the solution as well.
Hypotheses - probably it's not a graphic driver problem but a deep sleep where all the drivers get shut down and only the power button carries the wake-up signal
~Old answer
Turning off 'Screen Blank' under power settings solves the issue.

(AMD integrated graphics laptop) (Tested for 5 lid down cycles over 2 days, no contradictions yet)