Ubuntu 18.04 automatically logs out when I close the laptop lid

Ubuntu 18.04 automatically logs out when I close the laptop lid

I have 18.04 on my lenovo legion. Usually, when I go to bed I close the lid and the computer goes into suspend/sleep and when I wake up, I unlock it and pick up where I left. But very recently- last week or 2, when I close the lid and wake up in the morning, I find that ubuntu has logged me out. and of course, when I log back in, all windows and apps are closed, sometimes I lose my progress on unsaved projects and the sites I wanted to have open.

does anyone else face this issue? my guess is that I have nvidia 430.50 driver and I installed it along with tensorflow. But recently the system shows this partial update warning and the only packages there are the nvidia driver 440.59 version. I don’t want to break my tensorflow installation and also potentially break the os by installing it. Any advice?

Go to Source
Author: alonzo golanzo