* [gentoo-user] DRI lost after modular X and gcc-4.1.1
@ 2006-09-24 21:33 Sergio Polini
2006-09-24 21:56 ` Richard Fish
` (2 more replies)
0 siblings, 3 replies; 9+ messages in thread
From: Sergio Polini @ 2006-09-24 21:33 UTC (permalink / raw
To: gentoo-user
I need your help ;-)
I've switched to modular X and gcc-4.1.1, and I've lost DRI :-(
My configuration:
HP dv5078EA (laptop)
Gentoo AMD64
Kernel 2.6.12-r10
in /usr/src/linux/.config:
CONFIG_MTRR=y
CONFIG_AGP=y
CONFIG_AGP_AMD64=y
CONFIG_AGP_INTEL=m
# CONFIG_DRM is not set
output of lspci | grep VGA:
01:05.0 VGA compatible controller: ATI Technologies Inc ATI Radeon
XPRESS 200M 5955 (PCIE)
output of lspci | grep AGP:
<none>
sys-apps/portage 2.1.1
media-libs/mesa 6.4.2-r2
x11-base/xorg-x11 7.0-r1
x11-base/x11--drm 20060608
in /etc/make.conf:
VIDEO_CARDS="vga radeon"
in /etc/X11/xorg.conf:
Section "Module"
Load "dri"
Load "dbe"
SubSection "extmod"
Option "omit xfree86-dga"
EndSubSection
Load "type1"
Load "freetype"
Load "synaptics"
Load "glx"
EndSection
Section "Device"
Identifier "ATI Graphics Adapter"
Driver "radeon"
Option "AGPFastWrite" "1"
EndSection
output of eselect opengl show:
xorg-x11
output of glxinfo | grep direct:
direct rendering: No
OpenGL renderer string: Mesa GLX Indirect
in /var/log/Xorg.0.log:
(II) LoadModule: "dri"
(II) Loading /usr/lib64/xorg/modules/extensions/libdri.so
...
(II) Loading sub module "drm"
(II) LoadModule: "drm"
(II) Loading /usr/lib64/xorg/modules/linux/libdrm.so
...
(II) Loading sub module "radeon"
(II) LoadModule: "radeon"
(II) Reloading /usr/lib64/xorg/modules/drivers/radeon_drv.so
...
(--) RADEON(0): Chipset: "ATI Radeon XPRESS 200M 5955 (PCIE)" ChipID
= 0x5955)
(--) RADEON(0): Linear framebuffer at 0xc0000000
(II) RADEON(0): PCI card detected
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
drmOpenByBusid: Searching for BusID pci:0000:01:05.0
drmOpenDevice: node name is /dev/dri/card0
drmOpenDevice: open result is -1, (No such device)
drmOpenDevice: open result is -1, (No such device)
drmOpenDevice: Open failed
drmOpenByBusid: drmOpenMinor returns -1023
drmOpenDevice: node name is /dev/dri/card1
drmOpenDevice: open result is -1, (No such device)
drmOpenDevice: open result is -1, (No such device)
drmOpenDevice: Open failed
...
drmOpenDevice: node name is /dev/dri/card14
drmOpenDevice: open result is -1, (No such device)
drmOpenDevice: open result is -1, (No such device)
drmOpenDevice: Open failed
(EE) RADEON(0): [dri] RADEONDRIGetVersion failed to open the DRM
[dri] Disabling DRI.
output of lsmod, first three lines;
Module Size Used by
radeon 123808 0
drm 101544 1 radeon
output of ls -al /dev/dri:
total 0
Docs checked:
http://www.gentoo.org/proj/en/desktop/x/x11/modular-x-howto.xml
http://www.gentoo.org/doc/en/gcc-upgrading.xml
http://gentoo-wiki.com/HOWTO_DRI_with_ATi_Open-Source_Drivers
Any hints?
Thanks
Sergio
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [gentoo-user] DRI lost after modular X and gcc-4.1.1
2006-09-24 21:33 [gentoo-user] DRI lost after modular X and gcc-4.1.1 Sergio Polini
@ 2006-09-24 21:56 ` Richard Fish
2006-09-24 23:30 ` Jerry McBride
2006-09-25 20:00 ` [gentoo-user] DRI lost after modular X and gcc-4.1.1 Benno Schulenberg
2 siblings, 0 replies; 9+ messages in thread
From: Richard Fish @ 2006-09-24 21:56 UTC (permalink / raw
To: gentoo-user
On 9/24/06, Sergio Polini <sp_rm_it@yahoo.it> wrote:
> # CONFIG_DRM is not set
If you want DRI, you have two choices:
1. the open source radeon driver, with the in-kernel DRM driver. For
this you need to turn on CONFIG_DRM and CONFIG_DRM_RADEON in your
kernel configuration. This doesn't work for all chips yet AFAIK.
2. the proprietary ATI drivers. For this you don't change the kernel
configuration, but add "fglrx" to VIDEO_CARDS, and change your
xorg.conf driver from "radeon" to "fglrx".
HTH,
-Richard
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [gentoo-user] DRI lost after modular X and gcc-4.1.1
2006-09-24 21:33 [gentoo-user] DRI lost after modular X and gcc-4.1.1 Sergio Polini
2006-09-24 21:56 ` Richard Fish
@ 2006-09-24 23:30 ` Jerry McBride
2006-09-25 6:59 ` Sergio Polini
2006-09-25 20:00 ` [gentoo-user] DRI lost after modular X and gcc-4.1.1 Benno Schulenberg
2 siblings, 1 reply; 9+ messages in thread
From: Jerry McBride @ 2006-09-24 23:30 UTC (permalink / raw
To: gentoo-user
On Sunday 24 September 2006 17:33, Sergio Polini wrote:
> I need your help ;-)
> I've switched to modular X and gcc-4.1.1, and I've lost DRI :-(
>
--snip--
>
> Any hints?
>
> Thanks
> Sergio
Which kernel? Here, running 2.6.18, I compile the kernel drm, agpgart and
ati-agp. I then emerge x11-drm. In /etc/modules.autoload.d/kernel-2.6 I add;
agpgart, ati-agp, drm then radeon. In that specific order. Also, run eselect
opengl and be sure xorg-x11 is selected.
Now, I found it necessary to reboot the machine to reload everything in
correct order, before dri would work. It works pretty well too.
Cheers. Jerry
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [gentoo-user] DRI lost after modular X and gcc-4.1.1
2006-09-24 23:30 ` Jerry McBride
@ 2006-09-25 6:59 ` Sergio Polini
2006-09-25 10:42 ` Jerry McBride
0 siblings, 1 reply; 9+ messages in thread
From: Sergio Polini @ 2006-09-25 6:59 UTC (permalink / raw
To: gentoo-user
Jerry:
> Which kernel?
2.6.12-r10
(2.6.18 is masked ;-)
> Here, running 2.6.18, I compile the kernel drm,
> agpgart and ati-agp. I then emerge x11-drm. In
> /etc/modules.autoload.d/kernel-2.6 I add; agpgart, ati-agp, drm
> then radeon. In that specific order. Also, run eselect opengl and
> be sure xorg-x11 is selected.
I can't comile agpgart as a module, nor get ati-agp compiled.
When I make menuconfig:
--- /dev/agpgart (AGP Support) [I can't select it]
<M> Intel 440LX/BX/GX, I8xx and E7x05 chipset support
<M> Direct Rendering Manager (XFree86 4.1.0 and higher DRI support)
<M> ATI Radeon
after make, in /usr/src/linux/drivers/char/drm:
[root] ls -l ati*
-rw-r--r-- 1 root root 14061 25 feb 2006 ati-agp.c
[root] ls -l *.o
-rw-r--r-- 1 root root 49283 25 set 08:36 agpgart.o
-rw-r--r-- 1 root root 15728 25 set 08:36 amd64-agp.o
-rw-r--r-- 1 root root 12039 25 set 08:36 backend.o
-rw-r--r-- 1 root root 62203 25 set 08:36 built-in.o
-rw-r--r-- 1 root root 10944 25 set 08:36 frontend.o
-rw-r--r-- 1 root root 26452 25 set 08:36 generic.o
-rw-r--r-- 1 root root 7816 25 set 08:42 intel-agp.mod.o
-rw-r--r-- 1 root root 39056 25 set 08:36 intel-agp.o
-rw-r--r-- 1 root root 5704 25 set 08:36 isoch.o
How did you compile ati-agp?
Thanks
Sergio
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [gentoo-user] DRI lost after modular X and gcc-4.1.1
2006-09-25 6:59 ` Sergio Polini
@ 2006-09-25 10:42 ` Jerry McBride
2006-09-25 20:12 ` Sergio Polini
0 siblings, 1 reply; 9+ messages in thread
From: Jerry McBride @ 2006-09-25 10:42 UTC (permalink / raw
To: gentoo-user
On Monday 25 September 2006 02:59, Sergio Polini wrote:
> Jerry:
> > Which kernel?
>
> 2.6.12-r10
>
> (2.6.18 is masked ;-)
>
> > Here, running 2.6.18, I compile the kernel drm,
> > agpgart and ati-agp. I then emerge x11-drm. In
> > /etc/modules.autoload.d/kernel-2.6 I add; agpgart, ati-agp, drm
> > then radeon. In that specific order. Also, run eselect opengl and
> > be sure xorg-x11 is selected.
>
> I can't comile agpgart as a module, nor get ati-agp compiled.
> When I make menuconfig:
>
> --- /dev/agpgart (AGP Support) [I can't select it]
> <M> Intel 440LX/BX/GX, I8xx and E7x05 chipset support
> <M> Direct Rendering Manager (XFree86 4.1.0 and higher DRI support)
> <M> ATI Radeon
>
> after make, in /usr/src/linux/drivers/char/drm:
> [root] ls -l ati*
> -rw-r--r-- 1 root root 14061 25 feb 2006 ati-agp.c
> [root] ls -l *.o
> -rw-r--r-- 1 root root 49283 25 set 08:36 agpgart.o
> -rw-r--r-- 1 root root 15728 25 set 08:36 amd64-agp.o
> -rw-r--r-- 1 root root 12039 25 set 08:36 backend.o
> -rw-r--r-- 1 root root 62203 25 set 08:36 built-in.o
> -rw-r--r-- 1 root root 10944 25 set 08:36 frontend.o
> -rw-r--r-- 1 root root 26452 25 set 08:36 generic.o
> -rw-r--r-- 1 root root 7816 25 set 08:42 intel-agp.mod.o
> -rw-r--r-- 1 root root 39056 25 set 08:36 intel-agp.o
> -rw-r--r-- 1 root root 5704 25 set 08:36 isoch.o
>
> How did you compile ati-agp?
>
I selected it and then compiled them with make modules.
Jerry
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [gentoo-user] DRI lost after modular X and gcc-4.1.1
2006-09-24 21:33 [gentoo-user] DRI lost after modular X and gcc-4.1.1 Sergio Polini
2006-09-24 21:56 ` Richard Fish
2006-09-24 23:30 ` Jerry McBride
@ 2006-09-25 20:00 ` Benno Schulenberg
2 siblings, 0 replies; 9+ messages in thread
From: Benno Schulenberg @ 2006-09-25 20:00 UTC (permalink / raw
To: gentoo-user
Sergio Polini wrote:
> I've switched to modular X and gcc-4.1.1,
Better take such big upgrade steps one at a time. :)
> Kernel 2.6.12-r10
> x11-base/x11--drm 20060608
Do these two go together? Better upgrade to a newer kernel, at
least version 2.6.16.
> Any hints?
When you have the new kernel up, look at 'dmesg | egrep "agp|drm"'
to see whether the modules loaded correctly. You may need to set
AGP_AMD64 as a module, as it should probably load after the drm.
Benno
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [gentoo-user] DRI lost after modular X and gcc-4.1.1
2006-09-25 10:42 ` Jerry McBride
@ 2006-09-25 20:12 ` Sergio Polini
2006-09-26 2:51 ` Richard Fish
0 siblings, 1 reply; 9+ messages in thread
From: Sergio Polini @ 2006-09-25 20:12 UTC (permalink / raw
To: gentoo-user
Sorry, I can't understand...
Richard Fish:
> If you want DRI, you have two choices:
>
> 1. the open source radeon driver, with the in-kernel DRM driver.
> For this you need to turn on CONFIG_DRM and CONFIG_DRM_RADEON in
> your kernel configuration. This doesn't work for all chips yet
> AFAIK.
>
> 2. the proprietary ATI drivers. For this you don't change the
> kernel configuration, but add "fglrx" to VIDEO_CARDS, and change
> your xorg.conf driver from "radeon" to "fglrx".
But:
i) as to http://gentoo-wiki.com/HOWTO_DRI_with_ATi_Open-Source_Drivers
there is a third choise: CONFIG_DRM=n and emerge x11-drm;
ii) in http://www.ati.com/products/catalyst/linux.html:
Q7: What X-Windows versions are supported in this driver?
A7: Driver packages are available for XFree86 versions 4.1, 4.2, and
4.3, as well as X.Org 6.8.
So they shouldn't work with Xorg 7.* (actually I had DRI working with
Xorg 6.8....)
Jerry McBride:
> I compile the kernel drm, agpgart and
> ati-agp. I then emerge x11-drm.
But the kernel drm and x11-drm look as they are not to work together.
> > me:
> > How did you compile ati-agp?
>
> I selected it and then compiled them with make modules.
But I just can select "ATI radeon" if I select kernel drm:
<M> Direct Rendering Manager (XFree86 4.1.0 and higher DRI support)
<M> ATI Radeon
I do net get ati-agp compiled, and ... make modules should not be
needed for kernels 2.6.* ;-)
I'm a bit confused.....
Sergio
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [gentoo-user] DRI lost after modular X and gcc-4.1.1
2006-09-25 20:12 ` Sergio Polini
@ 2006-09-26 2:51 ` Richard Fish
2006-10-08 18:56 ` [gentoo-user] DRI lost... solved ;-) Sergio Polini
0 siblings, 1 reply; 9+ messages in thread
From: Richard Fish @ 2006-09-26 2:51 UTC (permalink / raw
To: gentoo-user
On 9/25/06, Sergio Polini <sp_rm_it@yahoo.it> wrote:
> i) as to http://gentoo-wiki.com/HOWTO_DRI_with_ATi_Open-Source_Drivers
> there is a third choise: CONFIG_DRM=n and emerge x11-drm;
Yes, that is also an option, although I generally prefer the in-kernel
drivers if they support my hardware and there is no compelling reason
to use the out-of-tree versions.
> ii) in http://www.ati.com/products/catalyst/linux.html:
> Q7: What X-Windows versions are supported in this driver?
> A7: Driver packages are available for XFree86 versions 4.1, 4.2, and
> 4.3, as well as X.Org 6.8.
The FAQ is out of date. Check the release notes for the current release:
https://a248.e.akamai.net/f/674/9206/0/www2.ati.com/drivers/linux/linux_8.29.6.html#172686
> I do net get ati-agp compiled, and ... make modules should not be
> needed for kernels 2.6.* ;-)
You might want to try a more recent kernel than 2.6.12. Since you
have a PCIe card/system, and probably have no AGP bridge to begin
with, you really don't need AGP support at all. A 2.6.18 kernel will
allow you to build the necessary DRM drivers without requiring AGP
support.
-Richard
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 9+ messages in thread
* [gentoo-user] DRI lost... solved ;-)
2006-09-26 2:51 ` Richard Fish
@ 2006-10-08 18:56 ` Sergio Polini
0 siblings, 0 replies; 9+ messages in thread
From: Sergio Polini @ 2006-10-08 18:56 UTC (permalink / raw
To: gentoo-user
I wish to thank Benno, Jerry and Richard for their help.
However, I've found another solution ;-)
I have presented my daughter with my HP dv5000z, and so I've got rid
of that irksome and ill-supported ATI Radeon XPRESS 200M.
I'm going to purchase a new HP dv2000 (Turion X2, Geforce 6150).
;-)
Thanks a lot!
Sergio
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2006-10-08 19:04 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-09-24 21:33 [gentoo-user] DRI lost after modular X and gcc-4.1.1 Sergio Polini
2006-09-24 21:56 ` Richard Fish
2006-09-24 23:30 ` Jerry McBride
2006-09-25 6:59 ` Sergio Polini
2006-09-25 10:42 ` Jerry McBride
2006-09-25 20:12 ` Sergio Polini
2006-09-26 2:51 ` Richard Fish
2006-10-08 18:56 ` [gentoo-user] DRI lost... solved ;-) Sergio Polini
2006-09-25 20:00 ` [gentoo-user] DRI lost after modular X and gcc-4.1.1 Benno Schulenberg
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox