Jump to content

DSDT editor and patcher


oldnapalm
 Share

999 posts in this topic

Recommended Posts

Try uppercase

Name (_HID, "MONITOR")

ok complied but the same result no monitoring

sould i remove

 

				IO (Decode16,
				0x0062,			 // Range Minimum
				0x0062,			 // Range Maximum
				0x02,			   // Alignment
				0x01,			   // Length
				)
			IO (Decode16,
				0x0066,			 // Range Minimum
				0x0066,			 // Range Maximum
				0x06,			   // Alignment
				0x01,			   // Length
				)

 

from kbc device

Link to comment
Share on other sites

Do the keys show in SMC_util at least?

The-Kings-MacBook-Pro:~ Mido$ /Users/Mido/Downloads/SMC_util2 -l
 #KEY  [ui8 ]  (bytes 00 00 00 45)
 ACID  [ch8*]  (bytes ba be 3c 45 c0 03 10 43)
 CLKH  [{clh]  (bytes 00 00 70 80 00 01 19 40)
 CLKT  [ui32]  152 (bytes 00 00 f2 98)
 EPCI  [flag]  (bytes 01)
 FNum  [ui8 ]  (bytes 00)
 LSOF  [flag]  (bytes 01)
 LSSB  [{lso]  (bytes 01 01)
 MOST  [ui16]  3 (bytes 80 03)
 MSPS  [{msp]  (bytes 00)
 MSSD  [si8 ]  (bytes 03)
 NATJ  [ui8 ]  (bytes 00)
 NTOK  [ui8 ]  (bytes 01)
 NVPR  [ui8 ]  (bytes 00)
 OSK0  [ch8*]  (bytes 6f 75 72 68 61 72 64 77 6f 72 6b 62 79 74 68 65 73 65 77 6f 72 64 73 67 75 61 72 64 65 64 70 6c)
 OSK1  [ch8*]  (bytes 65 61 73 65 64 6f 6e 74 73 74 65 61 6c 28 63 29 41 70 70 6c 65 43 6f 6d 70 75 74 65 72 49 6e 63)
 REV   [{rev]  (bytes 01 30 0f 00 00 03)
 TC0D  [sp78]  (bytes 35 00)
 FRC0  [freq]  (bytes 00 00)
 TC1D  [sp78]  (bytes 35 00)
 FRC1  [freq]  (bytes 00 00)
 TC2D  [sp78]  (bytes 34 00)
 FRC2  [freq]  (bytes 00 00)
 TC3D  [sp78]  (bytes 34 00)
 FRC3  [freq]  (bytes 00 00)
 TC4D  [sp78]  (bytes 64 00)
 FRC4  [freq]  (bytes 00 00)
 TC5D  [sp78]  (bytes 64 00)
 FRC5  [freq]  (bytes 00 00)
 TC6D  [sp78]  (bytes 64 00)
 FRC6  [freq]  (bytes 00 00)
 TC7D  [sp78]  (bytes 64 00)
 FRC7  [freq]  (bytes 00 00)
 TC8D  [sp78]  (bytes 64 00)
 FRC8  [freq]  (bytes 00 00)
 TC9D  [sp78]  (bytes 64 00)
 FRC9  [freq]  (bytes 00 00)
 TCAD  [sp78]  (bytes 64 00)
 FRCA  [freq]  (bytes 00 00)
 TCBD  [sp78]  (bytes 64 00)
 FRCB  [freq]  (bytes 00 00)
 TCCD  [sp78]  (bytes 64 00)
 FRCC  [freq]  (bytes 00 00)
 TCDD  [sp78]  (bytes 64 00)
 FRCD  [freq]  (bytes 00 00)
 TCED  [sp78]  (bytes 64 00)
 FRCE  [freq]  (bytes 00 00)
 TCFD  [sp78]  (bytes 64 00)
 FRCF  [freq]  (bytes 00 00)
 RPlt  [ch8*]  (bytes 54 39 00 00 00 00)
 FGC0  [freq]  (bytes 91 ed)
 NATi  [ui16]  0 (bytes 00 00)
 MC0C  [ui16]  0 (bytes 50 00)
 MC1C  [ui16]  0 (bytes 50 00)
 MC2C  [ui16]  0 (bytes 50 00)
 MC3C  [ui16]  0 (bytes b4 00)
 MC4C  [ui16]  0 (bytes 00 00)
 MC5C  [ui16]  0 (bytes 00 00)
 MC6C  [ui16]  0 (bytes 00 00)
 MC7C  [ui16]  0 (bytes 00 00)
 MC8C  [ui16]  0 (bytes 00 00)
 MC9C  [ui16]  0 (bytes 00 00)
 MCAC  [ui16]  0 (bytes 00 00)
 MCBC  [ui16]  0 (bytes 00 00)
 MCCC  [ui16]  0 (bytes 00 00)
 MCDC  [ui16]  0 (bytes 00 00)
 MCEC  [ui16]  0 (bytes 00 00)
 MCFC  [ui16]  0 (bytes 00 00)
 MSDW  [ui8 ]  (bytes 01)

 

dont understand this keys :D

Link to comment
Share on other sites

The keys you added in acpimonitor (TCPU, TSYS, TDIM) are not there, I don't know if the problem is in DSDT or in the kext.

 

this is info plist

 

also should i add anther patch to anther part on dsdt or what

 

on last post on topic he added thing named skta don't know its function really :D

 

http://www.projectosx.com/forum/index.php?...ost&p=15865

Info.plist.zip

Link to comment
Share on other sites

Did you try removing this from device KBC?

				IO (Decode16,
				0x0062,			 // Range Minimum
				0x0062,			 // Range Maximum
				0x02,			   // Alignment
				0x01,			   // Length
				)
			IO (Decode16,
				0x0066,			 // Range Minimum
				0x0066,			 // Range Maximum
				0x06,			   // Alignment
				0x01,			   // Length
				)

 

Is device SMCD under scope _SB?

Link to comment
Share on other sites

You don't need these keys in keysToAdd, they are default

	if (kIOReturnSuccess == acpiDevice->validateObject("TCPU"))
	addSensor("TCPU", KEY_CPU_HEATSINK_TEMPERATURE, TYPE_SP78, 2);

if (kIOReturnSuccess == acpiDevice->validateObject("TSYS"))
	addSensor("TSYS", KEY_NORTHBRIDGE_TEMPERATURE, TYPE_SP78, 2);

if (kIOReturnSuccess == acpiDevice->validateObject("TDIM"))
	addSensor("TDIM", KEY_DIMM_TEMPERATURE, TYPE_SP78, 2);

http://atl-svn.assembla.com/svn/fakesmc/HW...ACPIMonitor.cpp

 

What do you see about acpimonitor in kernel log?

 

Try this device EC (change in CRS)

                Device (EC)
               {
                   Name (_HID, EisaId ("PNP0C09"))
                   Name (CRS, ResourceTemplate ()
                   {
                       IO (Decode16,
                           0x0062,             // Range Minimum
                           0x0062,             // Range Maximum
                           0x00,               // Alignment
                           0x01,               // Length
                           )
                       IO (Decode16,
                           0x0066,             // Range Minimum
                           0x0066,             // Range Maximum
                           0x00,               // Alignment
                           0x01,               // Length
                           )
                   })
                   Method (_CRS, 0, NotSerialized)
                   {
                       Return (CRS)
                   }
                   OperationRegion (ECOR, EmbeddedControl, Zero, 0xFF)
                   Field (ECOR, ByteAcc, Lock, Preserve)
                   {
                               Offset (0xA8), 
                       TCPU,   8, 
                       TDIM,   8, 
                               Offset (0xAB), 
                       TSYS,   8
                   }
               }

Link to comment
Share on other sites

You don't need these keys in keysToAdd, they are default

	if (kIOReturnSuccess == acpiDevice->validateObject("TCPU"))
	addSensor("TCPU", KEY_CPU_HEATSINK_TEMPERATURE, TYPE_SP78, 2);

if (kIOReturnSuccess == acpiDevice->validateObject("TSYS"))
	addSensor("TSYS", KEY_NORTHBRIDGE_TEMPERATURE, TYPE_SP78, 2);

if (kIOReturnSuccess == acpiDevice->validateObject("TDIM"))
	addSensor("TDIM", KEY_DIMM_TEMPERATURE, TYPE_SP78, 2);

http://atl-svn.assembla.com/svn/fakesmc/HW...ACPIMonitor.cpp

 

What do you see about acpimonitor in kernel log?

 

Try this device EC (change in CRS)

                Device (EC)
               {
                   Name (_HID, EisaId ("PNP0C09"))
                   Name (CRS, ResourceTemplate ()
                   {
                       IO (Decode16,
                           0x0062,             // Range Minimum
                           0x0062,             // Range Maximum
                           0x00,               // Alignment
                           0x01,               // Length
                           )
                       IO (Decode16,
                           0x0066,             // Range Minimum
                           0x0066,             // Range Maximum
                           0x00,               // Alignment
                           0x01,               // Length
                           )
                   })
                   Method (_CRS, 0, NotSerialized)
                   {
                       Return (CRS)
                   }
                   OperationRegion (ECOR, EmbeddedControl, Zero, 0xFF)
                   Field (ECOR, ByteAcc, Lock, Preserve)
                   {
                               Offset (0xA8), 
                       TCPU,   8, 
                       TDIM,   8, 
                               Offset (0xAB), 
                       TSYS,   8
                   }
               }

 

ok

i added above dsdt patch and returned info.plist as source

 

and here part of log

contain smcd device

 

Sep 12 20:53:30 localhost kernel[0]: FakeSMC: opensource SMC device emulator by netkas (C) 2009
Sep 12 20:53:30 localhost kernel[0]: FakeSMC: plugins & plugins support modifications by mozodojo, usr-sse2, slice (C) 2010
Sep 12 20:53:30 localhost kernel[0]: FakeSMCDevice: 17 preconfigured keys added: 
Sep 12 20:53:30 localhost kernel[0]: FakeSMCDevice: successfully initialized
Sep 12 20:53:30 localhost kernel[0]: IntelCPUMonitor: CPU family 0x6, model 0x2a, stepping 0x7, cores 16, threads 0
Sep 12 20:53:30 localhost kernel[0]: IntelCPUMonitor: BusClock=25MHz FSB=100MHz
Sep 12 20:53:30 localhost kernel[0]: IntelCPUMonitor: Platform string T9
Sep 12 20:53:30 localhost kernel[0]: IntelCPUMonitor: CPU0 Tjmax 100
Sep 12 20:53:30 localhost kernel[0]: IntelCPUMonitor: CPU1 Tjmax 100
Sep 12 20:53:30 localhost kernel[0]: IntelCPUMonitor: CPU2 Tjmax 100
Sep 12 20:53:30 localhost kernel[0]: IntelCPUMonitor: CPU3 Tjmax 100
Sep 12 20:53:30 localhost kernel[0]: IntelCPUMonitor: CPU4 Tjmax 100
Sep 12 20:53:30 localhost kernel[0]: IntelCPUMonitor: CPU5 Tjmax 100
Sep 12 20:53:30 localhost kernel[0]: IntelCPUMonitor: CPU6 Tjmax 100
Sep 12 20:53:30 localhost kernel[0]: IntelCPUMonitor: CPU7 Tjmax 100
Sep 12 20:53:30 localhost kernel[0]: IntelCPUMonitor: CPU8 Tjmax 100
Sep 12 20:53:30 localhost kernel[0]: IntelCPUMonitor: CPU9 Tjmax 100
Sep 12 20:53:30 localhost kernel[0]: IntelCPUMonitor: CPUA Tjmax 100
Sep 12 20:53:30 localhost kernel[0]: IntelCPUMonitor: CPUB Tjmax 100
Sep 12 20:53:30 localhost kernel[0]: IntelCPUMonitor: CPUC Tjmax 100
Sep 12 20:53:30 localhost kernel[0]: IntelCPUMonitor: CPUD Tjmax 100
Sep 12 20:53:30 localhost kernel[0]: IntelCPUMonitor: CPUE Tjmax 100
Sep 12 20:53:30 localhost kernel[0]: IntelCPUMonitor: CPUF Tjmax 100
Sep 12 20:53:30 localhost kernel[0]: NVClockX: [Warning] no nVidia graphics adapters found
Sep 12 20:53:30 localhost kernel[0]: NVClockX: [Warning] 
Sep 12 20:53:30 localhost kernel[0]: ARPT cannot assert wake from D3cold
Sep 12 20:53:30 localhost kernel[0]: NVClockX: NVClock Darwin port by alphamerik (C) 2010
Sep 12 20:53:30 localhost kernel[0]: NVClockX: usr-sse2 (C) 2010
Sep 12 20:53:30 localhost kernel[0]: NVClockX: Card: 0, Vendor ID: 10de, Device ID: df5, Architecture: 1000000, GF100 [GeForce GT 525M]

Link to comment
Share on other sites

Is the kext loaded?

 

I can't even load it on Lion, it complains about missing dependency

ACPIMonitor.kext - no dependency found for org.netkas.FakeSMC.
Diagnostics for ACPIMonitor.kext:
Dependency Resolution Failures: 
No kexts found for these libraries: 
	org.netkas.FakeSMC

even though FakeSMC is loaded

   12	4 0xffffff7f807ad000 0x7000	 0x7000	 org.netkas.FakeSMC (3.1.0) <8 7 5 4 3>

Link to comment
Share on other sites

Is the kext loaded?

 

I can't even load it on Lion, it complains about missing dependency

ACPIMonitor.kext - no dependency found for org.netkas.FakeSMC.
Diagnostics for ACPIMonitor.kext:
Dependency Resolution Failures: 
No kexts found for these libraries: 
	org.netkas.FakeSMC

even though FakeSMC is loaded

   12	4 0xffffff7f807ad000 0x7000	 0x7000	 org.netkas.FakeSMC (3.1.0) <8 7 5 4 3>

 

not loaded

nearly smcd device belong to fakesmc.kext

 

will try compile it under lion and see

 

compiled it but not load also :)

Link to comment
Share on other sites

I could load it putting in /S/L/E but it doesn't work and gets unloaded after a few minutes. There's no debug output at all.

 

 

i put all kexts i have on /s/l/e

 

 

 

any way thanks very much for your patience with me

 

i will wait for newer version of fakesmc after reporting about non loading on lion

 

so small question how can you change brightness by Fn key on lion

 

as i tried to inject two keys

 

birhgtness down case 0x05 code 91

 

brightness up case 0x06 code 90

 

on latest source of voodoo ps2 keyboard

 

now this keys dont says unkown code on log

 

but no function on brightness control

 

 

 

second problem the bluetooth is from atheros and work only on mac when i go to windows then restart to mac as windows trun bluetooth on and after restart still on so works on mac

 

but if i go to stright to mac doesnt work and on kernel log says problem about bluetooth

 

i tried to add vid and Did on hcl bluetooth kext but not solve problem

 

is there trick to make lion power on bluetooth by itself :)

 

 

 

 

 

thanks very much :P

Link to comment
Share on other sites

About brightness control check this thread

http://www.insanelymac.com/forum/index.php?showtopic=236835

 

About bluetooth I have no idea.

 

 

yes i read that topic i can control brightness from system prefpane with out brightness kext

 

but problem from keyboard kext the source on topic is old so i copied part of dell key to new source

 

but cant compile on lion so i edited key code to be like new source but control not work

 

 

 

i will try to compile under snow and see ;)

 

 

 

thanks

Link to comment
Share on other sites

this is the part on old source i want to add to new source

				
		case 0x06: //dell brightness up
			clock_get_uptime(&now);
			dispatchKeyboardEvent( 0x90, true, *((AbsoluteTime*)&now) );
			clock_get_uptime(&now);
			dispatchKeyboardEvent( 0x90, false, *((AbsoluteTime*)&now) );
			IOLog("Faking key release for brightness up\n");
			return false;


		case 0x05: //dell brightness down
			clock_get_uptime(&now);
			dispatchKeyboardEvent( 0x91, true, *((AbsoluteTime*)&now) );
			clock_get_uptime(&now);
			dispatchKeyboardEvent( 0x91, false, *((AbsoluteTime*)&now) );
			IOLog("Faking key release for brightness up\n");
			return false;

 

http://www.projectosx.com/forum/index.php?...ost&id=3214

 

this is the new source code i want to add the above keys to it but cant compile because of this lines

 

clock_get_uptime(&now);

*((AbsoluteTime*)&now) );

 

