Keyboard shortcut for Lockscreen not working












52















I tried the combination CTRL+ALT+L or L but it is not working. But if I select the menu item LockScreen from setting drop down it works.



Any thoughts on how to fix keyboard shortcut?



Thanks.










share|improve this question

























  • you will find a fast workaround here "go to System Settings > Keyboard and on the "Shortcuts" tab, under "System", change the "Lock screen" keyboard shortcut from CTRL + ALT + L to something else, then under "Custom Shortcuts", click the "+" button to add a new custom shortcut, under "Name" enter "Xscreensaver" and under "Command" enter "/usr/bin/xscreensaver-command", then click "Apply"."

    – Marius Balaban
    Apr 28 '12 at 7:29













  • Thanks @Marius Balaban. That helped.I cleared the shortcut and re-entered the CTRL+ALT+L combination and it worked. I tried to put it as solution but can't do that due to less reputation.

    – Forever Learner
    Apr 28 '12 at 7:39








  • 1





    In my instance it was because my notebook keyboard implements a numeric keypad if the Num Lock is on. So my [Ctrl]-[ALt]-L was really [Ctrl]-[Alt]-3. Once I hit the Num Lock again to turn it off [Ctrl]-[Alt]-L worked again.

    – Stephen Gornick
    May 10 '13 at 0:35











  • For xubuntu / Xfce , use the command xflock4 to lock the computer (see askubuntu.com/questions/883671/… )

    – Oliver Zendel
    Jan 16 at 13:40


















52















I tried the combination CTRL+ALT+L or L but it is not working. But if I select the menu item LockScreen from setting drop down it works.



Any thoughts on how to fix keyboard shortcut?



Thanks.










share|improve this question

























  • you will find a fast workaround here "go to System Settings > Keyboard and on the "Shortcuts" tab, under "System", change the "Lock screen" keyboard shortcut from CTRL + ALT + L to something else, then under "Custom Shortcuts", click the "+" button to add a new custom shortcut, under "Name" enter "Xscreensaver" and under "Command" enter "/usr/bin/xscreensaver-command", then click "Apply"."

    – Marius Balaban
    Apr 28 '12 at 7:29













  • Thanks @Marius Balaban. That helped.I cleared the shortcut and re-entered the CTRL+ALT+L combination and it worked. I tried to put it as solution but can't do that due to less reputation.

    – Forever Learner
    Apr 28 '12 at 7:39








  • 1





    In my instance it was because my notebook keyboard implements a numeric keypad if the Num Lock is on. So my [Ctrl]-[ALt]-L was really [Ctrl]-[Alt]-3. Once I hit the Num Lock again to turn it off [Ctrl]-[Alt]-L worked again.

    – Stephen Gornick
    May 10 '13 at 0:35











  • For xubuntu / Xfce , use the command xflock4 to lock the computer (see askubuntu.com/questions/883671/… )

    – Oliver Zendel
    Jan 16 at 13:40
















52












52








52


6






I tried the combination CTRL+ALT+L or L but it is not working. But if I select the menu item LockScreen from setting drop down it works.



Any thoughts on how to fix keyboard shortcut?



Thanks.










share|improve this question
















I tried the combination CTRL+ALT+L or L but it is not working. But if I select the menu item LockScreen from setting drop down it works.



Any thoughts on how to fix keyboard shortcut?



Thanks.







shortcut-keys lock-screen






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Apr 11 '14 at 21:27









Braiam

51.6k20136220




51.6k20136220










asked Apr 28 '12 at 7:20









Forever LearnerForever Learner

5702614




