17

I have a fresh installation of Ubuntu 22.04 and it won't wake after screen lock. This is true for both, X11 and Wayland (also disabling Wayland for gdm3 doesn't help). System suspend works fine, only screen-lock or screen dim cause the system to freeze. How can I investigate the issue?

journalctrl doesn't show anything extraordinary.

$ journalctl -b -1 -e
May 09 15:50:01 pavilion systemd[5279]: Started Application launched by gnome-session-binary.
May 09 15:50:01 pavilion systemd[5279]: Started Application launched by gnome-session-binary.
May 09 15:50:04 pavilion ubuntu-appindicators@ubuntu.com[9054]: unable to update icon for software-update-available
May 09 15:50:04 pavilion ubuntu-appindicators@ubuntu.com[9054]: unable to update icon for livepatch
May 09 15:50:06 pavilion geoclue[1483]: Service not used for 60 seconds. Shutting down..
May 09 15:50:06 pavilion systemd[1]: geoclue.service: Deactivated successfully.

I'm using integrated GPU (Intel i5-8250U).

EDIT Funny enough, the system hangs even when it's freshly restarted and stays couple of minutes on GDM3 login screen (without login into Gnome). So it's definitely an issue with GDM3! Anyway, I have neither time, nor patience to resolve it. I've downgraded back to Ubuntu 20.04.

EDIT#2 Even more funnily, now Ubuntu 20.04 also hangs. I guess this is related to Gnome (v3.36.8) or GDM3.

Leszek
  • 3,209

1 Answers1

1

Shot in the dark here...

You can try to debug (what I assume is) xdg-screensaver. Set the environment variable XDG_UTILS_DEBUG_LEVEL=2 on an invocation of the screensaver (source). Something like this:

XDG_UTILS_DEBUG_LEVEL=2 xdg-screensaver activate 2&> $HOME/lockscreen.debug

It may help guide your troubleshooting to see what is in the log output. If that doesn't work, you could always try to put some logger messages into the xdg-screensaver script to see where it may be getting to and/or breaking when trying to return.

Something like they did here, but write it to a file so you can troubleshoot the script execution and where it may be failing.

Edit: You can do something similar with xfce4-screensaver:

xfce4-screensaver --no-daemon --debug 2&> $HOME/lockscreen.debug

CG3
  • 316
  • 1
  • 7