Jump to content

Need some help with NVCAP+DSDT editing


someh4x0r
 Share

2 posts in this topic

Recommended Posts

I am trying to use the NVCAP method to make my nVidia graphics card work, but nothing happens. Here is what I changed:

 

--- DSDT.dsl.orig	2010-09-24 17:50:27.000000000 -0700
+++ DSDT.dsl	2010-09-24 17:47:49.000000000 -0700
@@ -1,4 +1,4 @@
-DefinitionBlock ("DSDT.aml.orig.aml", "DSDT", 1, "HPQOEM", "SLIC-CPC", 0x00000000)
+DefinitionBlock ("dsdt.aml", "DSDT", 1, "HPQOEM", "SLIC-CPC", 0x00000000)
{
 Scope (_PR)
 {
@@ -1025,6 +1025,90 @@
				 Return (0x03)
			 }
		 }
+			Device (PEGP)
+			{
+				Name (_ADR, 0x00050000)
+				Device (GFX0)
+				{
+					Name (_ADR, Zero)
+					Name (_SUN, One)
+					Method (_DSM, 4, NotSerialized)
+					{
+						Store (Package (0x1A)
+							{
+								"@0,compatible", 
+								Buffer (0x0B)
+								{
+									"NVDA,NVMac"
+								}, 
+								"@0,device_type", 
+								Buffer (0x08)
+								{
+									"display"
+								}, 
+								"@0,display_cfg", 
+								Buffer (0x08)
+								{
+									0x03, 0x01, 0x00, 0x00
+								}, 
+								"@0,name", 
+								Buffer (0x0F)
+								{
+									"NVDA,Display-A"
+								}, 
+								"@1,compatible", 
+								Buffer (0x0B)
+								{
+									"NVDA,NVMac"
+								}, 
+								"@1,device_type", 
+								Buffer (0x08)
+								{
+									"display"
+								}, 
+								"@1,display_cfg", 
+								Buffer (0x08)
+								{
+									0xFF, 0xFF, 0x00, 0x01
+								}, 
+								"@1,name", 
+								Buffer (0x0F)
+								{
+									"NVDA,Display-B"
+								}, 
+								"NVCAP", 
+								Buffer (0x14)
+								{
+									/* 0000 */	0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03, 0x00, 
+									/* 0008 */	0x0C, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x07, 
+									/* 0010 */	0x00, 0x00, 0x00, 0x00
+								}, 
+								"VRAM,totalsize", 
+								Buffer (0x04)
+								{
+									0x00, 0x00, 0x00, 0x60
+								}, 
+								"device_type", 
+								Buffer (0x0D)
+								{
+									"NVDA,GeForce"
+								}, 
+								"model", 
+								Buffer (0x17)
+								{
+									"nVidia GeForce GT 230"
+								}, 
+								"rom-revision", 
+								Buffer (0x25)
+								{
+									"nVidia GeForce GT 230 OpenGL Engine"
+								}
+							}, Local0)
+						DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))
+						Return (Local0)
+					}
+				}
+			}
		 Name (_CID, EisaId ("PNP0A03"))
		 Device (MCH)
		 {
@@ -4998,30 +5082,10 @@
				 0x00000000,		 // Translation Offset
				 0x00020000,		 // Length
				 ,, _Y17, AddressRangeMemory, TypeStatic)
-				DWordMemory (ResourceProducer, PosDecode, MinFixed, MaxFixed, Cacheable, ReadWrite,
-					0x00000000,		 // Granularity
-					0x00000000,		 // Range Minimum
-					0x00000000,		 // Range Maximum
-					0x00000000,		 // Translation Offset
-					0x00000000,		 // Length
-					,, _Y18, AddressRangeMemory, TypeStatic)
-				DWordMemory (ResourceProducer, PosDecode, MinFixed, MaxFixed, Cacheable, ReadWrite,
-					0x00000000,		 // Granularity
-					0x00000000,		 // Range Minimum
-					0x00000000,		 // Range Maximum
-					0x00000000,		 // Translation Offset
-					0x00000000,		 // Length
-					,, _Y19, AddressRangeMemory, TypeStatic)
		 })
		 CreateDWordField (CRS, \_SB.PCI0._Y17._MIN, MIN5)
		 CreateDWordField (CRS, \_SB.PCI0._Y17._MAX, MAX5)
		 CreateDWordField (CRS, \_SB.PCI0._Y17._LEN, LEN5)
-			CreateDWordField (CRS, \_SB.PCI0._Y18._MIN, MIN6)
-			CreateDWordField (CRS, \_SB.PCI0._Y18._MAX, MAX6)
-			CreateDWordField (CRS, \_SB.PCI0._Y18._LEN, LEN6)
-			CreateDWordField (CRS, \_SB.PCI0._Y19._MIN, MIN7)
-			CreateDWordField (CRS, \_SB.PCI0._Y19._MAX, MAX7)
-			CreateDWordField (CRS, \_SB.PCI0._Y19._LEN, LEN7)
		 Method (_CRS, 0, NotSerialized)
		 {
			 Store (MG1L, Local0)
@@ -5031,14 +5095,6 @@
				 Store (MG1L, LEN5)
				 Add (MIN5, Decrement (Local0), MAX5)
			 }
-				Store (MG2B, MIN6)
-				Store (MG2L, LEN6)
-				Store (MG2L, Local0)
-				Add (MIN6, Decrement (Local0), MAX6)
-				Store (MG3B, MIN7)
-				Store (MG3L, LEN7)
-				Store (MG3L, Local0)
-				Add (MIN7, Decrement (Local0), MAX7)
			 Return (CRS)
		 }
	 }
@@ -5063,6 +5119,36 @@
	 Store (OSFL (), AOTB)
	 Store (Zero, AAXB)
 }
+	Method (DTGP, 5, NotSerialized)
+	{
+		If (LEqual (Arg0, Buffer (0x10)
+				{
+					/* 0000 */	0xC6, 0xB7, 0xB5, 0xA0, 0x18, 0x13, 0x1C, 0x44, 
+					/* 0008 */	0xB0, 0xC9, 0xFE, 0x69, 0x5E, 0xAF, 0x94, 0x9B
+				}))
+		{
+			If (LEqual (Arg1, One))
+			{
+				If (LEqual (Arg2, Zero))
+				{
+					Store (Buffer (One)
+						{
+							0x03
+						}, Arg4)
+					Return (One)
+				}
+				If (LEqual (Arg2, One))
+				{
+					Return (One)
+				}
+			}
+		}
+		Store (Buffer (One)
+			{
+				0x00
+			}, Arg4)
+		Return (Zero)
+	}
 Method (_WAK, 1, NotSerialized)
 {
	 ShiftLeft (Arg0, 0x04, DBG8)

 

Could someone please tell me what I am doing wrong?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...