5702614













  • you will find a fast workaround here "go to System Settings > Keyboard and on the "Shortcuts" tab, under "System", change the "Lock screen" keyboard shortcut from CTRL + ALT + L to something else, then under "Custom Shortcuts", click the "+" button to add a new custom shortcut, under "Name" enter "Xscreensaver" and under "Command" enter "/usr/bin/xscreensaver-command", then click "Apply"."

    – Marius Balaban
    Apr 28 '12 at 7:29













  • Thanks @Marius Balaban. That helped.I cleared the shortcut and re-entered the CTRL+ALT+L combination and it worked. I tried to put it as solution but can't do that due to less reputation.

    – Forever Learner
    Apr 28 '12 at 7:39








  • 1





    In my instance it was because my notebook keyboard implements a numeric keypad if the Num Lock is on. So my [Ctrl]-[ALt]-L was really [Ctrl]-[Alt]-3. Once I hit the Num Lock again to turn it off [Ctrl]-[Alt]-L worked again.

    – Stephen Gornick
    May 10 '13 at 0:35











  • For xubuntu / Xfce , use the command xflock4 to lock the computer (see askubuntu.com/questions/883671/… )

    – Oliver Zendel
    Jan 16 at 13:40





















  • you will find a fast workaround here "go to System Settings > Keyboard and on the "Shortcuts" tab, under "System", change the "Lock screen" keyboard shortcut from CTRL + ALT + L to something else, then under "Custom Shortcuts", click the "+" button to add a new custom shortcut, under "Name" enter "Xscreensaver" and under "Command" enter "/usr/bin/xscreensaver-command", then click "Apply"."

    – Marius Balaban
    Apr 28 '12 at 7:29













  • Thanks @Marius Balaban. That helped.I cleared the shortcut and re-entered the CTRL+ALT+L combination and it worked. I tried to put it as solution but can't do that due to less reputation.

    – Forever Learner
    Apr 28 '12 at 7:39








  • 1





    In my instance it was because my notebook keyboard implements a numeric keypad if the Num Lock is on. So my [Ctrl]-[ALt]-L was really [Ctrl]-[Alt]-3. Once I hit the Num Lock again to turn it off [Ctrl]-[Alt]-L worked again.

    – Stephen Gornick
    May 10 '13 at 0:35











  • For xubuntu / Xfce , use the command xflock4 to lock the computer (see askubuntu.com/questions/883671/… )

    – Oliver Zendel
    Jan 16 at 13:40



















you will find a fast workaround here "go to System Settings > Keyboard and on the "Shortcuts" tab, under "System", change the "Lock screen" keyboard shortcut from CTRL + ALT + L to something else, then under "Custom Shortcuts", click the "+" button to add a new custom shortcut, under "Name" enter "Xscreensaver" and under "Command" enter "/usr/bin/xscreensaver-command", then click "Apply"."

– Marius Balaban
Apr 28 '12 at 7:29







you will find a fast workaround here "go to System Settings > Keyboard and on the "Shortcuts" tab, under "System", change the "Lock screen" keyboard shortcut from CTRL + ALT + L to something else, then under "Custom Shortcuts", click the "+" button to add a new custom shortcut, under "Name" enter "Xscreensaver" and under "Command" enter "/usr/bin/xscreensaver-command", then click "Apply"."

– Marius Balaban
Apr 28 '12 at 7:29















Thanks @Marius Balaban. That helped.I cleared the shortcut and re-entered the CTRL+ALT+L combination and it worked. I tried to put it as solution but can't do that due to less reputation.

– Forever Learner
Apr 28 '12 at 7:39







Thanks @Marius Balaban. That helped.I cleared the shortcut and re-entered the CTRL+ALT+L combination and it worked. I tried to put it as solution but can't do that due to less reputation.

– Forever Learner
Apr 28 '12 at 7:39






1




1





In my instance it was because my notebook keyboard implements a numeric keypad if the Num Lock is on. So my [Ctrl]-[ALt]-L was really [Ctrl]-[Alt]-3. Once I hit the Num Lock again to turn it off [Ctrl]-[Alt]-L worked again.

– Stephen Gornick
May 10 '13 at 0:35





