Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Architectures & Platforms Gentoo on PPC
  • Search

XGL on a powerbook

Have a PowerPC specific problem? This is the spot.
Post Reply
Advanced search
38 posts
  • Previous
  • 1
  • 2
Author
Message
ibbumpin
n00b
n00b
User avatar
Posts: 22
Joined: Sat Mar 05, 2005 8:30 pm
Location: Chicago

Re Well,

  • Quote

Post by ibbumpin » Fri Apr 07, 2006 12:25 am

Ahh sorry I tried it with the 'ati' and 'radeon' drivers in my xorg.conf file and both now work for me. I have ATI framebuffer support compiled into the kernel as well. I'm on gentoo-sources kernel 2.6.15-r. I will upgrade to 2.6.16 for the wireless soon. Well good luck I'll post more info about my config when I get back home.


Matt
"I don't wanna large farva! I want a God damn liter'a'cola!" - R. Farva
Top
sarumont
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 94
Joined: Thu Oct 31, 2002 7:46 pm
Location: /dev/urandom

  • Quote

Post by sarumont » Fri Apr 07, 2006 2:29 pm

Here is my output:

http://www.sigil.org/~sarumont/xglerrors

Looks like it is having issues with DRM (go figure). I will try taking it out of my kernel and post back in a few....


OT: ibbumpin: you using softmac or the dscape for your wireless? I can bring the card up with dscape, but iwconfig will not do jack to it (as far as setting essid, key, etc.). Will probably try updating shortly and, if all else fails, softmac.
~Sarumont
"Time is an illusion. Lunchtime doubly so."
Top
sarumont
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 94
Joined: Thu Oct 31, 2002 7:46 pm
Location: /dev/urandom

  • Quote

Post by sarumont » Fri Apr 07, 2006 2:49 pm

After removing DRI from the kernel, here we are:

http://www.sigil.org/~sarumont/morexglsuck

It still looks like it is having issues with finding 'radeon', but straight up X has no problems. I start fine and can run glxinfo/glxgears with no problems. glxgears *does*, however, seem to be slower than it was when I was using the kernel's radeon driver.

I'll dig a bit deeper sometime later...have to work for now. :wink:
~Sarumont
"Time is an illusion. Lunchtime doubly so."
Top
ibbumpin
n00b
n00b
User avatar
Posts: 22
Joined: Sat Mar 05, 2005 8:30 pm
Location: Chicago

I broked it again

  • Quote

Post by ibbumpin » Sat Apr 08, 2006 2:31 am

Some how I broke my DRI because now when I run glxinfo i get the error:

Code: Select all

R300 DRI dirver expected DRM version 1.24.x but got version 1.20.0
I'm not sure how the versions got messed up. Has anyone run into this recently. I found a few threads on this but all the attempts to update the DRI driver has failed. I reemerged libdrm and and mesa but I still get nothing but the same error. This is frustrating :?

Well atleast I had DRI for a day :)

Any thoughts?
"I don't wanna large farva! I want a God damn liter'a'cola!" - R. Farva
Top
Valkura
Apprentice
Apprentice
User avatar
Posts: 242
Joined: Mon Feb 27, 2006 3:47 pm
Location: Ramsey, MN
Contact:
Contact Valkura
Website

  • Quote

Post by Valkura » Sat Apr 08, 2006 3:04 am

