On 16/04/07, Sven Anders <[EMAIL PROTECTED]> wrote:

Michael Gangolf schrieb:
> Hi
> just found this tool:
> 
http://websupport.sk/~stanojr/projects/atipower/<http://websupport.sk/%7Estanojr/projects/atipower/>
>
> Perhaps people could try it where 'aticonfig --lsp' is not running.
> For me it has the same output as --lsp.

It just gives nothing out.
Maybe we can use it to find the problem...?!

Regards
Sven


in case people are wondering, these are the [Debian] packages i had to
install to compile atipower:
   libx11-dev libxau-dev libxdmcp-dev libxext-dev x11proto-core-dev
x11proto-input-dev x11proto-kb-dev x11proto-xext-dev xtrans-dev
x11proto-xf86misc-dev x11proto-record-dev

at first, atipower only output "result: 2". after i uncommented some lines
in atipower.c , it now says this:

[EMAIL PROTECTED]:/usr/src/atipower-0.1> ./atipower
majorVersion: 8
minorVersion: 28
patchlevel: 8
usBIOSVersionMajor: 191
usBIOSVersionMinor: 240
HasSecondary: 0
BoardType: 128
ChipType: 29125
ulVideoRam: 134217728
sATiRevID: 10
sBoardName: MOBILITY RADEON X1600 (M56 71C5)
extVersion: 1
extRevision: 2
ppVersion: 0
flags: 0x87f2dd0
numPowerStates: 0
curPowerState: 5312
[EMAIL PROTECTED]:/usr/src/atipower-0.1>

note the 2nd last line:    numPowerStates: 0

hrmm...i've attached my modified atipower.c in case you're interested in the
additional output.
-Nick
#include <FGLRXExtensions.h>

int main(int ac,char *av[]) {
  int ret=0,i;
  char star[2]="\0\0";
  FGLRXDriverDataRec data;
  FGLRXQueryPowerPlayInfoRec ppdata;
  FGLRXQueryPowerStateRec qpsdata;
  FGLRXSetPowerStateRec spsdata;

	if (ac==2) {
		ret=ExtSetPowerState(&spsdata,atoi(av[1]),1);
		if (ret) {
			printf("result: %d\n", spsdata.result);
		}
	}

//  /*
  ret=ExtGetDriverData(&data);
  if (ret) {
		  printf("majorVersion: %d\n",data.majorVersion);
		  printf("minorVersion: %d\n",data.minorVersion);
		  printf("patchlevel: %d\n",data.patchlevel);
		  printf("usBIOSVersionMajor: %d\n",(int)data.usBIOSVersionMajor);
		  printf("usBIOSVersionMinor: %d\n",(int)data.usBIOSVersionMinor);
		  printf("HasSecondary: %d\n",(int)data.HasSecondary);
		  printf("BoardType: %d\n",data.BoardType);
		  printf("ChipType: %d\n",data.ChipType);
		  printf("ulVideoRam: %d\n",(int)data.ulVideoRam);
		  printf("sATiRevID: %s\n",data.sATiRevID);
		  printf("sBoardName: %s\n",data.sBoardName);
  }
//  */

  ret=ExtQueryPowerPlayInfo(&ppdata);
  if (ret) {
//		  /*
		  printf("extVersion: %d\n",ppdata.extVersion);
		  printf("extRevision: %d\n",ppdata.extRevision);
		  printf("ppVersion: %d\n",ppdata.ppVersion);
		  printf("flags: %p\n",ppdata.flags);
		  printf("numPowerStates: %d\n",ppdata.numPowerStates);
		  printf("curPowerState: %d\n",ppdata.curPowerState);
//		  */
  } else {
		  printf("error QueryPowerPlayInfo\n");
		  exit(-1);
  }

	for (i=1;i<=ppdata.numPowerStates;i++) {
		ret=ExtQueryPowerState(&qpsdata,i);
			if (ret) {
                if (ppdata.curPowerState==i) {
						star[0]='*';
				} else {
						star[0]=' ';
				}
				printf("%s id: %d, gpu: %d mhz, mem: %d mhz\n",star,i,qpsdata.coreClock/100,qpsdata.memClock/100);
			} else {
				printf("error QueryPowerState\n");
				exit(-1);
			}
	}

}
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Mactel-linux-users mailing list
Mactel-linux-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mactel-linux-users

Reply via email to