Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[how-to] 3d hardware acc with ati open source driver.
View unanswered posts
View posts from last 24 hours

Goto page Previous  1, 2, 3 ... 17, 18, 19 ... 27, 28, 29  Next  
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
kernelOfTruth
Watchman
Watchman


Joined: 20 Dec 2005
Posts: 6111
Location: Vienna, Austria; Germany; hello world :)

PostPosted: Sat Jul 10, 2010 4:27 pm    Post subject: Reply with quote

pingufunkybeat wrote:
You can enable s3tc in driconf.

I have no idea where to find the libtxc library.


use the bugzillla young tux ;)

https://bugs.gentoo.org/show_bug.cgi?id=65607
_________________
https://github.com/kernelOfTruth/ZFS-for-SystemRescueCD/tree/ZFS-for-SysRescCD-4.9.0
https://github.com/kernelOfTruth/pulseaudio-equalizer-ladspa

Hardcore Gentoo Linux user since 2004 :D
Back to top
View user's profile Send private message
sonicwim
n00b
n00b


Joined: 28 Jan 2005
Posts: 26
Location: Wevelgem, Belgium

PostPosted: Thu Jul 29, 2010 1:28 pm    Post subject: Errors digesting ebuild Reply with quote

Hello,

First of all I wonder how up to date the first page of this thread still is because I've decided to give it a try after having a working setup with an Radeon HD 4870 using fglrx going haywire on... Especially in GTK+ based applications, Qt4 is doing a lot better. Compiz still works, except for the occasional borders that dissapear.
I've used the x11 overlay and a lot of swearing to get this working... :)

Relevant files and info:

xorg.conf
Code:
Section "Files"
   ModulePath   "/usr/lib/xorg/modules"
   ModulePath   "/usr/lib/opengl/xorg-x11/extensions"
EndSection

Section "Module"
   Load  "dbe"
   Load  "dri2"
   Load  "record"
   Load  "dri"
   Load  "extmod"
   Load  "glx"
EndSection

Section "ServerFlags"
   Option       "AIGLX" "On"
EndSection

Section "Device"
   Identifier  "Device0"
   Driver      "fglrx"
   VendorName  "ATI"
   BoardName   "Radeon 4870"
   Option       "XAANoOffscreenPixmaps" "true"
   Option      "AddARGBGLXVisuals" "true"
   Option      "DynamicClocks" "on"
   Option      "UseFastTLS" "0"
   BusID       "PCI:1:0:0"
EndSection

Section "DRI"
   Group        "video"
   Mode         0660
EndSection

Section "Extensions"
   Option       "Composite" "Enable"
EndSection

package.use
Code:
# Compiz stuff
x11-libs/libX11 xcb
media-libs/mesa xcb
x11-libs/cairo xcb svg
x11-wm/compiz-fusion emerald

package.keywords
Code:
# ATI card stuff
x11-drivers/ati-drivers
x11-libs/libdrm

# Compiz and Emerald stuff
dev-libs/protobuf
dev-util/intltool
dev-python/compizconfig-python
x11-apps/ccsm
x11-libs/libcompizconfig
x11-libs/compizconfig-backend-gconf
x11-libs/compizconfig-backend-kconfig
x11-libs/compizconfig-backend-kconfig4
x11-libs/compiz-bcop
x11-plugins/compiz-plugins-main
x11-plugins/compiz-plugins-extra
x11-plugins/compiz-plugins-unsupported
x11-themes/emerald-themes
x11-wm/compiz
x11-wm/compiz-fusion
x11-wm/emerald
x11-apps/simple-ccsm

make.conf
Code:
VIDEO_CARDS="vesa fglrx radeon radeonhd nouveau"

