Tag Info

Hot answers tagged

7

After some research, I think I've got enough information to post an answer to my own question. In Gnome Shell 3.6 and earlier, the old gnome-screensaver program was present, and if GDM was not running, gnome-screensaver would be invoked - allowing you to lock the screen. Starting in Gnome Shell 3.8 (included in Fedora 19), gnome-screensaver support has ...


5

You could check if you are running in a graphical terminal and only set TMOUT if you are not. An easy way to do this is the tty command: tty - print the file name of the terminal connected to standard input When run from a GUI terminal emulator: $ tty /dev/pts/5 When run from a virtual console: $ tty /dev/tty2 So, adding these lines to your ...


3

A quick check of the source code of the current version, xautolock 2.2, shows that it doesn't support this feature, although it wouldn't be too hard to implement it yourself if you know a little bit about C and how to write X programs. The reason is probably this: whenever you want to know the status of xautolock, you also know what status you would like it ...


3

The details on how to do this were found here in this blog post titled: Locking the screen from the command line in Gnome 3.8. Manually triggering The dbus-send command can be used to send this message, in this case we're sending the "Lock" message to the screensaver. $ dbus-send --type=method_call --dest=org.gnome.ScreenSaver \ ...


2

You can use the functionality built into most media players to manage this; it works efectively with xautolock and it's lockers. mpv and mplayer both have a screensaver options: --stop-screensaver, --no-stop-screensaver Turns off the screensaver (or screen blanker and similar mechanisms) at startup and turns it on again on exit (default: yes). The ...


2

Do I need to install a screensaver package or something? Yes, according to the wiki, you need to choose and install a locker. xflock4 will then activate it.


2

I use Fedora but I believe that Lubuntu/LXDE still uses xscreensaver. If so take a look at xscreensaver-command, which lets you do a number of things with its remote interface. For example --deactivate simulates user activity, so you could run that in a loop in the background once every minute or so with a script like this: #!/bin/sh while true; do ...


2

If your heart is not set on using vlock, you should take a look at physlock. Physlock does exactly what it seems that you are looking for: it switches to a new VT, locks it and disables console switching. Upon unlocking, you are returned to whatever console you were on when you invoked it (and it can be invoked from X or from a TTY). It has a great set of ...


2

See this command line option: -n,--new Switch to a new virtual console before locking all console sessions. What I always do is sudo vlock -ans, works inside / outside Xorg. It will jump back to the original VT when you unlocked it. EDIT Too bad, Arch Linux replaced the original vlock package with the one provided by kbd package. That one ...


2

The latest versions of Cinnamon come with their wn screensaver package so these solutions might not work, but they do on my Cinnamon 1.8.8. lightsOn LighstOn is a simple BASH script that will inhibit the screensaver when it detects any of a list of user defined programs (mplayer, and therefore smplayer, are on the list by default) running in full screen ...


2

Use caffeine yaourt -S caffeine-bzr if yaourt installed otherwise you will have to build it from here AUR For caffeine-bzr after it is running. Activate it. It differs slightly based on DM how to set it up. You just need to add the executable to caffeine. I am not familiar with Urban Terror, but you might have to include the wine part of the ...


2

Screen locking was handled by gnome-screensaver up until GNOME 3.8. The application has been deprecated by the GNOME team and it functionality has been divided up among gnome-shell, gnome-session, & GDM. If you just want to get things working you might have better luck using xscreensaver.



Only top voted, non community-wiki answers of a minimum length are eligible