[ltp] 3D acceleration on ThinkPad T42

Martin Steigerwald linux-thinkpad@linux-thinkpad.org
Sun, 17 Dec 2006 15:15:01 +0100


Am Samstag 16 Dezember 2006 13:27 schrieb Paul RIVIER:
> Martin Steigerwald wrote:
> > Am Samstag 16 Dezember 2006 09:36 schrieb olivier.paquien:
> >> Hi,
> >>
> >> I heard somewhere, and many times, you don't need to use the ati
> >> drivers for the T42's video card. I'm using Xorg(AIGLX) with radeon
> >> drivers and Beryl. It works nice and fast enough for me (didn't try
> >> to play yet).
> >
> > Hello Olivier!
> >
> > Well I tried them first, but I didn't get them to work, I even tried
> > them again once I had fglrx working just to make sure I didn't miss
> > anything... see:
> >
> > Thread
> > [ltp] Radeon support for T42 DRI?
> >
> > My mail:
> > http://mailman.linux-thinkpad.org/pipermail/linux-thinkpad/2006-Decem
> >ber/037480.html
> >
> > If you have any hints I am all ears ;-). I have no idea on where I
> > might have missed something.
> >
> > Regards,
>
> They do work out of the box as long as you use a recent version of
> X.org. See:
> $ X -version
>
> X Window System Version 7.1.1
> Release Date: 12 May 2006
> X Protocol Version 11, Revision 0, Release 7.1.1

Hello Paul,

I now tried your device entry with just the same X.org version:

martin@shambala:~> X -version

=2D----------------------------------------------------------------------
X Window System Version 7.1.1
Release Date: 12 May 2006
X Protocol Version 11, Revision 0, Release 7.1.1
Build Operating System: UNKNOWN
Current Operating System: Linux shambala 2.6.19.1-ck2-tp42-sws2-2.2.9 #1=20
PREEMPT Fri Dec 15 19:06:34 CET 2006 i686
=2D----------------------------------------------------------------------

No luck. I still get

=2D----------------------------------------------------------------------
(II) RADEON(0): Direct rendering enabled
(**) RADEON(0): Setting up final surfaces
(**) RADEON(0): Initializing Acceleration
(II) RADEON(0): Render acceleration unsupported on Radeon 9500/9700 and=20
newer.
(II) RADEON(0): Render acceleration disabled
=2D----------------------------------------------------------------------

Radeon DRM module is loaded:

=2D----------------------------------------------------------------------
shambala:~> lsmod | grep radeon
radeon                126240  2
drm                    75732  3 radeon
=2D----------------------------------------------------------------------

This is my card:

=2D----------------------------------------------------------------------
shambala:~> lspci -nn | grep ATI
01:00.0 VGA compatible controller [0300]: ATI Technologies Inc RV350=20
[Mobility Radeon 9600 M10] [1002:4e50]
=2D----------------------------------------------------------------------

I have not a trace of an idea on where to look. Below is my complete=20
xorg.conf, I added your device section as diffferent device section and=20
just changed ServerLayout to use it. It is used as I see the options from=20
it in the Xorg.0.log. Well I attach this one too (hopefully the list=20
manager lets me - it does not seem so, reposting without the xorg log).

Maybe something wrong with my modules list in the config file? Maybe it=20
would be a good idea of you just send me your complete X.org conf file=20
and I try it with that one to make sure we have identical X.org setup.=20
When it then does not work, you gotta have a different version of the=20
radeon driver or a different gfx chip in your notebook I think. My radeon=20
driver is as stated previously:

=2D----------------------------------------------------------------------
martin@shambala:~> LANG=3DC apt-cache policy xserver-xorg-video-ati
xserver-xorg-video-ati:
  Installed: 1:6.6.3-2
  Candidate: 1:6.6.3-2
  Version table:
 *** 1:6.6.3-2 0
        990 http://debian.n-ix.net etch/main Packages
        500 http://debian.n-ix.net sid/main Packages
        100 /var/lib/dpkg/status
=2D----------------------------------------------------------------------

Version of the dri drivers are:

=2D----------------------------------------------------------------------
martin@shambala:~> LANG=3DC apt-cache policy libgl1-mesa-dri
libgl1-mesa-dri:
  Installed: 6.5.1-0.4
  Candidate: 6.5.1-0.4
  Version table:
 *** 6.5.1-0.4 0
        990 http://debian.n-ix.net etch/main Packages
        500 http://debian.n-ix.net sid/main Packages
        100 /var/lib/dpkg/status
=2D----------------------------------------------------------------------

If you have a newer driver I even would try to copy over the so files and=20
they if that works then ;-)

I really would like to use the opensource driver. Dreaming of the days=20
where X.org gfx drivers will be free and work out of the box with all=20
bells and whistles.

=2D----------------------------------------------------------------------
# /etc/X11/xorg.conf (xorg X Window System server configuration file)
[... comment blabla ...]

Section "Files"
	FontPath	"/usr/share/fonts/X11/misc"
	FontPath	"/usr/share/fonts/X11/100dpi/:unscaled"
	FontPath	"/usr/share/fonts/X11/75dpi/:unscaled"
	FontPath	"/usr/share/fonts/X11/Type1"
	FontPath	"/usr/share/fonts/X11/100dpi"
	FontPath	"/usr/share/fonts/X11/75dpi"
	# path to defoma fonts
	FontPath	"/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType"
EndSection

Section "Module"
	Load	"bitmap"
	Load	"dbe"
	Load	"ddc"
	Load	"dri"
	Load	"extmod"
	Load	"freetype"
	Load	"glcore"
	Load	"glx"
	Load	"int10"
	Load	"record"
	Load	"type1"
	Load	"vbe"

	# Funktioniert mit fglrx laut Flavio Stanchina's Seite nicht richtig
	SubSection "extmod"
		Option "omit xfree86-dga"
	EndSubSection
EndSection

Section "Extensions"
	# Mit klappt die 3D-Beschleunigung mit fglrx nicht
	#Option 	"Composite" 	"True"
EndSection

Section "InputDevice"
	Identifier	"Tastatur"
	Driver		"kbd"
	Option		"CoreKeyboard"
	Option		"XkbRules"	"xorg"
	Option		"XkbModel"	"pc105"
	Option		"XkbLayout"	"de"
EndSection

Section "InputDevice"
	Identifier	"Maus"
	Driver		"mouse"
	Option		"CorePointer"
	Option		"Device"		"/dev/input/mice"
	Option		"Protocol"		"ImPS/2"
	Option		"ZAxisMapping"		"4 5"
EndSection

Section "InputDevice"
	Identifier	"Touchpad"
	Driver		"synaptics"
	Option		"SendCoreEvents"	"true"
	Option		"Device"		"/dev/psaux"
	Option		"Protocol"		"auto-dev"
	Option		"HorizScrollDelta"	"0"
	# F=FCr ksynaptics
	Option          "SHMConfig" 		"true"
EndSection

Section "Device"
        Identifier      "Radeon"
        Driver          "radeon"
        BusID           "PCI:1:0:0"
        Option          "AGPMode"       "4"
        Option          "AGPSize" "64"
        Option          "EnablePageFlip" "true"
        Option          "ColorTiling"   "on"
        Option          "EnableDepthMoves" "true"
        Option          "XAANoOffscreenPixmaps"
        Option          "RenderAccel"   "true"
        Option          "GARTSize"      "64"
        Option          "DRI"     "true"
        Option          "DPMS"
        Option          "DynamicClocks" "on"
EndSection

Section "Device"
	Identifier	"Grafikchip"

	## Radeon-Treiber
	Driver		"radeon"
	Option		"AGPMode" 		"4"
	Option		"AGPSize"		"64"
	Option		"GARTSize"		"64"
	Option		"DRI"			"On"
	# Laut ThinkWiki f=FCr 3D-Performance mit Standard-AccelMethod XAA gut, EX=
A=20
brachte keinen sichtbaren Vorteil
	Option		"EnablePageFlip"	"true"
	# Notebook bleibt mit AGPFastWrite beim Start von X h=E4ngen, 15.12.2006
	#Option		"AGPFastWrite"		"true"
	# Ben=F6tigt laut ThinkWiki.org CONFIG_FB_RADEON
	Option		"DynamicClocks"		"true"

	## fglrx
	#Driver		"fglrx"
	# Laut Manpage gut f=FCr 3D-Beschleunigung
	#Option		"EnablePageFlip"	"true"
	#Option		"VideoOverlay"		"true"
	# Schaltet sonst VideoOverlay wieder aus
	#Option		"OpenGLOverlay"		"false"

	## Allgemeine Optionen
	# F=FCr AROS
	Option		"BackingStore" "True"
EndSection

Section "Monitor"
	Identifier	"Notebook-Display"
	Option		"DPMS"
	# Macht der ATI-Treiber selbst
	# Gemessen: 91x92 DPI
	# DisplaySize	305 230
	# 90x90 DPI
	#DisplaySize	305 230
	HorizSync	28-51
	VertRefresh	43-60
EndSection

Section "Screen"
	Identifier	"Notebook-Bildschirm"
	Device		"Radeon"
	Monitor		"Notebook-Display"
	DefaultDepth	24
	SubSection "Display"
		Depth		1
		Modes		"1400x1050" "1280x1024" "1024x768" "800x600"
	EndSubSection
	SubSection "Display"
		Depth		4
		Modes		"1400x1050" "1280x1024" "1024x768" "800x600"
	EndSubSection
	SubSection "Display"
		Depth		8
		Modes		"1400x1050" "1280x1024" "1024x768" "800x600"
	EndSubSection
	SubSection "Display"
		Depth		15
		Modes		"1400x1050" "1280x1024" "1024x768" "800x600"
	EndSubSection
	SubSection "Display"
		Depth		16
		Modes		"1400x1050" "1280x1024" "1024x768" "800x600"
	EndSubSection
	SubSection "Display"
		Depth		24
		Modes		"1400x1050" "1280x1024" "1024x768" "800x600"
	EndSubSection
EndSection

Section "ServerLayout"
	Identifier	"Standard-Layout"
	Screen		"Notebook-Bildschirm"
	InputDevice	"Tastatur"
	InputDevice	"Maus"
	InputDevice	"Touchpad"
EndSection

Section "DRI"
	Mode	0666
EndSection
=2D--------------------------------------------------------------------

Regards,
=2D-=20
Martin 'Helios' Steigerwald - http://www.Lichtvoll.de
GPG: 03B0 0D6C 0040 0710 4AFA  B82F 991B EAAC A599 84C7