Jump to content

DSDT: trick retail drivers by changing "device-id" (e.g USB)


  • Please log in to reply
365 replies to this topic

#341
Jonas_S

Jonas_S

    InsanelyMac Protégé

  • Members
  • Pip
  • 10 posts
Kizwan,

Thanks for looking at my code. I used DSDTSE to extract my DSDT file. I didn't copy and paste anything into the EHCI section -- in fact, I typed in the _DSM code because I was afraid of introducing non-ASCII characters -- I used tabs for spacing, maybe I should have used spaces? Anyway, it looks fine on my end, both in DSDTSE and textedit, so I'm unsure of what formatting to change. I've attached my original DSDT extract (without any edits) to this message as well.

Thanks again!

Attached Files



#342
kizwan

kizwan

    InsanelyMac Legend

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 1,422 posts

Kizwan,

Thanks for looking at my code. I used DSDTSE to extract my DSDT file. I didn't copy and paste anything into the EHCI section -- in fact, I typed in the _DSM code because I was afraid of introducing non-ASCII characters -- I used tabs for spacing, maybe I should have used spaces? Anyway, it looks fine on my end, both in DSDTSE and textedit, so I'm unsure of what formatting to change. I've attached my original DSDT extract (without any edits) to this message as well.

Thanks again!

Copy & paste from DSDTSE should be just find. This is your modified DSDT. I already add the EHCI injection codes & compiled it for you (dsdt.aml). Please search for "// start" & "// add return" in dsdt_modified.dsl file (in Debug folder) to see what has been added in your dsdt.
http://www.mediafire.com/?mxtjgmt5eto

#343
Zprood

Zprood

    InsanelyMac Sage

  • Members
  • PipPipPipPipPip
  • 252 posts
  • Gender:Male
  • Location:CHN

Kizwan,

Thanks for looking at my code. I used DSDTSE to extract my DSDT file. I didn't copy and paste anything into the EHCI section -- in fact, I typed in the _DSM code because I was afraid of introducing non-ASCII characters -- I used tabs for spacing, maybe I should have used spaces? Anyway, it looks fine on my end, both in DSDTSE and textedit, so I'm unsure of what formatting to change. I've attached my original DSDT extract (without any edits) to this message as well.

Thanks again!



My chip have some common with you ,the same ID like this
USB1 - UHCI Controller #1 = "device-id"  0x30, 0x28, 0x00, 0x00
USB2 - UHCI Controller #2 = "device-id"  0x31, 0x28, 0x00, 0x00
USB3 - UHCI Controller #3 = "device-id"  0x32, 0x28, 0x00, 0x00
USB4 - UHCI Controller #4 = "device-id"  0x34, 0x28, 0x00, 0x00
USB5 - UHCI Controller #5 = "device-id"  0x35, 0x28, 0x00, 0x00

EHC1 - EHCI Controller #1 = "device-id"  0x36, 0x28, 0x00, 0x00
EHC2 - EHCI Controller #2 = "device-id"  0x3A, 0x28, 0x00, 0x00

I introduce my conditions:
First ,I rename the Device (USB1) to Device (UHC1).....(USB5) to Device (UHC5),and other place when you get errors.So I just rename "USB" t o "UHC",and add the code under the Device (EHC1) and Device (EHC2) like this
Method (_DSM, 4, NotSerialized)
				{
					Store (Package (0x0B)
						{
							"AAPL,clock-id", 
							Buffer (One)
							{
								0x01
							}, 

							"device_type", 
							Buffer (0x05)
							{
								"EHCI"
							}, 

							"AAPL,current-available", 
							0x04B0, 
							"AAPL,current-extra", 
							0x02BC, 
							"AAPL,current-in-sleep", 
							0x03E8, 
							Buffer (One)
							{
								0x00
							}
						}, Local0)
					DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))
					Return (Local0)
				}
,then I can get computer sleep as well .Here is my DSDT:Attached File  dsdt.aml.zip   12.29KB   26 downloads
Attached File  _____________2010_06_17_7.40.07_PM.png   139.49KB   150 downloads

#344
sharewind

sharewind

    InsanelyMac Protégé

  • Just Joined
  • Pip
  • 1 posts
what should I do to make sleep enable?

my dsdt file can't find the method dtgp and isn't like the others;



the usb part of dsdt

[codebox] Device (USB0)
{
Name (_ADR, 0x001D0000)
Name (_S3D, 0x02)
Name (RID, Zero)
OperationRegion (U0CS, PCI_Config, 0xC4, 0x04)
Field (U0CS, DWordAcc, NoLock, Preserve)
{
U0EN, 2,
Offset (0x04)
}

Name (_PR0, Package (0x01)
{
^LPC.EC.PUBS
})
Name (_PR1, Package (0x01)
{
^LPC.EC.PUBS
})
Name (_PR2, Package (0x01)
{
^LPC.EC.PUBS
})
Name (_PRW, Package (0x03)
{
0x03,
0x03,
^LPC.EC.PUBS
})
Method (_PSW, 1, NotSerialized)
{
If (Arg0)
{
Store (0x03, U0EN)
}
Else
{
Store (Zero, U0EN)
}
}

Device (URTH)
{
Name (_ADR, Zero)
Device (PRT0)
{
Name (_ADR, One)
Name (_UPC, Package (0x04)
{
0xFF,
Zero,
Zero,
Zero
})
Name (_PLD, Buffer (0x10)
{
/* 0000 */ 0x81, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
/* 0008 */ 0x51, 0x0D, 0x00, 0x00, 0x03, 0x00, 0x00, 0x00
})
}

Device (PRT1)
{
Name (_ADR, 0x02)
Name (_UPC, Package (0x04)
{
0xFF,
Zero,
Zero,
Zero
})
Name (_PLD, Buffer (0x10)
{
/* 0000 */ 0x81, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
/* 0008 */ 0x51, 0x0D, 0x00, 0x00, 0x03, 0x00, 0x00, 0x00
})
}
}
}

Device (USB1)
{
Name (_ADR, 0x001D0001)
Name (RID, Zero)
Device (URTH)
{
Name (_ADR, Zero)
Device (PRT2)
{
Name (_ADR, One)
Name (_UPC, Package (0x04)
{
0xFF,
0xFF,
Zero,
Zero
})
Name (_PLD, Buffer (0x10)
{
/* 0000 */ 0x81, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
/* 0008 */ 0x30, 0x1C, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
})
}

Device (PRT3)
{
Name (_ADR, 0x02)
Name (_UPC, Package (0x04)
{
0xFF,
0xFF,
Zero,
Zero
})
Name (_PLD, Buffer (0x10)
{
/* 0000 */ 0x81, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
/* 0008 */ 0x30, 0x1C, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
})
}
}
}

Device (USB2)
{
Name (_ADR, 0x001D0002)
Name (RID, Zero)
Device (URTH)
{
Name (_ADR, Zero)
Device (PRT4)
{
Name (_ADR, One)
Name (_UPC, Package (0x04)
{
0xFF,
0xFF,
Zero,
Zero
})
Name (_PLD, Buffer (0x10)
{
/* 0000 */ 0x81, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
/* 0008 */ 0x30, 0x1C, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
})
}

Device (PRT5)
{
Name (_ADR, 0x02)
Name (_UPC, Package (0x04)
{
0xFF,
0xFF,
Zero,
Zero
})
Name (_PLD, Buffer (0x10)
{
/* 0000 */ 0x81, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
/* 0008 */ 0x30, 0x1C, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
})
}
}
}

