Hot answers tagged

8

For a moment, I thought that this might be inherited from the GDM configuration (since the GDM login screen does the same thing), but apparently it's not. After checking a few other places without any luck, I decided to find out for myself and took a look at the source code(v2.30). The code responsible for the shaking only checks to make sure the dialog ...


7

See: $ xscreensaver-command -time XScreenSaver 5.15: screen locked since Wed Sep 26 16:26:15 2012


7

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 \ ...


6

You could use xautolock: Xautolock monitors console activity under the X window system, and fires up a program of your choice if nothing happens during a user configurable period of time. You can use this to automatically start up a screen locker in case you tend to forget to do so manually before having a coffee break. Something along the lines of: ...


6

If you are using KDE's own builtin screensaver, I'm not sure... however, if you are using xscreensaver or are interested in using xscreensaver the following should help. Using xscreensaver you can adjust the number of pixels that the mouse must move before deactivating the screensaver; not sure about completely disabling the mouse though. If you are not ...


5

I believe that this phoronix article has some answers for you about wayland and screensaver. This article mainly says that it will be more integrated : it can ensure that no window can appear atop the screensaver surface, it can properly detect idling and grabs already, and has complete control over the screen. Unlike the X design, there wouldn't ...


5

The simplest is slock, the suckless screen locker. You could combine this with xautolock if you wanted to automate it after a period of inactivity. If you want something more "featurefull" you could install xscreensaver. Of course, gnome-screensaver is an option as well...


5

Background There are 2 solutions that were determined for this particular problem. The 1st involved launching xscreensaver, and disabling it so that no screensaver is configured. The 2nd method involved completely disabling the screensaver in X altogether, through the use of the xset command. Solution #1 A solution with a narrow scope (by cipricus) is ...


4

This question really belongs back on raspberrypi.stackexchange.com because it's a Raspberry Pi-specific issue: the kernel framebuffer driver for the Raspberry Pi does not support the function that X uses to put the monitor to sleep: https://github.com/raspberrypi/linux/issues/487 Until this issue is fixed, it won't be possible for X to put the monitor to ...


4

mplayer has the switch -heartbeat-cmd to run a command every 30 seconds, but as the man page says: This can be "misused" to disable screensavers that do not support the proper X API The actual switch meant to disable screensavers is -stop-xscreensaver; you should probably try that first


4

You can use xscreensaver command . $ xscreensaver-command -activate If it is not there on your system install it by : $ sudo apt-get install xscreensaver On Fedora/CentOS/RHEL you install it with this command: $ sudo yum install xscreensaver-base


4

You could run a script: #!/bin/bash gnome-screensaver-command --lock xset dpms force off Bind this to a key sequence and whenever you lock your screen, the display will turn off.


4

The xset command controls a number of parameters of the X server (the part of the system that provides a graphical display with windows), including its built-in screen saver and blanking ability. xset -dpms s off If you're using a third party screensaver, it might still be triggered.


3

If you saw this on an older system, chances that it was running xscreensaver. You can see its standard collection; there's a maze one which looks like what you describe. Note that it was common for people to install their own screensavers, for the decorative appeal. So this could have been something added locally, perhaps even something coded locally. ...


3

I haven't been able to find an actual command to change the lock feature, but in the configuration file .xscreensaver, located in the home folder, I've found the value of lock: lock: False In order to modify its value, I can change the value in the config file by using the command: sed -i 's/\(lock:\t\t\).*/\1False/' /home/username/.xscreensaver False ...


3

Turns out that I found the answer. Debian has a package called fbi that draws an image to the framebuffer from the console (the real one, not the terminal emulator in X11). Even can do slideshows :)


3

From the sound of this blog post you can use the project shantz-locker.sh to do what you want. shantz webcam autolocker The post includes everything you need. The 2 pieces are the use of the motion application which is typically available in most repos such as Fedora and/or Ubuntu, and the shell script that's attached to the above article, ...


3

DPMS can be darn resistant! Try this command: xset dpms 0 0 0 && xset s noblank && xset s off If it works, add it to whatever autostart file KDE uses. By the way, VLC has the option Preferences >> Video >> Disable screensaver. If that option is checked, the screen won't blank while VLC plays a video but DPMS will be turned on ...


3

In the terminal type mate-screensaver-preferences &, or from the Control Panel, select Screensaver - then deselect Lock screen when screensaver is active. You can find timeout settings there, too.


2

It all depends on how you define idle. If you're thinking of idle as being no user input, then you could write a script that monitors the output of: xscreensaver-command -watch which, according to it's man page: -watch Prints a line each time the screensaver changes state: when the screen blanks, locks, unblanks, or when the running hack is changed. ...


2

I am posting an answer, as I have somewhat managed to resolve the issue. I say somewhat because I still have problems. Wheezy appears to have a need to use a screensaver. I disabled all options I could find, even patched xscreensaver, but to no avail. The above fixes I tried in my question, sometimes generate issues when I log in, some times they do not! ...


2

I don't think it is possible to do that in XFCE power manager. However, you can make a script to both lock screen and turn it off, and make it so that it is launched as soon as you close your lid, overriding power manager's settings. How to launch a custom script is reported in the official Ubuntu help page. I'll write the passages sequentially, to ...


2

Try running this script heartbeat.sh that will reset X idle time each 55sec. #!/bin/bash while sleep 55 do #xscreensaver-command -deactivate #xdg-screensaver reset xset s reset done


2

Turning off screen after a specified period of inactivity can be achieved by at least 2 methods: either using xset DPMS features or a screensaver such as xscreensaver or gnome-screensaver. Xset: First, check whether your hardware supports DPMS: $ xset dpms force standby Your display should go blank. Apart from standby you can also try suspend and off. ...


2

Source: http://comments.gmane.org/gmane.linux.redhat.fedora.general/385326 Install the xdotool package (available on F11...not sure if F14 has it) and then use one of the commands to move the mouse.


2

Unless you are starting your graphical environment using startx or xinit, ~/.xinitrc is not being read. You should add the lines to your ~/.profile instead. To make sure they are only run when you have an active X session, use: if [ ! -t 0 ]; then set s off. xset -dpms xset s noblank exec /etc/alternatives/x-session-manager fi


2

You'll find different scripts in order to do that on ubuntu forum. It's quite hacky and it does not seem that a clean way exist.


2

A few years ago I used a PC keyboard with a Macintosh multi-booting Mac OS 9, Mac OS X and Linux. The windows key generated the same keycode as the Apple Command Key and showed up in linux as 'meta' or something. Try geekosaur's answer for mapping the windows key here. Even if it is the wrong keycode, something very similar should do for you. Edit: Example ...


2

I had a desire to make banshee (the Gnome music player) pause/unpause when the screen was locked/unlocked. I found a ticket in the banshee launchpad project: https://bugs.launchpad.net/banshee/+bug/237687 Someone had created a script which would notice (via DBus) if the screen was (un)locked and would trigger banshee to (un)pause. I added a small tweak ...


2

For the XScreenSaver the solution is xscreensaver-command -watch man xscreensaver-command contains an example Perl script to handle various screensaver and screen lock events, like BLANK, LOCK, UNBLANK etc. Here it is - the example turning sound off and on with the screensaver: #!/usr/bin/perl my $blanked = 0; open (IN, ...



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