In my instance it was because my notebook keyboard implements a numeric keypad if the Num Lock is on. So my [Ctrl]-[ALt]-L was really [Ctrl]-[Alt]-3. Once I hit the Num Lock again to turn it off [Ctrl]-[Alt]-L worked again.

– Stephen Gornick
May 10 '13 at 0:35













For xubuntu / Xfce , use the command xflock4 to lock the computer (see askubuntu.com/questions/883671/… )

– Oliver Zendel
Jan 16 at 13:40







For xubuntu / Xfce , use the command xflock4 to lock the computer (see askubuntu.com/questions/883671/… )

– Oliver Zendel
Jan 16 at 13:40












6 Answers
6






active

oldest

votes


















54














In the top panel right corner choose System Settings to select Keyboard in the Hardware section, or type "key.." in the Dash then select Keyboard:



enter image description here



In the Shortcuts tab all key combinations are listed. You may change them there or add your own custom shortcut. To have the poweroff shortcut back add it with a custom shortcut for the following command:



gnome-session-quit --power-off


Note: to be able to add a custom shortcut we may have to clear an already existing shortcut if this uses the same keys.



The GNOME lock screen feature depends on the gnome-screensaver Install gnome-screensaver. In case you have removed it or did not install it in a custom environment you will have to install it first.






share|improve this answer





















  • 5





    I changed the combination to Super+L but it is not working. Any thoughts?

    – Forever Learner
    Apr 28 '12 at 8:09






  • 2





    thanks for your edit. I changed the key to CTRL+ALT+G and that worked. But changing it to Super+L is still not working. On Windows I am used to Windows+L hence same would be helpful on Ubuntu. Thanks

    – Forever Learner
    Apr 28 '12 at 8:20











  • FYI: These instructions work for CentOS 7 as well (and probably any other GNOME 3 install). Super+L works for me. I also set Super+R for "run", like Windows.

    – Jonathon Reinhart
    Jan 3 '15 at 3:53






  • 1





    Strange. It was already set to Ctrl+Alt+L. This was what I always used, but all of a sudden it stopped working. But after resetting the shortcut to Ctrl+Alt+L, it started working again. Why did this glitch occur in the first place? I did change switch keyboard layouts back and forth once; could this be the reason?

    – Ébe Isaac
    Jun 13 '16 at 5:31



















5














This seems to have been improved in 12.10.



If you go into System Settings > Keyboard > Shortcuts, System,



then left-click once on 'Lock screen',



the Ctrl+Alt+L on the right changes to 'New accelerator...[something]', at which point you can hold Super [Windows key] and press L.



The keyboard shortcut will then show as 'Super+L' and works immediately.