Since about a week now KDE is not repainting it's windows as it should, sometimes a lot of areas of a window just go blank and you have to either move the mouse over that area (and then only the item like an icon or a sting gets repainted/refreshed) or switch to another window and back again and this is irritating the crap out of me! :evil:
Code:
pingu ~ # ebuild /usr/local/portage/media-libs/mesa/mesa-9999.ebuild digest
/usr/local/portage/media-libs/mesa/mesa-9999.ebuild: line 203: syntax error near unexpected token `||'
/usr/local/portage/media-libs/mesa/mesa-9999.ebuild: line 203: `                || die "Removing glew includes failed."                           '
 * ERROR: media-libs/mesa-9999 failed:
 *   error sourcing ebuild
 *
 * Call stack:
 *   ebuild.sh, line 1881:  Called die
 * The specific snippet of code:
 *                      source "$EBUILD" || die "error sourcing ebuild"
 *
 * If you need support, post the output of 'emerge --info =media-libs/mesa-9999',
 * the complete build log and the output of 'emerge -pqv =media-libs/mesa-9999'.
 * This ebuild is from an overlay: '/usr/local/portage/'
 * S: '/var/tmp/portage/media-libs/mesa-9999/work/Mesa-9999'

If you need some other info (kernel config, logfiles...) just let me know...

Wimmy
Back to top
View user's profile Send private message
hedmo
Veteran
Veteran


Joined: 29 Aug 2009
Posts: 1305
Location: sweden

PostPosted: Fri Jul 30, 2010 10:47 am    Post subject: Reply with quote

sonicwim

do not set fglrx and open sources driver in make.conf (just fglrx or radeon).

i recomend to use fglrx because its easy to setup in kde but if you want to use newer xorg go with
radeon and only radeon in make.conf radeonhd is no good

decide witch driver you want to use and lets go from there
Back to top
View user's profile Send private message
pingufunkybeat
l33t
l33t


Joined: 01 Dec 2004
Posts: 610

PostPosted: Fri Jul 30, 2010 12:24 pm    Post subject: Reply with quote

with your card, you will get functioning 3d acceleration with a recent kernel and libdrm, xf86-video-ati and mesa from portage. Preferably using ~x86 or ~amd64.

I suggest trying to get this working first. You can remove xorg.conf while testing, it is not needed with free drivers. Keep in mind that fglrx and the radeon drivers do not like each other, and it's recommended to remove fglrx before installing the free drivers (especially mesa).

If that works, you can switch to the ebuilds from this thread in order to get the bleeding edge git versions.

KDE works like a charm using free drivers, far better than with fglrx. But you're limited to OpenGL 2.0, and the 3d performance is not as good for games.
Back to top
View user's profile Send private message
sonicwim
n00b
n00b


Joined: 28 Jan 2005
Posts: 26
Location: Wevelgem, Belgium

PostPosted: Sat Jul 31, 2010 10:58 am    Post subject: Reply with quote

Hey hedmo,

