LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 02-28-2004, 10:35 AM   #1
ugenn
Member
 
Registered: Apr 2002
Posts: 549

Rep: Reputation: 30
XFree86 4.4RC3 SIS DRI


Anyone here tried the new XFree86 4.4 RC3 with a SiS based card? I can load the modules successfully and glxinfo shows that Direct Rendering is enabled, but the rendering is all screwed up (warped polygons, objects that should be visible not visible etc). I can find nothing out of the ordinary in the system logs

Got the exact same problem when compiling my own and using the prebuilt binaries.

I'm using the DRM drivers that ship with kernel 2.6.3, hw is a SiS630 configured to use 32MB as VRAM, sisfb and sis are both modules.

Relevant lines from modprobe.conf:
options sisfb mem=12288

Relevant lines from XF86Config:
Section "Module"
blah blah
Load "glx"
EndSection

Section "Device"
Identifier "Sis630"
Driver "sis"
VideoRam 32768
Option "DRI" "on"
Option "MaxXFBMem" "12288"
Option "AGPSize" "32"
EndSection

Section "DRI"
Mode 0666
EndSection

Last edited by ugenn; 02-28-2004 at 10:44 AM.
 
Old 03-10-2004, 04:04 AM   #2
BroX
Member
 
Registered: Oct 2003
Location: Sweden
Distribution: Slackware64-current, SlackwareARM-current
Posts: 787

Rep: Reputation: 70
Got exaclty the same here with xfree 4.4.0... finally fps up to 200 instead of 30 (laptop) but in glxgears there are no gears to be seen in the window, and tuxracer and cube give me weird lines all over the screen.

Tried all sorts of things while cruising through LQ and other sites but nothing seems to improve the job.
 
Old 03-10-2004, 07:34 AM   #3
ugenn
Member
 
Registered: Apr 2002
Posts: 549

Original Poster
Rep: Reputation: 30
I'm pretty damn sure the problem lies in the sis_dri.so MESA driver, because forced software rendering (setenv LIBGL_ALWAYS_INDIRECT 1) works.
 
Old 03-10-2004, 08:24 AM   #4
BroX
Member
 
Registered: Oct 2003
Location: Sweden
Distribution: Slackware64-current, SlackwareARM-current
Posts: 787

Rep: Reputation: 70
One thing I haven't tried yet is to recompile the 2.6.3 kernel from a fesh source.
Initially, with xfree 4.3.0, I got Winischhofer's drivers and started fooling around with those. If I remember right, the sis_dri.so had to be copied to the kernel source and the recompile or something like that (never got any success).
Now, with xfree 4.4.0, that shouldn't be necessary or might even be harmful?

Post back if you have any luck in getting those grapics properly on the screen, ok.

Quote:
I'm pretty damn sure the problem lies in the sis_dri.so MESA driver, because forced software rendering (setenv LIBGL_ALWAYS_INDIRECT 1) works.
I don't quite get the logic here... could you elaborate on this a bit more for a newbie as myself? Thnx ;-)
 
Old 03-14-2004, 09:45 AM   #5
guygriffiths
Member
 
Registered: Jun 2003
Location: Reading, UK
Distribution: Debian 3.0, LFS
Posts: 524

Rep: Reputation: 37
Well, I've tried it every way I can think of. Here is a summary:
XFree86 4.4 drivers from www.winischhofer.net
7
I have tried kernel 2.6.3 with:
1) agpgart module
sis-agp module
sis module
sisfb module

2) agpgart built-in
sis-agp module
sis module
sisfb module

3) agpgart built-in
sis-agp built-in
sis module
sisfb module

Then those 3 with sisfb built in. It appears there is no difference if sisfb is built as a module or not. With sisfb built-in, I have tried all configs with sis built-in. Again, this makes no difference.
If, however, I build the agpgart into the kernel, when I try and run anything, I get a complete video lock-up, which needs to be rebooted to get out of. If I build it as a module, it will not get inserted, and I have to do it manually. This makes no difference to the output of glxgears, which shows a black screen, until resized, where it (sometimes) shows muddled polygons.

I think therefore that the problem has something to do with the SiS AGP kernel drivers. I have tried using the sis driver from www.winischhofer.net, but this makes no difference.
I don't believe sisfb is faulty, since it worked fine with 2.4.x kernels.
 
Old 03-14-2004, 10:13 AM   #6
BroX
Member
 
Registered: Oct 2003
Location: Sweden
Distribution: Slackware64-current, SlackwareARM-current
Posts: 787

Rep: Reputation: 70
Indeed, I also tried all those options you mention without any success.

Please, is there anyone who knows The Trick to get the sis drivers to work well????
 
Old 03-14-2004, 10:33 AM   #7
ugenn
Member
 
