Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
dri problems
View unanswered posts
View posts from last 24 hours

Goto page 1, 2  Next  
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
flamingpi6C73
n00b
n00b


Joined: 26 Sep 2006
Posts: 50

PostPosted: Fri Oct 20, 2006 4:50 am    Post subject: dri problems Reply with quote

I dont have any clue what I am supposed to do, I have looked through about 20 forums, and none of them had the same problem I have. I have an old laptop, and I am trying to get direct rendering working. At this point I dont even know where to start, so I'll just post my current xorg.conf, and lspci, if someone could help, that would be GREAT.

xorg.conf
Quote:
Section "Module"
Load "dbe"
Load "freetype"
Load "glx"
Load "dri"
EndSection

Section "Files"
FontPath "/usr/share/fonts/misc"
FontPath "/usr/share/fonts/75dpi"
FontPath "/usr/share/fonts/100dpi"
FontPath "/usr/share/fonts/Type1"
EndSection

Section "ServerFlags"
EndSection

Section "InputDevice"
Identifier "Keyboard1"
Driver "kbd"
Option "AutoRepeat" "500 30"
Option "XkbRules" "xorg"
Option "XkbModel" "pc104"
Option "XkbLayout" "us"
Option "XkbOptions" "altwin:meta_win"
EndSection

Section "InputDevice"
Identifier "Mouse1"
Driver "mouse"
Option "Protocol" "Auto" # PS/2 Mouse
Option "Device" "/dev/input/mice"
Option "ZAxisMapping" "4 5 6 7"
EndSection

Section "Monitor"
Identifier "My Monitor"
HorizSync 28.0 - 96.0
VertRefresh 50.0-75.0
EndSection

Section "Device"
Identifier "ATI Radeon"
Driver "radeon"
BusID "PCI:1:0:0"
Option "DDCMode" "on"
Option "BIOSHotkeys" "on"
Option "pci retry"
Option "AGPMode" "4"
Option "AGPFastWrite" "on"
Option "BIOSHotKeys" "on"
EndSection

Section "Screen"
Identifier "Screen 1"
Device "ATI Radeon"
Monitor "My Monitor"
DefaultDepth 16

Subsection "Display"
Depth 8
Modes "1024x768"
ViewPort 0 0
EndSubsection
Subsection "Display"
Depth 16
Modes "1024x768"
ViewPort 0 0
EndSubsection
Subsection "Display"
Depth 24
Modes "1024x768"
ViewPort 0 0
EndSubsection
EndSection

Section "ServerLayout"
Identifier "Simple Layout"
Screen "Screen 1"
InputDevice "Mouse1" "CorePointer"
InputDevice "Keyboard1" "CoreKeyboard"
EndSection

Section "DRI"
Mode 0666
EndSection


lspci:
Quote:
00:00.0 Host bridge: Intel Corporation 82830 830 Chipset Host Bridge (rev 02)
00:01.0 PCI bridge: Intel Corporation 82830 830 Chipset AGP Bridge (rev 02)
00:1d.0 USB Controller: Intel Corporation 82801CA/CAM USB (Hub #1) (rev 01)
00:1d.1 USB Controller: Intel Corporation 82801CA/CAM USB (Hub #2) (rev 01)
00:1e.0 PCI bridge: Intel Corporation 82801 Mobile PCI Bridge (rev 41)
00:1f.0 ISA bridge: Intel Corporation 82801CAM ISA Bridge (LPC) (rev 01)
00:1f.1 IDE interface: Intel Corporation 82801CAM IDE U100 (rev 01)
00:1f.3 SMBus: Intel Corporation 82801CA/CAM SMBus Controller (rev 01)
00:1f.5 Multimedia audio controller: Intel Corporation 82801CA/CAM AC'97 Audio Controller (rev 01)
01:00.0 VGA compatible controller: ATI Technologies Inc Radeon Mobility M6 LY
02:04.0 Communication controller: Conexant HSF 56k HSFi Modem (rev 01)
02:05.0 FireWire (IEEE 1394): Texas Instruments TSB43AB22/A IEEE-1394a-2000 Controller (PHY/Link)
02:06.0 CardBus bridge: Texas Instruments PCI1410 PC card Cardbus Controller (rev 01)
02:08.0 Ethernet controller: Intel Corporation 82801CAM (ICH3) PRO/100 VE (LOM) Ethernet Controller (rev 41)
Back to top
View user's profile Send private message
sugar
Guru
Guru


Joined: 07 Aug 2004
Posts: 579
Location: Morrinsville, New Zealand

PostPosted: Fri Oct 20, 2006 5:44 am    Post subject: Reply with quote

You'll find the ati faq of good use

http://gentoo-wiki.com/HOWTO_ATI_Drivers

Feel free to post back if you have any problems
Back to top
View user's profile Send private message
flamingpi6C73
n00b
n00b


Joined: 26 Sep 2006
Posts: 50

PostPosted: Fri Oct 20, 2006 6:22 pm    Post subject: Reply with quote

no soup.... It didnt work, with fglrx in xorg.conf, it says "(EE) No device found." and with radeon in xorg.conf xorg starts, and says that it is using mesa, and my fps is smaller than it was before, it used to be like 400... after that it's like 180..

EDIT: Oh, my bad, didnt realize that the thing got rid of my options, got it back up to 400 with radeon driver, but still no dri... stupid me...
Back to top
View user's profile Send private message
sugar
Guru
Guru


Joined: 07 Aug 2004
Posts: 579
Location: Morrinsville, New Zealand

PostPosted: Fri Oct 20, 2006 7:15 pm    Post subject: Reply with quote

when you modprobe the module, does everything go ok?
Back to top
View user's profile Send private message
flamingpi6C73
n00b
n00b


Joined: 26 Sep 2006
Posts: 50

PostPosted: Fri Oct 20, 2006 7:37 pm    Post subject: Reply with quote

it says this when I modprobe, but everything else looks good:

Quote:
WARNING: Error inserting agpgart (/lib/modules/2.6.17-gentoo-r8/kernel/drivers/char/agp/agpgart.ko): Invalid module format


but my lsmod says this:

Quote:
Module Size Used by
fglrx 384108 0
snd_pcm_oss 32928 0
snd_mixer_oss 14848 1 snd_pcm_oss
snd_seq_oss 28544 0
snd_seq_midi_event 6656 1 snd_seq_oss
snd_seq 43984 4 snd_seq_oss,snd_seq_midi_event
snd_seq_device 7052 2 snd_seq_oss,snd_seq
snd_intel8x0 26908 0
snd_ac97_codec 80032 1 snd_intel8x0
snd_ac97_bus 2944 1 snd_ac97_codec
snd_pcm 65284 3 snd_pcm_oss,snd_intel8x0,snd_ac97_codec
snd_timer 17668 2 snd_seq,snd_pcm
snd 41828 9 snd_pcm_oss,snd_mixer_oss,snd_seq_oss,snd_seq,snd_seq_device,snd_intel8x0,snd_ac97_codec,snd_pcm,snd_timer
snd_page_alloc 7944 2 snd_intel8x0,snd_pcm
Back to top
View user's profile Send private message
sugar
Guru
Guru


Joined: 07 Aug 2004
Posts: 579
Location: Morrinsville, New Zealand

PostPosted: Fri Oct 20, 2006 8:20 pm    Post subject: Reply with quote

flamingpi6C73 wrote:
it says this when I modprobe, but everything else looks good:

Quote:
WARNING: Error inserting agpgart (/lib/modules/2.6.17-gentoo-r8/kernel/drivers/char/agp/agpgart.ko): Invalid module format


but my lsmod says this:

Quote:
Module Size Used by
fglrx 384108 0
snd_pcm_oss 32928 0
snd_mixer_oss 14848 1 snd_pcm_oss
snd_seq_oss 28544 0
snd_seq_midi_event 6656 1 snd_seq_oss
snd_seq 43984 4 snd_seq_oss,snd_seq_midi_event
snd_seq_device 7052 2 snd_seq_oss,snd_seq
snd_intel8x0 26908 0
snd_ac97_codec 80032 1 snd_intel8x0
snd_ac97_bus 2944 1 snd_ac97_codec
snd_pcm 65284 3 snd_pcm_oss,snd_intel8x0,snd_ac97_codec
snd_timer 17668 2 snd_seq,snd_pcm
snd 41828 9 snd_pcm_oss,snd_mixer_oss,snd_seq_oss,snd_seq,snd_seq_device,snd_intel8x0,snd_ac97_codec,snd_pcm,snd_timer
snd_page_alloc 7944 2 snd_intel8x0,snd_pcm


got agp in kernel?
Back to top
View user's profile Send private message
flamingpi6C73
n00b
n00b


Joined: 26 Sep 2006
Posts: 50

PostPosted: Fri Oct 20, 2006 8:44 pm    Post subject: Reply with quote

CONFIG_AGP=y
CONFIG_AGP_ATI=y
CONFIG_AGP_INTEL=y

but i had it as module... if that makes any difference

EDIT: ok i thought i had it built as module... apparently not...
Back to top
View user's profile Send private message
ank
Apprentice
Apprentice


Joined: 06 Aug 2003
Posts: 185
Location: Maribor, Slovenia

PostPosted: Fri Oct 20, 2006 8:59 pm    Post subject: Reply with quote

You need agpgart and agp for chipset on your MB. Something like this:

agpgart
nvidia-agp
fglrx

In your case it is intel not nvidia:

00:01.0 PCI bridge: Intel Corporation 82830 830 Chipset AGP Bridge (rev 02)
Back to top
View user's profile Send private message
flamingpi6C73
n00b
n00b


Joined: 26 Sep 2006
Posts: 50

PostPosted: Fri Oct 20, 2006 9:19 pm    Post subject: Reply with quote

ok... i rebuilt with:

CONFIG_AGP=m
CONFIG_AGP_ATI=m
CONFIG_AGP_INTEL=m

and btw /etc/modules.autoload.d/kernel-2.6(which hasnt changed yet, exept for the addition of agpgart at the begining after rebuilding):

agpgart
intel-agp
fglrx

still a no-go
Back to top
View user's profile Send private message
ank
Apprentice
Apprentice


Joined: 06 Aug 2003
Posts: 185
Location: Maribor, Slovenia

PostPosted: Fri Oct 20, 2006 9:23 pm    Post subject: Reply with quote

After compiling kernel you shuld rebuild fglrx drivers. Boot system and pres I for interactive then skip xdm, rebuild ati-drivers, load fglrx module and switch to ati with: eselect opengl set ati
Back to top
View user's profile Send private message
flamingpi6C73
n00b
n00b


Joined: 26 Sep 2006
Posts: 50

PostPosted: Fri Oct 20, 2006 9:49 pm    Post subject: Reply with quote

ok... i rebuilt it... but guess what.... same problem... i think we strayed from the actual problem, because after rebuilding kernel fglrx doesnt come up with the error, however again the problem doesnt seem to be the module, because when it was the module it gave me an "(EE) Error loading module "fglrx"" now it just gives me the "(EE) No device found"
Back to top
View user's profile Send private message
ank
Apprentice
Apprentice


Joined: 06 Aug 2003
Posts: 185
Location: Maribor, Slovenia

PostPosted: Fri Oct 20, 2006 10:50 pm    Post subject: Reply with quote

First you should check with lsmod if all 3 modules are loaded then coment some lines in xorg.conf

Section "Device"
Identifier "ATI Radeon"
Driver "radeon"
BusID "PCI:1:0:0"
#Option "DDCMode" "on"
#Option "BIOSHotkeys" "on"
#Option "pci retry"
#Option "AGPMode" "4"
#Option "AGPFastWrite" "on"
#Option "BIOSHotKeys" "on"
EndSection

so just the basic is in. When this works you can always tweak more. Propably not the reason but do you really have two Option "BIOSHotkeys" "on" lines in xorg.conf? And if you use fglrx change Driver "radeon" to Driver "fglrx" You can only use one of this two. If you use

radeon
you must have: agpgart, intel-agp, dri, radeon in modules.autoload/kernel-2.6 and Driver "radeon" in xorg.conf

if you use fglrx
you must have: agpgart, intel-agp, fglrx in modules.autoload/kernel-2.6 and Driver "fglrx" in xorg.conf
Back to top
View user's profile Send private message
flamingpi6C73
n00b
n00b


Joined: 26 Sep 2006
Posts: 50

PostPosted: Fri Oct 20, 2006 11:48 pm    Post subject: Reply with quote

yes all three are :
Code:

 $ lsmod
Module                  Size  Used by
snd_pcm_oss            32928  0
snd_mixer_oss          14848  1 snd_pcm_oss
snd_seq_oss            28544  0
snd_seq_midi_event      6656  1 snd_seq_oss
snd_seq                43984  4 snd_seq_oss,snd_seq_midi_event
snd_seq_device          7052  2 snd_seq_oss,snd_seq
snd_intel8x0           26908  1
snd_ac97_codec         80032  1 snd_intel8x0
snd_ac97_bus            2944  1 snd_ac97_codec
snd_pcm                65284  3 snd_pcm_oss,snd_intel8x0,snd_ac97_codec
snd_timer              17668  2 snd_seq,snd_pcm
snd                    41828  11 snd_pcm_oss,snd_mixer_oss,snd_seq_oss,snd_seq,snd_seq_device,snd_intel8x0,snd_ac97_codec,snd_pcm,snd_timer
snd_page_alloc          7944  2 snd_intel8x0,snd_pcm
radeon                101152  2
drm                    64920  3 radeon
intel_agp              18844  1
agpgart                24268  2 drm,intel_agp


and i have already told you the results of the fglrx driver... i get the "(EE) no device found" error...

as for the radeon one... dri in modules.autoload/kernel-2.6? i put it in, and it says that it failed to load the module dri...
Back to top
View user's profile Send private message
sugar
Guru
Guru


Joined: 07 Aug 2004
Posts: 579
Location: Morrinsville, New Zealand

PostPosted: Sat Oct 21, 2006 12:29 am    Post subject: Reply with quote

you might want to try commenting out the extensions in xorg when you try with the radeon driver
Back to top
View user's profile Send private message
flamingpi6C73
n00b
n00b


Joined: 26 Sep 2006
Posts: 50

PostPosted: Sat Oct 21, 2006 12:32 am    Post subject: Reply with quote

what extensions?
Back to top
View user's profile Send private message
sugar
Guru
Guru


Joined: 07 Aug 2004
Posts: 579
Location: Morrinsville, New Zealand

PostPosted: Sat Oct 21, 2006 12:52 am    Post subject: Reply with quote

:!:

sorry. My bad. There re none.

Have you tried unmasking the latest drivers?
Back to top
View user's profile Send private message
flamingpi6C73
n00b
n00b


Joined: 26 Sep 2006
Posts: 50

PostPosted: Sat Oct 21, 2006 1:34 am    Post subject: Reply with quote

installed latest ati-drivers, and rebooted

glxinfo:

direct rendering: No

fglrxinfo:

display: :0.0 screen: 0
OpenGL vendor string: Tungsten Graphics, Inc.
OpenGL renderer string: Mesa DRI Radeon 20060327 AGP 1x x86/MMX/SSE NO-TCL
OpenGL version string: 1.2 (1.3 Mesa 6.5.1)

glxgears:

2094 frames in 5.1 seconds = 410.056 FPS
2040 frames in 5.1 seconds = 397.491 FPS
2040 frames in 5.1 seconds = 398.283 FPS
2040 frames in 5.1 seconds = 397.943 FPS
2040 frames in 5.1 seconds = 398.069 FPS
1952 frames in 5.0 seconds = 390.097 FPS

seemingly still no luck
Back to top
View user's profile Send private message
sugar
Guru
Guru


Joined: 07 Aug 2004
Posts: 579
Location: Morrinsville, New Zealand

PostPosted: Sat Oct 21, 2006 3:42 am    Post subject: Reply with quote

??

It DRI wasn't working you'd get this


Quote:


display: :0.0 screen: 0
OpenGL vendor string: Mesa project: www.mesa3d.org
OpenGL renderer string: Mesa GLX Indirect
OpenGL version string: 1.2 (1.5 Mesa 6.2.1)

Back to top
View user's profile Send private message
sugar
Guru
Guru


Joined: 07 Aug 2004
Posts: 579
Location: Morrinsville, New Zealand

PostPosted: Sat Oct 21, 2006 3:43 am    Post subject: Reply with quote

Oh! i see what the problem is.

In xorg.conf, its "dri", not "DRI" if I'm not mistaken

edit: nevermind. its ok how it is
Back to top
View user's profile Send private message
sugar
Guru
Guru


Joined: 07 Aug 2004
Posts: 579
Location: Morrinsville, New Zealand

PostPosted: Sat Oct 21, 2006 3:51 am    Post subject: Reply with quote

Compile agp into the kernel?
Back to top
View user's profile Send private message
flamingpi6C73
n00b
n00b


Joined: 26 Sep 2006
Posts: 50

PostPosted: Sat Oct 21, 2006 4:52 am    Post subject: Reply with quote

that's how it was originally...

ok if i am getting the right thing for fglrxinfo, shouldn't glxinfo tell me direct rendering: Yes?... At least that's what I would think... but I'm a n00b so I could be wrong..
Back to top
View user's profile Send private message
sugar
Guru
Guru


Joined: 07 Aug 2004
Posts: 579
Location: Morrinsville, New Zealand

PostPosted: Sat Oct 21, 2006 5:26 am    Post subject: Reply with quote

Well, you're using the driver, but you don't have dri, and it seems that most of the time, when people have this problem, its because there's a problem with the AGP not loading properly.

Just to make sure, in /etc/modules.autoload.d/kernel-2.6 you have intel_agp, not intel-agp?
Back to top
View user's profile Send private message
flamingpi6C73
n00b
n00b


Joined: 26 Sep 2006
Posts: 50

PostPosted: Sat Oct 21, 2006 5:52 am    Post subject: Reply with quote

well it was intel-agp, but i changed it to intel_agp, and rebooted, no difference
Back to top
View user's profile Send private message
madisonicus
Veteran
Veteran


Joined: 20 Sep 2006
Posts: 1130

PostPosted: Sat Oct 21, 2006 5:58 am    Post subject: Reply with quote

ank wrote:
eselect opengl set ati


This is a crucial step. I haven't worked with ATI at all, but I've gotten the exact same sort of behavior flamingpi6C73 describes with an NVIDIA card when I haven't done this step. Everything seems like it should work, I get some graphics but no accelleration.

Would suggest you double check that this is set properly.

GL,
m
_________________
Please add [SOLVED] to your message title if you feel that your question has been answered.
------
Intel Q9300 Core2 Quad * Gigabyte GA-EP35C-DS3R
Samsung x360
AMD64 x2 4200+ * TF7050-M2 * HTPC
ZOTAC ION A-U Mini-ITX * HTPC
Back to top
View user's profile Send private message
flamingpi6C73
n00b
n00b


Joined: 26 Sep 2006
Posts: 50

PostPosted: Sat Oct 21, 2006 6:02 am    Post subject: Reply with quote

is that a one time thing or do you need to do it every boot? because i have run that like 7 times... ill try again to make sure...
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum