LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 05-02-2004, 04:45 AM   #1
murray_linux
Member
 
Registered: Nov 2003
Distribution: Slackware Current
Posts: 210

Rep: Reputation: 30
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
 
Old 05-02-2004, 10:53 AM   #2
fcaraballo
Member
 
Registered: Feb 2004
Location: WA
Distribution: Slackware
Posts: 230

Rep: Reputation: 31
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
 
Old 05-02-2004, 11:53 AM   #3
murray_linux
Member
 
Registered: Nov 2003
Distribution: Slackware Current
Posts: 210

Original Poster
Rep: Reputation: 30
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.
 
Old 05-02-2004, 02:20 PM   #4
murray_linux
Member
 
Registered: Nov 2003
Distribution: Slackware Current
Posts: 210

Original Poster
Rep: Reputation: 30
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
 
Old 05-03-2004, 05:01 PM   #5
murray_linux
Member
 
Registered: Nov 2003
Distribution: Slackware Current
Posts: 210

Original Poster
Rep: Reputation: 30
bump
 
Old 05-03-2004, 07:28 PM   #6
Shade
Senior Member
 
Registered: Mar 2003
Location: Burke, VA
Distribution: RHEL, Slackware, Ubuntu, Fedora
Posts: 1,418
Blog Entries: 1

Rep: Reputation: 46
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

Last edited by Shade; 05-03-2004 at 07:30 PM.
 
Old 05-03-2004, 11:54 PM   #7
Linux.tar.gz
Senior Member
 
Registered: Dec 2003
Location: Paris
Distribution: Slackware forever.
Posts: 2,227

Rep: Reputation: 86
...Perhaps it's not linked, but, did you compile your kernel with gcc 2.95.3 like it's recommended?
 
Old 05-04-2004, 05:10 PM   #8
murray_linux
Member
 
Registered: Nov 2003
Distribution: Slackware Current
Posts: 210

Original Poster
Rep: Reputation: 30
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
 
Old 05-04-2004, 05:12 PM   #9
murray_linux
Member
 
Registered: Nov 2003
Distribution: Slackware Current
Posts: 210

Original Poster
Rep: Reputation: 30
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?
 
Old 05-04-2004, 09:19 PM   #10
murray_linux
Member
 
Registered: Nov 2003
Distribution: Slackware Current
Posts: 210

Original Poster
Rep: Reputation: 30
recompiling the kernel with CONFIG_AGP_SIS set did it!

THANKS!!!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
dist-upgrade giving errors ekdya Debian 1 10-03-2005 06:48 PM
Configuration troubles on XFree86 4.5.0 with i915GM michalceri Linux - Laptop and Netbook 2 09-16-2005 03:36 AM
XFree86 errors are giving me nightmares critical Linux - Software 6 08-24-2005 11:11 PM
Troubles compiling xfree86 4.4.0 Codegen Linux - Software 12 01-06-2005 11:29 AM
XFree86 giving me some really hard time Ztyx Linux - General 2 11-25-2002 10:35 PM


All times are GMT -5. The time now is 09:35 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration