问题
Whenever I press Super+L (or Win+L) on my Ubuntu 14.04 Desktop, the screen gets locked. I would like to disable this behaviour. In System Settings->Keyboard->Shortcuts->System there is a shortcut configured for Lock screen: Ctrl+Alt+L. It works. But I couldn't find where the shortcut for Super+L is configured.
Background: I run Ubuntu in a virtual machine on Windows and use Super+L to lock the Windows desktop, making it superfluous to lock the Ubuntu Desktop. Once I unlock the screen I have to type my password twice: Once for Windows and again for Ubuntu.
回答1:
Unity also has a shortcut to lock the screen, so you need to disable that one too.
- Install and run CompizConfig Settings Manager
- Click "Ubuntu Unity Plugin"
- Click the button next to "Key to lock the screen."
- Disable
回答2:
While this is an old question, it still comes up as the top result for searches like "ubuntu disable win+L locking". For future reference, this answer covers a method without CompizConfig Settings Manager.
https://askubuntu.com/questions/531835/how-do-i-disable-lock-screen-keyboard-shortcut-under-unity
In short:
Run gsettings set org.gnome.desktop.lockdown disable-lock-screen true
to disable the lock screen.
However, this will still turn your screen black for a few seconds. This is still especially useful if you are running Ubuntu in a VM, and don't want it to lock when you lock your outer system.
回答3:
I searched for search lock
in the search bar (Ctrl+Space) and found screen locking
window. That did the trick.
来源:https://stackoverflow.com/questions/24908490/ubuntu-do-not-lock-the-screen-when-pressing-superl