You are not logged in.

#1 2009-05-27 18:51:00

StaticPhilly
Member
From: UK
Registered: 2009-05-15
Posts: 53

Xorg configuration & DRI

Hello chaps.

OK im configuring X to a portable system, so to do this is will use diffrent graphic adaptors (one might be nvidia, the other ati and so on)

so i have my Xorg.conf setup with 4 devices (the first is ati, second nv, third inten, forth vesa)

now when loading on machine with an ati card i get the following in my log, its the only error in there and i was just wondering what it was. Iv not booted onto anything other than machines with ati cards in so i cant tell you if it dose it for other venders.

drmOpenDevice: node name is /dev/dri/card0
drmOpenDevice: open result is -1, (No such device or address)
drmOpenDevice: open result is -1, (No such device or address)
drmOpenDevice: Open failed
[drm] failed to load kernel module "radeon"
(EE) RADEON(0): [dri] RADEONDRIGetVersion failed to open the DRM
[dri] Disabling DRI.

can anyone shed some light on this for me?

thanks


Lightweight software dose not mean less! It just means you have to get your finger out and make it do and look like you want!

Offline

#2 2009-05-27 19:21:53

MoonSwan
Member
From: Great White North
Registered: 2008-01-23
Posts: 881

Re: Xorg configuration & DRI

I can't shed light on the error but I can tell you that if you use the same xorg.conf for different video boards, you may end up with headaches.  For one example, taking that DRI line, I know for a fact that this line needs to be removed from nvidia configs & usually present for ati's:

Load "dri"

This is also true for another line that specifies using 0666 mode (Mode "0666"), it is usually present for ATI cards & the Nvidia ones can't have it in the config or it throws a hissy fit.

Offline

#3 2009-05-27 19:59:18

StaticPhilly
Member
From: UK
Registered: 2009-05-15
Posts: 53

Re: Xorg configuration & DRI

Thanks MoonSwan,

That was helpfull for me in the long run.

what iv done is made 4 diffrent xorg.conf files (xorg.conf.ati, xorg.conf.nvidia and so on)
and iv made a small bash script that works out what adaptor is installed. this script will be ran at boot


Edit:
just for those peeps also wanting this

#!/bin/bash

echo "Finding adaptor type"

set `/usr/sbin/lspci`

VENDOR="vesa"

for CURRENT in $*
do
    if [ $CURRENT="ati" ]; then
        VENDOR="ati"
        break
    elif [ $CURRENT="nvidia" ]; then
        VENDOR="nvidia"
        break
    elif [ $CURRENT="intel" ]; then
        VENDOR="intel"
        break
    fi
done

echo "Using $VENDOR driver"

if [ -f /etc/X11/xorg.conf ]; then 
    rm -f /etx/X11/xorg.conf
fi

case $VENDOR in
ati)
    cp /etc/X11/xorg.conf.ati /etc/X11/xorg.conf
    ;;
nvidia)
    cp /etc/X11/xorg.conf.nvidia /etc/X11/xorg.conf
    ;;
intel)
    cp /etc/X11/xorg.conf.intel /etc/X11/xorg.conf
    ;;
*)
    cp /etc/X11/xorg.conf.vesa /etc/X11/xorg.conf
    ;;
esac

echo "Configuration file set"

Last edited by StaticPhilly (2009-05-27 20:00:40)


Lightweight software dose not mean less! It just means you have to get your finger out and make it do and look like you want!

Offline

Board footer

Powered by FluxBB