Device (USB3)
{
Name (_ADR, 0x001A0000)
Name (_S3D, 0x02)
Name (RID, Zero)
OperationRegion (U3CS, PCI_Config, 0xC4, 0x04)
Field (U3CS, DWordAcc, NoLock, Preserve)
{
U3EN, 2,
Offset (0x04)
}

Name (_PR0, Package (0x01)
{
^LPC.EC.PUBS
})
Name (_PR1, Package (0x01)
{
^LPC.EC.PUBS
})
Name (_PR2, Package (0x01)
{
^LPC.EC.PUBS
})
Name (_PRW, Package (0x03)
{
0x0E,
0x03,
^LPC.EC.PUBS
})
Method (_PSW, 1, NotSerialized)
{
If (Arg0)
{
Store (0x03, U3EN)
}
Else
{
Store (Zero, U3EN)
}
}

Device (URTH)
{
Name (_ADR, Zero)
Device (PRT6)
{
Name (_ADR, One)
Name (_UPC, Package (0x04)
{
0xFF,
Zero,
Zero,
Zero
})
Name (_PLD, Buffer (0x10)
{
/* 0000 */ 0x81, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
/* 0008 */ 0x59, 0x0E, 0x00, 0x00, 0x03, 0x00, 0x00, 0x00
})
}

Device (UPEX)
{
Name (_ADR, 0x02)
Name (_UPC, Package (0x04)
{
0xFF,
0x02,
Zero,
Zero
})
Name (_PLD, Buffer (0x10)
{
/* 0000 */ 0x81, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
/* 0008 */ 0x11, 0x12, 0x00, 0x00, 0x03, 0x00, 0x00, 0x00
})
}
}
}

Device (USB4)
{
Name (_ADR, 0x001A0001)
Name (RID, Zero)
Device (URTH)
{
Name (_ADR, Zero)
Device (PRT8)
{
Name (_ADR, One)
Name (_UPC, Package (0x04)
{
0xFF,
0xFF,
Zero,
Zero
})
Name (_PLD, Buffer (0x10)
{
/* 0000 */ 0x81, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
/* 0008 */ 0x30, 0x1C, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
})
}

Device (PRT9)
{
Name (_ADR, 0x02)
Name (_UPC, Package (0x04)
{
0xFF,
0xFF,
Zero,
Zero
})
Name (_PLD, Buffer (0x10)
{
/* 0000 */ 0x81, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
/* 0008 */ 0x30, 0x1C, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
})
}
}
}

Device (USB5)
{
Name (_ADR, 0x001A0002)
Name (_S3D, 0x02)
Name (RID, Zero)
OperationRegion (U5CS, PCI_Config, 0xC4, 0x04)
Field (U5CS, DWordAcc, NoLock, Preserve)
{
U5EN, 2,
Offset (0x04)
}

Name (_PR0, Package (0x01)
{
^LPC.EC.PUBS
})
Name (_PR1, Package (0x01)
{
^LPC.EC.PUBS
})
Name (_PR2, Package (0x01)
{
^LPC.EC.PUBS
})
Name (_PRW, Package (0x03)
{
0x20,
0x03,
^LPC.EC.PUBS
})
Method (_PSW, 1, NotSerialized)
{
If (Arg0)
{
Store (0x03, U5EN)
}
Else
{
Store (Zero, U5EN)
}
}

Device (URTH)
{
Name (_ADR, Zero)
Device (UPDK)
{
Name (_ADR, One)
Name (_UPC, Package (0x04)
{
0xFF,
Zero,
Zero,
Zero
})
Name (_PLD, Buffer (0x10)
{
/* 0000 */ 0x81, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
/* 0008 */ 0x6B, 0x11, 0x00, 0x00, 0x03, 0x00, 0x00, 0x00
})
}

Device (PRTB)
{
Name (_ADR, 0x02)
Name (_UPC, Package (0x04)
{
0xFF,
0xFF,
Zero,
Zero
})
Name (_PLD, Buffer (0x10)
{
/* 0000 */ 0x81, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
/* 0008 */ 0x30, 0x1C, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
})
}
}
}

Device (EHC0)
{
Name (_ADR, 0x001D0007)
Name (_S3D, 0x03)
Name (RID, Zero)
OperationRegion (U7CS, PCI_Config, 0x60, 0x04)
Field (U7CS, DWordAcc, NoLock, Preserve)
{
Offset (0x02),
PWKI, 1,
PWUC, 6,
Offset (0x04)
}

Name (_PR0, Package (0x01)
{
^LPC.EC.PUBS
})
Name (_PR1, Package (0x01)
{
^LPC.EC.PUBS
})
Name (_PR2, Package (0x01)
{
^LPC.EC.PUBS
})
Method (_INI, 0, NotSerialized)
{
Store (One, PWKI)
Store (0x0F, PWUC)
}

Name (_PRW, Package (0x03)
{
0x0D,
0x03,
^LPC.EC.PUBS
})
Device (URTH)
{
Name (_ADR, Zero)
Device (PRT0)
{
Name (_ADR, One)
Name (_UPC, Package (0x04)
{
0xFF,
Zero,
Zero,
Zero
})
Name (_PLD, Buffer (0x10)
{
/* 0000 */ 0x81, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
/* 0008 */ 0x51, 0x0D, 0x00, 0x00, 0x03, 0x00, 0x00, 0x00
})
}

Device (PRT1)
{
Name (_ADR, 0x02)
Name (_UPC, Package (0x04)
{
0xFF,
Zero,
Zero,
Zero
})
Name (_PLD, Buffer (0x10)
{
/* 0000 */ 0x81, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
/* 0008 */ 0x51, 0x0D, 0x00, 0x00, 0x03, 0x00, 0x00, 0x00
})
}

Device (PRT2)
{
Name (_ADR, 0x03)
Name (_UPC, Package (0x04)
{
0xFF,
0xFF,
Zero,
Zero
})
Name (_PLD, Buffer (0x10)
{
/* 0000 */ 0x81, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
/* 0008 */ 0x30, 0x1C, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
})
}

Device (PRT3)
{
Name (_ADR, 0x04)
Name (_UPC, Package (0x04)
{
0xFF,
0xFF,
Zero,
Zero
})
Name (_PLD, Buffer (0x10)
{
/* 0000 */ 0x81, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
/* 0008 */ 0x30, 0x1C, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
})
}

Device (PRT4)
{
Name (_ADR, 0x05)
Name (_UPC, Package (0x04)
{
0xFF,
0xFF,
Zero,
Zero
})
Name (_PLD, Buffer (0x10)
{
/* 0000 */ 0x81, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
/* 0008 */ 0x30, 0x1C, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
})
}

Device (PRT5)
{
Name (_ADR, 0x06)
Name (_UPC, Package (0x04)
{
0xFF,
0xFF,
Zero,
Zero
})
Name (_PLD, Buffer (0x10)
{
/* 0000 */ 0x81, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
/* 0008 */ 0x30, 0x1C, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
})
}
}
}

