Questions tagged [screen-lock]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
56
votes
14answers
87k views

How can I lock my screen in Gnome 3 without GDM?

There is no "Lock" option showing up in the user menu, and the standard shortcuts (Ctrl+L or Ctrl+Alt+L) don't do anything. I'm running Fedora 19 with Gnome Shell 3.8.3, and XDM 1.1.11. I'm using ...
48
votes
13answers
126k views

Ubuntu 18.04 won't wake after screen lock and blank / suspend / sleep

I am trying to run Ubuntu 18.04 on a laptop with an AMD A12 processor and Radeon R7 graphics. I am having nothing but problems and am very discouraged with Ubuntu though I used 12.04 for years without ...
30
votes
4answers
45k views

Is there a way to lock command line?

For example, in X session, I can use Ctrl-Alt-L to lock the screen, so it would ask for password to unlock and prevent somebody from messing with mine computer. But if I have an open terminal session ...
29
votes
7answers
71k views

Why doesn't my screen lock in XFCE?

I'm trying out XFCE on Arch Linux, and for some reason the Lock Screen option in the session menu doesn't do anything. Neither does running xflock4 at the command line (it exits 0 with no output). ...
24
votes
4answers
37k views

suspend AND lock screen on closing lid in arch/systemd

what is the most straightforward way to lock the screen AND suspend when closing the lid? I'm using event hooks in /etc/systemd/logind.conf and successfully suspend upon closing the lid. However I'm ...
21
votes
10answers
119k views

How to get Kali Linux to not go to sleep?

I'm using Kali linux on vmware in windows7. I've been trying to crack my wpa password and noticed that when I leave the system running (in process of cracking password) and leave the laptop on and go ...
13
votes
1answer
9k views

How can I trigger the screensaver's locking feature using D-BUS from the command line?

How can I trigger the screen saver manually from the command line? I'm using GNOME 3.8.4 on Fedora 19, but the solution should not necessarily be specific to this distro.
12
votes
4answers
21k views

CentOS lock screen not unlocking

I have a centOS VM that when I lock the screen it will not let log me back in. I can enter my password as many times as I'd like, even try to "switch users" but the VM just ignores everything and ...
11
votes
6answers
38k views

How to avoid system timeout to login screen when I make a cup of tea?

Linux Mint 17.1 (MATE) running on HP G250 Laptop and older HP desktops. It's just me and the dog at home and I like to run the computer all day, but it keeps returning to the login screen after a few ...
11
votes
5answers
17k views

Locking the screen via CLI?

Is there any way that I can lock the screen CLI-style? I'm trying to target as many desktop managers as possible (mostly LightDM, but GDM, KDM, SLiM, XScreensaver, etc. would be great too), but I can ...
11
votes
5answers
34k views

Disable automatic screen lock in XFCE in Centos

I have a generic install of Centos 5.8 with XFCE 4.4. Pretty much all defaults. As is, after a certain amount of idle time the screen locks (goes black, requires a password to continue). How do I ...
11
votes
1answer
4k views

xscreensaver: How do I run a script on unlock?

I'd like to run a screen if the XFCE session is locked and unlocked. Is there a way that I can intercept this and perform certain actions when the desktop is locked or unlocked? I see that it is ...
11
votes
2answers
2k views

Suspend linux from KDE Plasma 5 lockscreen

TLDR: How to suspend from KDE LockScreen? I'm using KDE's default lockscreen which you can somewhat configure But I haven't found a way to suspend my PC from the lockscreen, so I had to enter my ...
11
votes
1answer
2k views

Too big delay with xscreensaver on wrong password in OpenSUSE 12.2

