After clicking logout or switch user, once the system reaches the greeter/login screen, input devices -- keyboard, mouse, touchpad -- stop working, making it impossible to login back or shutdown.

laptop: HP G42
Ubuntu: 18.04 LTS

Initially I thought the system is frozen, but log shows that it still respnds to lid open/close, usb plug/unplug events, scheduled background tasks etc. Only the input devices, both onboard and external, are not usable. There's an external monitor attached to the laptop, and it shows the greeter and changes when lid is open or closed.

What works:

  • logging in during fresh boot. Keyboard and mouse work at the greeter.
  • Suspend/resume, lock/unlock screen. I'm able to enter password and get back to my session.
  • shutdown/restart while logged in.

What doesn't work:

  • logout
  • switch user

Here is a portion of journalctl log with my comments: https://gist.github.com/ananthp/3cfe807c7e0d6fd0dad170b3e55e9975


Looks like it's gdm3 that gets stuck. Workaround is to restart gdm3:

  • remote login to the machine using ssh
  • sudo systemctl restart gdm3.service

Is there a way to fix this, or should I consider changing my display manager?

  • fyi: I switched to lightdm and it doesn't have this issue. Answers that make gdm3 work correctly are still welcome. – ananth.p Jun 12 '18 at 19:03

It's a bug in gdm3: https://bugs.launchpad.net/ubuntu/+source/gdm3/+bug/1776534

Known Workarounds:

  • Do not log out or switch user. Instead, always restart.
  • log on from a remote from ssh and restart gdm3 sudo systemctl restart gdm3.service

Alternatively, switch to a different display manager, lightdm for instance:

sudo dpkg-reconfigure lightdm

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

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