Device (EHC1)
{
Name (_ADR, 0x001A0007)
Name (_S3D, 0x03)
Name (RID, Zero)
OperationRegion (U8CS, PCI_Config, 0x60, 0x04)
Field (U8CS, DWordAcc, NoLock, Preserve)
{
Offset (0x02),
PWKI, 1,
PWUC, 4,
Offset (0x04)
}

Name (_PR0, Package (0x01)
{
^LPC.EC.PUBS
})
Name (_PR1, Package (0x01)
{
^LPC.EC.PUBS
})
Name (_PR2, Package (0x01)
{
^LPC.EC.PUBS
})
Method (_INI, 0, NotSerialized)
{
Store (One, PWKI)
Store (0x0F, PWUC)
}

Name (_PRW, Package (0x03)
{
0x0D,
0x03,
^LPC.EC.PUBS
})
Device (URTH)
{
Name (_ADR, Zero)
Device (PRT6)
{
Name (_ADR, One)
Name (_UPC, Package (0x04)
{
0xFF,
Zero,
Zero,
Zero
})
Name (_PLD, Buffer (0x10)
{
/* 0000 */ 0x81, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
/* 0008 */ 0x59, 0x0E, 0x00, 0x00, 0x03, 0x00, 0x00, 0x00
})
}

Device (UPEX)
{
Name (_ADR, 0x02)
Name (_UPC, Package (0x04)
{
0xFF,
0x02,
Zero,
Zero
})
Name (_PLD, Buffer (0x10)
{
/* 0000 */ 0x81, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
/* 0008 */ 0x11, 0x12, 0x00, 0x00, 0x03, 0x00, 0x00, 0x00
})
}

Device (PRT8)
{
Name (_ADR, 0x03)
Name (_UPC, Package (0x04)
{
0xFF,
0xFF,
Zero,
Zero
})
Name (_PLD, Buffer (0x10)
{
/* 0000 */ 0x81, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
/* 0008 */ 0x30, 0x1C, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
})
}

Device (PRT9)
{
Name (_ADR, 0x04)
Name (_UPC, Package (0x04)
{
0xFF,
0xFF,
Zero,
Zero
})
Name (_PLD, Buffer (0x10)
{
/* 0000 */ 0x81, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
/* 0008 */ 0x30, 0x1C, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
})
}

Device (UPDK)
{
Name (_ADR, 0x05)
Name (_UPC, Package (0x04)
{
0xFF,
Zero,
Zero,
Zero
})
Name (_PLD, Buffer (0x10)
{
/* 0000 */ 0x81, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
/* 0008 */ 0x6B, 0x11, 0x00, 0x00, 0x03, 0x00, 0x00, 0x00
})
}

Device (PRTB)
{
Name (_ADR, 0x06)
Name (_UPC, Package (0x04)
{
0xFF,
0xFF,
Zero,
Zero
})
Name (_PLD, Buffer (0x10)
{
/* 0000 */ 0x81, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
/* 0008 */ 0x30, 0x1C, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
})
}
}
}[/codebox]

Attached Files

  • Attached File  dsdt.zip   45.46KB   4 downloads


#345
oldnapalm

oldnapalm

    InsanelyMac V.I.P.

  • Moderators
  • 6,860 posts
  • Gender:Male
  • Location:Brazil
Hello guys,

you can easily apply this patch to your DSDT using this editor.

Here is the patch in the automated patcher format

Attached File  USB___ICH9_sleep_fix.txt.zip   1.16KB   123 downloads

Regards.

#346
Noodle09

Noodle09

    InsanelyMac Protégé

  • Members
  • Pip
  • 43 posts
Hi All,

I'm still learning how to patch DSDT to make AHCI and speedstep work on my ABit IB9 motherboard with Q6600 CPU.

ABit IB9 using ICH8 chipset. so:
For AHCI, I tried both ESB 2 (2681) and ICH8MAHCI (2829), but both give me KP. I attached screen shot.

For speedstep, I keep getting KP as "CPU 1 has no HPET assigned to it" without NullCPUManagement.kext.

I'm using MacPro3,1 model in my smbios.plist. Running 10.6.4 with all latest update.

Attached is my current DSDT (without AHCI device-id).

lspci -nn
00:00.0 Host bridge [0600]: Intel Corporation 82P965/G965 Memory Controller Hub [8086:29a0] (rev 02)
00:01.0 PCI bridge [0604]: Intel Corporation 82P965/G965 PCI Express Root Port [8086:29a1] (rev 02)
00:1a.0 USB Controller [0c03]: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #4 [8086:2834] (rev 02)
00:1a.1 USB Controller [0c03]: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #5 [8086:2835] (rev 02)
00:1a.7 USB Controller [0c03]: Intel Corporation 82801H (ICH8 Family) USB2 EHCI Controller #2 [8086:283a] (rev 02)
00:1b.0 Audio device [0403]: Intel Corporation 82801H (ICH8 Family) HD Audio Controller [8086:284b] (rev 02)
00:1d.0 USB Controller [0c03]: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #1 [8086:2830] (rev 02)
00:1d.1 USB Controller [0c03]: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #2 [8086:2831] (rev 02)
00:1d.2 USB Controller [0c03]: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #3 [8086:2832] (rev 02)
00:1d.7 USB Controller [0c03]: Intel Corporation 82801H (ICH8 Family) USB2 EHCI Controller #1 [8086:2836] (rev 02)
00:1e.0 PCI bridge [0604]: Intel Corporation 82801 PCI Bridge [8086:244e] (rev f2)
00:1f.0 ISA bridge [0601]: Intel Corporation 82801HB/HR (ICH8/R) LPC Interface Controller [8086:2810] (rev 02)
00:1f.2 IDE interface [0101]: Intel Corporation 82801H (ICH8 Family) 4 port SATA IDE Controller [8086:2820] (rev 02)
00:1f.3 SMBus [0c05]: Intel Corporation 82801H (ICH8 Family) SMBus Controller [8086:283e] (rev 02)
00:1f.5 IDE interface [0101]: Intel Corporation 82801H (ICH8 Family) 2 port SATA IDE Controller [8086:2825] (rev 02)
01:00.0 VGA compatible controller [0300]: nVidia Corporation G84 [GeForce 8600 GTS] [10de:0400] (rev a1)
02:01.0 Ethernet controller [0200]: Realtek Semiconductor Co., Ltd. RTL-8110SC/8169SC Gigabit Ethernet [10ec:8167] (rev 10)

kextstat | grep LPC
59	0 0xffffff7f80f52000 0x3000	 0x3000	 com.apple.driver.AppleLPC (1.4.12) <9 5 4 3>

Can somebody please help me to take a look? Let me know if you need more information.

Thanks a lot

Noodle

Attached Files

  • Attached File  DSDT.zip   14.98KB   4 downloads
  • Attached File  KP.jpg   160.91KB   58 downloads


#347
Apacalypse

Apacalypse

    InsanelyMac Protégé

  • Members
  • Pip
  • 45 posts
I am trying to get my Graphics card working can someone give me a hand? I have tried a few things I don't know if i am going in the right direction. I want to enable Full QE/CI But i don't know how to use DSDTSE and the tutorial and not really descriptive. I have 2 nVidia Quadro FX 4800. I would really appreciate the help.

#348
TheOriginalPol

TheOriginalPol

    InsanelyMac Geek

  • Members
  • PipPipPip
  • 121 posts
You're in the wrong place, buddy... this thread is about something completely different :-)

#349
fingerr

fingerr

    InsanelyMac Sage

  • Members
  • PipPipPipPipPip
  • 260 posts
  • Gender:Male
  • Location:Poland
Hi all,

I'd like to ask if someone can help me figure it out how to make sleep work.

I have Asus U30JC HM55 based and my USB devices are 8086:3b34 and 8086:3b34.
I was trying to modify my DSDT but after modding I still can see errata 0x0 in IOReg.

Below is my EHC1/2 section. Can someone have a look and help me please?

Device (EHC1)            {                Name (_ADR, 0x001D0000)                OperationRegion (U20P, PCI_Config, 0x00, 0x0100)                Field (U20P, ByteAcc, NoLock, Preserve)                {                            Offset (0x04),                         ,   1,                     MSPE,   1,                             Offset (0x06),                             Offset (0x10),                     MBAS,   32,                             Offset (0x54),                     PSTA,   2,                             Offset (0x55),                     PMEE,   1,                         ,   6,                     PMES,   1                }                Method (_PSW, 1, NotSerialized)                {                    Store (MBAS, Local0)                    If (LEqual (Local0, 0xFFFFFFFF)) {}                    Else                    {                        And (Local0, 0xFFFFFFF0, Local0)                        OperationRegion (MMIO, SystemMemory, Local0, 0x0100)                        Field (MMIO, ByteAcc, NoLock, Preserve)                        {                                    Offset (0x64),                             P0SC,   32,                             P1SC,   32,                             P2SC,   32,                             P3SC,   32,                             P4SC,   32,                             P5SC,   32                        }                        If (LNot (Local0))                        {                            Store (PSTA, Local2)                            Store (Zero, PSTA)                            Store (MSPE, Local3)                            Store (One, MSPE)                            If (Arg0)                            {                                Store (P0SC, Local4)                                Or (Local4, 0x00300000, Local4)                                Store (Local4, P0SC)                                Store (P1SC, Local4)                                Or (Local4, 0x00300000, Local4)                                Store (Local4, P1SC)                                Store (P2SC, Local4)                                Or (Local4, 0x00300000, Local4)                                Store (Local4, P2SC)                                Store (P3SC, Local4)                                Or (Local4, 0x00300000, Local4)                                Store (Local4, P3SC)                                Store (P4SC, Local4)                                Or (Local4, 0x00300000, Local4)                                Store (Local4, P4SC)                                Store (P5SC, Local4)                                Or (Local4, 0x00300000, Local4)                                Store (Local4, P5SC)                                Store (One, PMES)                                Store (One, PMEE)                            }                            Else                            {                                Store (P0SC, Local4)                                And (Local4, 0xFFCFFFFF, Local4)                                Store (Local4, P0SC)                                Store (P1SC, Local4)                                And (Local4, 0xFFCFFFFF, Local4)                                Store (Local4, P1SC)                                Store (P2SC, Local4)                                And (Local4, 0xFFCFFFFF, Local4)                                Store (Local4, P2SC)                                Store (P3SC, Local4)                                And (Local4, 0xFFCFFFFF, Local4)                                Store (Local4, P3SC)                                Store (P4SC, Local4)                                And (Local4, 0xFFCFFFFF, Local4)                                Store (Local4, P4SC)                                Store (P5SC, Local4)                                And (Local4, 0xFFCFFFFF, Local4)                                Store (Local4, P5SC)                                Store (One, PMES)                                Store (Zero, PMEE)                            }                            Store (Local3, MSPE)                            Store (Local2, PSTA)                        }                    }                }                Method (_PRW, 0, NotSerialized)                {                    Return (GPRW (0x0D, 0x03))                }            }            Device (USB1)            {                Name (_ADR, 0x001D0001)                OperationRegion (BAR0, PCI_Config, 0xC0, 0x05)                Field (BAR0, ByteAcc, NoLock, Preserve)                {                    UBL1,   16,                             Offset (0x04),                     P0WE,   1,                     P1WE,   1,                             Offset (0x05)                }                Method (_S3D, 0, NotSerialized)                {                    If (LOr (LOr (LEqual (\MSOS (), \OS9X), LEqual (\MSOS (), \OS98)), LEqual (                        \MSOS (), \OSME)))                    {                        Return (0x02)                    }                    Else                    {                        Return (0x03)                    }                }                Method (_PSW, 1, NotSerialized)                {                    If (Arg0)                    {                        Store (0x01, P0WE)                        Store (0x01, P1WE)                    }                    Else                    {                        Store (0x00, P0WE)                        Store (0x00, P1WE)                    }                }                Method (UPAC, 1, NotSerialized)                {                    Store (Zero, Local0)                    If (LEqual (OSFG, OS9X))                    {                        Store (One, Local0)                    }                    Else                    {                        If (LEqual (OSFG, OS98))                        {                            Store (One, Local0)                        }                    }                    If (Local0)                    {                        If (LEqual (Arg0, 0x03))                        {                            Return (One)                        }                    }                    Return (Zero)                }                OperationRegion (UPCI, PCI_Config, 0x20, 0x04)                Field (UPCI, ByteAcc, NoLock, Preserve)                {                    UBAS,   32                }                Name (BASA, 0xB400)                Name (P0ST, Zero)                Name (P1ST, Zero)                Method (SSTA, 0, NotSerialized)                {                    Store (UBAS, BASA)                    And (BASA, 0xFFFFFFFE, BASA)                    OperationRegion (UHCI, SystemIO, BASA, 0x20)                    Field (UHCI, ByteAcc, NoLock, Preserve)                    {                        RSTP,   1,                         HRST,   1,                         GRST,   1,                                 Offset (0x10),                         CCS0,   1,                         CSC0,   1,                         PED0,   1,                                 Offset (0x12),                         CCS1,   1,                         CSC1,   1,                         PED1,   1                    }                    Store (CCS0, P0ST)                    Store (CCS1, P1ST)                }                Method (RSTA, 0, NotSerialized)                {                    Store (BASA, UBAS)                    OperationRegion (UHCI, SystemIO, BASA, 0x20)                    Field (UHCI, ByteAcc, NoLock, Preserve)                    {                        RSTP,   1,                         HRST,   1,                         GRST,   1,                                 Offset (0x10),                         CCS0,   1,                         CSC0,   1,                         PED0,   1,                                 Offset (0x12),                         CCS1,   1,                         CSC1,   1,                         PED1,   1                    }                }                Method (USBS, 1, NotSerialized)                {                    If (UPAC (Arg0))                    {                        SSTA ()                    }                }                Method (USBW, 1, NotSerialized)                {                    If (UPAC (Arg0))                    {                        RSTA ()                    }                }                Method (_PRW, 0, NotSerialized)                {                    Return (GPRW (0x03, 0x03))                }            }            Device (USB2)            {                Name (_ADR, 0x001D0002)                OperationRegion (BAR0, PCI_Config, 0xC0, 0x05)                Field (BAR0, ByteAcc, NoLock, Preserve)                {                    UBL1,   16,                             Offset (0x04),                     P0WE,   1,                     P1WE,   1,                             Offset (0x05)                }                Method (_S3D, 0, NotSerialized)                {                    If (LOr (LOr (LEqual (\MSOS (), \OS9X), LEqual (\MSOS (), \OS98)), LEqual (                        \MSOS (), \OSME)))                    {                        Return (0x02)                    }                    Else                    {                        Return (0x03)                    }                }                Method (_PSW, 1, NotSerialized)                {                    If (Arg0)                    {                        Store (0x01, P0WE)                        Store (0x01, P1WE)                    }                    Else                    {                        Store (0x00, P0WE)                        Store (0x00, P1WE)                    }                }                Method (UPAC, 1, NotSerialized)                {                    Store (Zero, Local0)                    If (LEqual (OSFG, OS9X))                    {                        Store (One, Local0)                    }                    Else                    {                        If (LEqual (OSFG, OS98))                        {                            Store (One, Local0)                        }                    }                    If (Local0)                    {                        If (LEqual (Arg0, 0x03))                        {                            Return (One)                        }                    }                    Return (Zero)                }                OperationRegion (UPCI, PCI_Config, 0x20, 0x04)                Field (UPCI, ByteAcc, NoLock, Preserve)                {                    UBAS,   32                }                Name (BASA, 0xB400)                Name (P0ST, Zero)                Name (P1ST, Zero)                Method (SSTA, 0, NotSerialized)                {                    Store (UBAS, BASA)                    And (BASA, 0xFFFFFFFE, BASA)                    OperationRegion (UHCI, SystemIO, BASA, 0x20)                    Field (UHCI, ByteAcc, NoLock, Preserve)                    {                        RSTP,   1,                         HRST,   1,                         GRST,   1,                                 Offset (0x10),                         CCS0,   1,                         CSC0,   1,                         PED0,   1,                                 Offset (0x12),                         CCS1,   1,                         CSC1,   1,                         PED1,   1                    }                    Store (CCS0, P0ST)                    Store (CCS1, P1ST)                }                Method (RSTA, 0, NotSerialized)                {                    Store (BASA, UBAS)                    OperationRegion (UHCI, SystemIO, BASA, 0x20)                    Field (UHCI, ByteAcc, NoLock, Preserve)                    {                        RSTP,   1,                         HRST,   1,                         GRST,   1,                                 Offset (0x10),                         CCS0,   1,                         CSC0,   1,                         PED0,   1,                                 Offset (0x12),                         CCS1,   1,                         CSC1,   1,                         PED1,   1                    }                }                Method (USBS, 1, NotSerialized)                {                    If (UPAC (Arg0))                    {                        SSTA ()                    }                }                Method (USBW, 1, NotSerialized)                {                    If (UPAC (Arg0))                    {                        RSTA ()                    }                }                Method (_PRW, 0, NotSerialized)                {                    Return (GPRW (0x04, 0x03))                }            }            Device (USB3)            {                Name (_ADR, 0x001D0003)                OperationRegion (BAR0, PCI_Config, 0xC0, 0x05)                Field (BAR0, ByteAcc, NoLock, Preserve)                {                    UBL1,   16,                             Offset (0x04),                     P0WE,   1,                     P1WE,   1,                             Offset (0x05)                }                Method (_S3D, 0, NotSerialized)                {                    If (LOr (LOr (LEqual (\MSOS (), \OS9X), LEqual (\MSOS (), \OS98)), LEqual (                        \MSOS (), \OSME)))                    {                        Return (0x02)                    }                    Else                    {                        Return (0x03)                    }                }                Method (_PSW, 1, NotSerialized)                {                    If (Arg0)                    {                        Store (0x01, P0WE)                        Store (0x01, P1WE)                    }                    Else                    {                        Store (0x00, P0WE)                        Store (0x00, P1WE)                    }                }                Method (UPAC, 1, NotSerialized)                {                    Store (Zero, Local0)                    If (LEqual (OSFG, OS9X))                    {                        Store (One, Local0)                    }                    Else                    {                        If (LEqual (OSFG, OS98))                        {                            Store (One, Local0)                        }                    }                    If (Local0)                    {                        If (LEqual (Arg0, 0x03))                        {                            Return (One)                        }                    }                    Return (Zero)                }                OperationRegion (UPCI, PCI_Config, 0x20, 0x04)                Field (UPCI, ByteAcc, NoLock, Preserve)                {                    UBAS,   32                }                Name (BASA, 0xB400)                Name (P0ST, Zero)                Name (P1ST, Zero)                Method (SSTA, 0, NotSerialized)                {                    Store (UBAS, BASA)                    And (BASA, 0xFFFFFFFE, BASA)                    OperationRegion (UHCI, SystemIO, BASA, 0x20)                    Field (UHCI, ByteAcc, NoLock, Preserve)                    {                        RSTP,   1,                         HRST,   1,                         GRST,   1,                                 Offset (0x10),                         CCS0,   1,                         CSC0,   1,                         PED0,   1,                                 Offset (0x12),                         CCS1,   1,                         CSC1,   1,                         PED1,   1                    }                    Store (CCS0, P0ST)                    Store (CCS1, P1ST)                }                Method (RSTA, 0, NotSerialized)                {                    Store (BASA, UBAS)                    OperationRegion (UHCI, SystemIO, BASA, 0x20)                    Field (UHCI, ByteAcc, NoLock, Preserve)                    {                        RSTP,   1,                         HRST,   1,                         GRST,   1,                                 Offset (0x10),                         CCS0,   1,                         CSC0,   1,                         PED0,   1,                                 Offset (0x12),                         CCS1,   1,                         CSC1,   1,                         PED1,   1                    }                }                Method (USBS, 1, NotSerialized)                {                    If (UPAC (Arg0))                    {                        SSTA ()                    }                }                Method (USBW, 1, NotSerialized)                {                    If (UPAC (Arg0))                    {                        RSTA ()                    }                }                Method (_PRW, 0, NotSerialized)                {                    Return (GPRW (0x0C, 0x03))                }            }            Device (USB4)            {                Name (_ADR, 0x001D0004)                OperationRegion (BAR0, PCI_Config, 0xC0, 0x05)                Field (BAR0, ByteAcc, NoLock, Preserve)                {                    UBL1,   16,                             Offset (0x04),                     P0WE,   1,                     P1WE,   1,                             Offset (0x05)                }                Method (_S3D, 0, NotSerialized)                {                    If (LOr (LOr (LEqual (\MSOS (), \OS9X), LEqual (\MSOS (), \OS98)), LEqual (                        \MSOS (), \OSME)))                    {                        Return (0x02)                    }                    Else                    {                        Return (0x03)                    }                }                Method (_PSW, 1, NotSerialized)                {                    If (Arg0)                    {                        Store (0x01, P0WE)                        Store (0x01, P1WE)                    }                    Else                    {                        Store (0x00, P0WE)                        Store (0x00, P1WE)                    }                }                Method (UPAC, 1, NotSerialized)                {                    Store (Zero, Local0)                    If (LEqual (OSFG, OS9X))                    {                        Store (One, Local0)                    }                    Else                    {                        If (LEqual (OSFG, OS98))                        {                            Store (One, Local0)                        }                    }                    If (Local0)                    {                        If (LEqual (Arg0, 0x03))                        {                            Return (One)                        }                    }                    Return (Zero)                }                OperationRegion (UPCI, PCI_Config, 0x20, 0x04)                Field (UPCI, ByteAcc, NoLock, Preserve)                {                    UBAS,   32                }                Name (BASA, 0xB400)                Name (P0ST, Zero)                Name (P1ST, Zero)                Method (SSTA, 0, NotSerialized)                {                    Store (UBAS, BASA)                    And (BASA, 0xFFFFFFFE, BASA)                    OperationRegion (UHCI, SystemIO, BASA, 0x20)                    Field (UHCI, ByteAcc, NoLock, Preserve)                    {                        RSTP,   1,                         HRST,   1,                         GRST,   1,                                 Offset (0x10),                         CCS0,   1,                         CSC0,   1,                         PED0,   1,                                 Offset (0x12),                         CCS1,   1,                         CSC1,   1,                         PED1,   1                    }                    Store (CCS0, P0ST)                    Store (CCS1, P1ST)                }                Method (RSTA, 0, NotSerialized)                {                    Store (BASA, UBAS)                    OperationRegion (UHCI, SystemIO, BASA, 0x20)                    Field (UHCI, ByteAcc, NoLock, Preserve)                    {                        RSTP,   1,                         HRST,   1,                         GRST,   1,                                 Offset (0x10),                         CCS0,   1,                         CSC0,   1,                         PED0,   1,                                 Offset (0x12),                         CCS1,   1,                         CSC1,   1,                         PED1,   1                    }                }                Method (USBS, 1, NotSerialized)                {                    If (UPAC (Arg0))                    {                        SSTA ()                    }                }                Method (USBW, 1, NotSerialized)                {                    If (UPAC (Arg0))                    {                        RSTA ()                    }                }                Method (_PRW, 0, NotSerialized)                {                    Return (GPRW (0x0E, 0x03))                }            }            Device (EHC2)            {                Name (_ADR, 0x001A0000)                OperationRegion (U20P, PCI_Config, 0x00, 0x0100)                Field (U20P, ByteAcc, NoLock, Preserve)                {                            Offset (0x04),                         ,   1,                     MSPE,   1,                             Offset (0x06),                             Offset (0x10),                     MBAS,   32,                             Offset (0x54),                     PSTA,   2,                             Offset (0x55),                     PMEE,   1,                         ,   6,                     PMES,   1                }                Method (_PSW, 1, NotSerialized)                {                    Store (MBAS, Local0)                    If (LEqual (Local0, 0xFFFFFFFF)) {}                    Else                    {                        And (Local0, 0xFFFFFFF0, Local0)                        OperationRegion (MMIO, SystemMemory, Local0, 0x0100)                        Field (MMIO, ByteAcc, NoLock, Preserve)                        {                                    Offset (0x64),                             P0SC,   32,                             P1SC,   32,                             P2SC,   32,                             P3SC,   32,                             P4SC,   32,                             P5SC,   32                        }                        If (LNot (Local0))                        {                            Store (PSTA, Local2)                            Store (Zero, PSTA)                            Store (MSPE, Local3)                            Store (One, MSPE)                            If (Arg0)                            {                                Store (P0SC, Local4)                                Or (Local4, 0x00300000, Local4)                                Store (Local4, P0SC)                                Store (P1SC, Local4)                                Or (Local4, 0x00300000, Local4)                                Store (Local4, P1SC)                                Store (P2SC, Local4)                                Or (Local4, 0x00300000, Local4)                                Store (Local4, P2SC)                                Store (P3SC, Local4)                                Or (Local4, 0x00300000, Local4)                                Store (Local4, P3SC)                                Store (P4SC, Local4)                                Or (Local4, 0x00300000, Local4)                                Store (Local4, P4SC)                                Store (P5SC, Local4)                                Or (Local4, 0x00300000, Local4)                                Store (Local4, P5SC)                                Store (One, PMES)                                Store (One, PMEE)                            }                            Else                            {                                Store (P0SC, Local4)                                And (Local4, 0xFFCFFFFF, Local4)                                Store (Local4, P0SC)                                Store (P1SC, Local4)                                And (Local4, 0xFFCFFFFF, Local4)                                Store (Local4, P1SC)                                Store (P2SC, Local4)                                And (Local4, 0xFFCFFFFF, Local4)                                Store (Local4, P2SC)                                Store (P3SC, Local4)                                And (Local4, 0xFFCFFFFF, Local4)                                Store (Local4, P3SC)                                Store (P4SC, Local4)                                And (Local4, 0xFFCFFFFF, Local4)                                Store (Local4, P4SC)                                Store (P5SC, Local4)                                And (Local4, 0xFFCFFFFF, Local4)                                Store (Local4, P5SC)                                Store (One, PMES)                                Store (Zero, PMEE)                            }                            Store (Local3, MSPE)                            Store (Local2, PSTA)                        }                    }                }                Method (_PRW, 0, NotSerialized)                {                    Return (GPRW (0x0D, 0x03))                }            }            Device (USB5)            {                Name (_ADR, 0x001A0001)                OperationRegion (BAR0, PCI_Config, 0xC0, 0x05)                Field (BAR0, ByteAcc, NoLock, Preserve)                {                    UBL1,   16,                             Offset (0x04),                     P0WE,   1,                     P1WE,   1,                             Offset (0x05)                }                Method (_S3D, 0, NotSerialized)                {                    If (LOr (LOr (LEqual (\MSOS (), \OS9X), LEqual (\MSOS (), \OS98)), LEqual (                        \MSOS (), \OSME)))                    {                        Return (0x02)                    }                    Else                    {                        Return (0x03)                    }                }                Method (_PSW, 1, NotSerialized)                {                    If (Arg0)                    {                        Store (0x01, P0WE)                        Store (0x01, P1WE)                    }                    Else                    {                        Store (0x00, P0WE)                        Store (0x00, P1WE)                    }                }                Method (UPAC, 1, NotSerialized)                {                    Store (Zero, Local0)                    If (LEqual (OSFG, OS9X))                    {                        Store (One, Local0)                    }                    Else                    {                        If (LEqual (OSFG, OS98))                        {                            Store (One, Local0)                        }                    }                    If (Local0)                    {                        If (LEqual (Arg0, 0x03))                        {                            Return (One)                        }                    }                    Return (Zero)                }                OperationRegion (UPCI, PCI_Config, 0x20, 0x04)                Field (UPCI, ByteAcc, NoLock, Preserve)                {                    UBAS,   32                }                Name (BASA, 0xB400)                Name (P0ST, Zero)                Name (P1ST, Zero)                Method (SSTA, 0, NotSerialized)                {                    Store (UBAS, BASA)                    And (BASA, 0xFFFFFFFE, BASA)                    OperationRegion (UHCI, SystemIO, BASA, 0x20)                    Field (UHCI, ByteAcc, NoLock, Preserve)                    {                        RSTP,   1,                         HRST,   1,                         GRST,   1,                                 Offset (0x10),                         CCS0,   1,                         CSC0,   1,                         PED0,   1,                                 Offset (0x12),                         CCS1,   1,                         CSC1,   1,                         PED1,   1                    }                    Store (CCS0, P0ST)                    Store (CCS1, P1ST)                }                Method (RSTA, 0, NotSerialized)                {                    Store (BASA, UBAS)                    OperationRegion (UHCI, SystemIO, BASA, 0x20)                    Field (UHCI, ByteAcc, NoLock, Preserve)                    {                        RSTP,   1,                         HRST,   1,                         GRST,   1,                                 Offset (0x10),                         CCS0,   1,                         CSC0,   1,                         PED0,   1,                                 Offset (0x12),                         CCS1,   1,                         CSC1,   1,                         PED1,   1                    }                }                Method (USBS, 1, NotSerialized)                {                    If (UPAC (Arg0))                    {                        SSTA ()                    }                }                Method (USBW, 1, NotSerialized)                {                    If (UPAC (Arg0))                    {                        RSTA ()                    }                }                Method (_PRW, 0, NotSerialized)                {                    Return (GPRW (0x05, 0x03))                }            }            Device (USB6)            {                Name (_ADR, 0x001A0002)                OperationRegion (BAR0, PCI_Config, 0xC0, 0x05)                Field (BAR0, ByteAcc, NoLock, Preserve)                {                    UBL1,   16,                             Offset (0x04),                     P0WE,   1,                     P1WE,   1,                             Offset (0x05)                }                Method (_S3D, 0, NotSerialized)                {                    If (LOr (LOr (LEqual (\MSOS (), \OS9X), LEqual (\MSOS (), \OS98)), LEqual (                        \MSOS (), \OSME)))                    {                        Return (0x02)                    }                    Else                    {                        Return (0x03)                    }                }                Method (_PSW, 1, NotSerialized)                {                    If (Arg0)                    {                        Store (0x01, P0WE)                        Store (0x01, P1WE)                    }                    Else                    {                        Store (0x00, P0WE)                        Store (0x00, P1WE)                    }                }                Method (UPAC, 1, NotSerialized)                {                    Store (Zero, Local0)                    If (LEqual (OSFG, OS9X))                    {                        Store (One, Local0)                    }                    Else                    {                        If (LEqual (OSFG, OS98))                        {                            Store (One, Local0)                        }                    }                    If (Local0)                    {                        If (LEqual (Arg0, 0x03))                        {                            Return (One)                        }                    }                    Return (Zero)                }                OperationRegion (UPCI, PCI_Config, 0x20, 0x04)                Field (UPCI, ByteAcc, NoLock, Preserve)                {                    UBAS,   32                }                Name (BASA, 0xB400)                Name (P0ST, Zero)                Name (P1ST, Zero)                Method (SSTA, 0, NotSerialized)                {                    Store (UBAS, BASA)                    And (BASA, 0xFFFFFFFE, BASA)                    OperationRegion (UHCI, SystemIO, BASA, 0x20)                    Field (UHCI, ByteAcc, NoLock, Preserve)                    {                        RSTP,   1,                         HRST,   1,                         GRST,   1,                                 Offset (0x10),                         CCS0,   1,                         CSC0,   1,                         PED0,   1,                                 Offset (0x12),                         CCS1,   1,                         CSC1,   1,                         PED1,   1                    }                    Store (CCS0, P0ST)                    Store (CCS1, P1ST)                }                Method (RSTA, 0, NotSerialized)                {                    Store (BASA, UBAS)                    OperationRegion (UHCI, SystemIO, BASA, 0x20)                    Field (UHCI, ByteAcc, NoLock, Preserve)                    {                        RSTP,   1,                         HRST,   1,                         GRST,   1,                                 Offset (0x10),                         CCS0,   1,                         CSC0,   1,                         PED0,   1,                                 Offset (0x12),                         CCS1,   1,                         CSC1,   1,                         PED1,   1                    }                }                Method (USBS, 1, NotSerialized)                {                    If (UPAC (Arg0))                    {                        SSTA ()                    }                }                Method (USBW, 1, NotSerialized)                {                    If (UPAC (Arg0))                    {                        RSTA ()                    }                }                Method (_PRW, 0, NotSerialized)                {                    Return (GPRW (0x20, 0x03))                }            }            Device (USB7)            {                Name (_ADR, 0x001A0003)                OperationRegion (BAR0, PCI_Config, 0xC0, 0x05)                Field (BAR0, ByteAcc, NoLock, Preserve)                {                    UBL1,   16,                             Offset (0x04),                     P0WE,   1,                     P1WE,   1,                             Offset (0x05)                }                Method (_S3D, 0, NotSerialized)                {                    If (LOr (LOr (LEqual (\MSOS (), \OS9X), LEqual (\MSOS (), \OS98)), LEqual (                        \MSOS (), \OSME)))                    {                        Return (0x02)                    }                    Else                    {                        Return (0x03)                    }                }                Method (_PSW, 1, NotSerialized)                {                    If (Arg0)                    {                        Store (0x01, P0WE)                        Store (0x01, P1WE)                    }                    Else                    {                        Store (0x00, P0WE)                        Store (0x00, P1WE)                    }                }                Method (UPAC, 1, NotSerialized)                {                    Store (Zero, Local0)                    If (LEqual (OSFG, OS9X))                    {                        Store (One, Local0)                    }                    Else                    {                        If (LEqual (OSFG, OS98))                        {                            Store (One, Local0)                        }                    }                    If (Local0)                    {                        If (LEqual (Arg0, 0x03))                        {                            Return (One)                        }                    }                    Return (Zero)                }                OperationRegion (UPCI, PCI_Config, 0x20, 0x04)                Field (UPCI, ByteAcc, NoLock, Preserve)                {                    UBAS,   32                }                Name (BASA, 0xB400)                Name (P0ST, Zero)                Name (P1ST, Zero)                Method (SSTA, 0, NotSerialized)                {                    Store (UBAS, BASA)                    And (BASA, 0xFFFFFFFE, BASA)                    OperationRegion (UHCI, SystemIO, BASA, 0x20)                    Field (UHCI, ByteAcc, NoLock, Preserve)                    {                        RSTP,   1,                         HRST,   1,                         GRST,   1,                                 Offset (0x10),                         CCS0,   1,                         CSC0,   1,                         PED0,   1,                                 Offset (0x12),                         CCS1,   1,                         CSC1,   1,                         PED1,   1                    }                    Store (CCS0, P0ST)                    Store (CCS1, P1ST)                }                Method (RSTA, 0, NotSerialized)                {                    Store (BASA, UBAS)                    OperationRegion (UHCI, SystemIO, BASA, 0x20)                    Field (UHCI, ByteAcc, NoLock, Preserve)                    {                        RSTP,   1,                         HRST,   1,                         GRST,   1,                                 Offset (0x10),                         CCS0,   1,                         CSC0,   1,                         PED0,   1,                                 Offset (0x12),                         CCS1,   1,                         CSC1,   1,                         PED1,   1                    }                }                Method (USBS, 1, NotSerialized)                {                    If (UPAC (Arg0))                    {                        SSTA ()                    }                }                Method (USBW, 1, NotSerialized)                {                    If (UPAC (Arg0))                    {                        RSTA ()                    }                }                Method (_PRW, 0, NotSerialized)                {                    Return (GPRW (0x25, 0x03))                }            }


p.s.
I'm using MacBookPro6,2 in my smbios.plist. (as this one is closest to mine http://www.everymac....ody-specs.html)

--- EDIT---
I've attached pure DSDT from everest. I can't compile it in untouched form (201 errors). I've made it able to compile using some autopacher but can't remember which one....
If someone can have a look and try to compile, please.

Thanks in advance,
fingerr.

Attached Files



#350
MaLd0n

MaLd0n

    ...filling veins with juice of chaos...

  • Moderators
  • 11,141 posts
  • Gender:Male
  • Location:Rio de Janeiro

Hi all,
I'd like to ask if someone can help me figure it out how to make sleep work.


try it
Attached File  dsdt.fingerr.zip   29.29KB   22 downloads
NativePM and restart fix use Chameleon RC5

#351
fingerr

fingerr

    InsanelyMac Sage

  • Members
  • PipPipPipPipPip
  • 260 posts
  • Gender:Male
  • Location:Poland

try it
Attached File  dsdt.fingerr.zip   29.29KB   22 downloads
NativePM and restart fix use Chameleon RC5

Hi MaLd0n,
thanks for quick reply. I'll try in a moment.
Can you tell me what patches you've applied and send me modified dst file?
Can I use AnVAL bootloader (http://www.insanelym...howtopic=216726) instead of Chameleon RC5?


Thanks in advance,
fingerr.

#352
MaLd0n

MaLd0n

    ...filling veins with juice of chaos...

  • Moderators
  • 11,141 posts
  • Gender:Male
  • Location:Rio de Janeiro

Hi MaLd0n,
thanks for quick reply. I'll try in a moment.
Can you tell me what patches you've applied and send me modified dst file?
Can I use AnVAL bootloader (http://www.insanelym...howtopic=216726) instead of Chameleon RC5?


Thanks in advance,
fingerr.


DTGP
EHCI
FN
IRQs
LPC*
OS
RTC
SMBUS
SHUTDOWN
UHCI
FIX WARNINGS and ERRORS
Attached File  sem_erros.zip   28.93KB   17 downloads

#353
fingerr

fingerr

    InsanelyMac Sage

  • Members
  • PipPipPipPipPip
  • 260 posts
  • Gender:Male
  • Location:Poland

DTGP
EHCI
FN
IRQs
LPC*
OS
RTC
SMBUS
SHUTDOWN
UHCI
FIX WARNINGS and ERRORS
Attached File  sem_erros.zip   28.93KB   17 downloads

Big thanks MaLd0n for your help!!

Unfortunately sleep still doesn't work but I can live with that :-)
All other fixed seems to work :-)

Can't wait to see someone find a way to make use of GMA HD or Nvidia Optimus 310M working under Hacks.

Best regards,
fingerr.

#354
MaLd0n

MaLd0n

    ...filling veins with juice of chaos...

  • Moderators
  • 11,141 posts
  • Gender:Male
  • Location:Rio de Janeiro

Big thanks MaLd0n for your help!!

Unfortunately sleep still doesn't work but I can live with that :-)
All other fixed seems to work :-)

