13

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

Gigiux
  • 475
  • 6
  • 16
  • 1
    if you have an nvidia graphics card, have a look to https://askubuntu.com/questions/1405262/how-to-solve-black-screen-after-suspension-with-ubuntu-22-04-lts Latest drivers are known to have a problem when resuming – mathieu May 03 '22 at 06:59
  • you can try to switch to text console using ctrl-alt-f1 and then back to the graphical one. – StefanKaerst Mar 18 '23 at 06:02

1 Answers1

-1

**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. power settings window

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

Neail
  • 21
  • 5
  • Since the updates supersede older parts of the answer, please consider editing this post so that only your definitive solution remains. – AdminBee Aug 03 '23 at 10:52
  • The solutions are stacked, meaning I have not undone any updates. – Neail Aug 06 '23 at 08:36