Since makepkg is compiling it from source code, the resulting package will contain processor-specific optimizations unique to your specific system -- assuming you set up your /etc/makepkg.conf with the appropriate CFLAGS and CXXFLAGS.

This package is Arch-branded (screensavers, lock screen, etc.)

If running GNOME, this package will provide an icon to enter the XScreenSaver preferences under System>Preferences>Screensaver whereas the package in the official repositories does not.

Configuring XScreenSaver

Global options are defined in /usr/share/X11/app-defaults/XScreenSaver. Under a standard setup, there is likely no need to edit this file. Instead most options are configured on a user-by-user basis simply by running xscreensaver-demo

$ xscreensaver-demo

xscreensaver-demo writes the chosen configuration in ~/.xscreensaver, discarding any manual modification to the file.

Fortunately, since at least XScreenSaver 5.22, there is another way to edit XScreenSaver's user configuration, using ~/.Xresources; see here for some examples.

Starting XScreenSaver

Single-User Systems

Simply installing the xscreensaver package is not enough to have it run automatically. The xscreensaver program has to be started, which is commonly done by the desktop environment via a line in ~/.xinitrc as follows:

/usr/bin/xscreensaver -no-splash &

or

( ( sleep 10 && /usr/bin/xscreensaver -no-splash -display :0.0 ) & )

The ampersand & argument makes the xscreensaver program run in the background and is required.

XScreenSaver is automatically started by Xfce in /etc/xdg/xfce4/xinitrc, to ensure it gets executed use startxfce4 and not xfce4-session.

exec startxfce4

Multi-User Systems

If operating with multiple users with a display manager (e.g. SLiM, GDM, KDM) it is best to start XScreenSaver via the desktop manager's native screensaver interface. This allows full management of user switching. For example, if using GNOME, install gnome-screensaver and xscreensaver but only have gnome-screensaver active. This allows for all the screensavers to be selected, and keep the ability for user switching in the event that one user has the screen locked, and another user wants to "switch users" to he/she can access to the box.

Note: Some XScreenSaver native functionality will be lost such as the ability to capture a screen, use photos in a pre-defined path, and/or display custom texts when running the DM's native screensaver with a subset of XScreenSaver's offerings (for example, Flipscreen3D, photopile, etc.)

Another option to retain multi-user support, without having to install a second screensaver, is to modify either ~/.xscreensaver for per-user settings, or /usr/share/X11/app-defaults/XScreenSaver for global settings, and add the following line.

newLoginCommand: /usr/bin/gdmflexiserver

Note: The command given is for GDM; if you are using a different login manager, you will need to replace it with your preferred login manager's command.

Lock Screen

You may immediately trigger xscreensaver, if it is running, and lock the screen with the following command:

Another option, is to install xss-lockAUR from AUR, and run this command at your system startup:

$ xss-lock -- xscreensaver-command -lock &

You can also add it to your autostart script.

Disabling XScreenSaver for Media Applications

MPlayer

Add the following to ~/.mplayer/config

heartbeat-cmd="xscreensaver-command -deactivate >&- 2>&- &"

XBMC

There is no native support within XBMC to disable XScreenSaver (although XBMC does come with its own screensaver). The AUR contains a tiny app called xbmc_prevent_xscreensaverAUR does just this.

Adobe Flash/MPlayer/VLC

There is no native way to disable XScreenSaver for flash, but there is script named lightsOn that works great and has support for Firefox's Flash plugin, Chromium's Flash plugin, MPlayer, and VLC.

Using XScreenSaver as animated wallpaper

You can run xscreensaver in the background, just like a wallpaper.
First, kill any process that is controlling the background (the root window).
Locate the desired XScreenSaver executable (they are usually on /usr/lib/xscreensaver/) and run it with the -root flag, like this

$ /usr/lib/xscreensaver/glslideshow -root &

XScreenSaver as wallpaper under xcompmgr

xcompmgr may cause problems, so you need to use xwinwrap to run it in order to use it as wallpaper. You can find it as shantz-xwinwrap-bzrAUR in the AUR.

Theming

User switching from the lock screen

By default, xscreensaver's "New Login" button in the lock screen will call /usr/bin/gdmflexiserver to allow for user switching. This is fine if using gdm or kdm. Other display managers such as lightdm and lxdm support this functionality as well.

Note: Modifications manually made to ~/.xscreensaver are discarded by xscreensaver-demo, therefore you should probably use instead ~/.Xresources. For example, for LXDM, add in ~/.Xresources:

xscreensaver.newLoginCommand: lxdm -c USER_SWITCH

LXDM

Simply paste the following into ~/.xscreensaver to use LXDM's switching mode:

newLoginCommand: lxdm -c USER_SWITCH

Lightdm

Simply paste the following into ~/.xscreensaver to use lightdm's switching mode:

newLoginCommand: dm-tool switch-to-greeter

KDM

Simply paste the following into ~/.xscreensaver / /usr/share/X11/app-defaults/XScreenSaver to use kdm's switching mode:

newLoginCommand: kdmctl reserve

SLIM

?

Debugging

You can configure xscreensaver to write to a log file by creating the logfile # touch /var/log/xscreensaver.log and then specifying its X resource logFile.

~/.Xresources

xscreensaver.logFile:/var/log/xscreensaver.log

To log verbose debugging information to the logFile as well start xscreensaver with the -verbose command line option, or add this to your ~/.Xresources