We have just upgraded our Sun x86 servers to Solaris 5/09 and SRSS 4.1 with
patch 139549-02.  Our users are given access to the sun java desktop and in
that desktop we use /opt/SUNWut/bin/utdetatch to lock screens.  By doing
this we are able to disable the screen saver functionality.

The problem I have noticed is that with the latest release of the patch,
running utdetatch now jumps the user's idle time immediately to 9 days and
roughly 7 hours.  This is very problematic as we are no longer able to
accurately track how long users have been idle.  We use a compiled C program
to generate a user's idle time.  The source code is pasted below:

/*gcc -L/usr/X11R6/lib/ -lX11 -lXext idle.c -o idle*/
#include <time.h>
#include <stdio.h>
#include <unistd.h>
#include <X11/Xlib.h>
#include <X11/Xutil.h>
#include <X11/extensions/scrnsaver.h>

main () {
        time_t idle_time;
        static XScreenSaverInfo *mit_info;
        Display *display;
        int screen;
        mit_info = XScreenSaverAllocInfo();
        if((display=XOpenDisplay(NULL)) == NULL) { return(-1); }
        screen = DefaultScreen(display);
        XScreenSaverQueryInfo(display, RootWindow(display,screen),
mit_info);
        idle_time = (mit_info->idle) / 1000;
        printf("%i",idle_time);
}


After immediately jumping to 9 days and 7 hours (roughly 828465 seconds) it
continues to increment normally.  The system clock is set properly and the
same behavior was exhibited in CDE.  The behavior is similar on a SPARC
machine, but it only jumps to 253853 seconds (2+ days).  Moving back to the
139549-01 patch remedied the problem indicating whatever file changed,
changed as a result of the latest patch.

Is there known way to remedy this problem or adjust the file that changed?
It is much cleaner for the sunray to simply run utdetatch rather than
dealing with the overhead of a running screen saver process.
_______________________________________________
SunRay-Users mailing list
[email protected]
http://www.filibeto.org/mailman/listinfo/sunray-users

Reply via email to