CTRL+L Keyboard Shortcut Won't Lock Screen In GNOME

In the recent past, the default keyboard shortcut, CTRL+L set to lock the screen had stopped working. I tried manually setting different keyboard shortcuts like CTRL+ALT+L. None of them would work.

To set the keyboard shortcuts

  • Click System on the GNOME Panel
  • Click Preferences from the drop down menu
  • Click Personal and then click Keyboard Shortcuts
  • Select an action and then type the keyboard shortcut
  • Click Close

After going through several discussion threads on the Internet, I found the cause of the issue. If Location Pointer is enabled in mouse settings, the keyboard shortcuts starting with CTRL stopped working. To fix the issue follow these steps:

  • Click System on the GNOME Panel
  • Click Preferences from the drop down menu
  • Click Hardware and then click Mouse
  • Uncheck "Show position pointer when the Control key is pressed"
  • Click Close
About the author

Sudheer is an entrepreneur and software developer. Get more from Sudheer on Twitter.


Lock my screen with a password

Hi Sudheer,

Thanks for the information.
I had the same problem and this is now working for me using the ctrl+l to lock the screen.
However what I would like to know is if there is any way that you can lock your screen with a password.

If so it would be great help.
Thank you in advance.

Don't you have to type your

Don't you have to type your password to unlock the screen?

Sudheer
Binary Vibes

Nope. I am using CentOS

Nope. I am using CentOS release 5.3 (Final) version and in that the screen just turns dark's out and comes back if there is any cursor movement.

Configure screen saver and lock

Have you logged on as root? If yes, try another user. Look for configuration options to enable screen saver when the screen is locked. I don't remember the exact steps to do that though.

Sudheer
Binary Vibes

Yes I log in as a different

Yes I log in as a different user it works but it does not work if I log in as root.

But I am not sure about two things:

1. Why screen saver needs to be enabled for this to work?

2. Why it doesn't work if I have logged in as root and how to lock my screen in root log in?

Well, the settings are

Well, the settings are correct in that case. CentOS punishes you because you follow bad system administration practices. Avoid logging on as root. Log on as a regular user and become root with 'su -' when needed.

Sudheer
Binary Vibes

That is exactly the point -

That is exactly the point - you do not lock the screen as Administrator in windoze - you should not be logged in as root. It is part of the fundamental security of Linux - Centos/Redhat force you to log in as a user (even on an admin type server) and then su whenever you need to perform administrative tasks. That is the first line of defense in security. Thus the root (if you are dangerous enough to log in as root and leave your machine logged in as such) screen cannot be locked. You are forced to log in as a user - and then lock your screen - already two steps away from a possible compromise rather than one.
You dont leave your front door open when you leave home? And even if you do lock your front door do you leave the stereo on full blast? No!
So good housekeeping starts at home - and good security policies start from the most vulnerable part of your risk working outwards sealing up all the small minor infractions.
regards
mainmeat

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.
  • You can enable syntax highlighting of source code with the following tags: <code>. The supported tag styles are: <foo>, [foo].

More information about formatting options

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
10 + 4 =
Solve this simple math problem and enter the result. E.g. for 1+3, enter 4.