Here is a sort of simple shell script that I just thought of that might
make people's lives a little easier.  Cut & paste this into a file
(maybe /usr/local/bin/dri_debug.sh) and then add this line to your
equivalent of /etc/rc.local:
/bin/sh /usr/local/bin/dri_debug.sh
to have it run at boot time to save info from the last crash. 
Otherwise, just run it any old time to get a snapshot of log data.

If there's interest, I'll put together a nice rc script that should work
on most distros for distribution with the testing binaries.  This is
just a "mock up" (I haven't even run it - I hate dog food ;) of what
should be a bit more complicated and grab a few more things, but you get
the idea.

DRI_DEBUG_DIR=/var/tmp/dri_debug_`date +%d-%b-%Y-%T`
mkdir $DRI_DEBUG_DIR
cp /var/log/XFree86.0.log $DRI_DEBUG_DIR
# this should work, but a grep might be better ...
tail -5000 /var/log/messages >$DRI_DEBUG_DIR/syslog.log
cp /etc/X11/XF86Config* $DRI_DEBUG_DIR
ls -l /usr/lib/libGL* >>$DRI_DEBUG_DIR/usr_GLFiles.txt
ls -l /usr/X11R6/lib  >>$DRI_DEBUG_DIR/X11R6_libFiles.txt
ldd /usr/X11R6/bin/glxgears >>$DRI_DEBUG_DIR/ldd_glxgears.txt

# any other files ...

tar -czf $DRI_DEBUG_DIR.tar.gz $DRI_DEBUG_DIR
#rm -rf $DRI_DEBUG_DIR

It might be nice to patch xinitrc to do this:
glxinfo >>/var/tmp/glxinfo.txt
every time so it can be bundled up, too.

Then when people start having problems, the list can expect (somewhat)
consistent reports.  Lemme know what you think.

I take no responsibility for the meltdown of your system ;)
-Al Tobey




********************************************************************
This email and any files transmitted with it are confidential
and intended solely for the use of the individual or entity
to whom they are addressed.  If you have received this 
email in error please notify the Priority Health Information
Services Department at (616) 942-0954.
********************************************************************



-------------------------------------------------------
This sf.net email is sponsored by: Jabber Inc.
Don't miss the IM event of the season | Special offer for OSDN members! 
JabConf 2002, Aug. 20-22, Keystone, CO http://www.jabberconf.com/osdn
_______________________________________________
Dri-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/dri-devel

Reply via email to