Ubuntu 16.04 Screen lock suddenly not working












6















I have two notebooks with Ubuntu 16.04.1/Unity 7.4.0 and few days ago the Lock screen stopped working on both machines. It worked before. The option to lock the screen has disappeared from the menu too. When I press Super+L, only black screen is shown, after mouse moving or any keyboard pressing desktop is back without prompting password.



When I use dm-tool lock from terminal, it shows the Lock screen, but after pressing Ctrl+Alt+F7 I am back to the desktop (without being prompted for a password). I think this maybe started after some update.



I use Ubuntu on my working notebook and I must protect the machine when I leave it.










share|improve this question





























    6















    I have two notebooks with Ubuntu 16.04.1/Unity 7.4.0 and few days ago the Lock screen stopped working on both machines. It worked before. The option to lock the screen has disappeared from the menu too. When I press Super+L, only black screen is shown, after mouse moving or any keyboard pressing desktop is back without prompting password.



    When I use dm-tool lock from terminal, it shows the Lock screen, but after pressing Ctrl+Alt+F7 I am back to the desktop (without being prompted for a password). I think this maybe started after some update.



    I use Ubuntu on my working notebook and I must protect the machine when I leave it.










    share|improve this question



























      6












      6








      6


      1






      I have two notebooks with Ubuntu 16.04.1/Unity 7.4.0 and few days ago the Lock screen stopped working on both machines. It worked before. The option to lock the screen has disappeared from the menu too. When I press Super+L, only black screen is shown, after mouse moving or any keyboard pressing desktop is back without prompting password.



      When I use dm-tool lock from terminal, it shows the Lock screen, but after pressing Ctrl+Alt+F7 I am back to the desktop (without being prompted for a password). I think this maybe started after some update.



      I use Ubuntu on my working notebook and I must protect the machine when I leave it.










      share|improve this question
















      I have two notebooks with Ubuntu 16.04.1/Unity 7.4.0 and few days ago the Lock screen stopped working on both machines. It worked before. The option to lock the screen has disappeared from the menu too. When I press Super+L, only black screen is shown, after mouse moving or any keyboard pressing desktop is back without prompting password.



      When I use dm-tool lock from terminal, it shows the Lock screen, but after pressing Ctrl+Alt+F7 I am back to the desktop (without being prompted for a password). I think this maybe started after some update.



      I use Ubuntu on my working notebook and I must protect the machine when I leave it.







      unity 16.04 lock-screen






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Nov 10 '16 at 8:53









      Zanna

      50.6k13135241




      50.6k13135241










      asked Sep 30 '16 at 9:05









      BathorySKBathorySK

      9117




      9117






















          5 Answers
          5






          active

          oldest

          votes


















          4














          I solved my problem as follows (I found solution in another question):




          • Install "Unity Tweak Tool" with sudo apt install unity-tweak-tool


          • I ran it from the Launcher and select System > Security > Enhance system security - Enable Desktop lock.



          I don't know what disabled this option. but now it is working OK.






          share|improve this answer


























          • I was checked this checkbox suddenly(I mean it was checked) and when I read your answer, disabled it. Now I'm able to lock(just when it remain unchecked)!

            – ABS
            Dec 2 '17 at 0:36



















          4














          You don't need to install 3rd party package



          You can re-enable lock screen directly from the terminal.



          To see if Lock screen is disabled:



          gsettings get org.gnome.desktop.lockdown disable-lock-screen
          false


          If result is true then use:



          gsettings set org.gnome.desktop.lockdown disable-lock-screen false





          share|improve this answer































            2














            I agree with @WinEunuuchs2Unix, you should not need to install 3rd party software to resolve this issue. This issue recently happened to me after upgrading software on my work machine.



            I first attempted



            gsettings get org.gnome.desktop.lockdown disable-lock-screen


            which returned false so I knew that wasn't the issue. Next, I checked the nopasswdlogin line in /etc/group file and saw that my username was added to this. I removed my login name and saved the file. This solved my lock screen problem.



            Here is a reference on how to read this file: Understanding /etc/group File






            share|improve this answer































              1














              this solved my problem too; but now the clause has been changed in Unity Tweak Tool as shown below.
              It now says: ENHANCE SYSTEM SECURITY BY DISABLING:



              So, make sure that everything is unchecked.



              enter image description here






              share|improve this answer































                0














                I had this problem after upgrading to Ubuntu 18.04. The keyboard shortcut Super-L did not work. The fix was to (re)install the missing package gnome-screensaver:



                sudo apt install gnome-screensaver


                For the OP with Ubuntu 16.04, (s)he might accidently have lost this package.






                share|improve this answer























                  Your Answer








                  StackExchange.ready(function() {
                  var channelOptions = {
                  tags: "".split(" "),
                  id: "89"
                  };
                  initTagRenderer("".split(" "), "".split(" "), channelOptions);

                  StackExchange.using("externalEditor", function() {
                  // Have to fire editor after snippets, if snippets enabled
                  if (StackExchange.settings.snippets.snippetsEnabled) {
                  StackExchange.using("snippets", function() {
                  createEditor();
                  });
                  }
                  else {
                  createEditor();
                  }
                  });

                  function createEditor() {
                  StackExchange.prepareEditor({
                  heartbeatType: 'answer',
                  autoActivateHeartbeat: false,
                  convertImagesToLinks: true,
                  noModals: true,
                  showLowRepImageUploadWarning: true,
                  reputationToPostImages: 10,
                  bindNavPrevention: true,
                  postfix: "",
                  imageUploader: {
                  brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
                  contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
                  allowUrls: true
                  },
                  onDemand: true,
                  discardSelector: ".discard-answer"
                  ,immediatelyShowMarkdownHelp:true
                  });


                  }
                  });














                  draft saved

                  draft discarded


















                  StackExchange.ready(
                  function () {
                  StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f831490%2fubuntu-16-04-screen-lock-suddenly-not-working%23new-answer', 'question_page');
                  }
                  );

                  Post as a guest















                  Required, but never shown

























                  5 Answers
                  5






                  active

                  oldest

                  votes








                  5 Answers
                  5






                  active

                  oldest

                  votes









                  active

                  oldest

                  votes






                  active

                  oldest

                  votes









                  4














                  I solved my problem as follows (I found solution in another question):




                  • Install "Unity Tweak Tool" with sudo apt install unity-tweak-tool


                  • I ran it from the Launcher and select System > Security > Enhance system security - Enable Desktop lock.



                  I don't know what disabled this option. but now it is working OK.






                  share|improve this answer


























                  • I was checked this checkbox suddenly(I mean it was checked) and when I read your answer, disabled it. Now I'm able to lock(just when it remain unchecked)!

                    – ABS
                    Dec 2 '17 at 0:36
















                  4














                  I solved my problem as follows (I found solution in another question):




                  • Install "Unity Tweak Tool" with sudo apt install unity-tweak-tool


                  • I ran it from the Launcher and select System > Security > Enhance system security - Enable Desktop lock.



                  I don't know what disabled this option. but now it is working OK.






                  share|improve this answer


























                  • I was checked this checkbox suddenly(I mean it was checked) and when I read your answer, disabled it. Now I'm able to lock(just when it remain unchecked)!

                    – ABS
                    Dec 2 '17 at 0:36














                  4












                  4








                  4







                  I solved my problem as follows (I found solution in another question):




                  • Install "Unity Tweak Tool" with sudo apt install unity-tweak-tool


                  • I ran it from the Launcher and select System > Security > Enhance system security - Enable Desktop lock.



                  I don't know what disabled this option. but now it is working OK.






                  share|improve this answer















                  I solved my problem as follows (I found solution in another question):




                  • Install "Unity Tweak Tool" with sudo apt install unity-tweak-tool


                  • I ran it from the Launcher and select System > Security > Enhance system security - Enable Desktop lock.



                  I don't know what disabled this option. but now it is working OK.







                  share|improve this answer














                  share|improve this answer



                  share|improve this answer








                  edited Nov 10 '16 at 8:49









                  Zanna

                  50.6k13135241




                  50.6k13135241










                  answered Oct 3 '16 at 7:33









                  BathorySKBathorySK

                  9117




                  9117













                  • I was checked this checkbox suddenly(I mean it was checked) and when I read your answer, disabled it. Now I'm able to lock(just when it remain unchecked)!

                    – ABS
                    Dec 2 '17 at 0:36



















                  • I was checked this checkbox suddenly(I mean it was checked) and when I read your answer, disabled it. Now I'm able to lock(just when it remain unchecked)!

                    – ABS
                    Dec 2 '17 at 0:36

















                  I was checked this checkbox suddenly(I mean it was checked) and when I read your answer, disabled it. Now I'm able to lock(just when it remain unchecked)!

                  – ABS
                  Dec 2 '17 at 0:36





                  I was checked this checkbox suddenly(I mean it was checked) and when I read your answer, disabled it. Now I'm able to lock(just when it remain unchecked)!

                  – ABS
                  Dec 2 '17 at 0:36













                  4














                  You don't need to install 3rd party package



                  You can re-enable lock screen directly from the terminal.



                  To see if Lock screen is disabled:



                  gsettings get org.gnome.desktop.lockdown disable-lock-screen
                  false


                  If result is true then use:



                  gsettings set org.gnome.desktop.lockdown disable-lock-screen false





                  share|improve this answer




























                    4














                    You don't need to install 3rd party package



                    You can re-enable lock screen directly from the terminal.



                    To see if Lock screen is disabled:



                    gsettings get org.gnome.desktop.lockdown disable-lock-screen
                    false


                    If result is true then use:



                    gsettings set org.gnome.desktop.lockdown disable-lock-screen false





                    share|improve this answer


























                      4












                      4








                      4







                      You don't need to install 3rd party package



                      You can re-enable lock screen directly from the terminal.



                      To see if Lock screen is disabled:



                      gsettings get org.gnome.desktop.lockdown disable-lock-screen
                      false


                      If result is true then use:



                      gsettings set org.gnome.desktop.lockdown disable-lock-screen false





                      share|improve this answer













                      You don't need to install 3rd party package



                      You can re-enable lock screen directly from the terminal.



                      To see if Lock screen is disabled:



                      gsettings get org.gnome.desktop.lockdown disable-lock-screen
                      false


                      If result is true then use:



                      gsettings set org.gnome.desktop.lockdown disable-lock-screen false






                      share|improve this answer












                      share|improve this answer



                      share|improve this answer










                      answered Jan 27 '18 at 16:59









                      WinEunuuchs2UnixWinEunuuchs2Unix

                      45k1082172




                      45k1082172























                          2














                          I agree with @WinEunuuchs2Unix, you should not need to install 3rd party software to resolve this issue. This issue recently happened to me after upgrading software on my work machine.



                          I first attempted



                          gsettings get org.gnome.desktop.lockdown disable-lock-screen


                          which returned false so I knew that wasn't the issue. Next, I checked the nopasswdlogin line in /etc/group file and saw that my username was added to this. I removed my login name and saved the file. This solved my lock screen problem.



                          Here is a reference on how to read this file: Understanding /etc/group File






                          share|improve this answer




























                            2














                            I agree with @WinEunuuchs2Unix, you should not need to install 3rd party software to resolve this issue. This issue recently happened to me after upgrading software on my work machine.



                            I first attempted



                            gsettings get org.gnome.desktop.lockdown disable-lock-screen


                            which returned false so I knew that wasn't the issue. Next, I checked the nopasswdlogin line in /etc/group file and saw that my username was added to this. I removed my login name and saved the file. This solved my lock screen problem.



                            Here is a reference on how to read this file: Understanding /etc/group File






                            share|improve this answer


























                              2












                              2








                              2







                              I agree with @WinEunuuchs2Unix, you should not need to install 3rd party software to resolve this issue. This issue recently happened to me after upgrading software on my work machine.



                              I first attempted



                              gsettings get org.gnome.desktop.lockdown disable-lock-screen


                              which returned false so I knew that wasn't the issue. Next, I checked the nopasswdlogin line in /etc/group file and saw that my username was added to this. I removed my login name and saved the file. This solved my lock screen problem.



                              Here is a reference on how to read this file: Understanding /etc/group File






                              share|improve this answer













                              I agree with @WinEunuuchs2Unix, you should not need to install 3rd party software to resolve this issue. This issue recently happened to me after upgrading software on my work machine.



                              I first attempted



                              gsettings get org.gnome.desktop.lockdown disable-lock-screen


                              which returned false so I knew that wasn't the issue. Next, I checked the nopasswdlogin line in /etc/group file and saw that my username was added to this. I removed my login name and saved the file. This solved my lock screen problem.



                              Here is a reference on how to read this file: Understanding /etc/group File







                              share|improve this answer












                              share|improve this answer



                              share|improve this answer










                              answered Feb 26 '18 at 17:03









                              JonJon

                              1807




                              1807























                                  1














                                  this solved my problem too; but now the clause has been changed in Unity Tweak Tool as shown below.
                                  It now says: ENHANCE SYSTEM SECURITY BY DISABLING:



                                  So, make sure that everything is unchecked.



                                  enter image description here






                                  share|improve this answer




























                                    1














                                    this solved my problem too; but now the clause has been changed in Unity Tweak Tool as shown below.
                                    It now says: ENHANCE SYSTEM SECURITY BY DISABLING:



                                    So, make sure that everything is unchecked.



                                    enter image description here






                                    share|improve this answer


























                                      1












                                      1








                                      1







                                      this solved my problem too; but now the clause has been changed in Unity Tweak Tool as shown below.
                                      It now says: ENHANCE SYSTEM SECURITY BY DISABLING:



                                      So, make sure that everything is unchecked.



                                      enter image description here






                                      share|improve this answer













                                      this solved my problem too; but now the clause has been changed in Unity Tweak Tool as shown below.
                                      It now says: ENHANCE SYSTEM SECURITY BY DISABLING:



                                      So, make sure that everything is unchecked.



                                      enter image description here







                                      share|improve this answer












                                      share|improve this answer



                                      share|improve this answer










                                      answered Mar 24 '17 at 4:10









                                      LoganLogan

                                      317319




                                      317319























                                          0














                                          I had this problem after upgrading to Ubuntu 18.04. The keyboard shortcut Super-L did not work. The fix was to (re)install the missing package gnome-screensaver:



                                          sudo apt install gnome-screensaver


                                          For the OP with Ubuntu 16.04, (s)he might accidently have lost this package.






                                          share|improve this answer




























                                            0














                                            I had this problem after upgrading to Ubuntu 18.04. The keyboard shortcut Super-L did not work. The fix was to (re)install the missing package gnome-screensaver:



                                            sudo apt install gnome-screensaver


                                            For the OP with Ubuntu 16.04, (s)he might accidently have lost this package.






                                            share|improve this answer


























                                              0












                                              0








                                              0







                                              I had this problem after upgrading to Ubuntu 18.04. The keyboard shortcut Super-L did not work. The fix was to (re)install the missing package gnome-screensaver:



                                              sudo apt install gnome-screensaver


                                              For the OP with Ubuntu 16.04, (s)he might accidently have lost this package.






                                              share|improve this answer













                                              I had this problem after upgrading to Ubuntu 18.04. The keyboard shortcut Super-L did not work. The fix was to (re)install the missing package gnome-screensaver:



                                              sudo apt install gnome-screensaver


                                              For the OP with Ubuntu 16.04, (s)he might accidently have lost this package.







                                              share|improve this answer












                                              share|improve this answer



                                              share|improve this answer










                                              answered Jan 12 at 2:40









                                              RolandRoland

                                              1224




                                              1224






























                                                  draft saved

                                                  draft discarded




















































                                                  Thanks for contributing an answer to Ask Ubuntu!


                                                  • Please be sure to answer the question. Provide details and share your research!

                                                  But avoid



                                                  • Asking for help, clarification, or responding to other answers.

                                                  • Making statements based on opinion; back them up with references or personal experience.


                                                  To learn more, see our tips on writing great answers.




                                                  draft saved


                                                  draft discarded














                                                  StackExchange.ready(
                                                  function () {
                                                  StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f831490%2fubuntu-16-04-screen-lock-suddenly-not-working%23new-answer', 'question_page');
                                                  }
                                                  );

                                                  Post as a guest















                                                  Required, but never shown





















































                                                  Required, but never shown














                                                  Required, but never shown












                                                  Required, but never shown







                                                  Required, but never shown

































                                                  Required, but never shown














                                                  Required, but never shown












                                                  Required, but never shown







                                                  Required, but never shown







                                                  Popular posts from this blog

                                                  Human spaceflight

                                                  Can not write log (Is /dev/pts mounted?) - openpty in Ubuntu-on-Windows?

                                                  File:DeusFollowingSea.jpg