No idea what is up with your DRI.... mine is still sitting XGL-less.... :( Gotta go look at those Ubuntu forums!
last.fm
SFH, because it's awesome
Top
ibbumpin
n00b
n00b
User avatar
Posts: 22
Joined: Sat Mar 05, 2005 8:30 pm
Location: Chicago

I'm stuck...

  • Quote

Post by ibbumpin » Sat Apr 08, 2006 8:23 pm

I really can't figure out how to get the DRM version to match. I can't find what file(s) I need to replace. I have removedand reemerged libdrm, x11-drm, xorg-server, mesa. I'm not sure why the mismatch occurs. Must be a bug in the current portage tree. I think this is the only problem I am having as I get not other "out of the ordinary" warnings.

When I was messing with it I did start getting X11 warnings that DRI couldn't load be cause the driver was old...reemergeing xrg-server fixed this issue though.

I guess I'll check the ubuntu forums now :(

Anyone got any ideas?

Matt
"I don't wanna large farva! I want a God damn liter'a'cola!" - R. Farva
Top
ibbumpin
n00b
n00b
User avatar
Posts: 22
Joined: Sat Mar 05, 2005 8:30 pm
Location: Chicago

w00t

  • Quote

Post by ibbumpin » Sat Apr 08, 2006 9:16 pm

Okay... after the Ubuntu forums were of no help (no surprise) I did the following...

I went into /etc/portage/package.unmask and removed 'x11-libs/libdrm', and 'media-libs/mesa'.

This made me down grade to mesa=6.4.2-r3 and I still have libdrm-2.1_apha20060313

I then did

Code: Select all

rmmod radeon drm
to unload the modules and ran 'startx'.

Now I have Direct Rendering enabled again!! When I run Xgl it doesn't crash anymore but It doesn't work yet...I don't think I have it configured so that is a different story :)

I hope my struggles have helped someone...let me know if you want me to post more info.

Matt
"I don't wanna large farva! I want a God damn liter'a'cola!" - R. Farva
Top
Valkura
Apprentice
Apprentice
User avatar
Posts: 242
Joined: Mon Feb 27, 2006 3:47 pm
Location: Ramsey, MN
Contact:
Contact Valkura
Website

Re: w00t

  • Quote

Post by Valkura » Sat Apr 08, 2006 9:37 pm

ibbumpin wrote:Okay... after the Ubuntu forums were of no help (no surprise)
Yeah, I looked, found nothing! Weird (I know something was there once).
I did the following...

I went into /etc/portage/package.unmask and removed 'x11-libs/libdrm', and 'media-libs/mesa'.

This made me down grade to mesa=6.4.2-r3 and I still have libdrm-2.1_apha20060313

I then did

Code: Select all

rmmod radeon drm
to unload the modules and ran 'startx'.

Now I have Direct Rendering enabled again!! When I run Xgl it doesn't crash anymore but It doesn't work yet...I don't think I have it configured so that is a different story :)

I hope my struggles have helped someone...let me know if you want me to post more info.

Matt
I am now trying that....mine is emerging mesa 6.4.2-r2...hmm.

EDIT: Nope, still doesn't work. I get the errors:

Code: Select all

(something along the lines of FBDEV: FBIOBLANK: invalid argument)
and

Code: Select all

no visual format found
Argh!
last.fm
SFH, because it's awesome
Top
ibbumpin
n00b
n00b
User avatar
Posts: 22
Joined: Sat Mar 05, 2005 8:30 pm
Location: Chicago

hmmm...

  • Quote

Post by ibbumpin » Sat Apr 08, 2006 9:57 pm

Have you tried the 'radeon' or 'ati' drivers?'

Instead of

Code: Select all

Option UseFBDev "true"
I have the line

Code: Select all

Option  "MergedFB" "true"
I had troubles with FBDev.
"I don't wanna large farva! I want a God damn liter'a'cola!" - R. Farva
Top
Valkura
Apprentice
Apprentice
User avatar
Posts: 242
Joined: Mon Feb 27, 2006 3:47 pm
Location: Ramsey, MN
Contact:
Contact Valkura
Website

Re: hmmm...

  • Quote

Post by Valkura » Sun Apr 09, 2006 12:58 am

ibbumpin wrote:Have you tried the 'radeon' or 'ati' drivers?'

Instead of

Code: Select all

Option UseFBDev "true"
I have the line

Code: Select all

Option  "MergedFB" "true"
I had troubles with FBDev.
Which section? I don't have a UseFBDev option :( FBDev is the only driver that gives me the resolution of my screen in normal X - radeon gives me 640x480 for some reason :?:
last.fm
SFH, because it's awesome
Top
ibbumpin
n00b
n00b
User avatar
Posts: 22
Joined: Sat Mar 05, 2005 8:30 pm
Location: Chicago

Re: Which section

  • Quote

Post by ibbumpin » Sun Apr 09, 2006 1:01 am

Sorry I put those options in the video card device section...

I will post my xorg.conf soon...
"I don't wanna large farva! I want a God damn liter'a'cola!" - R. Farva
Top
Valkura
Apprentice
Apprentice
User avatar
Posts: 242
Joined: Mon Feb 27, 2006 3:47 pm
Location: Ramsey, MN
Contact:
Contact Valkura
Website

Re: Which section

  • Quote

Post by Valkura » Sun Apr 09, 2006 4:05 am

ibbumpin wrote:Sorry I put those options in the video card device section...

I will post my xorg.conf soon...
Cool thanks! I will go see if it works.
last.fm
SFH, because it's awesome
Top
ibbumpin
n00b
n00b
User avatar
Posts: 22
Joined: Sat Mar 05, 2005 8:30 pm
Location: Chicago

Here is my xorg.conf file

  • Quote

Post by ibbumpin » Sun Apr 09, 2006 5:59 am

Though it's not all clean a pretty :wink: here is my xorg.conf file...

Code: Select all

Section "ServerLayout"
	Identifier     "DRI"
	Screen      0  "ScreenDRI" 0 0
	InputDevice    "Mouse0" "CorePointer"
 	InputDevice	"Touchpad" "AlwaysCore"
	InputDevice    "Powerbook Keyboard" "CoreKeyboard"
EndSection

Section "ServerLayout"
	Identifier     "noDRI"
	Screen      0  "Screen0" 0 0
	InputDevice    "Mouse0" "CorePointer"
	InputDevice    "Powerbook Keyboard" "CoreKeyboard"
EndSection

Section "ServerLayout"
	Identifier     "X.org Configured"
	Screen      0  "Screen0" 0 0
	InputDevice    "Mouse0" "CorePointer"
	#InputDevice    "Powerbook Keyboard" "CoreKeyboard"
        InputDevice    "Powerbook Keyboard" "CoreKeyboard"
EndSection

Section "Files"
	FontPath     "/usr/share/fonts/misc/"
	FontPath     "/usr/share/fonts/urw-fonts/"
	FontPath     "/usr/share/fonts/TTF/"
	#FontPath     "/usr/share/fonts/Speedo/"
	FontPath     "/usr/share/fonts/Type1/"
	#FontPath     "/usr/share/fonts/CID/"
	FontPath     "/usr/share/fonts/75dpi/"
	FontPath     "/usr/share/fonts/100dpi/"
EndSection

Section "Module"
	#Load  "bitmap"
	#Load 	"ati"
	#Load	"radeon"
	Load 	"synaptics"
	Load  	"dbe"
	Load  	"drm"
	Load  	"dri"
	Load  	"extmod"
	Load  	"freetype"
	#Load  "GLcore"
	Load  	"glx"
	Load  	"int10"
	Load  	"record"
	#Load  "speedo"
	Load  	"type1"
	Load  	"xtrap"
EndSection


Section "Extensions"
	Option "Composite"	"true"
EndSection

Section "InputDevice"
	Identifier  "Keyboard0"
	Driver      "kbd"
EndSection

Section "InputDevice"
	Identifier  "Powerbook Keyboard"
	Driver      "kbd"
	Option      "XkbModel"    "pc105"
	#Option      "XkbLayout"   "gb_g4_alubook_dvorak+compose(rwin)"
EndSection

Section "InputDevice"
	Identifier	"Touchpad"
	Driver "synaptics"
	Option "SendCoreEvents" "true"
	Option "Device" "/dev/input/mice"
	Option "Protocol" "auto-dev"
	Option "LeftEdge" "60"
	Option "RightEdge" "850"
	Option "TopEdge" "60"
	Option "BottomEdge" "511"
	Option "MinSpeed" "0.4"
	Option "MaxSpeed" "1"
	Option "MaxTapMove" "10"
	Option "MaxTapTime" "100"
	Option "AccelFactor" "0.07"
	Option "SHMConfig" "on"
	Option "RTCornerButton" "3"
	Option "LTCornerButton" "2"
	Option "HorizScrollDelta" "0"
	Option "VertScrollDelta" "30"
	Option "CircularScrolling" "1"
	Option "CircScrollDelta" "0.1"
	Option "CircScrollTrigger" "5" 
EndSection

Section "InputDevice"
	Identifier	"Mouse"
	Driver		"mouse"
	Option		"SendCoreEvents"	"true"
	Option		"Protocol" "ExplorerPS/2"
	Option		"Device" "/dev/input/mice"
	Option		"ZAxisMapping"    "4 5"
EndSection

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

Section "Monitor"
	Identifier   "Monitor0"
	VendorName   "Monitor Vendor"
	ModelName    "Monitor Model"
EndSection

Section "Monitor"
	Identifier   "Powerbook LCD"
	VendorName   "Apple"
	ModelName    ""
	UseModes     "Modes0"
	HorizSync    30-70
	VertRefresh  50-160
EndSection

Section "Device"
	Identifier  "Card0"
	Driver      "ati"
	BusID       "PCI:0:16:0"
EndSection

Section "Device"
	Identifier  "CardDRI"
	VendorName  "ATI Technologies Inc"
	BoardName   "RV350 [Mobility Radeon 9600 M10]"
	Driver      "radeon"
	BusID       "PCI:0:16:0"
	Option     "AGPMode"            "4"	# <i>
	#Option     "UseFBDev"           "On" 	# [<bool>]
	
	Option	   "RenderAccel"	"true"
	Option	   "CRT2Position" 	"Clone"
	Option	   "AGPFastWrite"	"true"
        Option	   "EnablePageFlip"	"true"
	Option	   "backingstore"
        Option	   "MergedFB" 		"true"
	Option	   "UseFWPLL"		"true"
        Option     "MetaModes"		"1280x854 1152x864 1024x786 800x600"
	Option	   "CloneMode"		"1024x768"
         
	#Option     "DMAForXV"           "true" 	# [<bool>]
	#Option     "XaaNoScanlineImageWriteRect" 
	#Option     "XaaNoScanlineCPUToScreenColorExpandFill" 
	Option     "AccelMethod"        "exa"
EndSection

Section "Screen"
	Identifier "ScreenDRI"
	Device     "CardDRI"
	#Device     "Card0"
	Monitor    "Powerbook LCD"
	DefaultDepth   24
	SubSection "Display"
		Viewport   0 0
		Depth     1
		Modes   "1280x854" "800x600" "1024x768"
	EndSubSection
	SubSection "Display"
		Viewport   0 0
		Depth     4
		Modes   "1280x854" "800x600" "1024x768"
	EndSubSection
	SubSection "Display"
		Viewport   0 0
		Depth     8
		Modes   "1280x854" "800x600" "1024x768"
	EndSubSection
	SubSection "Display"
		Viewport   0 0
		Depth     15
		Modes   "1280x854" "800x600" "1024x768"
	EndSubSection
	SubSection "Display"
		Viewport   0 0
		Depth     16
		Modes   "1280x854" "800x600" "1024x768"
	EndSubSection
	SubSection "Display"
		Viewport   0 0
		Depth     24
		Modes   "1280x854" "800x600" "1024x768"
	EndSubSection
EndSection

Section "Screen"
	Identifier "Screen0"
	Device     "Card0"
	Monitor    "Powerbook LCD"
	DefaultDepth   24
	SubSection "Display"
		Viewport   0 0
		Depth     1
		Modes   "1280x854" "800x600" "1024x768"
	EndSubSection
	SubSection "Display"
		Viewport   0 0
		Depth     4
		Modes   "1280x854" "800x600" "1024x768"
	EndSubSection
	SubSection "Display"
		Viewport   0 0
		Depth     8
		Modes   "1280x854" "800x600" "1024x768"
	EndSubSection
	SubSection "Display"
		Viewport   0 0
		Depth     15
		Modes   "1280x854" "800x600" "1024x768"
	EndSubSection
	SubSection "Display"
		Viewport   0 0
		Depth     16
		Modes   "1280x854" "800x600" "1024x768"
	EndSubSection
	SubSection "Display"
		Viewport   0 0
		Depth     24
		Modes   "1280x854" "800x600" "1024x768"
	EndSubSection
EndSection

Section "Modes"
	Identifier      "Modes0"
	# mode generated by Xeasyconf
	Modeline "1280x854" 79.815 1280 1296 1408 1536  854 855 858 866  -HSync -VSync
EndSection

Section "DRI"
	Mode  0666
EndSection
It works with the DVI output mirroring when X is running. You may also want to try messing with the resolutions in the 'Screen' section. I added the resolutions there and they work for me.

Our systems may be a little different I imagine but I hope this or some of it helps you out. I am on a Powerbook G4 15" 1.67Ghz 512MB Radeon 9700 64MB

Both the 'ati' and 'radeon' drivers give me nearly identical results (I say nearly because I haven't stress tested either but they look the same and provide the same features "at a glance" )

After starting X my 'lsmod' gives me:

Code: Select all

Module                  Size  Used by
radeon                121704  1
drm                    86556  2 radeon
uhci_hcd               44272  0
snd_powermac           49280  0
snd_pcm               103044  1 snd_powermac
snd_timer              27460  1 snd_pcm
snd                    67604  3 snd_powermac,snd_pcm,snd_timer
snd_page_alloc         11720  1 snd_pcm
bcm43xx               121452  0
ieee80211softmac       28288  1 bcm43xx
ieee80211              37032  2 bcm43xx,ieee80211softmac
ieee80211_crypt         7040  1 ieee80211
Good luck man!

Matt
"I don't wanna large farva! I want a God damn liter'a'cola!" - R. Farva
Top
Post Reply

38 posts
  • Previous
  • 1
  • 2

Return to “Gentoo on PPC”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic