Contribute
Register

Error 4080 when compiling DSDT for P8H61-MX

Joined
Apr 20, 2012
Messages
12
Motherboard
Asus P8H61-MX
CPU
Intel Celeron G530 2.7Ghz
Graphics
Geforce 630
Mac
Classic Mac
iBook
Mobile Phone
Android
I'm planning to start afresh and would really like to get a native DSDT solution running. The biggest issue I'm having at the moment is 4080 errors (Invalid object for reserved type, Found Buffer Requires Package). The lines all have the following on them: "Name (_PLD, Buffer (0x10)"

How can I fix these?
 

RehabMan

Moderator
Joined
May 3, 2012
Messages
189,144
Motherboard
Intel DH67BL
CPU
i7-2600K
Graphics
HD 3000
Mac
MacBook Air
Mobile Phone
iOS
I'm planning to start afresh and would really like to get a native DSDT solution running. The biggest issue I'm having at the moment is 4080 errors (Invalid object for reserved type, Found Buffer Requires Package). The lines all have the following on them: "Name (_PLD, Buffer (0x10)"

How can I fix these?
This patch will fix them:
Code:
# rehabman:
# _PLD is supposed to return a variable length Package of Buffers

into_all all code_regex (Name\s*\(_PLD,\s*)Buffer(\s\(0x10\)[^\)]*) replaceall_matched
begin
%1Package() { Buffer%2}
end;
 
Joined
Apr 20, 2012
Messages
12
Motherboard
Asus P8H61-MX
CPU
Intel Celeron G530 2.7Ghz
Graphics
Geforce 630
Mac
Classic Mac
iBook
Mobile Phone
Android
That worked, thanks a lot!
 
Joined
Feb 25, 2014
Messages
38
Motherboard
MSI Z87M Gaming
CPU
i5-4650??
Graphics
RX 570
Mac
iMac
Mobile Phone
iOS
RehabMan -

Sorry about the novice question, but you've suggested code to repair the 4080 error when compiling a DSDT. I am not sure where or how to insert the code and if the entire string of the following is required or just a portion. Any help would be greatly appreciated. Thanks!

# rehabman:
# _PLD is supposed to return a variable length Package of Buffers

into_all all code_regex (Name\s*\(_PLD,\s*)Buffer(\s\(0x10\)[^\)]*) replaceall_matched
begin
%1Package() { Buffer%2}
end;
 

RehabMan

Moderator
Joined
May 3, 2012
Messages
189,144
Motherboard
Intel DH67BL
CPU
i7-2600K
Graphics
HD 3000
Mac
MacBook Air
Mobile Phone
iOS
RehabMan -

Sorry about the novice question, but you've suggested code to repair the 4080 error when compiling a DSDT. I am not sure where or how to insert the code and if the entire string of the following is required or just a portion. Any help would be greatly appreciated. Thanks!

# rehabman:
# _PLD is supposed to return a variable length Package of Buffers

into_all all code_regex (Name\s*\(_PLD,\s*)Buffer(\s\(0x10\)[^\)]*) replaceall_matched
begin
%1Package() { Buffer%2}
end;
It is a MaciASL patch. Use the Patch button, then paste the text into the resulting Window.
 
Joined
Apr 6, 2011
Messages
32
Motherboard
Asus x540LJ
CPU
i3 5005U@2.00GHz
Graphics
Intel HD 5500 + NVIDIA Geoforce 920m
Mobile Phone
Android
It is a MaciASL patch. Use the Patch button, then paste the text into the resulting Window.
Hi, Rehabman,

I have faced like same error, but in my case it says -
Invalid object type for reserved name (_PLD: found integer at index 0, Buffer required).
Invalid object type for reserved name (_PLD: found integer at index 1, Buffer required).
.
.
.
Invalid object type for reserved name (_PLD: found integer at index 15, Buffer required).

Got 96 same error !!!
Have you any patch for this?
Please give a solution of this.

Thank you
 

RehabMan

Moderator
Joined
May 3, 2012
Messages
189,144
Motherboard
Intel DH67BL
CPU
i7-2600K
Graphics
HD 3000
Mac
MacBook Air
Mobile Phone
iOS
Hi, Rehabman,

I have faced like same error, but in my case it says -
Invalid object type for reserved name (_PLD: found integer at index 0, Buffer required).
Invalid object type for reserved name (_PLD: found integer at index 1, Buffer required).
.
.
.
Invalid object type for reserved name (_PLD: found integer at index 15, Buffer required).

Got 96 same error !!!
Have you any patch for this?
Please give a solution of this.

Thank you
Apply "Fix _PLD Buffer/Package Error" from https://github.com/RehabMan/Laptop-DSDT-Patch.
 
Joined
Apr 6, 2011
Messages
32
Motherboard
Asus x540LJ
CPU
i3 5005U@2.00GHz
Graphics
Intel HD 5500 + NVIDIA Geoforce 920m
Mobile Phone
Android
Ok, got it. Now everything fine.

Thank you
Palash
 
Joined
Jan 14, 2020
Messages
2
Motherboard
Jingsha x79 0.1 (C216)
CPU
E5-2689
Graphics
RX 580
Hi, Rehabman,

I have faced like same error, but in my case it says -
Invalid object type for reserved name (_PLD: found integer at index 0, Buffer required).
Invalid object type for reserved name (_PLD: found integer at index 1, Buffer required).
.
I have similar errors, but I can not apply the proposed patch, since it does not find changes, so the apply button is not active
Here is an example of my error code
Name (_PLD, Package (0x10) // _PLD: Physical Location of Device
{
0x81,
Zero,
Zero,
Zero,
Zero,
Zero,
Zero,
Zero,
0x30,
0x1C,
Zero,
Zero,
Zero,
Zero,
Zero,
Zero
})
 
Top