Lock screen delay...

Please post suggestions for improvement of Cinnamon on:
https://github.com/linuxmint/Cinnamon
Post Reply
User avatar
invex
Level 3
Level 3
Posts: 161
Joined: Sun Aug 14, 2016 12:38 pm

Lock screen delay...

Post by invex »

LM20

When I execute this command from terminal the screen locks immediately: xdg-screensaver lock
I created a keyboard shortcut with the same command but there's always 1s delay.
I'd like the screen to lock immediately.
Any suggestion?

TIA
Welcome
Level 5
Level 5
Posts: 587
Joined: Wed Aug 19, 2020 11:38 am

Re: Lock screen delay...

Post by Welcome »

I tried it on my machine in a terminal, and it locked immediately. I tried it in a bash command file, and it was still very quick. I didn't try a keyboard shortcut.

I wonder if something like this would speed it up on your system:

Code: Select all

nice -10 xdg-screensaver lock
... or maybe even ...

Code: Select all

nice -20 xdg-screensaver lock
Or, maybe instead of a keyboard shortcut, how about an executable bash scipt on your desktop? No? How about the Screen Locker applet? That looks like it might be good, but I haven't tested it.
Welcome
Level 5
Level 5
Posts: 587
Joined: Wed Aug 19, 2020 11:38 am

Re: Lock screen delay...

Post by Welcome »

Just realized that there's already a lock screen command: Ctrl-Alt-L

Seems to activate very quickly.

If you need to quickly move to another workspace, you could use Ctrl-Alt-Right. Return with Ctrl-Alt-Left.
User avatar
invex
Level 3
Level 3
Posts: 161
Joined: Sun Aug 14, 2016 12:38 pm

Re: Lock screen delay...

Post by invex »

I noticed something.
If I press Ctrl Alt L the screen locks immediately.
If I use a keyboard shortcut Super L (xdg-screensaver lock) there's a 1s delay.
I use a lot of custom keyboard shortcuts none of them except the above have any delays.
Welcome
Level 5
Level 5
Posts: 587
Joined: Wed Aug 19, 2020 11:38 am

Re: Lock screen delay...

Post by Welcome »

That's strange. When I press Super-L, I get the Melange Cinnamon Debugger (alternative to Looking Glass). It seems to load quickly. If you try different keys for the screen lock, does it always have the same delay?
User avatar
invex
Level 3
Level 3
Posts: 161
Joined: Sun Aug 14, 2016 12:38 pm

Re: Lock screen delay...

Post by invex »

Super L was for debugger but I use it to lock the screen.
Ctrl Alt L - no delay.
Super L - delay (other Super combinations have no delay).
I wonder what command Ctrl Alt L executes.
Welcome
Level 5
Level 5
Posts: 587
Joined: Wed Aug 19, 2020 11:38 am

Linux Mint 20 Cinnamon Keyboard Shortcuts et al

Post by Welcome »

This list might help. Also some links below to some good web pages with more info on shortcuts.

Code: Select all

Default Keyboard Shortcuts for Linux Mint 20 Cinnamon Desktop
(As defined in the Keyboard application September 30, 2020)

1. General

Ctrl+Alt+Down             Show the window selection screen.
Ctrl+Alt+Up               Show the workspace selection screen.
Alt+F1                    Show the workspace selection screen.
Super+D                   Show desktop.
Super+S                   Show Desklets.
Alt+Tab                   Cycle through open windows. 
Alt+F2                    Displays the Run Application dialog.
Super+L                   Toggle Melange Cinnamon Debugger (alternative to Looking Glass).

2. Windows

Alt+F5                    Unmaximize window.
Alt+F4                    Close window.
Alt+Space                 Activate window menu.
Alt+F10                   Toggle maximization state.
Alt+F8                    Resize window.
Alt+F7                    Move window.
Super+Left                Push tile left.
Super+Right               Push tile right.
Super+Up                  Push tile up.
Super+Down                Push tile down.
Ctrl+Super+Left           Push snap left.
Ctrl+Super+Right          Push snap right.
Ctrl+Super+Up             Push snap up.
Ctrl+Super+Down           Push snap down.
Shift+Ctrl+Alt+Left       Move window to left workspace.
Shift+Ctrl+Alt+Right      Move window to right workspace.
Shift+Super+Left          Move window to left monitor.
Shift+Super+Right         Move window to right monitor.
Shift+Super+Up            Move window to up monitor.
Shift+Super+Down          Move window to down monitor.

3. Workspaces

Ctrl+Alt+Left             Switch to left workspace.
Ctrl+Alt+Right            Switch to right workspace.

4. System

Ctrl+Alt+Delete           Log out.
Ctrl+Alt+End              Shut down.
Ctrl+Alt+L                Lock screen.
Ctrl+Alt+Escape           Restart Cinnamon.
Super+P                   Re-detect display devices.
Super+O                   Orientation Lock.
Shift+Print               Take a screenshot of an area.
Shift+Ctrl+Print          Copy a screenshot of an area to clipboard.
Print                     Take a screenshot.
Ctrl+Print                Copy a screenshot to clipboard.
Alt+Print                 Take a screenshot of a window.
Ctrl+Alt+Print            Copy a screenshot of a window to clipboard.
Shift+Ctrl+Alt+R          Toggle recording desktop (must restart Cinnamon).

5. Launchers

Ctrl_Alt+T                Launch terminal.
Super+E                   Home folder.

6. Universal Access

Alt+Super+=               Zoom in.
Alt+Super+-               Zoom out.

----

When a window has focus, you can increase or decrease the size of the window:
Alt+F8                    Start the resize operation.         
        Arrow keys        Resize the window in the direction of the arrow key.
        Spacebar          Complete the resize operation, leaving the window at the current size.
        Esc               Cancel the resize operation, restoring the window to its original size.

----

Other Keyboard Shortcuts References


Linux Mint Cinnamon Keyboard Shortcuts

https://cheatography.com/shakiestnerd/cheat-sheets/linux-mint-cinnamon/pdf/
https://cheatography.com/shakiestnerd/cheat-sheets/linux-mint-cinnamon/
https://defkey.com/linux-mint-cinnamon-shortcuts


GNOME Terminal Shortcuts

https://help.gnome.org/users/gnome-terminal/stable/adv-keyboard-shortcuts.html.en


Xed Text Editor Shortcuts

https://github.com/linuxmint/xed (see images at bottom of page)


General Application Shortcuts (may or may not be implemented; depends on application.)

F1                        Help
Ctrl+N                    New
Ctrl+X                    Cut
Ctrl+C                    Copy
Ctrl+V                    Paste
Ctrl+Z                    Undo
Ctrl+S                    Save
Ctrl+Q                    Quit
Alt+spacebar              Open Menu


Panel Shortcut Keys

Ctrl+Alt+Tab              Switches the focus between the panels and the desktop. When you use these shortcut keys, a list of items that you can select is displayed. Release the keys to select an item.


Post Reply

Return to “Cinnamon”