Can't wait to see someone find a way to make use of GMA HD or Nvidia Optimus 310M working under Hacks.

Best regards,
fingerr.

what happens to sleep?

send me a log
cat /var/log/kernel.log
and
grep Wake /var/log/kernel.log
and
kextstat

CStates
ioreg -lw0 | grep CSTInfo


#355
fingerr

fingerr

    InsanelyMac Sage

  • Members
  • PipPipPipPipPip
  • 260 posts
  • Gender:Male
  • Location:Poland

what happens to sleep?

send me a log

cat /var/log/kernel.log
and
grep Wake /var/log/kernel.log
and
kextstat

CStates
ioreg -lw0 | grep CSTInfo

When I choose Sleep, mouse pointer disapears, no response when I move touchpad or keyboard, I have to press powerbutton, and then Sleep/Shutdown/Restart window appears. Looks like it is preparing to go to sleep but screen stays on.
Attached are kern.log and kextstat.
grep Wake /var/log/kernel.log
doesn't return anything.

bash-3.2# ioreg -lw0 | grep CSTInfo
| | | "CSTInfo" = 19136773

Best regards,
fingerr.

Attached Files



#356
MaLd0n

MaLd0n

    ...filling veins with juice of chaos...

  • Moderators
  • 11,141 posts
  • Gender:Male
  • Location:Rio de Janeiro

