LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   XFree86 4.4 upgrade is giving me video troubles. (https://www.linuxquestions.org/questions/slackware-14/xfree86-4-4-upgrade-is-giving-me-video-troubles-176893/)

murray_linux 05-02-2004 03:45 AM

XFree86 4.4 upgrade is giving me video troubles.
 
Hi All,

Short story:

Upgraded from Slack-9.1 to Slack-Current using swaret, now my Radeon 8500 Direct Rendering is disabled, and sometimes X crashes.

Long(ish) story:

I've been using Slack 9.1 for a long time now, with no problems. I had ATI's fglrx driver installed, 3D support working.

Today I decided that I wanted to update my machine. The first thing I did was install XFree86 4.4. Everything appeared to work fine. X would not start however; I had to change the driver from fglrx to radeon to get it working (Also had to reboot, graphics were displaying all fuzzy). Checking ATI's webpage, I found that ATI doesn't make a XF86 4.4 driver yet. YAY. Guess I should've researched this. Oh well, XFree86 4.4 comes with a Radeon driver, that will give me some 3D support, if not the greatest.

Then, I installed swaret, and updated all of my packages from 9.1 to current. I am up to date!

So my friends, running glxinfo returns:

direct rendering: No

glxgears runs at about 125 fps.

I then checked my XFree86.0.log file and I find these helpful messages:

(WW) RADEON(0): [agp] AGP not available

and

(II) RADEON(0): Direct rendering disabled


Doing a dmesg |grep agpgart, I find:

agpgart: Maximum main memory to use for agp memory: 203M
agpgart: unsupported bridge
agpgart: no supported devices found.


So. That's where I am, and that is where my Linux troubleshooting abilities end. What am I missing? I am using kernel 2.4.. Do I need to enable the radeon DRM in the kernel? I'm thinking no, because I've installed a new version of XFree86, and that should include a newer kernel module, right?

oh, and lsmod shows:

radeon 114944

Thank you for any and all replies :)

Murray

fcaraballo 05-02-2004 09:53 AM

XFree86 sets AGP to 1x by default, so you need to change it to get better performance.

Add the following to your XF86Config under your driver:

Driver "radeon"
Option "AGPMode" "4" <---kernel 2.4.x only supports up to 4x

It also might help if you set your AGP size:

Option "AGPSize" "64" <---example


MagicMan

murray_linux 05-02-2004 10:53 AM

Thanks,

Unfortunately I still get the same errors in my XFree86.0.log file after making the changes you suggested MagicMan:

(WW) RADEON(0): [agp] AGP not available
(II) RADEON(0): Direct rendering disabled

It appears as if the first is that even though I want to enable AGP, I can't because it's not there in my system. Again, when I boot up my box, I get this error:

agpgart: Maximum main memory to use for agp memory: 203M
agpgart: unsupported bridge
agpgart: no supported devices found.

Is that related?

All suggestions appreciated :)

Thanks
ps. running glxinfo crashes X.

murray_linux 05-02-2004 01:20 PM

Just got back from installing kernel 2.6.5.

Now when I dmesg|grep agp i get:
Linux agpgart interface v0.100 (c) Dave Jones
Linux agpgart interface v0.100 (c) Dave Jones

but in my XFree86.0.log file i still see these 2 entries:

(WW) RADEON(0): [agp] AGP not available
(II) RADEON(0): Direct rendering disabled


I noticed that agpgart module wasn't loaded, so i did a :

#modprobe agpgart

and now it is loaded, but i still don't have direct rendering :(

running glxinfo still crashes X.

Any thoughts appreciated :)

Murray

murray_linux 05-03-2004 04:01 PM

bump

Shade 05-03-2004 06:28 PM

Interesting.
What chipset does your mobo use for agp?

I'm running a Radeon9000 Pro under Xorg and was previously running it under X4.4 with the radeon module, too. It works fine for me.

lsmod:
Code:

mike@gobot:~$ lsmod
Module                  Size  Used by
snd_seq_oss            32128  0
snd_seq_midi_event      6272  1 snd_seq_oss
snd_seq                51536  4 snd_seq_oss,snd_seq_midi_event
radeon                115184  2
snd_pcm_oss            49188  0
snd_mixer_oss          17408  3 snd_pcm_oss
snd_via82xx            22208  4
snd_pcm                85512  2 snd_pcm_oss,snd_via82xx
snd_timer              21636  2 snd_seq,snd_pcm
snd_ac97_codec        61444  1 snd_via82xx
snd_page_alloc          8964  2 snd_via82xx,snd_pcm
snd_mpu401_uart        6144  1 snd_via82xx
snd_rawmidi            20448  1 snd_mpu401_uart
snd_seq_device          6536  3 snd_seq_oss,snd_seq,snd_rawmidi
snd                    45732  16 snd_seq_oss,snd_seq_midi_event,snd_seq,snd_pcm_oss,
snd_mixer_oss,snd_via82xx,snd_pcm,snd_timer,snd_ac97_codec,snd_mpu401_uart,snd_rawmidi,snd_seq_device

