0

Every time I install ubuntu on a laptop and close the lid (I think it goes to sleep then). If I open the lid again the background image is black or very weird like this:

image

I am using ubuntu 19.04. I don't know if this is relevant but this is my gpu: GeForce 940MX/PCIe/SSE2

Does someone know how I can fix this. My laptop is completely usable and I feel stupid for asking this. But if someone knows how to fix this please let me know.

Thanks in advance!

Kind regards,

Laurent

0

Based on personal experience I'd recommend increasing your swap size:

Depending on your settings it's possible your laptop isn't just sleeping but hibernating. This is actually an important distinction. When your laptop hibernates the current state is saved in the swap partition of your hard drive. When you return the state is loaded back into ram. If your swap partition isn't large enough to save the state, you get a black screen or other weird problems. The ubuntu website recommends the swap size be the size of your ram + square-root(size of ram) if your computer is going to hibernate. See this question for how to increase the size.

If that isn't the problem, you could try some general fixes for screen tearing, which may solve the issue, though it seems unlikely to me. It's pretty hardware-specific so you might need to try a few questions. This one can get you started.

Good luck!

| improve this answer | |
  • Thank you very much for such a quick answer! If I close the lid gnome tweaks tells me that the computer will suspend. Also if I look into system monitor - resources I see that swap "0 bytes (0.0%) of 2.0 GiB. But I will try it annyway. – Laurent Dhont Aug 21 '19 at 19:26
  • I added 11 gigabytes swap space on a separate HDD but it didn't work. – Laurent Dhont Aug 21 '19 at 19:36
0

This is now fixed with the new version of ubuntu (19.10).

I don't really now if this is why it is fixed but I suspect it, never had this problem again.

Thanks anyway!

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.