Lock Screen – Two Lock Screens When Unlocking Computer

lock-screen

Probably I installed something, but I don't know what it is… Since then, I have to type my password twice in two different lock screens.

If I lock the computer (CTRL-ALT-L), then I have to give the password only once, in the default(?) Ubuntu lock screen (similar to this one).

However, if I close the lid, then I get two(!) lock screens. The first is something similar to this one, and the second is the one I mentioned above.

Any idea why is it happening? How can I get rid of the first lock screen when I open the lid? I run Ubuntu 15.04.

Edit:

Here is the history of apt-get install:

    4  sudo apt-get install skype 
    7  sudo apt-get install google-chrome
   14  sudo apt-get install git
   28  sudo apt-get install libcurl4-gnutls-dev libexpat1-dev gettext   libz-dev libssl-dev
   29  sudo apt-get install asciidoc xmlto docbook2x
   31  sudo apt-get install autoconf
   46  sudo apt-get install build-essential
   76  sudo apt-get install ack-grep
  150  sudo apt-get install python-pip
  187  sudo apt-get install virtualenv
  208  sudo apt-get install build-essential python-dev
  217  sudo apt-get install zmq
  218  sudo apt-get install libzmq-dev
  219  sudo apt-get install zmq
  227  apt-get install python3-dev
  228  sudo apt-get install python3-dev
  230  apt-get update && apt-get install python3-dev python3-pip build-essential libzmq3-dev
  231  sudo apt-get update && apt-get install python3-dev python3-pip build-essential libzmq3-dev
  232  sudo apt-get install python3-dev python3-pip build-essential libzmq3-dev
  237  sudo apt-get install libatlas-base-dev gfortran
  272  sudo apt-get install unity-tweak-tool
  289  sudo apt-get install spotify-client
  320  sudo apt-get install awesome
  325  sudo apt-get install workrave
  334  sudo apt-get install flyspell
  350  sudo apt-get install dconf-tools
  355  sudo apt-get install virtualbox
  360  sudo apt-get install virtualbox
  364  sudo apt-get install virtualbox
  367  sudo apt-get install virtualbox
  369  sudo apt-get install virtualbox-guest-dkms
  379  sudo apt-get install virtualbox-guest-utils 

BTW: if I disable the Require my password when waking from suspend, then I'm left only with one lock screen (the one from the second link).

Best Answer

What is extremely likely happening when you close your lid is the screen-saver kicking in. Therefore:

sudo apt-get remove gnome-screensaver

will solve your problem permanently after a reboot.

The gnome-screensaver is just an additional package that you remove (I'm running like this as well) and has no impact on your overall system (except that the screen-saver doesn't kick in, locking your computer after a period of inactivity).

If you use this computer for personal purposes, that's the only thing you've got to do!

If you use this computer for business purposes and still want a screen-saver that locks your screen automatically, you can still install xscreensaver from the software center (add the optional components for a ton of extra screen-savers).

Related Question