Tuesday, 13 January 2009

Endless loop for Xlib zoneminder viewer & logging feature

It seems that now and then 'something' goes wrong with the xlib_shm viewer. When we turn on the LCD in the morning the GDM login screen is shown instead of the cameras.

We altered the .xsession file for the auto login user to endlessly re-run the xlib script. The .xsession file now looks like this:

#!/bin/sh

while ( true )
do
/usr/sbin/xlib_shm-script
sleep 1
done


To try and find out what's going wrong we changed /usr/sbin/xlib_shm-script from this:

xlib_shm -m 1 -m 23 -m 11 -m 12 -k 0x07a6d0000 -d 40000


To this:

xlib_shm -m 1 -m 23 -m 11 -m 12 -k 0x07a6d0000 -d 40000 >> /tmp/xlib-log 2> /tmp/xlib-log-dinges


This way we may get some output of errors in the log files.

No comments: