The tag has no usage guidance.

learn more… | top users | synonyms

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 ...
16
votes
5answers
13k 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 ...
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
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.
9
votes
1answer
7k 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 ...
3
votes
2answers
163 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, ...
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 ...
5
votes
2answers
901 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 ...
2
votes
1answer
185 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 ...