The tag has no usage guidance.

learn more… | top users | synonyms

20
votes
5answers
21k views

How can I lock my screen in Gnome 3.8 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 ...
17
votes
5answers
14k 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 ...
10
votes
1answer
8k 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 ...
8
votes
4answers
20k 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 ...
7
votes
1answer
738 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
3answers
15k 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). ...
6
votes
2answers
844 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 ...
6
votes
1answer
3k 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.
6
votes
1answer
2k views

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 ...
6
votes
2answers
474 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
1answer
2k 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
1answer
539 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.
5
votes
2answers
2k 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 ...
5
votes
1answer
1k 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 ...
5
votes
2answers
941 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
1answer
205 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 ...
5
votes
1answer
938 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 ...
4
votes
2answers
622 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 ...
4
votes
1answer
526 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
2answers
2k 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 ...
3
votes
2answers
27 views

Can I force screen blank and ignore input?

I want to force my screen to blank and to 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 are: xset ...
3
votes
2answers
1k views

Disable xscreensaver when program is running?

I find it very annoying that xscreensaver sometimes helpfully starts while I'm playing Urban Terror, and was wondering if there is a better way to solve this than making some script to run Urban ...
3
votes
3answers
8k 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 ...
3
votes
2answers
954 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 ...
3
votes
1answer
454 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 ...
3
votes
2answers
211 views

Lock system after awake suspend (incl. forced-shutdowns system after countdown)?

For speed and convenience I do not shutdown my system when I am only gone some minutes, but do a pm-suspend! When the system "unsuspends"/resumes I would like that there is a (screen)lock (on X and ...
3
votes
2answers
697 views

Systemd: locking the console

I have a laptop that runs Debian Jessie with only the Linux console - no X server installed. A recent dist-upgrade replaced sysvinit with systemd. Now I'm trying to get systemd to lock the console ...
3
votes
2answers
167 views

Screen content showing for a few seconds before screensaver starts (Fedora 14)

This happens every now and then, I have not pinned down the cause but let me describe the symptoms. On occasion when I come back to the computer after a few hours the screen is in energy saving mode, ...
3
votes
0answers
37 views

Keyboard doesn't work in X11 after resuming from sleep/suspend

My computer: Debian 8.3 Linux 3.16.0-4-amd64 #1 SMP Debian 3.16.7-ckt20-1+deb8u3 (2016-01-17) x86_64 GNU/Linux Dell Latitude 5420 I'm using XMonad window manager, some applets (in stalonetray) ...
3
votes
1answer
58 views

How to configure XFCE (or X itself or whatever) to run a custom command when the user has been idle for some time?

For as long as I can remember locking screen with screensaver had never been working good. The problem that had always been there is that when I move the mouse or press a key screensaver disappears ...
3
votes
2answers
2k views

Change the lock screen wallpaper

I know this may sound bad, but I'm annoyed by the 'lock screen' wallpaper of KALI SANA 2.0. This is the default 'lock screen' wallpaper: Kali Sana 2.0 default lock screen I have seen many tutorials ...
3
votes
1answer
125 views

On lockscreen how can I auto-turn off monitors if they wake up?

I'm on Debian (Jessie) using KDE 4.14.2 nothing really stood out to me in the System Settings on how to trigger a lock screen and after doing a bunch of research I ended up binding Ctrl+L to run the ...
3
votes
1answer
484 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 ...
2
votes
3answers
1k views

How to lock screen for a terminal session?

as we could use xflock4 command to lock the screen (ask for a password to continue) in an X session; I need a similar way to lock the tty1 session. Is there any? (logout is not working when I call in ...
2
votes
2answers
823 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 ...
2
votes
1answer
1k views

Do not lock screen command

I am running Lubuntu with LXDE and xfce power manager. I have set lock screen when going to sleep (suspend/hibernate) and I like it this way. However, I'd like that the screen does not get locked when ...
2
votes
0answers
23 views

How do I prevent unlocking the screen?

Use case: I want my screen to auto-lock when I unmount my USB drive. (That part is easy.) What's not so easy: I want the screen lock to require the USB drive and the password when I return. Thus, is ...
2
votes
0answers
111 views

How to run a script after screen unlock under Gnome 3 with LightDM?

I'm on ArchLinux using Gnome 3, LightDM and Antergos/gnome-shell-extension-status-menu-buttons with light locker. I have a script that I need to run after every screen unlock, but so far I didn't ...
2
votes
0answers
40 views

How to keep a log about when screen has been locked/unlocked

I would like to keep track of the times when I locked/unlocked my computer. I'm running RHEL 6.6 with gnome 2. But maybe there is 'general' solution? Are there any commands, files or something which ...
2
votes
0answers
290 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 ...
2
votes
0answers
248 views

xscreensaver screenlock Couldn't Grab Pointer - Already Grabbed

Running lxde and lxpanel on Debian 8.1. xdotool key "XF86LogGrabInfo" lists no actively grabbed devices in /var/log/Xorg.0.log. Clicking the Screenlock icon in the application launch bar has a long ...
2
votes
0answers
151 views

Automatically lock but not darken gnome shell when inactive

Gnome Shell 3.8 can be configured to darken and eventually turn off the screen after a given period without user activity. (The corresponding setting can be found at Settings/Performance.) From there ...
2
votes
1answer
235 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 ...
1
vote
2answers
359 views

Kill browser when lock screen

I am running xubuntu on a shared low-ressources computer. I would like to run a script that kills the browser (firefox and chromium) whenever the user locks the screen, so that other users can use the ...
1
vote
1answer
119 views

How can I lock my screen automatically if internet connection is lost?

I will sometimes remote into my work computer from home using TeamViewer. Obviously I have to unlock the screensaver to use the GUI. When I'm done, I'll lock the screen either from the desktop or via ...
1
vote
1answer
45 views

How to disable logging out after the screen going blank?

It might be a very naive question but I've not managed to solve it on my own and failed to find any solution online (I'm probably missing a keyword or two to get helpful search results) I am using ...
1
vote
1answer
103 views

What software is lock or lck

Which software provides /usr/bin/lock or /local/bin/lck ? The manual says that GNU Screen will call a screenlock program. But I don't have them in my system. Also my $LOCKPRG is empty. So is there ...
1
vote
2answers
604 views

Suspend button does not work when xscreensaver is active on xfce Debian

I've Debian jessie and xfce. When I push the power button, my system is suspended. When I press any key on my keyboard the system wake up and I get the login prompt of Xscreensaver (screen lock is ...
1
vote
1answer
824 views

SSH disconnects when screen locked with vlock

I'm using tmux + PuTTY to get all the UNIX goodness I need when using Windows. I have the following settings in my .tmux.conf: set-option -g lock-command vlock set-option -g lock-after-time 1800 As ...
1
vote
1answer
54 views

i3 screen goes blank after 5 min inactivity

I am using i3 on Fedora 22, without a DM. The way I run it is with: exec i3 in my /etc/X11/xinitrc-common file, and: if [ -z "$DISPLAY" -a $XDG_VTNR -eq 1 ]; then startx fi in ...