Solved

xscreensaver does not work the way it is supposed to

Posted on 2003-11-04
4
709 Views
Last Modified: 2013-12-15
Hi,

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.

regards
!
!                              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 http://www.jwz.org/xscreensaver/


! 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.
*helpURL: http://www.jwz.org/xscreensaver/man.html

! 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: http://www.jwz.org/xscreensaver/faq.html
!
! 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 <jwz@jwz.org>
*splash.demo.label:            Settings
*splash.help.label:            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:            /\\
*frameLabel.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.
!
!=============================================================================

*hacks.imsmap.name:         IMSmap
*hacks.slidescreen.name:    SlideScreen
*hacks.decayscreen.name:    DecayScreen
*hacks.blitspin.name:       BlitSpin
*hacks.lmorph.name:         LMorph
*hacks.ifs.name:            IFS
*hacks.fadeplot.name:       FadePlot
*hacks.bsod.name:           BSOD
*hacks.rd-bomb.name:        RD-Bomb
*hacks.t3d.name:            T3D
*hacks.shadebobs.name:      ShadeBobs
*hacks.ccurve.name:         C Curve
*hacks.xteevee.name:        XTeeVee
*hacks.xspirograph.name:    XSpiroGraph
*hacks.nerverot.name:       NerveRot
*hacks.webcollage.name:     WebCollage
*hacks.vidwhacker.name:     VidWhacker
*hacks.morph3d.name:        Morph3D
*hacks.bubble3d.name:       Bubble3D
*hacks.glplanet.name:       GLPlanet
*hacks.sierpinski3d.name:   Sierpinski3D
*hacks.gflux.name:          GFlux
*hacks.xrayswarm.name:      XRaySwarm
*hacks.whirlwindwarp.name:  WhirlwindWarp
*hacks.rotzoomer.name:      RotZoomer
*hacks.stonerview.name:     StonerView
*hacks.starwars.name:       StarWars
*hacks.glblur.name:         GLBlur
*hacks.gltext.name:         GLText
*hacks.dangerball.name:     DangerBall
*hacks.whirlygig.name:      WhirlyGig
*hacks.speedmine.name:      SpeedMine
*hacks.glsnake.name:        GLSnake
*hacks.glforestfire.name:   GLForestFire
*hacks.sballs.name:         SBalls
*hacks.xdaliclock.name:     XDaliClock
*hacks.xplanetbg.name:      XPlanet
*hacks.xaos.name:           XaoS
*hacks.xfishtank.name:      XFishTank
*hacks.electricsheep.name:  ElectricSheep
*hacks.sphereEversion.name: SphereEversion
*hacks.fluidballs.name:     FluidBalls
*hacks.flyingtoasters.name: FlyingToasters
*hacks.bouncingcow.name:    BouncingCow
*hacks.jigglypuff.name:     JigglyPuff
*hacks.glslideshow.name:    GLSlideshow

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

! (xrdb prevention kludge: whole file) */
.)
*sgiSaverExtension:      True
0
Comment
Question by:team
4 Comments
 
LVL 9

Accepted Solution

by:
majorwoo earned 125 total points
Comment Utility
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.
0
 

Author Comment

by:team
Comment Utility
Can you please delete this question
0

Featured Post

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

Currently, there is not an RPM package available under the RHEL/Fedora/CentOS distributions that gives you a quick and easy way to allow PHP to interface with Oracle. As a result, I have included a set of instructions on how to do this with minimal …
I am a long time windows user and for me it is normal to have spaces in directory and file names. Changing to Linux I found myself frustrated when I moved my windows data over to my new Linux computer. The problem occurs when at the command line.…
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…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

743 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now