When I choose Sleep, mouse pointer disapears, no response when I move touchpad or keyboard, I have to press powerbutton, and then Sleep/Shutdown/Restart window appears. Looks like it is preparing to go to sleep but screen stays on.
Attached are kern.log and kextstat.

grep Wake /var/log/kernel.log
doesn't return anything.

bash-3.2# ioreg -lw0 | grep CSTInfo
| | | "CSTInfo" = 19136773

Best regards,
fingerr.


ok

EvOreboot <--- Shutdown in DSDT , restart in Chameleon RC5
try it
if not resolve
try another shutdown

#357
fingerr

fingerr

    InsanelyMac Sage

  • Members
  • PipPipPipPipPip
  • 260 posts
  • Gender:Male
  • Location:Poland

ok

EvOreboot <--- Shutdown in DSDT , restart in Chameleon RC5
try it
if not resolve
try another shutdown

EvOreboot removed, but the same situation.

Feb 15 21:28:13 Mac-Pro-user kernel[0]: hibernate image path: /var/vm/sleepimage
Feb 15 21:28:13 Mac-Pro-user kernel[0]: sizeof(IOHibernateImageHeader) == 512
Feb 15 21:28:13 Mac-Pro-user kernel[0]: Opened file /var/vm/sleepimage, size 4294967296, partition base 0x6bd16c5600, maxio 400000 ssd 0
Feb 15 21:28:13 Mac-Pro-user kernel[0]: hibernate image major 14, minor 4, blocksize 512, pollers 5
Feb 15 21:28:13 Mac-Pro-user kernel[0]: AirPort: Link Down on en2. Reason 8 (Disassociated because station leaving).
Feb 15 21:28:13 Mac-Pro-user kernel[0]: hibernate_alloc_pages flags 00000000, gobbling 0 pages
Feb 15 21:28:13 Mac-Pro-user kernel[0]: hibernate_setup(0) took 0 ms
Feb 15 21:28:13 Mac-Pro-user kernel[0]: en2: 802.11d country code set to 'ZW'.
Feb 15 21:28:13 Mac-Pro-user kernel[0]: ATHR: unknown locale: 60
Feb 15 21:28:13 Mac-Pro-user kernel[0]: en2: Supported channels 1 2 3 4 5 6 7 8 9 10 11 12 13
Feb 15 21:28:13 Mac-Pro-user kernel[0]: USBF:	183.535	AppleUSBEHCI[0x6c7e800]::ResumeUSBBus - controller took (10) turns to get going
Feb 15 21:28:14 Mac-Pro-user kernel[0]: System Doze
Feb 15 21:28:34 Mac-Pro-user kernel[0]: ATHR: unknown locale: 60
Feb 15 21:28:36 Mac-Pro-user kernel[0]: en2: 802.11d country code set to 'SA'.
Feb 15 21:28:36 Mac-Pro-user kernel[0]: ATHR: unknown locale: 60
Feb 15 21:28:36 Mac-Pro-user kernel[0]: en2: Supported channels 1 2 3 4 5 6 7 8 9 10 11 12 13
Feb 15 21:28:37 Mac-Pro-user kernel[0]: AirPort: Link Up on en2
Feb 15 21:28:37 Mac-Pro-user kernel[0]: AirPort: RSN handshake complete on en2










Feb 15 21:29:02 Mac-Pro-user kernel[0]: AirPort: Link Down on en2. Reason 8 (Disassociated because station leaving).
Feb 15 21:29:02 Mac-Pro-user kernel[0]: en2: 802.11d country code set to 'SA'.
Feb 15 21:29:02 Mac-Pro-user kernel[0]: ATHR: unknown locale: 60
Feb 15 21:29:02 Mac-Pro-user kernel[0]: en2: Supported crehannels 1 2 3 4 5 6 7 8 9 10 11 12 13
Feb 15 21:29:02 Mac-Pro-user kernel[0]: USBF:	232.185	AppleUSBEHCI[0x6c7e800]::ResumeUSBBus - controller took (9) turns to get going
Feb 15 21:29:03 Mac-Pro-user kernel[0]: System Doze
Feb 15 21:29:20 Mac-Pro-user kernel[0]: ATHR: unknown locale: 60
Feb 15 21:29:20 Mac-Pro-user kernel[0]: en2: 802.11d country code set to 'SA'.
Feb 15 21:29:20 Mac-Pro-user kernel[0]: ATHR: unknown locale: 60
Feb 15 21:29:20 Mac-Pro-user kernel[0]: en2: Supported channels 1 2 3 4 5 6 7 8 9 10 11 12 13
Feb 15 21:29:20 Mac-Pro-user kernel[0]: AirPort: Link Up on en2
Feb 15 21:29:21 Mac-Pro-user kernel[0]: AirPort: RSN handshake complete on en2

Can you please point me which Chameleon RC5? I've found a lot of branches of it..... (right now I use AnVAL bootloader)

Best regards,
fingerr.

#358
MaLd0n

MaLd0n

    ...filling veins with juice of chaos...

  • Moderators
  • 11,141 posts
  • Gender:Male
  • Location:Rio de Janeiro

EvOreboot removed, but the same situation.

Shutdown and restart works?
this kext has nothing to do with it
USBs appear as the "integrated USB"?

Can you please point me which Chameleon RC5? I've found a lot of branches of it..... (right now I use AnVAL bootloader)


ok
should work the same way

#359
fingerr

fingerr

    InsanelyMac Sage

  • Members
  • PipPipPipPipPip
  • 260 posts
  • Gender:Male
  • Location:Poland

Shutdown and restart works?
this kext has nothing to do with it
USBs appear as the "integrated USB"?



ok
should work the same way

Shutdown and restart works perfectly and SystemProfiler says integrated USB.
One thing is IOReg shows errata 0x0, according to 1-st post this can be problem "(see the "Errata" property of "AppleUSBUHCI" devices in IORegistryExplorer: if it is 0x0, the driver has probably not recognized the device)." Or maybe lack of full support for Intel GMA HD can prevent going into sleep.

Best regards,
fingerr.

#360
almuras

almuras

    InsanelyMac Geek

  • Members
  • PipPipPip
  • 104 posts
Is it possible to trick OSX to recognize Dell Broadcom (0x435314E4) as Airport Extreme BCM43224?

Thanks!





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

© 2015 InsanelyMac  |   News  |   Forum  |   Downloads  |   OSx86 Wiki  |   Mac Netbook  |   PHP hosting by CatN  |   Designed by Ed Gain  |   Logo by irfan  |   Privacy Policy