I've tried what you suggested and at first it seemed to work but then I tried pingufunkybeat's suggestion but this did not work so I switched back to just fglrx and my problem was back again! :-(
Kinda odd...

pingufunkybeat,

I also noticed a few months ago that xorg.conf is not longer needed but now I also remember what pissed me off then: if I start xdm without an xorg.conf I don't get a window manager but my virtual consoles are also gone then so I have to reset my machine. At first I thought I had just no visual so I tried switching back to the virtual console and stopping xdm but that's not working either.

Xorg.log does not give me any errors so I can't tell what the problem is...

And I don't really care about if the driver is open source, free or anything, I'd just like a working setup.
Preformance is aslo not an issue, I still use Windows for gaming.

Regards,

Wimmy

PS: You'll probably have to wait a few weeks for a reaction because I'm leaving for a 2 week holiday tomorrow. I better start packing! :-D
Back to top
View user's profile Send private message
pingufunkybeat
l33t
l33t


Joined: 01 Dec 2004
Posts: 610

PostPosted: Sat Jul 31, 2010 3:13 pm    Post subject: Reply with quote

You can only remove xorg.conf with the free drivers. You still need xorg.conf for fglrx.

If you can give more details about what did not work, we can help you debug the free drivers. I don't have any experience with fglrx, so I can't help there.
Back to top
View user's profile Send private message
sonicwim
n00b
n00b


Joined: 28 Jan 2005
Posts: 26
Location: Wevelgem, Belgium

PostPosted: Sat Jul 31, 2010 4:41 pm    Post subject: Reply with quote

I've did some more diggin' on the net and now it seems to work!

I've put this in /make.conf:
Code:
VIDEO_CARDS="fbdev vesa radeonhd radeon r600"

Tossed /etc/X11/xorg.conf

Then I quit X and stopped it, unmerged and emerged some stuff:
Code:
emerge -C ati-drivers
emerge -1va mesa mesa-progs libdrm xf86-video-ati[/

After a reboot I could start X without a problem.

Now I just need to get Compiz working again, can anyone point me in the right direction because normally you have to add some stuff in xorg.conf but now that file is gone... :-s

Thanks for the help so far!

Wimmy
Back to top
View user's profile Send private message
pingufunkybeat
l33t
l33t


Joined: 01 Dec 2004
Posts: 610

PostPosted: Sat Jul 31, 2010 4:59 pm    Post subject: Reply with quote

Compiz should simply work. What happens when you start X in failsafe mode and try to launch compiz from the xterm? Any errors?

Give us the output of "glxinfo |grep ender". That will tells us more about your current setup.

Also, you can remove anything from your "VIDEO_CARDS" other than "radeon vesa". RadeonHD driver is deprecated and the rest isn't needed.
Back to top
View user's profile Send private message
sonicwim
n00b
n00b


Joined: 28 Jan 2005
Posts: 26
Location: Wevelgem, Belgium

PostPosted: Sat Jul 31, 2010 10:21 pm    Post subject: Reply with quote

As requested:
Code:
pingu ~ # cat compiz.err
IRQ's not enabled, falling back to busy waits: 2 0
compiz (core) - Fatal: GLX_EXT_texture_from_pixmap is missing
compiz (core) - Error: Failed to manage screen: 0
compiz (core) - Fatal: No manageable screens found on display :0.0
pingu ~ # glxinfo | grep ender
IRQ's not enabled, falling back to busy waits: 2 0
direct rendering: Yes
OpenGL renderer string: Mesa DRI R600 (RV770 9440) 20090101 x86/MMX/SSE2 TCL

And the VIDEO_CARDS has been adjusted...

I already tried a few suggested solutions like exporting your library path or the libGL but this does not seem to work...

GLX_EXT_texture_from_pixmap shows up twice in glxinfo so it's out there somewhere! :-)
Back to top
View user's profile Send private message
pingufunkybeat
l33t
l33t


Joined: 01 Dec 2004
Posts: 610

PostPosted: Sun Aug 01, 2010 12:11 am    Post subject: Reply with quote

The good news is that you have hardware acceleration working -- you are using accelerated DRI path and not the software rasterizer. So the driver is working.

The bad news is that compiz is not working, and this is a bit odd. The driver should certainly be able to handle it.

Which kernel are you using? If not, I suggest switching to 2.6.34 (or 35, which is coming out one of these days). Also, I notice that you are using the older user mode switching (DRI), which will only give you OpenGL 1.5. You can enable kernel modesetting by default in your kernel config (it's under staging drivers), then you'll get OpenGL 2.0 and DRI2. This might be worth a try, but I'm not sure if Compiz needs it.

You should try to see if simple 3d applications: glxgears, openarena, supertuxkart, neverball, etc. work.

Also, could you post the output of:

equery l libdrm
equery l mesa
equery l xf86-video-ati
dmesg | grep drm
Back to top
View user's profile Send private message
pingufunkybeat
l33t
l33t


Joined: 01 Dec 2004
Posts: 610

PostPosted: Sun Aug 01, 2010 1:30 am    Post subject: Reply with quote

Also, run this as root:

eselect opengl set xorg-x11
Back to top
View user's profile Send private message
hedmo
Veteran
Veteran


Joined: 29 Aug 2009
Posts: 1305
Location: sweden

PostPosted: Mon Aug 02, 2010 7:59 pm    Post subject: Reply with quote

I belive compiz is not working because of low fps got to get over
1000fps to start compiz.


Code: glxgears
Back to top
View user's profile Send private message
pingufunkybeat
l33t
l33t


Joined: 01 Dec 2004
Posts: 610

PostPosted: Mon Aug 02, 2010 8:26 pm    Post subject: Reply with quote

No way.

I don't get 1000 fps in gears, and I'm running KWin GL effects just fine.

Glxgears numbers are worthless.
Back to top
View user's profile Send private message
hedmo
Veteran
Veteran


Joined: 29 Aug 2009
Posts: 1305
Location: sweden

PostPosted: Tue Aug 03, 2010 7:58 am    Post subject: Reply with quote

jepp kwin works just fine .but when switch from classic to gallium my fps dropping to 30 fps
and compic is gone


pingufunkybeat wrote: Glxgears numbers are worthless.

maybe but for me it has always been a guideline to start compiz

sonicwim

if you want to try fglrx here a quick howto

emerge -av xorg-server ati-drivers

/opt/bin/aticonfig --initial --input=/etc/X11/xorg.conf

eselect opengl set ati

emerge portage: qlist -I -C x11drivers/



/opt/bin/aticonfig --initial --input=/etc/X11/xorg.conf is the same as Xorg -configure=building a default xorg.conf
Back to top
View user's profile Send private message
pingufunkybeat
l33t
l33t


Joined: 01 Dec 2004
Posts: 610

PostPosted: Tue Aug 03, 2010 8:10 am    Post subject: Reply with quote

Gallium for r600 is far from ready. It's a wonder if it works at all.
Back to top
View user's profile Send private message
hedmo
Veteran
Veteran


Joined: 29 Aug 2009
Posts: 1305
Location: sweden

PostPosted: Tue Aug 03, 2010 8:44 am    Post subject: Reply with quote

it should work i am on rv350 and gallium works if i set xinerama "on " in xorg.conf outherwise i get seg...fault
but if i set it =no compiz so i use:

eselect mesa set r300 classic

eselect mesa set sw gallium
Back to top
View user's profile Send private message
pingufunkybeat
l33t
l33t


Joined: 01 Dec 2004
Posts: 610

PostPosted: Tue Aug 03, 2010 9:18 am    Post subject: Reply with quote

Yeah, but r300c is a completely different and much more mature driver which has worked for ages.

sonicwim (and most of the other people in here) needs to use r600c, which was experimental until very recently.
Back to top
View user's profile Send private message
DaggyStyle
Watchman
Watchman


Joined: 22 Mar 2006
Posts: 5909

PostPosted: Tue Aug 03, 2010 11:02 am    Post subject: Reply with quote

pingufunkybeat wrote:
Gallium for r600 is far from ready. It's a wonder if it works at all.

define works.
if you mean displays screen, can see vids, not needed for hardcore games then yes, I'm using it from the initial commit on 3450M and 3650 and it works.
if you mean compiz and it likes and gaming, then no, it isn't ready.

note that I'm using latest non rc kernel, mesa, libdrm and xf86-video-ati from svn/git.
_________________
Only two things are infinite, the universe and human stupidity and I'm not sure about the former - Albert Einstein
Back to top
View user's profile Send private message
pingufunkybeat
l33t
l33t


Joined: 01 Dec 2004
Posts: 610

PostPosted: Tue Aug 03, 2010 11:27 am    Post subject: Reply with quote

What I meant was "if it works with Compiz/KWin at all", since we were talking about that.

But r600g is shaping up nicely, and I'm looking forward to it. Apparently, you can even run OpenArena with it, but there are textures missing and stuff.
Back to top
View user's profile Send private message
ssteinberg
Apprentice
Apprentice


Joined: 09 Jul 2010
Posts: 206
Location: Israel

PostPosted: Tue Aug 03, 2010 11:45 am    Post subject: Reply with quote

r600 Gallium seg faults on glxgears for me so it is far far from ready to run anything correctly.
Also r600 with OS drivers has no support what-so-ever for DXT compression (aka S3TC) and requires pre-compressed textures, so games who retardly enough don't supply precompressed textures (like Regnum) won't work without ATi's drivers. Driconf and libtxc will give you the S3TC_texture_compression extension, but it can't compress textures on r600 with git mesa. This and lack of GLSL >1.1 support is a big turn off if you are planning on doing gaming.
I also had trouble with Compiz on OS drivers but metacity's composition works just fine. And it has absolutely nothing to do with meaningless glxgears score, which is only useful to determine whether or not hardware acceleration actually works.
Back to top
View user's profile Send private message
sonicwim
n00b
n00b


Joined: 28 Jan 2005
Posts: 26
Location: Wevelgem, Belgium

PostPosted: Sun Aug 15, 2010 3:54 pm    Post subject: Reply with quote

Hello,

I'm back now and I saw this is quite hot a topic for some of you... :)

Anyway, I've got some answering to do so here goes:

    I've been using 2.6.34 from the middle of July but I cannot find anything concerning kernel modesetting under Staging drivers... What is the symbol string for it in the .config file?
    Code:
    pingu ~ # uname -a
    Linux pingu 2.6.34-gentoo-r1 #5 SMP Sat Jul 17 15:57:43 CEST 2010 i686 Intel(R) Core(TM)2 Quad CPU Q9550 @ 2.83GHz GenuineIntel GNU/Linux

    glxgears works but clearly uses CPU rendering, the framerates are too low and CPU usage spikes to 100% when I run it... :?
    Code:
    pingu ~ # equery l libdrm
    [ Searching for package 'libdrm' in all categories among: ]
     * installed packages
    [I--] [  ] x11-libs/libdrm-2.4.20-r1 (0)
    pingu ~ # equery l mesa
    [ Searching for package 'mesa' in all categories among: ]
     * installed packages
    [I--] [  ] media-libs/mesa-7.8.2 (0)
    [I--] [  ] x11-apps/mesa-progs-7.7 (0)
    pingu ~ # equery l xf86-video-ati
    [ Searching for package 'xf86-video-ati' in all categories among: ]
     * installed packages
    [I--] [  ] x11-drivers/xf86-video-ati-6.13.0 (0)
    pingu ~ # dmesg | grep drm
    [drm] Initialized drm 1.1.0 20060810
    [drm] radeon defaulting to userspace modesetting.
    [drm] Initialized radeon 1.33.0 20080528 for 0000:01:00.0 on minor 0
    [drm] Setting GART location based on new memory map
    [drm] Loading RV770 CP Microcode
    [drm] Resetting GPU
    [drm] writeback test succeeded in 1 usecs
Wimmy
Back to top
View user's profile Send private message
DaggyStyle
Watchman
Watchman


Joined: 22 Mar 2006
Posts: 5909

PostPosted: Sun Aug 15, 2010 4:13 pm    Post subject: Reply with quote

sonicwim wrote:
Hello,

I'm back now and I saw this is quite hot a topic for some of you... :)

Anyway, I've got some answering to do so here goes:

    I've been using 2.6.34 from the middle of July but I cannot find anything concerning kernel modesetting under Staging drivers... What is the symbol string for it in the .config file?
    Code:
    pingu ~ # uname -a
    Linux pingu 2.6.34-gentoo-r1 #5 SMP Sat Jul 17 15:57:43 CEST 2010 i686 Intel(R) Core(TM)2 Quad CPU Q9550 @ 2.83GHz GenuineIntel GNU/Linux

    glxgears works but clearly uses CPU rendering, the framerates are too low and CPU usage spikes to 100% when I run it... :?
    Code:
    pingu ~ # equery l libdrm
    [ Searching for package 'libdrm' in all categories among: ]
     * installed packages
    [I--] [  ] x11-libs/libdrm-2.4.20-r1 (0)
    pingu ~ # equery l mesa
    [ Searching for package 'mesa' in all categories among: ]
     * installed packages
    [I--] [  ] media-libs/mesa-7.8.2 (0)
    [I--] [  ] x11-apps/mesa-progs-7.7 (0)
    pingu ~ # equery l xf86-video-ati
    [ Searching for package 'xf86-video-ati' in all categories among: ]
     * installed packages
    [I--] [  ] x11-drivers/xf86-video-ati-6.13.0 (0)
    pingu ~ # dmesg | grep drm
    [drm] Initialized drm 1.1.0 20060810
    [drm] radeon defaulting to userspace modesetting.
    [drm] Initialized radeon 1.33.0 20080528 for 0000:01:00.0 on minor 0
    [drm] Setting GART location based on new memory map
    [drm] Loading RV770 CP Microcode
    [drm] Resetting GPU
    [drm] writeback test succeeded in 1 usecs
Wimmy

it was moved out from there in 34, look under Device Drivers ---> Graphics support ---> Direct Rendering Manager (XFree86 4.1.0 and higher DRI support) ---> ATI Radeon
_________________
Only two things are infinite, the universe and human stupidity and I'm not sure about the former - Albert Einstein
Back to top
View user's profile Send private message
Kingoftherings
Guru
Guru


Joined: 04 May 2008
Posts: 328

PostPosted: Mon Aug 16, 2010 3:57 pm    Post subject: Reply with quote

ssteinberg wrote:
This and lack of GLSL >1.1 support is a big turn off if you are planning on doing gaming.


Just recently OpenGL 2.1 and GLSL 1.2 were enabled for r600 classic in mesa's git repo.
So now glsl will work in wine because it ignores any version less than 1.2.
Back to top
View user's profile Send private message
ssteinberg
Apprentice
Apprentice


Joined: 09 Jul 2010
Posts: 206
Location: Israel

PostPosted: Mon Aug 16, 2010 4:53 pm    Post subject: Reply with quote

Kingoftherings wrote:
ssteinberg wrote:
This and lack of GLSL >1.1 support is a big turn off if you are planning on doing gaming.


Just recently OpenGL 2.1 and GLSL 1.2 were enabled for r600 classic in mesa's git repo.
So now glsl will work in wine because it ignores any version less than 1.2.


Yeah, have GLSL 1.2 now with git.
Back to top
View user's profile Send private message
sonicwim
n00b
n00b


Joined: 28 Jan 2005
Posts: 26
Location: Wevelgem, Belgium

PostPosted: Tue Aug 17, 2010 8:36 am    Post subject: Reply with quote

I've enabled mode setting in the the kernel but after a reboot there were some complaints that firmware bit R700_rlc.bin could not be loaded.

So I did some more searching and used a firmware file that I found int this thread: https://forums.gentoo.org/viewtopic-t-815801-highlight-r700rlc+bin.html but then my screen goes blank after the card has been initialised at boot time or should I call it shot down because after a few minutes my box starts beeping and resets itself. I can't find any errors in the messages file either.

Now I'm using my older kernel because even after clearing the EXTRA_FIRMWARE and EXTRA_FIRMWARE_DIR (the file itself I've put in /lib/firmware/radeon) I still can't boot again with kernel 2.6.34... :?

I guess God hates me or something like that! :D

Wimmy
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Unsupported Software All times are GMT
Goto page Previous  1, 2, 3 ... 17, 18, 19 ... 27, 28, 29  Next
Page 18 of 29

 
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