In my workplace I'm using Ubuntu 16.04 with unity, standard installation. When I leave my office I lock my screen (ctrl+alt+l). During the evening, the office is cleaned. A few times, I've got back to work in the morning and my headphones are on my keyboard. My lock screen is hung, I can't clear password field, can't type anything, and can't use any other controls on lock screen (reboot, turn off button etc.). The mouse is working but clicking does nothing. Probably this is because the password field took huge input overnight and broke everything else. The cleaner "hacked" my computer :)
How can I prevent this? Can I somehow limit how many characters can be passed to the password input? Can I block the lock screen until I use some key combination to enable password input? Something similar to ctrl+alt+del in Windows before I can input password to lock screen?
//EDIT As @bytecommander wrote there was a bug for this and it is supposed to be fixed but somehow this does not work on my machine Cat causes login screen to hang
$ apt policy unity-greeter unity-greeter: Installed: 16.04.2-0ubuntu1 Candidate: 16.04.2-0ubuntu1 Version table: *** 16.04.2-0ubuntu1 500 500 http://pl.archive.ubuntu.com/ubuntu xenial/main amd64 Packages 100 /var/lib/dpkg/status
// EDIT 2
Someone wrote that lock screen is not unity greeter package. Anyone can confirm this and tell me what package is this?
// EDIT 3
OK so it seems that lock screen is part of Unity and not greeter package. I filled a bug report for this: Lock screen frozen after big input from keyboard