share|improve this answer

































    1














    For my debian based crunchbag Distro the Window_Logo_Key+L is the shortcut for locking the screen but you of course change it as mentioned above






    share|improve this answer































      0














      In Kubuntu version 18.04 / Plasma, this appears to be found under "Screen Locking". From the start menu, type "Screen..." and you'll see the applet allowing you to change this setting.






      share|improve this answer































        0














        I was experiencing this symptom, but none of the above solutions were working. I found out that this was because I had previously disabled the screen lock because I did not want the screen to lock when the screensaver starts.



        The takeaway is that screen lock will not work unless it is enabled in your gnome settings. You can ensure it is enabled with the following command:



        # Note the disable flag is set to false, so its really enabling the behavior
        gsettings set org.gnome.desktop.lockdown disable-lock-screen 'false'


        After running this, the Super+L hotkey worked fine.






        share|improve this answer































          0














          For Xubuntu (18.04) the command is flock4.
          It can be associated with shortcut via:



          Menu / Keyboard / Application Shortcuts





          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%2f126782%2fkeyboard-shortcut-for-lockscreen-not-working%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown

























            6 Answers
            6






            active

            oldest

            votes








            6 Answers
            6






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            54














            In the top panel right corner choose System Settings to select Keyboard in the Hardware section, or type "key.." in the Dash then select Keyboard:



            enter image description here



            In the Shortcuts tab all key combinations are listed. You may change them there or add your own custom shortcut. To have the poweroff shortcut back add it with a custom shortcut for the following command:



            gnome-session-quit --power-off


            Note: to be able to add a custom shortcut we may have to clear an already existing shortcut if this uses the same keys.



            The GNOME lock screen feature depends on the gnome-screensaver Install gnome-screensaver. In case you have removed it or did not install it in a custom environment you will have to install it first.






            share|improve this answer





















            • 5





              I changed the combination to Super+L but it is not working. Any thoughts?

              – Forever Learner
              Apr 28 '12 at 8:09






            • 2





              thanks for your edit. I changed the key to CTRL+ALT+G and that worked. But changing it to Super+L is still not working. On Windows I am used to Windows+L hence same would be helpful on Ubuntu. Thanks

              – Forever Learner
              Apr 28 '12 at 8:20











            • FYI: These instructions work for CentOS 7 as well (and probably any other GNOME 3 install). Super+L works for me. I also set Super+R for "run", like Windows.

              – Jonathon Reinhart
              Jan 3 '15 at 3:53






            • 1





              Strange. It was already set to Ctrl+Alt+L. This was what I always used, but all of a sudden it stopped working. But after resetting the shortcut to Ctrl+Alt+L, it started working again. Why did this glitch occur in the first place? I did change switch keyboard layouts back and forth once; could this be the reason?

              – Ébe Isaac
              Jun 13 '16 at 5:31
















            54














            In the top panel right corner choose System Settings to select Keyboard in the Hardware section, or type "key.." in the Dash then select Keyboard:



            enter image description here



            In the Shortcuts tab all key combinations are listed. You may change them there or add your own custom shortcut. To have the poweroff shortcut back add it with a custom shortcut for the following command:



            gnome-session-quit --power-off


            Note: to be able to add a custom shortcut we may have to clear an already existing shortcut if this uses the same keys.



            The GNOME lock screen feature depends on the gnome-screensaver Install gnome-screensaver. In case you have removed it or did not install it in a custom environment you will have to install it first.






            share|improve this answer





















            • 5





              I changed the combination to Super+L but it is not working. Any thoughts?

              – Forever Learner
              Apr 28 '12 at 8:09






            • 2





              thanks for your edit. I changed the key to CTRL+ALT+G and that worked. But changing it to Super+L is still not working. On Windows I am used to Windows+L hence same would be helpful on Ubuntu. Thanks

              – Forever Learner
              Apr 28 '12 at 8:20











            • FYI: These instructions work for CentOS 7 as well (and probably any other GNOME 3 install). Super+L works for me. I also set Super+R for "run", like Windows.

              – Jonathon Reinhart
              Jan 3 '15 at 3:53






            • 1





              Strange. It was already set to Ctrl+Alt+L. This was what I always used, but all of a sudden it stopped working. But after resetting the shortcut to Ctrl+Alt+L, it started working again. Why did this glitch occur in the first place? I did change switch keyboard layouts back and forth once; could this be the reason?

              – Ébe Isaac
              Jun 13 '16 at 5:31














            54












            54








            54







            In the top panel right corner choose System Settings to select Keyboard in the Hardware section, or type "key.." in the Dash then select Keyboard:



            enter image description here



            In the Shortcuts tab all key combinations are listed. You may change them there or add your own custom shortcut. To have the poweroff shortcut back add it with a custom shortcut for the following command:



            gnome-session-quit --power-off


            Note: to be able to add a custom shortcut we may have to clear an already existing shortcut if this uses the same keys.



            The GNOME lock screen feature depends on the gnome-screensaver Install gnome-screensaver. In case you have removed it or did not install it in a custom environment you will have to install it first.






            share|improve this answer















            In the top panel right corner choose System Settings to select Keyboard in the Hardware section, or type "key.." in the Dash then select Keyboard:



            enter image description here



            In the Shortcuts tab all key combinations are listed. You may change them there or add your own custom shortcut. To have the poweroff shortcut back add it with a custom shortcut for the following command:



            gnome-session-quit --power-off


            Note: to be able to add a custom shortcut we may have to clear an already existing shortcut if this uses the same keys.



            The GNOME lock screen feature depends on the gnome-screensaver Install gnome-screensaver. In case you have removed it or did not install it in a custom environment you will have to install it first.







            share|improve this answer














            share|improve this answer



            share|improve this answer








            edited Mar 11 '17 at 19:03









            Community

            1




            1










            answered Apr 28 '12 at 7:41









            TakkatTakkat

            106k35249375




            106k35249375








            • 5





              I changed the combination to Super+L but it is not working. Any thoughts?

              – Forever Learner
              Apr 28 '12 at 8:09






            • 2





              thanks for your edit. I changed the key to CTRL+ALT+G and that worked. But changing it to Super+L is still not working. On Windows I am used to Windows+L hence same would be helpful on Ubuntu. Thanks

              – Forever Learner
              Apr 28 '12 at 8:20











            • FYI: These instructions work for CentOS 7 as well (and probably any other GNOME 3 install). Super+L works for me. I also set Super+R for "run", like Windows.

              – Jonathon Reinhart
              Jan 3 '15 at 3:53






            • 1





              Strange. It was already set to Ctrl+Alt+L. This was what I always used, but all of a sudden it stopped working. But after resetting the shortcut to Ctrl+Alt+L, it started working again. Why did this glitch occur in the first place? I did change switch keyboard layouts back and forth once; could this be the reason?

              – Ébe Isaac
              Jun 13 '16 at 5:31














            • 5





              I changed the combination to Super+L but it is not working. Any thoughts?

              – Forever Learner
              Apr 28 '12 at 8:09






            • 2





              thanks for your edit. I changed the key to CTRL+ALT+G and that worked. But changing it to Super+L is still not working. On Windows I am used to Windows+L hence same would be helpful on Ubuntu. Thanks

              – Forever Learner
              Apr 28 '12 at 8:20











            • FYI: These instructions work for CentOS 7 as well (and probably any other GNOME 3 install). Super+L works for me. I also set Super+R for "run", like Windows.

              – Jonathon Reinhart
              Jan 3 '15 at 3:53






            • 1





              Strange. It was already set to Ctrl+Alt+L. This was what I always used, but all of a sudden it stopped working. But after resetting the shortcut to Ctrl+Alt+L, it started working again. Why did this glitch occur in the first place? I did change switch keyboard layouts back and forth once; could this be the reason?

              – Ébe Isaac
              Jun 13 '16 at 5:31








            5




            5





            I changed the combination to Super+L but it is not working. Any thoughts?

            – Forever Learner
            Apr 28 '12 at 8:09





            I changed the combination to Super+L but it is not working. Any thoughts?

            – Forever Learner
            Apr 28 '12 at 8:09




            2




            2





            thanks for your edit. I changed the key to CTRL+ALT+G and that worked. But changing it to Super+L is still not working. On Windows I am used to Windows+L hence same would be helpful on Ubuntu. Thanks

            – Forever Learner
            Apr 28 '12 at 8:20





            thanks for your edit. I changed the key to CTRL+ALT+G and that worked. But changing it to Super+L is still not working. On Windows I am used to Windows+L hence same would be helpful on Ubuntu. Thanks

            – Forever Learner
            Apr 28 '12 at 8:20













            FYI: These instructions work for CentOS 7 as well (and probably any other GNOME 3 install). Super+L works for me. I also set Super+R for "run", like Windows.

            – Jonathon Reinhart
            Jan 3 '15 at 3:53





            FYI: These instructions work for CentOS 7 as well (and probably any other GNOME 3 install). Super+L works for me. I also set Super+R for "run", like Windows.

            – Jonathon Reinhart
            Jan 3 '15 at 3:53




            1




            1





            Strange. It was already set to Ctrl+Alt+L. This was what I always used, but all of a sudden it stopped working. But after resetting the shortcut to Ctrl+Alt+L, it started working again. Why did this glitch occur in the first place? I did change switch keyboard layouts back and forth once; could this be the reason?

            – Ébe Isaac
            Jun 13 '16 at 5:31





            Strange. It was already set to Ctrl+Alt+L. This was what I always used, but all of a sudden it stopped working. But after resetting the shortcut to Ctrl+Alt+L, it started working again. Why did this glitch occur in the first place? I did change switch keyboard layouts back and forth once; could this be the reason?

            – Ébe Isaac
            Jun 13 '16 at 5:31













            5














            This seems to have been improved in 12.10.



            If you go into System Settings > Keyboard > Shortcuts, System,



            then left-click once on 'Lock screen',



            the Ctrl+Alt+L on the right changes to 'New accelerator...[something]', at which point you can hold Super [Windows key] and press L.



            The keyboard shortcut will then show as 'Super+L' and works immediately.






            share|improve this answer






























              5














              This seems to have been improved in 12.10.



              If you go into System Settings > Keyboard > Shortcuts, System,



              then left-click once on 'Lock screen',



              the Ctrl+Alt+L on the right changes to 'New accelerator...[something]', at which point you can hold Super [Windows key] and press L.



              The keyboard shortcut will then show as 'Super+L' and works immediately.






              share|improve this answer




























                5












                5








                5







                This seems to have been improved in 12.10.



                If you go into System Settings > Keyboard > Shortcuts, System,



                then left-click once on 'Lock screen',



                the Ctrl+Alt+L on the right changes to 'New accelerator...[something]', at which point you can hold Super [Windows key] and press L.



                The keyboard shortcut will then show as 'Super+L' and works immediately.






                share|improve this answer















                This seems to have been improved in 12.10.



                If you go into System Settings > Keyboard > Shortcuts, System,



                then left-click once on 'Lock screen',



                the Ctrl+Alt+L on the right changes to 'New accelerator...[something]', at which point you can hold Super [Windows key] and press L.



                The keyboard shortcut will then show as 'Super+L' and works immediately.







                share|improve this answer














                share|improve this answer



                share|improve this answer








                edited Oct 25 '12 at 15:47









                stephenmyall

                7,353133967




                7,353133967










                answered Oct 22 '12 at 23:36









                nmalinoskinmalinoski

                5111




                5111























                    1














                    For my debian based crunchbag Distro the Window_Logo_Key+L is the shortcut for locking the screen but you of course change it as mentioned above






                    share|improve this answer




























                      1














                      For my debian based crunchbag Distro the Window_Logo_Key+L is the shortcut for locking the screen but you of course change it as mentioned above






                      share|improve this answer


























                        1












                        1








                        1







                        For my debian based crunchbag Distro the Window_Logo_Key+L is the shortcut for locking the screen but you of course change it as mentioned above






                        share|improve this answer













                        For my debian based crunchbag Distro the Window_Logo_Key+L is the shortcut for locking the screen but you of course change it as mentioned above







                        share|improve this answer












                        share|improve this answer



                        share|improve this answer










                        answered Sep 10 '15 at 10:45









                        partizanospartizanos

                        20626




                        20626























                            0














                            In Kubuntu version 18.04 / Plasma, this appears to be found under "Screen Locking". From the start menu, type "Screen..." and you'll see the applet allowing you to change this setting.






                            share|improve this answer




























                              0














                              In Kubuntu version 18.04 / Plasma, this appears to be found under "Screen Locking". From the start menu, type "Screen..." and you'll see the applet allowing you to change this setting.






                              share|improve this answer


























                                0












                                0








                                0







                                In Kubuntu version 18.04 / Plasma, this appears to be found under "Screen Locking". From the start menu, type "Screen..." and you'll see the applet allowing you to change this setting.






                                share|improve this answer













                                In Kubuntu version 18.04 / Plasma, this appears to be found under "Screen Locking". From the start menu, type "Screen..." and you'll see the applet allowing you to change this setting.







                                share|improve this answer












                                share|improve this answer



                                share|improve this answer










                                answered Jun 6 '18 at 16:14









                                SpacemanSpaceman

                                1




                                1























                                    0














                                    I was experiencing this symptom, but none of the above solutions were working. I found out that this was because I had previously disabled the screen lock because I did not want the screen to lock when the screensaver starts.



                                    The takeaway is that screen lock will not work unless it is enabled in your gnome settings. You can ensure it is enabled with the following command:



                                    # Note the disable flag is set to false, so its really enabling the behavior
                                    gsettings set org.gnome.desktop.lockdown disable-lock-screen 'false'


                                    After running this, the Super+L hotkey worked fine.






                                    share|improve this answer




























                                      0














                                      I was experiencing this symptom, but none of the above solutions were working. I found out that this was because I had previously disabled the screen lock because I did not want the screen to lock when the screensaver starts.



                                      The takeaway is that screen lock will not work unless it is enabled in your gnome settings. You can ensure it is enabled with the following command:



                                      # Note the disable flag is set to false, so its really enabling the behavior
                                      gsettings set org.gnome.desktop.lockdown disable-lock-screen 'false'


                                      After running this, the Super+L hotkey worked fine.






                                      share|improve this answer


























                                        0












                                        0








                                        0







                                        I was experiencing this symptom, but none of the above solutions were working. I found out that this was because I had previously disabled the screen lock because I did not want the screen to lock when the screensaver starts.



                                        The takeaway is that screen lock will not work unless it is enabled in your gnome settings. You can ensure it is enabled with the following command:



                                        # Note the disable flag is set to false, so its really enabling the behavior
                                        gsettings set org.gnome.desktop.lockdown disable-lock-screen 'false'


                                        After running this, the Super+L hotkey worked fine.






                                        share|improve this answer













                                        I was experiencing this symptom, but none of the above solutions were working. I found out that this was because I had previously disabled the screen lock because I did not want the screen to lock when the screensaver starts.



                                        The takeaway is that screen lock will not work unless it is enabled in your gnome settings. You can ensure it is enabled with the following command:



                                        # Note the disable flag is set to false, so its really enabling the behavior
                                        gsettings set org.gnome.desktop.lockdown disable-lock-screen 'false'


                                        After running this, the Super+L hotkey worked fine.







                                        share|improve this answer












                                        share|improve this answer



                                        share|improve this answer










                                        answered Jul 25 '18 at 16:15









                                        ErotemicErotemic

                                        15117




                                        15117























                                            0














                                            For Xubuntu (18.04) the command is flock4.
                                            It can be associated with shortcut via:



                                            Menu / Keyboard / Application Shortcuts





                                            share|improve this answer




























                                              0














                                              For Xubuntu (18.04) the command is flock4.
                                              It can be associated with shortcut via:



                                              Menu / Keyboard / Application Shortcuts





                                              share|improve this answer


























                                                0












                                                0








                                                0







                                                For Xubuntu (18.04) the command is flock4.
                                                It can be associated with shortcut via:



                                                Menu / Keyboard / Application Shortcuts





                                                share|improve this answer













                                                For Xubuntu (18.04) the command is flock4.
                                                It can be associated with shortcut via:



                                                Menu / Keyboard / Application Shortcuts






                                                share|improve this answer












                                                share|improve this answer



                                                share|improve this answer










                                                answered Aug 20 '18 at 20:18









                                                Dimitar IIDimitar II

                                                1314




                                                1314






























                                                    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%2f126782%2fkeyboard-shortcut-for-lockscreen-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

                                                    Ellipse (mathématiques)

                                                    Quarter-circle Tiles

                                                    Mont Emei