Background black or colors after closing lid

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,


Memory Error While Saving Ubuntu’s Status before Closing

After trying to save the Ubuntu status before closing the operating system (which is installed on a VirtualBox machine on a host windows), here is the error message I receive resulting in the closing of ubuntu and not saving its status. I would appreciate if someone can explain this and give a solution for it.

The instruction at ************************** referenced memory at *******************************. The memory could not be read. Click OK to terminate the program.

Where stars stand for some weird combination of letters and numbers.

Is there anything wrong with putting comments in an HTML closing tag?

I often write comments like this

<div id="wrapper"> ... </div> <!-- id="wrapper" --> 

But what if I wrote them like this?

<div id="wrapper"> ... </div id="wrapper"> 

At first it seems dangerous to put an id attribute that has the same value on another tag, but then, doesn’t the browser throw out that information? As far as I can see Chrome and Firefox both disregard any “attributes” in the closing tag.

Also seems unfortunate that it’s not a real comment. It wont be parsed semantically as a comment. But I don’t think anyone is using that space for anything else, right? Closing tags only close, right?

Is there any reason not to do this other than it’s not a standard?

Closing the lid should do nothing but the display should turn off like window’s do nothing

I just upgraded to Ubuntu 18.04.2 LTS and figured out that there is no option in settings to change the closing lid behaviour. However I tried the command line method from the answer here

HandleLidSwitch=ignore worked successfully. But ,this thing doesn’t turn off the screen like it happens in windows.

Keep the System running but turn the screen off when the lid is closed.

How to disable drum beat sound when closing FF in Ubuntu 16.04?

Please note, this is the same drum beat sound from login, the difference is this sound occurs whenever I try to close Firefox or Palemoon, and it’s not browser related, because Opera does not play this sound when closing. I’ve posted this question in Mozilla’s forum and someone told me that he has the same problem when receiving system notification, so it seems an Ubuntu configuration and not FF. Anyone had similar problem and succeeded to disable it?
My environment: Ubuntu 16.04, Unity Tweak Tool (don’t know if it has anything to do with the problem), FF 60.8.0esr.

Blank screen on second run (after closing)

Running Ubuntu 18.04 in Windows 10 (WSL1). On a fresh boot, I can run bash without a problem, even in multiple windows/instances. Once I close out bash, then go to re-open, I get a blank screen/terminal. If the window is selected, it will show a blinking cursor, but that’s it.

Tried removing & reinstalling from the Microsoft Store, but that doesn’t fix it. Rebooting the host machine will allow bash to run again, but it will fail under the same circumstances. Attempting to stop LxssManager doesn’t work, as it seems to stall at “stopping.”