Registered: Apr 2002
Posts: 549

Original Poster
Rep: Reputation: 30
I highly doubt it's anything to do with sisfb. As mentioned before, it's either
sis_dri.so, or the kernel drivers sis.ko and sis-agp.ko
 
Old 03-15-2004, 04:09 AM   #8
guygriffiths
Member
 
Registered: Jun 2003
Location: Reading, UK
Distribution: Debian 3.0, LFS
Posts: 524

Rep: Reputation: 37
I believe it's an error in sis_dri.so with the latest XFree versions. The bug was submitted a while ago, but has not been cleared up:
http://bugs.xfree86.org/show_bug.cgi?id=1059
You can get around it by using sis_dri.so from XFree 4.2. I have a copy of the file built with gcc-3.2.1, but it works with my XFree-4.4.0 which was built with gcc-3.3.1. If you do not wish to compile it yourself, contact me through PM or email and I can send a copy to you.

Last edited by guygriffiths; 03-15-2004 at 04:11 AM.
 
Old 03-15-2004, 04:25 AM   #9
guygriffiths
Member
 
Registered: Jun 2003
Location: Reading, UK
Distribution: Debian 3.0, LFS
Posts: 524

Rep: Reputation: 37
OK I lied. That works fine with glxgears, but other things it works "less well". i.e very badly. It doesn't like textures, but at least it doesn't crash hideously.
 
Old 03-15-2004, 04:29 AM   #10
BroX
Member
 
Registered: Oct 2003
Location: Sweden
Distribution: Slackware64-current, SlackwareARM-current
Posts: 787

Rep: Reputation: 70
guygriffiths,

Quote:
OK I lied.
You almost made my day! What a disappointment :-(
But at least now I know it's bug, it's not me ;-)
Let's hope someone is able to get a work-around.

Cheers, Leon.
 
Old 03-15-2004, 05:25 AM   #11
guygriffiths
Member
 
Registered: Jun 2003
Location: Reading, UK
Distribution: Debian 3.0, LFS
Posts: 524

Rep: Reputation: 37
If you really need DRI, you can always revert to a 2.4.x kernel and use XFree-4.3 with the sis_dri and sis_drv from XFree 4.2.1.
But I've found no way of getting it to work with the 2.6.x kernel, which is what I want.
 
Old 06-30-2004, 12:14 PM   #12
ugenn
Member
 
Registered: Apr 2002
Posts: 549

Original Poster
Rep: Reputation: 30
Sorry to dig up an old thread, but for anyone who's interested, I've gotten (finally) 3D acceleration to work with the latest DRI binary drivers from http://www.freedesktop.org/~dri/snapshots/. I'm on a 2.6.7 kernel, glibc-2.3.3 (with NTPL thread), and X.org 6.7.0. Tested so far with glxgears and fooBilliard (http://www.geocities.com/harpin_floh...lard_page.html)

Last edited by ugenn; 06-30-2004 at 12:15 PM.
 
Old 07-20-2004, 11:27 PM   #13
MadSkillzMan
Member
 
Registered: Jul 2004
Distribution: SuSE, Mandrake
Posts: 142

Rep: Reputation: 15
ugenn, im a total newbie trying to get my card to work on Dual monitors. I have the SiS xabre 400 (330). I am using Mandrake 10.0 with the latest kernel. How do i go about installing the latest DRI binaries?

Im used to compiling from source with SuSE but cant get it to function on this machine.
 
Old 07-21-2004, 06:29 AM   #14
ugenn
Member
 
Registered: Apr 2002
Posts: 549

Original Poster
Rep: Reputation: 30
DRI is not supported in the newer models I believe. Get the binaries from http://www.freedesktop.org/~dri/snapshots/. The binaries are for a fairly recent version of Xorg, I believe, so you have one of the latest Xorg servers installed.
 
Old 07-21-2004, 07:03 PM   #15
MadSkillzMan
Member
 
Registered: Jul 2004
Distribution: SuSE, Mandrake
Posts: 142

Rep: Reputation: 15
i upgraded to xfree86 4.4 last nite. It has better support for my card, alls i want is my dual monitors back.
 
  


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
SiS DRI d00msweek Slackware 4 01-27-2005 08:58 AM
DRI on SiS 315/330---when? hcgernhardt Linux - Hardware 4 08-04-2004 08:18 AM
Everybody says SiS M650 chipset does not support DRI, but nobody says why mikeyt_333 Linux - Hardware 2 04-10-2004 11:47 PM
SiS 630 - Can't get DRI working (XF86 4.3) ugenn Linux - Hardware 2 02-19-2004 12:13 AM
SIS 630/730 and DRI crashmeister Linux - Hardware 0 06-17-2002 10:03 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 11:37 PM.

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration