Blank screen after Sleep/Hibernate on ubuntu 18.04

After I close the lid, the screen will not turn on. I followed the instructions given in Ubuntu FAQs and it worked in one shot. This will work for the new Ubuntu 18.0.x.

  1. Pull up a Terminal and run:

    sudo nano /etc/default/grub
    

    to pull up the boot loader configuration.

  2. Look for the line:

    GRUB_CMDLINE_LINUX=""
    

    and make sure it looks like this:

    GRUB_CMDLINE_LINUX="resume=UUID=41e86209-3802-424b-9a9d-d7683142dab7"
    
  3. Save the file with Ctrl+X and y. You can use this UUID.

  4. Run:

    sudo update-grub
    

    and wait for it to finish.

  5. Run:

    sudo nano /etc/initramfs-tools/conf.d/resume
    

    and make sure to add:

    resume=UUID=41e86209-3802-424b-9a9d-d7683142dab7
    

    (with your UUID of course in place of mine if you want).

  6. Save the file with Ctrl+X and y.

  7. Run:

    sudo update-initramfs -u
    
  8. Reboot!