Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Problems with DRI on an ibook G4 with ATI Radeon 9200
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC
View previous topic :: View next topic  
Author Message
lock_cda
n00b
n00b


Joined: 03 Mar 2007
Posts: 14

PostPosted: Sat Mar 03, 2007 1:38 pm    Post subject: Problems with DRI on an ibook G4 with ATI Radeon 9200 Reply with quote

Hi.

I've installed mesa and Xorg with AIGLX use, beryl and xfce4 but the problem is that X and Beryl takes a lot of cpu usage when i rotate the cube (more than 90% when i rotate the cube) or i do some other 3d window actions. It's not normal becouse glxinfo tells me that i'm using dri.

What could cause that? I don't know where to start.

That's my xorg.conf file:

iBookTuX lock_cda # cat /etc/X11/xorg.conf
Section "ServerLayout"
Identifier "XFree86 Configured"
Screen 0 "Screen0" 0 0
InputDevice "Mouse0" "CorePointer"
InputDevice "Keyboard0" "CoreKeyboard"
Option "AIGLX" "true"
EndSection

Section "Files"
#RgbPath "/usr/X11R6/lib/X11/rgb"
RgbPath "/usr/share/X11/"
#ModulePath "/usr/X11R6/lib/xorg/modules"
ModulePath "/usr/lib/xorg/modules"
#FontPath "/usr/X11R6/lib/X11/fonts/truetype"
FontPath "/usr/share/fonts/misc/"
#FontPath "/usr/X11R6/lib/X11/fonts/Speedo/"
FontPath "/usr/share/fonts/Type1/"
#FontPath "/usr/X11R6/lib/X11/fonts/CID/"
FontPath "/usr/share/fonts/75dpi/"
FontPath "/usr/share/fonts/100dpi/"
FontPath "/usr/X11R6/lib/xorg/modules/fonts"
EndSection

Section "Module"
Load "i2c"
Load "bitmap"
Load "ddc"
Load "extmod"
Load "dri"
Load "dbe"
Load "record"
Load "xtrap"
Load "glx"
#Load "speedo"
Load "type1"
#Load "fbdevhw"
Load "freetype"
Load "vbe"
Load "int10"
EndSection

Section "InputDevice"
Identifier "Keyboard0"
Driver "keyboard"
#Option "XkbKeycodes" "macintosh"
#Option "XkbGeometry" "macintosh"
#Option "XkbSymbols" "macintosh/us"
#Option "XkbKeycodes" "macintosh"
#Option "XkbSymbols" "macintosh/es"
#Option "XkbGeometry" "macintosh"
Option "XkbOptions" "lv3:lwin_switch"
#Option "XkbRules" "xfree86"
Option "XkbModel" "pc105"
#Option "LeftAlt" "Meta"
#Option "RightAlt" "LWin"
Option "XkbLayout" "es"
EndSection

Section "InputDevice"
Identifier "Mouse0"
Driver "mouse"
Option "Protocol" "IMPS/2"
Option "ZAxisMapping" "4 5"
Option "Device" "/dev/input/mice"
Option "Emulate3Buttons" "yes"
EndSection

# USB Mouse
Section "InputDevice"
Identifier "..."
Driver "mouse"
Option "Protocol" "IMPS/2"
Option "ZAxisMapping" "4 5" #wheel mapping
Option "Device" "/dev/input/mice"
Option "Emulate3Buttons" "yes"
EndSection

Section "Monitor"
Identifier "Monitor0"
VendorName "Monitor Vendor"
ModelName "Monitor Model"
#UseModes "Modes0"
#HorizSync 30-70
#VertRefresh 50-160
#Option "DPMS" "off" ####
DisplaySize 320.0 240.0 ####
Option "BlankTime" "9999"
EndSection

Section "Device"
### Available Driver options are:-
### Values: <i>: integer, <f>: float, <bool>: "True"/"False",
### <string>: "String", <freq>: "<f> Hz/kHz/MHz"
### [arg]: arg optional
Identifier "Card0"
Driver "radeon"
VendorName "ATI Technologies Inc"
BoardName "Radeon 9200 Mobility"
#BusID "PCI:0:16:0"
#VideoRam 65536
Screen 0
Option "AGPMode" "4"
Option "AGPFastWrite" "yes"
#Option "MergedFB" "true"
Option "BackingStore" "true"
Option "RenderAccel" "on"
#Option "AccelMethod" "EXA"
Option "BackingStore" "true"
#Option "ExaNoOffscreenPixmaps"
Option "EnablePageFlip" "On"
Option "LVDSProbePLL" "true"
Option "UseFWPLL" "true"
Option "DynamicClocks" "on"
#Option "XAANoOffscreenPixmaps" "true"
Option "CRT2Position" "Clone"
Option "CRT2HSync" "30-50"
Option "CRT2VRefresh" "43-60"
EndSection

