3

Recently I did a fresh install of Ubuntu 24.04 on my Lenovo X1 Carbon gen 8. Before I had dual boot Ubuntu 23.10 and Win 10 but now I wiped the whole disk and did a clean Ubuntu only install. By setting everything to default settings (not doing anything custom), except enabling disk encryption.

When I leave my laptop for a while (eg. for lunch), when I return, it is in sleep mode and when I wake it up, after I login, all my opened windows are closed. It seems that my session has been lost completely, just like when I logout. I didn't have these issues before on 23.10. This is driving me crazy so I must solve it ASAP.

A few possibly related facts:

  • it's a dual GPU laptop (Intel onboard + nVidia)
  • I don't have nVidia drivers installed
  • I did click to install third-party drivers during install
  • my disk is encrypted
  • I don't have swap partition - I was told that Ubuntu now by default uses swap file so I just left default settings to use swap file
  • sleep settings in BIOS are already set to "Linux" mode
  • I'm using built-in display + external 24" display connected through HDMI
  • fun fact: my external display is set as main display, which means that when I turn my laptop on, the login screen will appear on main monitor but after this sleep-logout event happens, login display will appear on the laptop's screen and like this I immediately know that I've lost the session but as soon as I log-in back, everything is back to normal - my external screen becomes main one and all the settings (position, resolution, scale) are preserved
  • the only other peripheral is a Bluetooth mouse and TP Link USB-Ethernet dongle
  • the laptop is plugged-in 99% of the time
  • might not be related but occasionally it happens that, when I turn on the laptop, audio doesn't work - it just says "Dummy Output" and I have to reboot it again to make it work
  • might not be related but some of my manually added startup applications won't start every time I start the laptop, just occasionally

My questions and thoughts:

  • could it be that there's a setting to auto-logout in case of inactivity?
  • should I install nVidia drivers? I don't need the nVidia GPU
  • am I missing some other drivers?
  • are there any logs I can check AFTER this happens and when I log-in back?
David DE
  • 2,316
XploD
  • 189
  • 8

1 Answers1

1

I have the same problem. And even just turning off/on monitor cause this issue. I have Ubuntu 24.04 with a Dell monitor. It is really annoying. I have to lock the user without shutting off the monitor otherwise I loose all my changes But try to enable Wayland and see if you have the same problem. I've just enabled it instead of using X11 and it seems to fix the problem