Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
DRI (modular-X) on IBook G4... what works and what does not
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
nibiru
n00b
n00b


Joined: 09 Jun 2005
Posts: 38

PostPosted: Fri Mar 24, 2006 10:55 am    Post subject: DRI (modular-X) on IBook G4... what works and what does not Reply with quote

After some time (and debug) I managed to have both audio and DRI working on my IBook G4.

I'm using kernel 2.6.16-gentoo, DRI seems to work (I get "only" 937 fps on glxgears), but VTs seem to have died.

I can't change to terminals anymore, ctrl + alt + Fx just gives me a blank screen. Indee I can return to KDE with F7, as usual.

Also MOL doesn't show any graphics...

Someone got it working? Any hints for this behaviour?

Regards.
Back to top
View user's profile Send private message
JoseJX
Retired Dev
Retired Dev


Joined: 28 Apr 2002
Posts: 2774

PostPosted: Fri Mar 24, 2006 4:53 pm    Post subject: Reply with quote

Are you using bootsplash? There are known issues with that combination.
_________________
Gentoo PPC FAQ: http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml
Back to top
View user's profile Send private message
thouters
n00b
n00b


Joined: 14 Sep 2005
Posts: 20
Location: Belgium

PostPosted: Fri Mar 24, 2006 7:21 pm    Post subject: Reply with quote

Hi, I just emerged modular X on my iBook G4, what did you do to get dri working?
I get errors (for X = 0 to 255) like this one:
drmOpenDevice: node name is /dev/dri/cardX
drmOpenDevice: open result is -1, (No such device)
drmOpenDevice: open result is -1, (No such device)
Is there a special kernel driver needed, or mesa (I'm using the mesa ebuild form portage).

Tia
Back to top
View user's profile Send private message
thouters
n00b
n00b


Joined: 14 Sep 2005
Posts: 20
Location: Belgium

PostPosted: Fri Mar 24, 2006 11:08 pm    Post subject: Reply with quote

Update: I loaded uninorth-agp.

Agp is now enabled but fast writes seem to be disabled from the looks of the Xorg.0.log.
I get 417 at best when I run glxgears. glxinfo says that direct rendering is enabled.
Back to top
View user's profile Send private message
nibiru
n00b
n00b


Joined: 09 Jun 2005
Posts: 38

PostPosted: Sat Mar 25, 2006 7:33 am    Post subject: Reply with quote

JoseJX wrote:
Are you using bootsplash? There are known issues with that combination.


No, just text.

I'm using bootlogo... does it matter?

Thanks.
Back to top
View user's profile Send private message
nibiru
n00b
n00b


Joined: 09 Jun 2005
Posts: 38

PostPosted: Sat Mar 25, 2006 7:35 am    Post subject: Reply with quote

thouters wrote:
Update: I loaded uninorth-agp.

Agp is now enabled but fast writes seem to be disabled from the looks of the Xorg.0.log.
I get 417 at best when I run glxgears. glxinfo says that direct rendering is enabled.


Don't remember about fast writes.

In order to get DRI work, I had to:

- Load agpgart and uninorth as modules (no way if inserted into kernel)
- Change the reference to OpenGL libraries (ie glx looks for them elsewhere, not where stated in the guide of the forum).

What iBook model is yours?

Mine is the latest one, 12 inches (I bought it some weeek ago).
Back to top
View user's profile Send private message
Cenrim
Tux's lil' helper
Tux's lil' helper


Joined: 04 Dec 2004
Posts: 142
Location: Germany

PostPosted: Sat Mar 25, 2006 12:06 pm    Post subject: Reply with quote

enabling page flip in xorg.conf made a nice performance boost for me (iBook G4 1.2GHz, feb 2005)
Code:
Section "Device"
    Identifier  "[radeon]"
    Driver      "radeon"
#    ChipID      0x5c63 <- Radeon Mobility 9200 (AGP)
    Option      "AGPMode"       "4"           
 Option "EnablePageFlip"        "True" 
    Option      "Accel"         "True"
    Option      "RenderAccel"   "on"
#    Option     "AllowGLXWithComposite" "true"  # got composite disabled, so this would only give me a warning
    Screen      0
EndSection


and by using /etc/modules.autoload.d/kernel-2.6 you can make sure the modules are loaded (in the right order) before X is started
Code:
 $ cat /etc/modules.autoload.d/kernel-2.6
# /etc/modules.autoload.d/kernel-2.6:  kernel modules to load when system boots.
#
# Note that this file is for 2.6 kernels.
#
# Add the names of modules that you'd like to load when the system
# starts into this file, one per line.  Comments begin with # and
# are ignored.  Read man modules.autoload for additional details.

# For example:
# 3c59x
agpgart
uninorth_agp
drm
radeon

_________________
[/garbage]
Back to top
View user's profile Send private message
thouters
n00b
n00b


Joined: 14 Sep 2005
Posts: 20
Location: Belgium

PostPosted: Sat Mar 25, 2006 1:18 pm    Post subject: Reply with quote

I have the modules loaded correctly, and pageflip enabled (the xorg config posted here matches).
I'm using an iBook G4 (bought new in september '05): PowerBook6,7
I'm using modular X (regular), mesa ebuild from breakmygentoo (i think) 6.4.3_alpha20060216
xf86-video-ati from cvs (yeah I guess the normal ebuild should have been just fine but I confused that package for mesa)
Xorg.0.log says:
(II) RADEON(0): Render acceleration unsupported on Radeon 9500/9700 and newer.
(II) RADEON(0): Render acceleration disabled
but then also
(II) RADEON(0): [drm] dma control initialized, using IRQ 48
(II) RADEON(0): [drm] Initialized kernel GART heap manager, 5111808
(II) RADEON(0): Direct rendering enabled

Any ideas?
Back to top
View user's profile Send private message
Cenrim
Tux's lil' helper
Tux's lil' helper


Joined: 04 Dec 2004
Posts: 142
Location: Germany

PostPosted: Sat Mar 25, 2006 1:36 pm    Post subject: Reply with quote

maybe you should try the r300-driver..
it should support newer chips, but I'm not sure were this starts.. radeon 9500? 9600?
_________________
[/garbage]
Back to top
View user's profile Send private message
thouters
n00b
n00b


Joined: 14 Sep 2005
Posts: 20
Location: Belgium

PostPosted: Sat Mar 25, 2006 2:49 pm    Post subject: Reply with quote

where do I find this r300 driver?
I read on the r300.sf.net page that development moved to the Xorg cvs tree, and (did JoseJX tell me?)
that the r300.sf.net code moved to the mesa and video-ati packages.
Judging by the looks of the folowing message in the X log:

*** Direct rendering support is highly experimental for Radeon 9500
*** and newer cards. The 3d mesa driver is not provided in this tree.
*** A very experimental (and incomplete) version is available from Mesa CVS.
*** Additional information can be found on http://r300.sourceforge.net
*** This message has been last modified on 2005-08-07.

Direct rendering is kinda neat, looking forward to having it running ;-)
Back to top
View user's profile Send private message
Cenrim
Tux's lil' helper
Tux's lil' helper


Joined: 04 Dec 2004
Posts: 142
Location: Germany

PostPosted: Sat Mar 25, 2006 6:04 pm    Post subject: Reply with quote

maybe it's already included in xorg-x11 or x11-drm with VIDEO_CARDS="ati"?
*checked /lib/modules/2.6.15-gentoo-r7/x11-drm/*
hm, well not now, it will be someday ^^

but isn't there a thread about this?
..brb...
EDIT:
from here:
JoseJX wrote:
It's already included in the radeon driver with modular X, but some people are currently having trouble with the current radeon driver on Macs. The fixes are already in CVS afaik, but haven't yet been added to portage. The drivers themselves are adequate for most 3D tasks now and support has been improving rapidly.

_________________
[/garbage]
Back to top
View user's profile Send private message
JoseJX
Retired Dev
Retired Dev


Joined: 28 Apr 2002
Posts: 2774

PostPosted: Sat Mar 25, 2006 7:22 pm    Post subject: Reply with quote

The issues I mentioned in that post have been fixed recently.
_________________
Gentoo PPC FAQ: http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml
Back to top
View user's profile Send private message
Cenrim
Tux's lil' helper
Tux's lil' helper


Joined: 04 Dec 2004
Posts: 142
Location: Germany

PostPosted: Sun Mar 26, 2006 6:43 am    Post subject: Reply with quote

I meant the "It's already included in the radeon driver with modular X" and "The drivers themselves are adequate for most 3D tasks now and support has been improving rapidly."-parts, not the issues .
sorry for the inaccuracy ;)
_________________
[/garbage]
Back to top
View user's profile Send private message
nibiru
n00b
n00b


Joined: 09 Jun 2005
Posts: 38

PostPosted: Sun Mar 26, 2006 9:08 am    Post subject: Reply with quote

JoseJX wrote:
The issues I mentioned in that post have been fixed recently.


Sorry do you mean issues with the bootsplash, or (mine) issues with VTs?

Should I recompile the driver?

I add this: sometimes not even kdm starts at boot (ie blank screen). I have to switch to a (blank...) terminal (eg ctrl + alt + F1) and then back to X (ctrl+alt+F7) to get the video again.

Regards.

EDIT: I've also noticed that pbbuttons has lost its brightness facility...

I tried gtkpbbuttons, while volume works ok, brightness is stuck at a value of 0 (well, so it reports at least, but I'd say it is at maximum). No way to lower or raise it, even with pbbcmd.

Does it depend on DRI and radeon modules??
Back to top
View user's profile Send private message
JoseJX
Retired Dev
Retired Dev


Joined: 28 Apr 2002
Posts: 2774

PostPosted: Sun Mar 26, 2006 2:15 pm    Post subject: Reply with quote

No, I mean the lockups that Cenrim quoted.

If your brightness isn't working, you're either using the wrong framebuffer (make sure you're using radeonfb instead of offb) or perhaps you've forgotten to include backlight support in your kernel? There is a radeon i2c driver as well as generic backlight support, both might be missing.

pbbuttonsd does not depend on DRM for this functionality.
_________________
Gentoo PPC FAQ: http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml
Back to top
View user's profile Send private message
nibiru
n00b
n00b


Joined: 09 Jun 2005
Posts: 38

PostPosted: Sun Mar 26, 2006 5:38 pm    Post subject: Reply with quote

JoseJX wrote:
No, I mean the lockups that Cenrim quoted.

If your brightness isn't working, you're either using the wrong framebuffer (make sure you're using radeonfb instead of offb) or perhaps you've forgotten to include backlight support in your kernel? There is a radeon i2c driver as well as generic backlight support, both might be missing.

pbbuttonsd does not depend on DRM for this functionality.


I have bl support, don't know what's happenned. Backlight still works under OSX, no more under linux... I even tried to put back last kernels 2.6.15-gentoo and 2.6.14, which had it working.

What could it be? I even uninstalled and reemerged pbbuttonsd, but this gave no results :-(

EDIT:

I found I had to completely remove the openfw framebuffer and leave the radeon one. Now both troubles have gone (ie the retroillumination issue and the blank terminals).

This doesn't explain to me why it was working before... since the kernel and yaboot config were exactly the same, with both of and radeon enabled! 8O 8O

Maybe somehow yaboot was choosing the radeonfb instead of OF... weird. :roll: :roll:

Thank you again for the hint!
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