There is too big delay when logging in with xscreensaver in OpenSUSE 12.2 --- Actual delay is 10 seconds, but not found anywhere in configs Already done: checked pam timeout in login.defs (3 ...
10
votes
2answers
8k views

Can I simulate mouse movements via terminal without xdotool?

I would like to write a script to prevent a computer from locking by virtually wiggling the mouse. However, I do not have xdotool on the computer that I am using, and I cannot install since I am not ...
10
votes
1answer
8k views

Screen turns off after 10 minutes and I can't find out why

I'm running Arch Linux with Mate Desktop version 1.16.0 on Linux kernel 4.8.13. I have a weird problem. My screen turns black after around 5 or 10 minutes and I can not find out why. Here is my mate ...
10
votes
2answers
13k views

How do I customize Gnome screen shield / curtain / login screen appearance?

Gnome desktop seems configurable in various ways: in "Gnome settings", with gnome-extensions, gnome-tweak-tool, gsettings or dconf-editor. However, apart from this procedure to change the login ...
10
votes
1answer
6k views

Taking a picture with a laptop webcam after entering an incorrect password

I'd like to set up my laptop so that if a wrong password is entered when the screen is locked, a picture is taken using the laptop's webcam. I examined xlock (from xlockmore package), but there is no ...
8
votes
3answers
3k views

With XFCE, xscreensaver wakes up and prompts for password

If you only experience this problem when using VLC see this question When the screen is blocked, the xscreensaver (version 5.35) password prompt pops out without any mouse/touchpad movement. It just ...
8
votes
3answers
6k views

Light Locker - Run script on screen lock/unlock

I'd like to run a script if the XFCE session is locked and unlocked. Is there a way that I can intercept this and perform certain actions when the desktop is locked or unlocked? I have found ...
8
votes
3answers
3k views

get xautolock status

I'm currently using xautolock to automatically lock my screen with slock. However, when I'm watching a movie, I certainly don't want my screen to go black suddenly. I read the manpage and saw that ...
7
votes
3answers
3k views

Can I set a bash timeout only for virtual consoles (ctrl+alt+{f1-f6})

I know that I can set a TMOUT variable to automatically end a bash session after a specified period of inactivity. However, what I want is to apply that only to my 6 built-in virtual consoles, which ...
7
votes
1answer
1k views

Pause music while screen is locked

I was wondering whether it is possible to pause a music player (in my case Rhythmbox), by pressing a button, while the screen is locked. I would assume no, but I thought I'd ask. A short example: If ...
7
votes
1answer
5k views

Pin Lock Screen

Is there a way to replace password lock screen in Linux (Mint Debian Edition) with a pin lock screen? Like the one found in Windows 8 for example. It's annoying/inconvenient to have to input 16 ...
7
votes
1answer
3k views

keyboard locked after resume until I type in a terminal

Issue: After my laptop comes back from suspend and I log in via lightdm, I have to use the mouse to open a terminal then type on the command line before my keyboard is responsive. I usually close the ...
7
votes
3answers
932 views

Xorg - ignore first click event when resuming from Screen Blanking

Is it possible to somehow configure xorg to ignore the first mouse click when screen blanking is enabled ?? The reason is I have a touch screen in an embedded arch linux application which remains ...
7
votes
1answer
992 views

change KDE screen locker

How can I change whatever program KDE5 uses for screen locking to slock? AFAICS there is no such option in the system settings.
6
votes
3answers
3k views

Run script on screen lock in KDE

Is there a way to run a bash script on locking the current KDE session?
6
votes
2answers
3k views

Preventing access to TTY when X is killed

Assume I start an X server manually from a virtual console /dev/tty1 with xinit or startx, with the line id:3:initdefault: set in /etc/inittab. The X server gets run and put on another virtual console,...
6
votes
2answers
1k views

Using vlock without changing VT from X

X screen lockers are fine, but I sometimes have stuff open on other TTYs that I want to lock as well. For this reason I would like to use vlock -a to lock all TTYs at the same time. However, I am ...
6
votes
3answers
10k views

Solution to Frozen Lock Screen: Linux Mint Cinnamon 18

I'm a new linux user. I just installed Linux Mint Cinnamon 18 as my sole OS last weekend. The problem My lock screen is frozen at least once a day. I see a clock and a prompt to enter password. No ...
6
votes
2answers
11k views

Custom shortcut to i3lock screen

I'm having difficulties with creating a custom keyboard shortcut. I'm trying to lock my screen using i3lock with a picture. From the terminal, the command i3lock -i ~/Pictures/lock.png works like ...
6
votes
1answer
3k views

Lock screen w/ slock after a certain time?

I am running OpenBox in Arch Linux, how can I set it up so that I can have slock lock my screen after a certain amount of time (with no activity)? Thanks!
6
votes
4answers
4k views

GNOME: Different PAM configurations for lockscreen vs login

I recently purchased a U2F security key, and I have successfully configured my Ubuntu 18.04 machine to require authentication via the key as well as my usual password to log in. I am hoping to change ...
6
votes
2answers
274 views

Have certain keys pass through lockscreen

I'd like to have certain keys (mainly media keys) reach my windowmanager even if my lockscreen is active. This way, I could control my media player even when my screen is locked. As far as I can see, ...
6
votes
1answer
683 views

How to disable Switch User option from Fedora 15

Is there a way to disable the Switch User option from a locked screen on Fedora 15? I've tried this way, but no luck, since gconf-editor has no effect.
6
votes
1answer
928 views

How to lock mouse and keyboard under Wayland

Pyxtrlock is a program to lock a workstation while still displaying the screen. That is, keyboard and mouse can not be used until a password is typed on the keyboard, but the contents of the display ...
5
votes
2answers
1k views

Run commands after unlocking X screen (KDE)

When I leave work, I lock my machine with ctrl + l to lock the screen. When I come back, I always forget to log into jabber. Is there a way to run a command after the screen is unlocked? This is in ...
5
votes
4answers
19k views

Change the lock screen wallpaper in Kali Sana (Gnome)

I'm annoyed by the 'lock screen' wallpaper of KALI SANA 2.0. This is the default 'lock screen' wallpaper: I have seen many tutorials on how to change the 'login screen' wallpaper/background but didn'...
5
votes
2answers
3k views

Locked out of Linux Mint

I am running Linux Mint 12 with Cinnamon and sometimes when I leave my computer idle for a while, it will lock the screen. Usually, when I move the mouse a login prompt will pop up, but sometimes it ...
5
votes
2answers
3k views

How to use Desktop Lock Screen and turn off XScreenSaver Login Screen?

I am running Linux Mint 17.1, Cinnamon Desktop, Compiz, and XScreenSaver. I want to be able to use the Desktop Lock Screen and turn off the XScreenSaver Lock Screen. Turning off the Lock Screen in ...
5
votes
2answers
3k views

Unlock Gnome shell takes a long time

I lock my GNOME Shell 3.6.3.1 by Ctrl+Alt+L as usual but when I try to unlock it takes up to a minute before I get my desktop back. While waiting I get a black background and a mouse pointer. Any ...
5
votes
2answers
1k views

Cross Linux method to detect screensaver or locked screen running

I'm looking for a cross Linux method to detect if screensaver (both XScrenSaver and non-XSCreenSaver) is running or if locked screen is up. Bash or C method would be awesome. Can you please help me ...
4
votes
1answer
5k views

Can I invoke a GNOME screen-lock from the terminal? [duplicate]

I'm running a GNOME/Wayland desktop environment, with GDM, on a Debian-based distro. I normally lock the screen with Super + L . Is there a command to invoke the screen-lock from the terminal?
4
votes
2answers
3k views

How to power down display on terminal?

I would like to power down/up my display from the terminal. Right now I have: setterm --blank force #wake setterm --blank poke Which gives a blank screen; but active screen (screen still receives ...
4
votes
1answer
358 views

Can I lock the screen of a remote computer and still keep it visible to the others on its side, but keep it unlocked to me on my side?

I would like to accessing a remote computer via xpra or vnc or some other desktop sharing way, and on the site of the remote machine , I would like to lock the screen (and optionally make it ...
4
votes
1answer
6k views

how to customize gnome-screensaver on xfce desktop

I'm running GalliumOS on a Chromebook with gnome-screensaver as my screen locker. I am hoping to customize the lock-screen background but am having difficulty figuring out how to change it. It ...
4
votes
3answers
1k views

Can I force screen blank and ignore input?

I would like to force my screen to blank, and leave it stay blank regardless of what I do with my keyboard and mouse until it receives a command to unblank (kind of like a lock). The commands I know ...
4
votes
1answer
2k views

xautolock: how to auto-unlock on user activity?

I need to run a script after a period of user inactivity. For that I use the wonderful program xautolock. Now, I also need to run another script when the activity is resumed (e.g. mouse is moved or a ...
4
votes
1answer
45 views

Multiple user authentications for same account/environment

A computer is being used for shift work currently with a shared account with autologin at boot. Certain UI applications start up at autologin and its important that they run continuously. How can we ...