[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: powerbook 1.5GHz 15" + radeon 9600 + mirror



On Fri, Sep 17, 2004 at 04:34:51PM +0200, Pierre Habouzit wrote:

Hi,

> I try to make a mirror mode work, on a recent pb 15"
> 
> I've tried a lot of configs :
> ClondeMode option with sid xfree packages, MergedFB ones with daenzer 
> dri-trunk packages. ...

Yes, it will not work.

> I've googled a lot of lists. amd I've found no report of successful 
> configs for my laptop...

So do I...

> I only want a clone on the DVI output for my talks, to project my 
> slides...

I wished too. ;P

> I've sawn somebody here suggesting to close the lid during the boot, but 
> it only results into blank screen and no signal is found by my LCD 
> device ...

I do not see why it should work that way... Perhaps black magic, huh? ;)

> Since radeon 9600 is not supported by dri-trunk, I've spent most of my 
> time on the standard XFree in sid. It supports ClondeMode (since in the 
> log I see it accepted by the server, that even looks for CRT2 
> modes) ... but after X start, here too, no signal ...

It is supported by dri-trunk, but the DVI will not work as it is in the
current state of the code.

> So If anybody has a working config, I would be thankful ...

I have an AlBook G4 15", an earlier model than yours.

processor       : 0
cpu             : 7447/7457, altivec supported
clock           : 999MHz
revision        : 1.1 (pvr 8002 0101)
bogomips        : 664.26
machine         : PowerBook5,2
motherboard     : PowerBook5,2 MacRISC3 Power Macintosh
detected as     : 287 (PowerBook G4 15")
pmac flags      : 0000000a
L2 cache        : 512K unified
memory          : 512MB
pmac-generation : NewWorld

0000:00:10.0 VGA compatible controller: ATI Technologies Inc RV350
[Mobility Radeon 9600 M10]

What I did to get the DVI output working is a reset of the register
values CRTC2_OFFSET_CNTL in radeon_driver.c.

I used the dri-trunk-sid_2004.02.28-2 source code and built the 2
resulting Debian packages with debuild.

The patch and my XF86Config-4 are attached. It should work with these,
since we have the same cards anyway.

Cheers.
-- 
((__,-"""-,__))     .---.
 `--)~   ~(--`     /     \
.-'(       )`-.    \.@-@./    Aurélien GÉRÔME
`~~`@)   (@`~~`    /`\_/`\
    |     |       //  _  \\   Free Software Developer
    |     |      | \     )|_  Unix Sys & Net Admin
    (8___8)     /`\_`>  <_/ \
     `---`      \__/'---'\__/
BOFH excuse #265: The mouse escaped.
diff -ruN xc.old/programs/Xserver/hw/xfree86/drivers/ati/radeon_driver.c xc/programs/Xserver/hw/xfree86/drivers/ati/radeon_driver.c
--- xc.old/programs/Xserver/hw/xfree86/drivers/ati/radeon_driver.c	2004-02-28 14:52:26.000000000 +0100
+++ xc/programs/Xserver/hw/xfree86/drivers/ati/radeon_driver.c	2004-06-20 19:40:38.000000000 +0200
@@ -4890,7 +4890,7 @@
     if (info->allowPageFlip) {
 	OUTREG(RADEON_CRTC_OFFSET_CNTL, restore->crtc_offset_cntl);
 	if (info->HasCRTC2) {
-	    OUTREG(RADEON_CRTC2_OFFSET_CNTL, restore->crtc2_offset_cntl);
+	    OUTREG(RADEON_CRTC2_OFFSET_CNTL, 0);
 	}
     }
 #endif
@@ -4957,7 +4957,7 @@
     OUTREG(RADEON_CRTC2_V_TOTAL_DISP,    restore->crtc2_v_total_disp);
     OUTREG(RADEON_CRTC2_V_SYNC_STRT_WID, restore->crtc2_v_sync_strt_wid);
     OUTREG(RADEON_CRTC2_OFFSET,          restore->crtc2_offset);
-    OUTREG(RADEON_CRTC2_OFFSET_CNTL,     restore->crtc2_offset_cntl);
+    OUTREG(RADEON_CRTC2_OFFSET_CNTL,     0);
     OUTREG(RADEON_CRTC2_PITCH,           restore->crtc2_pitch);
     OUTREG(RADEON_DISP2_MERGE_CNTL,      restore->disp2_merge_cntl);
 
Section "Files"
	FontPath	"unix/:7100"			# local font server
	# if the local font server has problems, we can fall back on these
	FontPath	"/usr/lib/X11/fonts/misc"
	FontPath	"/usr/lib/X11/fonts/cyrillic"
	FontPath	"/usr/lib/X11/fonts/100dpi/:unscaled"
	FontPath	"/usr/lib/X11/fonts/75dpi/:unscaled"
	FontPath	"/usr/lib/X11/fonts/Type1"
	FontPath	"/usr/lib/X11/fonts/CID"
	FontPath	"/usr/lib/X11/fonts/Speedo"
	FontPath	"/usr/lib/X11/fonts/100dpi"
	FontPath	"/usr/lib/X11/fonts/75dpi"
EndSection

Section "Module"
	Load	"GLcore"
	Load	"bitmap"
	Load	"dbe"
	Load	"ddc"
	Load	"dri"
	Load	"extmod"
	Load	"freetype"
	Load	"glx"
	Load	"int10"
	Load	"record"
	Load	"speedo"
	Load	"type1"
	Load	"vbe"
EndSection

Section "InputDevice"
	Identifier	"Generic Keyboard"
	Driver		"keyboard"
	Option		"CoreKeyboard"
	Option		"XkbRules"	"xfree86"
	Option		"XkbModel"	"macintosh"
	Option		"XkbLayout"	"fr"
EndSection

Section "InputDevice"
	Identifier	"Configured Mouse"
	Driver		"mouse"
	Option		"CorePointer"
	Option		"Device"		"/dev/psaux"
	Option		"Protocol"		"PS/2"
	Option		"Emulate3Buttons"	"true"
	Option		"ZAxisMapping"		"4 5"
EndSection

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

Section "Device"
	Identifier	"Card LCD"
	Driver		"radeon"
	BusID		"PCI:0:16:0"
	Option		"AGPMode"		"4"
	Option		"AGPFastWrite"		"true"
	Option		"EnableDepthMoves"	"true"
	Option		"EnablePageFlip"	"true"
	Option		"NoBackBuffer"		"false"
	Option		"UseFBDev"		"false"
	Screen		0
EndSection

Section "Device"
	Identifier	"Card CRT"
	Driver		"radeon"
	BusID		"PCI:0:16:0"
	Option		"AGPMode"		"4"
	Option		"AGPFastWrite"		"true"
	Option		"EnableDepthMoves"	"true"
	Option		"EnablePageFlip"	"true"
	Option		"NoBackBuffer"		"false"
	Option		"UseFBDev"		"false"
	Screen		1
EndSection

Section "Monitor"
	Identifier	"Monitor LCD"
	HorizSync	30-68
	VertRefresh	50-85
	Option		"DPMS"
EndSection

Section "Monitor"
	Identifier	"Monitor CRT"
	HorizSync	30-68
	VertRefresh	50-85
	Option		"DPMS"
EndSection

Section "Screen"
	Identifier	"Screen LCD"
	Device		"Card LCD"
	Monitor		"Monitor LCD"
	DefaultDepth	24
	SubSection "Display"
		Depth		16
		Modes		"1152x854"
	EndSubSection
	SubSection "Display"
		Depth		24
		Modes		"1152x854"
	EndSubSection
EndSection

Section "Screen"
	Identifier	"Screen CRT"
	Device		"Card CRT"
	Monitor		"Monitor CRT"
	DefaultDepth	24
	SubSection "Display"
		Depth		16
		Modes		"1024x768"
	EndSubSection
	SubSection "Display"
		Depth		24
		Modes		"1024x768"
	EndSubSection
EndSection

Section "ServerLayout"
	Identifier	"Default Layout"
	Screen 0	"Screen LCD"
	Screen 1	"Screen CRT" RightOf "Screen LCD"
	#Option		"Clone"		"on"
	InputDevice	"Generic Keyboard"
	InputDevice	"Configured Mouse"
	InputDevice	"Generic Mouse"
EndSection

Section "DRI"
	Mode	0666
EndSection

Attachment: signature.asc
Description: Digital signature


Reply to: