xscreensaver does not work the way it is supposed to

Posted on 2003-11-04
Last Modified: 2013-12-15

In a lab running all of them running RH9 based distribution, we want a slideshow of some pics to be done when the screensaver starts. The file to be edited /usr/lib/X11/app-defaults/XScreenSaver is as bellow. The problem is that instead of doing a slideshow it brings in various effects like dissolving or brings in a new screen saver , anything but the slideshow. there is no file .xscreensaver in the home directory of the user account that I am using to test. it completely baffles me. I would appreciate some hints.

!                              XScreenSaver
!            a screen saver and locker for the X window system
!                            by Jamie Zawinski
!                              version 4.09
!                              17-Mar-2003
! See "man xscreensaver" for more info.  The latest version is always
! available at

! These resources, when placed in the system-wide app-defaults directory
! (e.g., /usr/lib/X11/app-defaults/XScreenSaver) will provide the default
! settings for new users.  However, if you have a ".xscreensaver" file in
! your home directory, the settings in that file take precedence.

! Don't hand this file to "xrdb" -- that isn't how app-defaults files work.
! Though app-defaults files have (mostly) the same syntax as your ~/.Xdefaults
! file, they are used differently, and if you run this file through xrdb,
! you will probably mess things up.

#error Do not run app-defaults files through xrdb!
#error That does not do what you might expect.
#error Put this file in /usr/lib/X11/app-defaults/XScreenSaver instead.

! /* (xrdb prevention kludge: whole file)

*timeout:            0:01:00
*cycle:                  0:01:00
*lockTimeout:            0:00:00
*passwdTimeout:            0:00:30
*dpmsEnabled:            False
*dpmsStandby:            2:00:00
*dpmsSuspend:            2:00:00
*dpmsOff:            4:00:00
*grabDesktopImages:      False
*grabVideoFrames:      False
*chooseRandomImages:      True
*imageDirectory:      /opt/buimages
*nice:                  10
*memoryLimit:            0
*lock:                  True
*lockVTs:            True
*verbose:            False
*timestamp:            True
*fade:                  True
*unfade:            False
*fadeSeconds:            0:00:03
*fadeTicks:            20
*splash:            True
*splashDuration:      0:00:05
*visualID:            GL
*captureStderr:       True
*ignoreUninstalledPrograms: True
*mode                   one
*overlayTextForeground:      #FFFF00
*overlayTextBackground:      #000000
*overlayStderr:            True
*font:                  *-medium-r-*-140-*-m-*

! The default is to use these extensions if available (as noted*mitSaverExtension:      False
*xidleExtension:      True
*procInterrupts:      True

! This is what the "Demo" button on the splash screen runs (/bin/sh syntax.)
*demoCommand: xscreensaver-demo

! This is what the "Prefs" button on the splash screen runs (/bin/sh syntax.)
*prefsCommand: xscreensaver-demo -prefs

! This is the URL that the "Help" button on the splash screen loads.

! This is how the "Help" button loads URLs (/bin/sh syntax.)
! The "helpURL" will be substituted for up to two occurrences of "%s".
!    *loadURL: mozilla '%s' || netscape '%s'
*loadURL: gnome-url-show '%s' || gnome-moz-remote --newwin '%s'

! This is what the "Manual" button in xscreensaver-demo runs (/bin/sh syntax.)
!    *manualCommand: xterm -sb -fg black -bg gray75 -T '%s manual' \
!            -e /bin/sh -c 'man "%s" ; read foo'
! For GNOME systems:
*manualCommand: yelp 'man:%s' || gnome-help-browser 'man:%s'

! The format used for printing the date and time in the password dialog box
! (see the strftime(3) manual page for details.)
*dateFormat:            %d-%b-%y (%a); %I:%M %p
! To show the time only:
! *dateFormat:            %I:%M %p
! For 24 hour time:
! *dateFormat:            %H:%M

! Turning on "installColormap" on 8-bit systems interacts erratically with
! twm and tvtwm, but seems to work fine with mwm and olwm.  Try it and see.
! If your screen turns some color other than black, the window manager is
! buggy, and you need to set this resource to False (or get a WM that works.)
*installColormap:      True

! Any program which can draw on the root window will work as a screensaver.
! The following resource enumerates them.
! Programs are separated by newlines (specified in resource files with \n).
! Lines may be continued with a lone \ at the end of the line.
! Each line is an `sh' command.
! If the first (non-blank) character on the line is "-", then that means
! that this command is disabled: it's still in the list, but it won't ever
! be used.  (This is just to make it easy to disable and then re-enable
! them later.)
! If the first word on the line is the name of a visual followed by a
! colon, then that visual will be used for the program, if it is available.
! If no such visual is available, then the program will be skipped.  In
! this way, you can specify that you want certain programs to run only
! on color screens, and others only on mono screens, by making use of the
! magic visual names "color" and "mono".  Likewise, if some hacks prefer
! colormaps, but others prefer 24-bit windows, that also can be arranged
! (in this case, by using "PseudoColor:" versus "TrueColor:".)
! Some of the screenhacks are written using OpenGL.  OpenGL programs are
! a bit different than normal X programs, in that they prefer visuals that
! are *half* as deep as the screen.  You can tell xscreensaver to select a
! good visual for a GL program by using the magic visual name "GL".
! All programs must be launched in such a way that they draw on the root
! window; they should not be spawned in the background with "&".  If shell
! metacharacters are used, they must be understandable to `sh', not `csh'
! (the $SHELL variable is not consulted, for unfortunate but good reasons.)
! Be sure to check out Demo Mode: run the `xscreensaver-demo' program to
! edit the current list of programs interactively, try out the various modes,
! and change other parameters.  See the man page for details.
*programs:            glslideshow -root -duration 10 -delay 0                                          \
*default-n:    GL:          glslideshow -root -duration 10 -delay 0

! I have tried both the above and bellow options. while the above gives partial results the one below doesn't work,
! when kde is running xscreensaver has no effect.
! the display cards support opengl

! To display a randomized slideshow of images, you can do something like this:
!*default-n:  "Slideshow"      xv -root -rmode 5 -random -viewonly           \
!                          -wloop -wait 3 /opt/buimages/*          \n\
! Recipes for using other slideshow programs can be found in the
! XScreenSaver FAQ:
! Note that we've used "default-n" as the visual name, rather than just
! "default": this means "default visual, no install", that is, it's like
! specifying the command-line arguments "-visual default -no-install".
! This is necessary because, when XV or XLI arerunning in "-root" mode, they
! always assume that the default visual and colormap are being used, rather
! than  examining the window it is drawing on to see what visual and colormap
! it has.  If we didn't force the default visual to be used, we would get an
! X error.  If we didn't force the default colormap to be installed, the
! colors would be all wrong.  "default-i" may also be used as a visual name
! (meaning, "-visual default -install") but you probably won't ever need
! to use that.
! Some of the GL demos that SGI ships work with XScreenSaver; most don't.
! XScreenSaver includes a program (not built or installed by default)
! called "xscreensaver-sgigl".  To use the SGI demos with XScreenSaver,
! build that program, and use it to launch the SGI demos.  For example,
! on Irix 6.2, you can do this:
!     xscreensaver-sgigl /usr/demos/bin/ep -S
!     xscreensaver-sgigl /usr/demos/bin/bongo
! On Irix 6.3, things have moved, so you need to do it like this:
!     xscreensaver-sgigl /usr/sbin/ep -S
! (But note that, on non-SGIs, the bundled "stonerview" hack is a decent
! clone of "ep".  Yay!)
! You can also use the "ant" demo, but first you need to wrap a shell script
! around it that cds to its home directory, so that it can find its files;
! and also pass it the -S argument, to prevent it from forking.  What a mess!
! Basically, the SGI demo writers went out of their way to make my life hell.

!      You probably don't want to change anything after this point.

XScreenSaver.pointerPollTime:            0:00:05
XScreenSaver.initialDelay:            0:00:00
XScreenSaver.windowCreationTimeout:      0:00:30
XScreenSaver.bourneShell:            /bin/sh

! Resources for the password and splash-screen dialog boxes of
! the "xscreensaver" daemon.
*Dialog.headingFont:            *-times-bold-r-*-*-*-180-*-*-*-iso8859-1
*Dialog.bodyFont:            *-helvetica-bold-r-*-*-*-140-*-*-*-iso8859-1
*Dialog.labelFont:            *-helvetica-bold-r-*-*-*-140-*-*-*-iso8859-1
*Dialog.buttonFont:            *-helvetica-bold-r-*-*-*-140-*-*-*-iso8859-1
*Dialog.dateFont:            *-courier-medium-r-*-*-*-80-*-*-*-iso8859-1
*Dialog.foreground:            #000000
*Dialog.background:            #D6D6D6
*Dialog.Button.foreground:      #000000
*Dialog.Button.background:      #EAEAEA
!*Dialog.Button.background:      #D6D6D6
!*Dialog.Button.pointBackground: #EAEAEA
!*Dialog.Button.clickBackground: #C3C3C3
*Dialog.text.foreground:      #000000
*Dialog.text.background:      #FFFFFF
*passwd.thermometer.foreground:      #FF0000
*passwd.thermometer.background:      #FFFFFF
*Dialog.topShadowColor:            #FFFFFF
*Dialog.bottomShadowColor:      #666666
*Dialog.logo.width:            210
*Dialog.logo.height:            210
*Dialog.internalBorderWidth:      30
*Dialog.borderWidth:            1
*Dialog.shadowThickness:      2

*passwd.heading.label:            XScreenSaver %s
*passwd.body.label:            This display is locked.
*passwd.user.label:            User:
*passwd.passwd.label:            Password:
*passwd.passwdFont:            *-courier-medium-r-*-*-*-140-*-*-*-iso8859-1
*passwd.thermometer.width:      8

*splash.heading.label:            XScreenSaver %s
*splash.body.label:            Copyright © 1991-2002 by
*splash.body2.label:            Jamie Zawinski <>
*splash.demo.label:            Settings
*            Help

! Resources for the Motif dialog boxes of the "xscreensaver-demo" program.
*fontList:                       *-helvetica-medium-r-*-*-*-120-*-*-*-iso8859-1
*demoDialog*label1.fontList:     *-helvetica-medium-r-*-*-*-140-*-*-*-iso8859-1
*cmdText.fontList:                 *-courier-medium-r-*-*-*-120-*-*-*-iso8859-1
*label0.fontList:                  *-helvetica-bold-r-*-*-*-140-*-*-*-iso8859-1
XScreenSaver*doc.fontList:       *-helvetica-medium-r-*-*-*-100-*-*-*-iso8859-1
! above must be fully qualified to get around *sgiMode.

*foreground:                  #000000
*background:                  #C0C0C0
*XmTextField.foreground:      #000000
*XmTextField.background:      #FFFFFF
*list.foreground:            #000000
*list.background:            #FFFFFF

*ApplicationShell.title:      XScreenSaver
*warning.title:                  XScreenSaver
*warning_popup.title:            XScreenSaver
*allowShellResize:            True
*autoUnmanage:                  False

*menubar*file.labelString:      File
*menubar*file.mnemonic:            F
*file.blank.labelString:      Blank Screen Now
*file.blank.mnemonic:            B
*file.lock.labelString:            Lock Screen Now
*file.lock.mnemonic:            L
*file.kill.labelString:            Kill Daemon
*file.kill.mnemonic:            K
*file.restart.labelString:      Restart Daemon
*file.restart.mnemonic:            R
*file.exit.labelString:            Exit
*file.exit.mnemonic:            E

*menubar*edit.labelString:      Edit
*menubar*edit.mnemonic:            E
*edit.cut.labelString:            Cut
*edit.cut.mnemonic:            u
*edit.copy.labelString:            Copy
*edit.copy.mnemonic:            C
*edit.paste.labelString:      Paste
*edit.paste.mnemonic:            P

*menubar*help.labelString:      Help
*menubar*help.mnemonic:            H
*help.about.labelString:      About...
*help.about.mnemonic:            A
*help.docMenu.labelString:      Documentation...
*help.docMenu.mnemonic:            D

*demoTab.marginWidth:            10
*optionsTab.marginWidth:      10

*XmScrolledWindow.topOffset:      10
*XmScrolledWindow.leftOffset:      10
*demoTab.topOffset:            4
*form1.bottomOffset:            10
*form3.leftOffset:            10
*form3.rightOffset:            10
*frame.topOffset:            10
*frame.bottomOffset:            10
*enabled.topOffset:            10
*visLabel.topOffset:            10
*combo.topOffset:            10
*form4.bottomOffset:            4
*hr.bottomOffset:            4
*XmComboBox.marginWidth:      0
*XmComboBox.marginHeight:      0

*demo.marginWidth:            30
*demo.marginHeight:            4
*man.marginWidth:            10
*man.marginHeight:            4
*down.leftOffset:            40
*down.marginWidth:            4
*down.marginHeight:            4
*up.marginWidth:            4
*up.marginHeight:            4
*frame.traversalOn:            False

*list.automaticSelection:      True
*list.visibleItemCount:            20
*doc.columns:                  60
*combo.columns:                  11

*demoTab.labelString:            Graphics Demos
*optionsTab.labelString:      Screensaver Options
*down.labelString:            \\/
*up.labelString:            /\\
*cmdLabel.labelString:            Command Line:
*cmdLabel.alignment:            ALIGNMENT_BEGINNING
*enabled.labelString:            Enabled
*visLabel.labelString:            Visual:
*visLabel.alignment:            ALIGNMENT_END
*visLabel.leftOffset:            20
*demo.labelString:            Demo
*man.labelString:            Documentation...
*done.labelString:            Quit

*preferencesLabel.labelString:      XScreenSaver Parameters

*timeoutLabel.labelString:      Saver Timeout
*cycleLabel.labelString:      Cycle Timeout
*fadeSecondsLabel.labelString:      Fade Duration
*fadeTicksLabel.labelString:      Fade Ticks
*lockLabel.labelString:            Lock Timeout
*passwdLabel.labelString:      Password Timeout
*preferencesForm*XmTextField.columns:      8

*verboseToggle.labelString:      Verbose
*cmapToggle.labelString:      Install Colormap
*fadeToggle.labelString:      Fade Colormap
*unfadeToggle.labelString:      Unfade Colormap
*lockToggle.labelString:      Require Password

*OK.marginWidth:            30
*OK.marginHeight:            4
*OK.leftOffset:                  10
*OK.bottomOffset:            10
*Cancel.marginWidth:            30
*Cancel.marginHeight:            4
*Cancel.rightOffset:            10
*Cancel.bottomOffset:            10

! Pretty names for the hacks that have unusual capitalization.

*         IMSmap
*    SlideScreen
*    DecayScreen
*       BlitSpin
*         LMorph
*            IFS
*       FadePlot
*           BSOD
*        RD-Bomb
*            T3D
*      ShadeBobs
*         C Curve
*        XTeeVee
*    XSpiroGraph
*       NerveRot
*     WebCollage
*     VidWhacker
*        Morph3D
*       Bubble3D
*       GLPlanet
*   Sierpinski3D
*          GFlux
*      XRaySwarm
*  WhirlwindWarp
*      RotZoomer
*     StonerView
*       StarWars
*         GLBlur
*         GLText
*     DangerBall
*      WhirlyGig
*      SpeedMine
*        GLSnake
*   GLForestFire
*         SBalls
*     XDaliClock
*      XPlanet
*           XaoS
*      XFishTank
*  ElectricSheep
* SphereEversion
*     FluidBalls
* FlyingToasters
*    BouncingCow
*     JigglyPuff
*    GLSlideshow

! obsolete, but still used by xscreensaver-demo-Xm.
*hacks.documentation.isInstalled: True

! (xrdb prevention kludge: whole file) */
*sgiSaverExtension:      True
Question by:team
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions

Accepted Solution

majorwoo earned 125 total points
ID: 9701992
have you tried using the screensaver/slideshow that comes with redhat?  You just point it at the directory to read pictures from and it does a slideshow of them.  Also make sure that in your desktop config it is set to use that screensaver, not the default redhat random screensaver which will jump around between all of them.

Author Comment

ID: 11310173
Can you please delete this question

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Daily system administration tasks often require administrators to connect remote systems. But allowing these remote systems to accept passwords makes these systems vulnerable to the risk of brute-force password guessing attacks. Furthermore there ar…
Network Interface Card (NIC) bonding, also known as link aggregation, NIC teaming and trunking, is an important concept to understand and implement in any environment where high availability is of concern. Using this feature, a server administrator …
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

749 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question