Subject: Re: RadeonHD from opensuse - to NetBSD
To: None <tech-x11@netbsd.org>
From: C. K. <ck74@operamail.com>
List: tech-x11
Date: 10/07/2007 07:35:17
Just an update about this... I have now modular Xorg environment, it works
now. I'm running kde on Xorg using vesa driver.
 


1- I have used Juan's package. It compiled radeonhd 20070920 sources. It
didn't work.

2- I have got more recent sources from suse. It works perfectly if i and
only if i connect an extenal monitor too. I mean both LCD and external LCD
works. If i do not connect external monitor, Xorg fails to start.


I think there is a problem within here in code. It detects external monitor
as primary AND THEN it powers on local one.

I'm php programmer, not C+ but maybe someone has an idea to fix that... It
looks like following codes powers up monitors:


rhd_driver.c. Lines  976-1014

********************************************
    Crtc1 = rhdPtr->Crtc[0];
    Crtc2 = rhdPtr->Crtc[1];

    switch (PowerManagementMode) {
    case DPMSModeOn:
	if (Crtc1->Active) {
	    Crtc1->Power(Crtc1, RHD_POWER_ON);

	    for (Output = rhdPtr->Outputs; Output; Output = Output->Next)
		if (Output->Power && Output->Active && (Output->Crtc == Crtc1))
		    Output->Power(Output, RHD_POWER_ON);
	}

	if (Crtc2->Active) {
	    Crtc2->Power(Crtc1, RHD_POWER_ON);

	    for (Output = rhdPtr->Outputs; Output; Output = Output->Next)
		if (Output->Power && Output->Active && (Output->Crtc == Crtc2))
		    Output->Power(Output, RHD_POWER_ON);
	}
	break;
    case DPMSModeStandby:
    case DPMSModeSuspend:
    case DPMSModeOff:
	if (Crtc1->Active) {
	    for (Output = rhdPtr->Outputs; Output; Output = Output->Next)
		if (Output->Power && Output->Active && (Output->Crtc == Crtc1))
		    Output->Power(Output, RHD_POWER_RESET);
	    Crtc1->Power(Crtc1, RHD_POWER_RESET);
	}

	if (Crtc2->Active) {
	    for (Output = rhdPtr->Outputs; Output; Output = Output->Next)
		if (Output->Power && Output->Active && (Output->Crtc == Crtc2))
		    Output->Power(Output, RHD_POWER_RESET);
	    Crtc2->Power(Crtc2, RHD_POWER_RESET);
	}
	break;
    }
http://www.nabble.com/file/p13083426/rhd_driver.c rhd_driver.c 
********************************************

Regards,







Pierre Pronchery wrote:
> 
> 		Hello,
> 
> C. K. wrote:
>> Well, i was checking suse repository occasonally, and it was NOT working
>> a
>> week ago. Just tried today, and it worked.
>> 
>> Do you think the only difference (what suse team did) is just to collect
>> PCI
>> ID from users? I mean could it be OK to use suse source by editing master
>> site section in your package ?
> 
> The collection of PCI IDs was just a temporary fix while the Atombios
> parser was being imported. I don't think it's in use anymore in the
> driver.
> 
> I'm currently using the radeonhd driver from the official git
> repository. As long as the functionality provided will not be optimal
> for your everyday use, I would recommend to wait before installing it as
> a package.
> 
> (Although, that's just my opinion, and of course I would welcome the
> presence of the package in pkgsrc, since it has to be done anyway).
> 
> Hope this clarifies a bit,
> -- 
> khorben
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/RadeonHD-from-opensuse---to-NetBSD-tf4581173.html#a13083426
Sent from the tech-x11 mailing list archive at Nabble.com.