1847748 Members
3658 Online
104013 Solutions
New Discussion

Re: N-Class graphics

 
SOLVED
Go to solution
Michael O'brien_1
Regular Advisor

N-Class graphics

Hi,

I have an application requirement to have a graphics card installed in an N-Class. I understand that no graphics cards are support for N-Class servers.

I have installed a A6150A but it is still reported as being UNCLAIMED when I do an ioscan, even after I have add the drivers beep,grapgics3,hcd,hid,hub and usbd.

I have used the virtual graphics device Xvfb and set /usr/bin/X11/X :5, this all works well.

My question is which startup script would I place the /usr/bin/X11/X :5 and the second question is has anybody configued a graphics card in an N-Class.

Thanks
Mike
3 REPLIES 3
Armin Feller
Honored Contributor
Solution

Re: N-Class graphics

Here are
a sample configuration script (/etc/rc.config.d/xvfb) and rc script
(/sbin/init.d/xvfb) that would make the enabling of the VFB X server
easier from a support standpoint:

===================================================================

#
# /etc/rc.config.d/xvfb
#

START_XVFB=1
XVFB=/usr/bin/X11/X
DNUM=10
ARGS="-ac -fbdir /var/X11/Xserver"


===================================================================

#!/sbin/sh

#
# /sbin/init.d/xvfb
#
# XVfb X server startup/shutdown script
#

PATH=/sbin:/usr/sbin:/usr/bin:
export PATH

rval=0
set_return() {
x=$?
if [ $x -ne 0 ]; then
echo "ERROR CODE $x"
rval=1
fi
}

if [ -f /etc/rc.config.d/xvfb ] ; then
. /etc/rc.config.d/xvfb
else
echo "ERROR: /etc/rc.config.d/xvfb defaults file MISSING"
fi


case $1 in
start_msg)
echo "Start XVfb X server"
;;

stop_msg)
echo "Stopping XVfb X server"
;;

'start')
if [ "$START_XVFB" -eq 1 ]; then
if [ ! -f /etc/X11/X${DNUM}screens ]; then
echo X${DNUM}screens missing. Creating default
cat > /etc/X11/X${DNUM}screens << @EOF
ServerOptions
ServerMode XVfb
@EOF
fi
( $XVFB :${DNUM} $ARGS &)
set_return
else
rval=2
fi

;;

'stop')
#
# Determine PID of process(es) to stop
#
export UNIX95=1
export DNUM
pid=`ps -C X -opid= -oargs= | awk '$3 == ":"ENVIRON["DNUM"] {print $1}'`
unset UNIX95
if [ "X$pid" != "X" ]; then
if kill $pid; then
echo "XVfb X server stopped"
else
set_return
echo "Unable to stop XVfb X server"
fi
fi
;;

*)
echo "usage: $0 {start|stop}"
;;
esac

exit $rval
Michael O'brien_1
Regular Advisor

Re: N-Class graphics

Armin,

Thanks for those scripts, that was just what I was looking for. Where in the
/etc/rc.config.d/xvfb would I set the :5 to use display :5

Thanks
Mike
Michael O'brien_1
Regular Advisor

Re: N-Class graphics

Sorry Armin, I've now read the script the display is set in the DNUM varaiable.

Thanks
Mike