i have no idea about coca programming

 

i tried to make this keys as volume up and down but no function

 

		  case 0x06: keyCode = 0x90; break;		   // E006 = brightness up
	  case 0x05: keyCode = 0x91; break;		   // E005 = brightness down

 

so how to fix that

Link to comment
Share on other sites

  • 2 weeks later...

Unknown:

 Chipset Model:	Unknown
 Type:	GPU
 Bus:	PCIe
 Slot:	Slot-1
 PCIe Lane Width:	x16
 VRAM (Total):	256 MB
 Vendor:	ATI (0x1002)
 Device ID:	0x68c1
 Revision ID:	0x0000
 ROM Revision:	113-B7710C-176
 EFI Driver Version:	01.00.318
 Displays:
Display Connector:
Display Connector:

 

Hi again oldnapalm. I have almost everything working now. But the code above shows that my Graphics card is a little, well, puny. I got it to load but I know that something needs to go into the DSDT and cannot quite get it down. Could you take a gander and see if I did patch for HDMI video/audio alright?

 

dsdt.Jugz.zip

 

PS By the way, I have 1024GB MB of VRAM, how can this be fixed?

PSS My HDMI Audio is Redwood 0xaa601002

PSSS My HDMI Video is Madison 0x68c11002

Link to comment
Share on other sites

Hi, I found an issue about editing dsdt, the phenomenon is there are two External object in the DefinitionBlock area, look at the screenshot.

post-459659-1317263528_thumb.png

when I delete one of them, i can succeed compile the dsdt, but when save it as AML file, close the DSDT Editor and reopen the new DSDT.aml file, this error appears again.

The App version is V0.6

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
 Share

×
×
  • Create New...