Section "Extensions"
Option "Composite" "true"
Option "RENDER" "Enable"
EndSection

Section "Screen"
Identifier "Screen0"
Device "Card0"
Monitor "Monitor0"
DefaultDepth 24
SubSection "Display"
Depth 1
Modes "1024x768" "640x480" "800x600"
EndSubSection
SubSection "Display"
Depth 4
Modes "1024x768" "640x480" "800x600"
EndSubSection
SubSection "Display"
Depth 8
Modes "1024x768" "640x480" "800x600"
EndSubSection
SubSection "Display"
Depth 15
Modes "1024x768" "640x480" "800x600"
EndSubSection
SubSection "Display"
Depth 16
Modes "1024x768" "640x480" "800x600"
EndSubSection
SubSection "Display"
Depth 24
Modes "1024x768" "640x480" "800x600"
EndSubSection
EndSection

Section "DRI"
Group 0
Mode 0666
EndSection


And my warnigs or errors on /var/log/Xorg.0.log

iBookTuX lock_cda # cat /var/log/Xorg.0.log | egrep "EE|WW"
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(WW) `fonts.dir' not found (or not valid) in "/usr/X11R6/lib/xorg/modules/fonts".
(II) Loading extension MIT-SCREEN-SAVER
(WW) ****INVALID IO ALLOCATION**** b: 0xf0000400 e: 0xf00004ff correcting
(EE) end of block range 0xefffffff < begin 0xf0000000
(WW) RADEON(0): Video BIOS not detected in PCI space!
(WW) RADEON(0): Attempting to read Video BIOS from legacy ISA space!
(WW) RADEON(0): Unrecognized BIOS signature, BIOS data will not be used
(WW) RADEON(0): Video BIOS not detected, using default clock settings!
(WW) RADEON(0): Failed to detect secondary monitor, MergedFB/Clone mode disabled
(WW) RADEON(0): Panel size 1024x768 is derived, this may not be correct.
(WW) RADEON(0): Probed monitor is 240x180 mm, using Displaysize 320x240 mm
(WW) RADEON(0): DRI init changed memory map, adjusting ...
(WW) RADEON(0): MC_FB_LOCATION was: 0x9bff9800 is: 0x9bff9800
(WW) RADEON(0): MC_AGP_LOCATION was: 0xffffffc0 is: 0x9c7f9c00
(WW) RADEON(0): Option "UseFWPLL" is not used
(WW) RADEON(0): Option "BlankTime" is not used
(WW) AIGLX: 3D driver claims to not support visual 0x23
(WW) AIGLX: 3D driver claims to not support visual 0x24
(WW) AIGLX: 3D driver claims to not support visual 0x25
(WW) AIGLX: 3D driver claims to not support visual 0x26
(WW) AIGLX: 3D driver claims to not support visual 0x27
(WW) AIGLX: 3D driver claims to not support visual 0x28
(WW) AIGLX: 3D driver claims to not support visual 0x29
(WW) AIGLX: 3D driver claims to not support visual 0x2a
(WW) AIGLX: 3D driver claims to not support visual 0x2b
(WW) AIGLX: 3D driver claims to not support visual 0x2c
(WW) AIGLX: 3D driver claims to not support visual 0x2d
(WW) AIGLX: 3D driver claims to not support visual 0x2e
(WW) AIGLX: 3D driver claims to not support visual 0x2f
(WW) AIGLX: 3D driver claims to not support visual 0x30
(WW) AIGLX: 3D driver claims to not support visual 0x31
(WW) AIGLX: 3D driver claims to not support visual 0x32

Thanks for your help!.
Back to top
View user's profile Send private message
lock_cda
n00b
n00b


Joined: 03 Mar 2007
Posts: 14

PostPosted: Sun Mar 04, 2007 10:18 am    Post subject: More information about Reply with quote

Well, tonight I was compiling openoffice (which failed xD) and I ran glxgears, the surprise was that FPS go down from 1000FPS to 200FPS when I'm compiling what possibly tells that the problem is from mesa. Now I'm recompiling it with debug USE flag.

That's my make.conf

iBookTuX lock_cda # cat /etc/make.conf

CHOST="powerpc-unknown-linux-gnu"

#gcc optimization flags
CFLAGS="-O3 -mcpu=7450 -mtune=G4 -maltivec -mabi=altivec -fno-strict-aliasing \
-pipe -mpowerpc-gfxopt -fomit-frame-pointer"
CXXFLAGS="${CFLAGS} -fpermissive"

#Custom USE flags
USE="avi altivec \
bzlib \
cdr cups \
dvd dvdread \
bcon fftw fortran ftp \
gif gimp gtk2 \
icc imagemagick \
java javacomm jpeg \
-kde \
mad mime mozsvg mp3 mpeg mpeg4 \
ncurses \
opengl \
pda pdflib plotutils png pwdb \
radeon \
sysfs \
tidy tiff truetype \
unicode usb \
vcd \
wifi \
xscreensaver \
zlib \
dri aiglx \
acpi apm pmu \
-gnome msn"

#LINGUAS (llenguatge)
LINGUAS="ca" #Català

#Specify gentoo mirrors
GENTOO_MIRRORS="http://cudlug.cudenver.edu/gentoo \
http://mirrors.acm.cs.rpi.edu/gentoo"

CONFIG_MAC_EMUMOUSEBTN=y

#Variables per compilar X.org ...
VIDEO_CARDS="radeon"
INPUT_DEVICES="kbd mouse"

#rsync host for syncing the portage tree

# PORT_LOGDIR is the location where portage will store all the logs it
# creates from each individual merge. They are stored as YYMMDD-$PF.log
# in the directory specified. This is disabled until you enable it by
# providing a directory. Permissions will be modified as needed IF the
# directory exists, otherwise logging will be disabled.
PORT_LOGDIR=/var/log/portage

PORTAGE_NICENESS="19"

#RSYNC_EXCLUDEFROM=/etc/portage/rsync_excludes
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"

Actually, if I call LIBGL_DEBUG=verbose glxinfo mesa says that all is going ok and that's true because of beryl works with real transparences and with a lot effects but not using drm.

When mesa ends compiling with debugging I'll tell something more about the problem. Anywat could be a Xorg problem.

PD: now that I have seen that it's possibly a mesa problem I don't know if that's a ppc specific problem. If moderators think that not, tell me and I'll move the posts (if I can) or move twice posts by your way.

PD2: I'm spanish and my english sucks... :S I'm sorry if you can't understand something.
Back to top
View user's profile Send private message
JoseJX
Retired Dev
Retired Dev


Joined: 28 Apr 2002
Posts: 2774

PostPosted: Sun Mar 04, 2007 4:14 pm    Post subject: Reply with quote

These cflags are useless with your -O level:
-mpowerpc-gfxopt -fomit-frame-pointer

There is no reason to be surprised about glxgears performance, it is not a benchmark and is CPU dependent. I can't help with beryl since I'm not using it. You may want to check with beryl upstream to see if what you are seeing is normal.
_________________
Gentoo PPC FAQ: http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml
Back to top
View user's profile Send private message
lock_cda
n00b
n00b


Joined: 03 Mar 2007
Posts: 14

PostPosted: Sun Mar 04, 2007 9:09 pm    Post subject: Not mesa Reply with quote

Hi again;

thanks for your answer JoseJX and thanks for the cflags observation, I'm going to edit my make.confv now :).

Like you told, it's not a mesa problem. A lot of mesa drivers loads well when X start (libGL.so returns an error which don't affect on my problem and r200_dri.so don't give up any errors) and it seems to be a beryl bug... possibly, as I read in beryl forums, an especific beryl with ati bug. Does it mean that I would must wait for a new beryl releases?

Anyway... how could I see the beryl upstream? That's firsts time I work with beryl, I'm sorry for my ignorance.

Thanks for your help again.
Back to top
View user's profile Send private message
JoseJX
Retired Dev
Retired Dev


Joined: 28 Apr 2002
Posts: 2774

PostPosted: Mon Mar 05, 2007 3:07 am    Post subject: Reply with quote

If it's a problem with beryl, then yes, you'd probably have to wait for upstream to release a fixed version with that.

Typing beryl into google found their homepage:
http://www.beryl-project.org/

Maybe you can ask on their forums?
http://forum.beryl-project.org/
_________________
Gentoo PPC FAQ: http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml
Back to top
View user's profile Send private message
lock_cda
n00b
n00b


Joined: 03 Mar 2007
Posts: 14

PostPosted: Mon Mar 05, 2007 8:02 am    Post subject: OK, thanks for all :) Reply with quote

Thank you for all your answers!!

I'm sorry because my english sucks a lot and I didn't understand the meaning of upstream XDDD.

Anyway I'm going to beryl forums.

See you soon.
Back to top
View user's profile Send private message
ndansmith
n00b
n00b


Joined: 01 Aug 2005
Posts: 60

PostPosted: Mon Mar 05, 2007 9:15 pm    Post subject: Re: OK, thanks for all :) Reply with quote

lock_cda wrote:
I'm sorry because my english sucks a lot and I didn't understand the meaning of upstream XDDD.

Anyway I'm going to beryl forums.
"Upstream" in this context basically means the project itself (namely Beryl). So by going to the beryl forums you are doing what JoseJX suggested. :D
Back to top
View user's profile Send private message
issiah
n00b
n00b


Joined: 23 Aug 2005
Posts: 11
Location: canada

PostPosted: Wed Mar 21, 2007 6:10 pm    Post subject: Reply with quote

take a look at your ppc flags 7450 and G4. I think they sould be the same. I have mine set to the same. one is generic the other is specific.
ih.
_________________
hfaaa488%
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC All times are GMT
Page 1 of 1

 
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