I put agpgart into the kernel along with the chipset-specific agp driver.
Here's a snippet of my kernel config

Code:

mike@gobot:~$ cat /usr/src/linux/.config|grep -i agp
CONFIG_AGP=y
# CONFIG_AGP_ALI is not set
# CONFIG_AGP_ATI is not set
# CONFIG_AGP_AMD is not set
# CONFIG_AGP_AMD64 is not set
# CONFIG_AGP_INTEL is not set
# CONFIG_AGP_INTEL_MCH is not set
# CONFIG_AGP_NVIDIA is not set
# CONFIG_AGP_SIS is not set
# CONFIG_AGP_SWORKS is not set
CONFIG_AGP_VIA=y
# CONFIG_AGP_EFFICEON is not set

Perhaps this will help.
snippets from my xorg.conf
Code:

Section "Module"

# This loads the DBE extension module.

    Load        "dbe"  # Double buffer extension

# This loads the miscellaneous extensions module, and disables
# initialisation of the XFree86-DGA extension within that module.
    SubSection  "extmod"
      Option    "omit xfree86-dga"  # don't initialise the DGA extension
    EndSubSection

# This loads the Type1 and FreeType font modules
    Load        "type1"
    Load        "speedo"
    Load        "freetype"
#    Load        "xtt"

# This loads the GLX module
    Load      "glx"
# This loads the DRI module
    Load      "dri"

EndSection

Section "Device"
    Identifier  "Radeon 9000 Pro"
    Driver      "radeon"
    VideoRam    65536
    Option      "composite_sync" "off"
    Option      "AGPFastWrite"  "off"
    Option      "AGPMode"      "4"
    Option      "EnablePageFlip" "off"
    Option      "SWCursor"      "on"
    # Insert Clocks lines here if appropriate
EndSection

Section "Screen"
    Identifier  "Screen 1"
    Device      "Radeon 9000 Pro"
    Monitor    "SVA"
    DefaultDepth 24

    Subsection "Display"
        Depth      8
        Modes      "1024x768" "800x600" "640x480"
        ViewPort    0 0
    EndSubsection
    Subsection "Display"
        Depth      16
        Modes      "1024x768" "800x600" "640x480"
        ViewPort    0 0
    EndSubsection
    Subsection "Display"
        Depth      24
        Modes      "1024x768" "800x600" "640x480"
        ViewPort    0 0
    EndSubsection
EndSection

Section "DRI"
    Mode 0666
EndSection

And that's precisely how mine is setup. :)

--Shade

Linux.tar.gz 05-03-2004 10:54 PM

...Perhaps it's not linked, but, did you compile your kernel with gcc 2.95.3 like it's recommended?

murray_linux 05-04-2004 04:10 PM

Quote:

Originally posted by Shade
[B]Interesting.
What chipset does your mobo use for agp?
I have a ECS K7S5A motherboard, and according to this page http://www.ecs.com.tw/products/pd_sp...product_id=192
it would be using a SIS chipset. I don't think I set that in my kernel..

Lets see...

Code:

murray@godzillax:~$ cat /usr/src/linux/.config|grep -i agp
CONFIG_AGP=y
# CONFIG_AGP_ALI is not set
CONFIG_AGP_ATI=y
# CONFIG_AGP_AMD is not set
# CONFIG_AGP_AMD64 is not set
# CONFIG_AGP_INTEL is not set
# CONFIG_AGP_INTEL_MCH is not set
# CONFIG_AGP_NVIDIA is not set
# CONFIG_AGP_SIS is not set
# CONFIG_AGP_SWORKS is not set
# CONFIG_AGP_VIA is not set
# CONFIG_AGP_EFFICEON is not set

nope. (thanks for showing me how to use that command too!)

When I get home, I will see what happens when I compile the kernel with CONFIG_AGP_SIS set. I guess I don't need to set the CONFIG_AGP_ATI either... I take it this option refers to the chipset on your motherboard and not your video card. (Hey I learned 2 things today)

thanks for your help on this. I will let you know how it goes when I test it tonight.

Murray

murray_linux 05-04-2004 04:12 PM

Quote:

Originally posted by Linux.tar.gz
...Perhaps it's not linked, but, did you compile your kernel with gcc 2.95.3 like it's recommended?
not too sure actually, is there a command to find out?

murray_linux 05-04-2004 08:19 PM

recompiling the kernel with CONFIG_AGP_SIS set did it!

THANKS!!!


All times are GMT -5. The time now is 04:30 AM.