DSDT.aml file for Lenovo T510-4313
I’ve posted a guide for installing OSX 10.6.8 on a Lenovo T510 Thinkpad here:
http://www.insanelym…howtopic=274162
This post details the modifications I’ve made to the DSDT file to better work with OSX
This DSDT file was saved and decompiled by using an Ubuntu Live CD, and then edited with DSDTSE.
See the tutorial here: http://aserebln.blog…epare-dsdt.html
And the software here: http://www.osx86.es/?p=610
Most edits came from this guide for a T60 Thinkpad:
http://forum.thinkpa…php?f=5&t=85344
Here’s what is changed in the DSDT file, one fix at a time. The lines that discribe the fixes are commented out with /* */ so that you can see where the new code was added.
Compile Error:
First, lets remove all compile warnings and errors, to clean up the code. There is an «*» hidden in the DSDT code, which isn’t allowed by the IASL compiler. So first we remove that.
Replace this:
Device (WMI1) { Name (_HID, "*pnp0c14") Name (_UID, "MXM2")
With this:
Device (WMI1) { /* Fix - Remove * from "*pnp0c14" to prevent compile error */ Name (_HID, "pnp0c14") Name (_UID, "MXM2")
Compile Warnings:
Next we want to get rid of the compile warnings. This is optional, because the DSDT file will still function fine, even with warnings
Example compile warning
5366: If (LFLS ()) Warning 1093 - Called method may not always return a value ^
Many of the Methods in the DSDT don’t return a value if none of the code is specifically applied. All we need to do is add a line «Return (Zero)» at the end of the Method, before the final «}». For example:
Method (LFLS, 0, NotSerialized) { Name (TMPB, Buffer (0x02) { 0x00, 0x00 }) CreateByteField (TMPB, 0x00, LPCT) CreateByteField (TMPB, 0x01, SSUM) TPHY (0x00) Store (PH02, LPCT) If (LPCT) { Store (0x00, SSUM) Add (SSUM, PH01, SSUM) Add (SSUM, PH02, SSUM) Add (SSUM, PH03, SSUM) Add (SSUM, PPRQ, SSUM) Add (SSUM, PPLO, SSUM) Add (SSUM, PPRP, SSUM) Add (SSUM, PPOR, SSUM) Add (SSUM, TPRS, SSUM) Add (SSUM, TPMV, SSUM) Add (SSUM, MOR, SSUM) Add (SSUM, RSV0, SSUM) If (SSUM) {} Else { Return (0x00) } Return (0x02) } /* Fix - Remove LFLS Compile Warnings */ Return (Zero) /* Fix End */ }
Do the same for Methods _Q15, _Q16, MXDS, _DSM (apply this fix for the methods referenced in the warnings that compiler returns)
Display Brightness:
Above «Device (LNKA)» add code to enable the brightness slider in the System Preferences
/* Fix - Enable Brightness Slider */ Device (PNLF) { Name (_HID, EisaId ("APP0002")) Name (_CID, "backlight") Name (_UID, 0x0A) Name (_STA, 0x0B) } /* Fix End */ Device (LNKA)
Keyboard:
Enable Fn Keys on the keyboard, including shutdown menu when you press the power button
Device (KBD) { Name (_HID, EisaId ("PNP0303")) Name (_CID, EisaId ("PNP030B")) /* Fix */ /* Fix - Enable Fn Keys on Keyboard */ Method (_DSM, 4, NotSerialized) { Store (Package (0x02) { "AAPL,has-embedded-fn-keys", Buffer (0x04) { 0x01, 0x00, 0x00, 0x00 } }, Local0) DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0)) Return (Local0) } /* Fix End */
Video:
Video Injection to enable brightness. Don’t forget to comment out the original _DSM method below, after you add a new one
Device (VID) { Name (_ADR, 0x00) Name (_SUN, 0x0B) /* Fix */ OperationRegion (VPCG, PCI_Config, 0x00, 0x0100) Field (VPCG, DWordAcc, NoLock, Preserve) { Offset (0x64), VPWR, 8 } Name (_S3D, 0x03) Method (_INI, 0, NotSerialized) { VUPS (0x02) Store (VCDL, VQDL) Store (VCDC, VQDC) Store (VCDT, VQD0) Store (VCDD, VQD1) } /* Fix - Video Driver Injection to Enable LCD Brightness */ Method (_DSM, 4, NotSerialized) { Store (Package (0x06) { "AAPL,backlight-control", Buffer (0x04) { 0x01, 0x00, 0x00, 0x00 }, "@0,backlight-control", Buffer (0x04) { 0x01, 0x00, 0x00, 0x00 }, "@0,pwm-info", Buffer (0x14) { 0x01, 0x14, 0x00, 0x64, 0xA8, 0x61, 0x00, 0x00, 0x1C, 0x02, 0x00, 0x00, 0x64, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00 } }, Local0) DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0)) Return (Local0) } /* Fix End */ … Method (_STA, 0, NotSerialized) { If (_SB.PCI0.VID.ISOP ()) { Return (0x0F) } If (And (RISA (0x118E), 0x02)) { Return (0x0F) } Else { Return (0x00) } } /* Fix - Disable _DSM here for Video Injection Above Method (_DSM, 4, NotSerialized) { If (CMPB (Arg0, Buffer (0x10) { 0xF8, 0xD8, 0x86, 0xA4, 0xDA, 0x0B, 0x1B, 0x47, 0xA7, 0x2B, 0x60, 0x42, 0xA6, 0xB5, 0xBE, 0xE0 })) { Return (NVOP (Arg0, Arg1, Arg2, Arg3)) } Return (_SB.PCI0.VID._DSM (Arg0, Arg1, Arg2, Arg3)) } Fix End */
Sleep:
Sleep works fine, including when you close the lid, except for the fact that one of the USB devices immediately wakes the machine. If the lid is closed, the computer goes to sleep and wakes back up in an endless cycle. This code fixes it. Add within the «Device (EHC2)» section, before «Device (URTH)»
(from http://osx86.co/f36/…dsdt-fix-t3849/)
Device (EHC2) ... /* Fix - Prevent EHC2 (Bluetooth, Camera, and Fingerprint) waking from Sleep */ Method (_DSM, 4, NotSerialized) { Store (Package (0x02) { "AAPL,clock-id", Buffer (0x01) { 0x02 } }, Local0) DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0)) Return (Local0) } /* Fix End */ Device (URTH)
Shutdown:
Shut down almost works, but the system fan and power button LED are not powered down, unless you use this code. Take a look at my DSDT file to see where it goes.
(from http://www.insanelym…ic=246491&st=20)
/* Fix - Shutdown */ OperationRegion (PMRS, SystemIO, 0x1030, 0x13) Field (PMRS, ByteAcc, NoLock, Preserve) { , 4, SLPE, 1, } /* Fix End */ Method (_PTS, 1, NotSerialized) { /* Fix - Shutdown cont */ If (LEqual (Arg0, 0x05)) { Store (Zero, SLPE) Sleep(0x10) } Else { /* Fix End (also extra bracket below) */ Store (0x01, Local0) … _SB.PCI0.LPC.EC.HKEY.WGPS (Arg0) } } /* Fix */ }
Enable PCI root auto-detection for the bootloader:
Device (PCI0) { Name (_BBN, 0x00) Name (_ADR, 0x00) /* Fix - UID for PCI root auto-detection */ Name (_UID, Zero) /* Fix End */
HPET Fixes:
Note part is commented out, the other part is added
Device (HPET) { Name (_HID, EisaId ("PNP0103")) Name (_CID, EisaId ("PNP0C01")) /* Fix minor */ Method (_STA, 0, NotSerialized) { /* Fix - HPET fix If (LAnd (WNTF, LNot (WXPF))) { Return (0x00) } Else { */ Return (0x0F) /* } Return (0x00) Fix End */ } Name (_CRS, ResourceTemplate () { /* Fix - HPET fix */ IRQNoFlags () {0} IRQNoFlags () {2} IRQNoFlags () {8} /* Fix End */ Memory32Fixed (ReadOnly, 0xFED00000, // Address Base 0x00000400, // Address Length ) }) }
RTC:
Comment out the IRQNoFlags
Device (RTC) { Name (_HID, EisaId ("PNP0B00")) Name (_CRS, ResourceTemplate () { IO (Decode16, 0x0070, // Range Minimum 0x0070, // Range Maximum 0x01, // Alignment 0x02, // Length ) /* Fix - RTC fix IRQNoFlags () {8} Fix End */ }) }
AC Adapter:
Recognize AC adapter (not technically necessary when using VoodooBattery.kext, but a good idea anyway)
Device (AC) { Name (_HID, "ACPI0003") Name (_UID, 0x00) /* Fix - Enable AppleACAdapter driver */ Name (_PRW, Package (0x02) { 0x18, 0x03 }) /* Fix End */ Name (_PCL, Package (0x01)
Minor Fixes:
Device (PIC) { Name (_HID, EisaId ("PNP0000")) Name (_CRS, ResourceTemplate () { IO (Decode16, 0x0020, // Range Minimum 0x0020, // Range Maximum 0x01, // Alignment 0x02, // Length ) IO (Decode16, 0x00A0, // Range Minimum 0x00A0, // Range Maximum 0x01, // Alignment 0x02, // Length ) IO (Decode16, 0x04D0, // Range Minimum 0x04D0, // Range Maximum 0x01, // Alignment 0x02, // Length ) /* Fix minor IRQNoFlags () {2} */ }) }
Device (TIMR) { Name (_HID, EisaId ("PNP0100")) Name (_CRS, ResourceTemplate () { IO (Decode16, 0x0040, // Range Minimum 0x0040, // Range Maximum 0x01, // Alignment 0x04, // Length ) /* Fix minor IRQNoFlags () {0} */ }) }
DTGP:
Finally, you must add this method, which enables several of the other fixes above. Put it before «Name (WAKI,»
/* Fix - DTGP method - supporting other fixes */ 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) } /* Fix End */ Name (WAKI, Package (0x02)
This should help you with custom DSDTs for other Thinkpad models as well. Goodluck!
T510 DSDT.zip
-
#1
Hi,
I have problems with sleep mode, sometimes my pc reboot when I click sleep, sometimes I get «hibernate image is too old» message. I tried to erase the image etc. but nothing work «every day».
I think this is related to the DSDT compile warnings. Every solution to fix them I found didn’t work.
I’m from Germany, sorry my english is not very well.
My hardware:
- Motherboard: Asus P5Q Premium (P45, ICH10R)
Processor: Intel Core2Quad Q9550
Memory: 4GB OCZ DDR2-1066
Graphics Card: NVIDIA GeForce 8800GT 1GB VRAM
Sound Card: Creative X-Fi Xtreme Music PCIe(CA0106 Chipset)
Everything work, except the sound card I have only 2 channels, but this is not necessary.
I hope someone could help me, I don’t understand the DSDT file really.
Here are the warnings:
Code:
Intel ACPI Component Architecture
ASL Optimizing Compiler version 20091214 [Dec 16 2009]
Copyright (C) 2000 - 2009 Intel Corporation
Supports ACPI Specification Revision 4.0
/Users/cs/Library/Application Support/EvOSoftware/DSDT/DSDTFiles/dsdt.dsl 10125: Method (VGET, 1, NotSerialized)
Warning 1088 - Not all control paths return a value ^ (VGET)
/Users/cs/Library/Application Support/EvOSoftware/DSDT/DSDTFiles/dsdt.dsl 10170: Method (TGET, 1, NotSerialized)
Warning 1088 - Not all control paths return a value ^ (TGET)
/Users/cs/Library/Application Support/EvOSoftware/DSDT/DSDTFiles/dsdt.dsl 10232: Method (FGET, 1, NotSerialized)
Warning 1088 - Not all control paths return a value ^ (FGET)
/Users/cs/Library/Application Support/EvOSoftware/DSDT/DSDTFiles/dsdt.dsl 10268: Store (VGET (Local0), Local1)
Warning 1093 - Called method may not always return a value ^
/Users/cs/Library/Application Support/EvOSoftware/DSDT/DSDTFiles/dsdt.dsl 10310: Store (TGET (Local0), Local1)
Warning 1093 - Called method may not always return a value ^
/Users/cs/Library/Application Support/EvOSoftware/DSDT/DSDTFiles/dsdt.dsl 10343: Store (FGET (Local0), Local1)
Warning 1093 - Called method may not always return a value ^
ASL Input: /Users/cs/Library/Application Support/EvOSoftware/DSDT/DSDTFiles/dsdt.dsl - 11079 lines, 354509 bytes, 5080 keywords
AML Output: /Users/cs/Library/Application Support/EvOSoftware/DSDT/DSDTFiles/./dsdt.aml - 40690 bytes, 1062 named objects, 4018 executable opcodes
Compilation complete. 0 Errors, 6 Warnings, 0 Remarks, 70 Optimizations
Here are the parts of dsdt.dsl that couses the warnings:
Line 10125 ff.:
Code:
Method (VGET, 1, NotSerialized)
{
If (LEqual (Arg0, Zero))
{
Return (^^SIOR.HWV0 ())
}
If (LEqual (Arg0, One))
{
Return (^^SIOR.HWV3 ())
}
If (LEqual (Arg0, 0x02))
{
Return (^^SIOR.HWV4 ())
}
If (LEqual (Arg0, 0x03))
{
Return (^^SIOR.HWV1 ())
}
}
Line 10170 ff.:
Code:
Method (TGET, 1, NotSerialized)
{
If (LEqual (Arg0, Zero))
{
Return (^^SIOR.HWT1 ())
}
If (LEqual (Arg0, One))
{
Return (^^SIOR.HWT0 ())
}
}
Line 10232 ff.:
Code:
Method (FGET, 1, NotSerialized)
{
If (LEqual (Arg0, Zero))
{
Return (^^SIOR.HWF1 ())
}
If (LEqual (Arg0, One))
{
Return (^^SIOR.HWF0 ())
}
If (LEqual (Arg0, 0x02))
{
Return (^^SIOR.HWF3 ())
}
If (LEqual (Arg0, 0x03))
{
Return (^^SIOR.HWF4 ())
}
If (LEqual (Arg0, 0x04))
{
Return (^^SIOR.HWF2 ())
}
}
Line 10268 ff.:
Code:
Method (RVLT, 1, NotSerialized)
{
And (Arg0, 0xFFFF, Local0)
Store (VGET (Local0), Local1)
Store (DerefOf (Index (DerefOf (Index (VPAR, Local0)), Zero)),
Local2)
Store (DerefOf (Index (DerefOf (Index (VPAR, Local0)), One)),
Local3)
Store (DerefOf (Index (DerefOf (Index (VPAR, Local0)), 0x02)),
Local4)
Multiply (Local1, Add (Local2, Local3), Local5)
Divide (Local5, Local3, , Local5)
Add (Local5, Local4, Local5)
Return (Local5)
}
Line 10310 ff.:
Code:
Method (RTMP, 1, NotSerialized)
{
And (Arg0, 0xFFFF, Local0)
Store (TGET (Local0), Local1)
Return (Local1)
Line 10343 ff.:
Code:
Method (RFAN, 1, NotSerialized)
{
And (Arg0, 0xFFFF, Local0)
Store (FGET (Local0), Local1)
Return (Local1)
-
#2
I have an Asus P5Q SE and work fine. Could you post your file DSDT.aml to compare with me?
Sorry my bad english, I am spanish
-
#3
Here is my DSDT.aml
-
DSDT.aml
39.7 KB
· Views: 488
-
#4
-
dsdt.ZoCK3R1608.zip
16 KB
· Views: 447
-
#5
Thx^^
I used yout DSDT file few weeks and it works perfectly. Big Thx!
Sleep and Shutdown works without Panic now
-
#6
Hi to all!
I recently built a Hackintosh. The system configuration is :
Motherboard : ASUS P5Q
CPU : Intel Q9450 Quad
RAM : 2x2GB (4GB) Corsair at 800MHz
HDD : Intel X-25M Postville SSD 40GB
GPU : NVIDIA GT220 512MB DDR2
I installed using iBoot and Mac OS X Retail Install DVD (bought it for €32 here in Greece). Installation went ok. Installed Multibeast (Easybeast) with the least choices. My onboard network adapter was working ok until I updated Mac OS X Snow Leopard to version 10.6.7. Now networking does not work.
Shutdown —> Works
Restart —> Works
Sleep —> Not Working (I really need it)
Onboard Sound —> Not working
NVIDIA GT220 —> Working with Quartz Extreme enabled
HDMI of GT220 —> Working but I cannot passthrough audio from there (I really need it! Its gonna be my HTPC machine)
Can you please help me to solve those problems?
I am not familiar with DSDT files, so… where can I start? Can I «insert» my DSDT file in this installation or I have to install right from the start ?
Thanks and… sorry for my bad English too! I’m from Greece!
Thank you guys!
-
#7
ultraxmode said:
Hi to all!
I recently built a Hackintosh. The system configuration is :
Motherboard : ASUS P5Q
CPU : Intel Q9450 Quad
RAM : 2x2GB (4GB) Corsair at 800MHz
HDD : Intel X-25M Postville SSD 40GB
GPU : NVIDIA GT220 512MB DDR2I installed using iBoot and Mac OS X Retail Install DVD (bought it for €32 here in Greece). Installation went ok. Installed Multibeast (Easybeast) with the least choices. My onboard network adapter was working ok until I updated Mac OS X Snow Leopard to version 10.6.7. Now networking does not work.
Shutdown —> Works
Restart —> Works
Sleep —> Not Working (I really need it)
Onboard Sound —> Not working
NVIDIA GT220 —> Working with Quartz Extreme enabled
HDMI of GT220 —> Working but I cannot passthrough audio from there (I really need it! Its gonna be my HTPC machine)Can you please help me to solve those problems?
I am not familiar with DSDT files, so… where can I start? Can I «insert» my DSDT file in this installation or I have to install right from the start ?Thanks and… sorry for my bad English too!
I’m from Greece!
Thank you guys!
ive got the exactly same mobo and my onboard sound and ethernet working.
check in the bios if you have enabled the ethernet then install the kext i attachet to this post ( thanks to marionez) best way to import is kexthelper. For the sound i used the other kext i attached ALC1200_1063 (thanks to marionez too)
this two worked for me… but please help me i cant restart and shut down how did you fix that? can you post your dsdt?
edit: the sound is for the onboard soundcard on asus p5q
-
ALC1200_1063.zip
1.7 MB
· Views: 283
-
AttansicL1eEthernet_0418_64.zip
56.3 KB
· Views: 241
Правила форума
Убедительная просьба юзать теги [code] при оформлении листингов.
Сообщения не оформленные должным образом имеют все шансы быть незамеченными.
-
freak
- сержант
- Сообщения: 183
- Зарегистрирован: 2008-07-16 9:30:18
- Откуда: UA
- Контактная информация:
ACER Aspire 5520G ACPI & other problem
Т.к. почти все проблемы решил в других топиках по сабжу, то в этом топике упор на ACPI (чтоб не сорить в чужих )
БЫЛО:
Код: Выделить всё
[root@fbook ~/acpi]# iasl acer-aspire-5520g_orig.asl
<skip>
acer-aspire-5520g_orig.asl 224: Method (_WAK, 1, NotSerialized)
Warning 1079 - ^ Reserved method must return a value (_WAK)
acer-aspire-5520g_orig.asl 834: Name (_T_0, 0x00)
Error 4081 - Use of reserved word ^ (_T_0)
acer-aspire-5520g_orig.asl 840: Name (_T_1, 0x00)
Error 4081 - Use of reserved word ^ (_T_1)
acer-aspire-5520g_orig.asl 879: Name (_T_2, 0x00)
Error 4081 - Use of reserved word ^ (_T_2)
acer-aspire-5520g_orig.asl 926: Name (_T_3, 0x00)
Error 4081 - Use of reserved word ^ (_T_3)
acer-aspire-5520g_orig.asl 952: Method (Z004, 0, NotSerialized)
Warning 1086 - Not all control paths return a value ^ (Z004)
acer-aspire-5520g_orig.asl 1569: Name (_T_0, 0x00)
Error 4081 - Use of reserved word ^ (_T_0)
acer-aspire-5520g_orig.asl 1625: Method (_WED, 1, NotSerialized)
Warning 1086 - Not all control paths return a value ^ (_WED)
acer-aspire-5520g_orig.asl 1625: Method (_WED, 1, NotSerialized)
Warning 1079 - Reserved method must return a value ^ (_WED)
acer-aspire-5520g_orig.asl 1631: Return (Z004 ())
Warning 1091 - Called method may not always return a value ^
acer-aspire-5520g_orig.asl 1669: Method (WMBD, 3, NotSerialized)
Warning 1086 - Not all control paths return a value ^ (WMBD)
acer-aspire-5520g_orig.asl 2324: Name (_HID, "*pnp0c14")
Error 4001 - String must be entirely alphanumeric ^ (*pnp0c14)
acer-aspire-5520g_orig.asl 2337: Method (WMNV, 3, NotSerialized)
Warning 1086 - Not all control paths return a value ^ (WMNV)
acer-aspire-5520g_orig.asl 2441: Name (_HID, "*pnp0c14")
Error 4001 - String must be entirely alphanumeric ^ (*pnp0c14)
acer-aspire-5520g_orig.asl 2941: Method (_EJ0, 0, NotSerialized)
Warning 1076 - Reserved method has too few arguments ^ (_EJ0 requires 1)
ASL Input: acer-aspire-5520g_orig.asl - 7105 lines, 241244 bytes, 2967 keywords
Compilation complete. 7 Errors, 8 Warnings, 0 Remarks, 719 Optimizations
СТАЛО (временно):
Код: Выделить всё
[root@fbook ~/acpi]# iasl acer-aspire-5520g.asl
<skip>
ASL Input: acer-aspire-5520g.asl - 7110 lines, 241499 bytes, 2972 keywords
AML Output: /tmp/acpidump.aml - 24477 bytes 876 named objects 2096 executable opcodes
Compilation complete. 0 Errors, 0 Warnings, 0 Remarks, 729 Optimizations
собственно интересует исправление ворнинга в последнем методе. что это такое я знаю. но в гуглеманах встречал только в виде:
или
а если и в таком виде, как у меня, то только в контексте ошибок
пока поставил просто единичку не вникая))) но это не дело. может кто знает что да как?
з.ы. окончательный дифф выложу позже.
…no lords, no gods, no masters…
-
Хостинг HostFood.ru
Услуги хостинговой компании Host-Food.ru
Хостинг HostFood.ru
Тарифы на хостинг в России, от 12 рублей: https://www.host-food.ru/tariffs/hosting/
Тарифы на виртуальные сервера (VPS/VDS/KVM) в РФ, от 189 руб.: https://www.host-food.ru/tariffs/virtualny-server-vps/
Выделенные сервера, Россия, Москва, от 2000 рублей (HP Proliant G5, Intel Xeon E5430 (2.66GHz, Quad-Core, 12Mb), 8Gb RAM, 2x300Gb SAS HDD, P400i, 512Mb, BBU):
https://www.host-food.ru/tariffs/vydelennyi-server-ds/
Недорогие домены в популярных зонах: https://www.host-food.ru/domains/
-
Pattern
- сержант
- Сообщения: 180
- Зарегистрирован: 2007-08-30 23:45:54
- Откуда: Санкт-Петербург
- Контактная информация:
Re: ACER Aspire 5520G ACPI & other problem
Непрочитанное сообщение
Pattern » 2008-07-24 0:53:03
А на сам ASL можно глянуть? Имхо, компилятор ругается не на сам метод, а на что то другое
Your bunny wrote: its not a bug, this is a feature, actually…
-
freak
- сержант
- Сообщения: 183
- Зарегистрирован: 2008-07-16 9:30:18
- Откуда: UA
-
Контактная информация:
Re: ACER Aspire 5520G ACPI & other problem
Непрочитанное сообщение
freak » 2008-07-24 1:00:24
Pattern писал(а):А на сам ASL можно глянуть? Имхо, компилятор ругается не на сам метод, а на что то другое
конечно
- Вложения
-
acer-aspire-5520g_orig.asl.gz
- (20.33 КБ) 35 скачиваний
…no lords, no gods, no masters…
-
Pattern
- сержант
- Сообщения: 180
- Зарегистрирован: 2007-08-30 23:45:54
- Откуда: Санкт-Петербург
- Контактная информация:
Re: ACER Aspire 5520G ACPI & other problem
Непрочитанное сообщение
Pattern » 2008-07-24 1:01:34
Спасибо, посмотрю — скажу свои мысли
Your bunny wrote: its not a bug, this is a feature, actually…
-
freak
- сержант
- Сообщения: 183
- Зарегистрирован: 2008-07-16 9:30:18
- Откуда: UA
- Контактная информация:
Re: ACER Aspire 5520G ACPI & other problem
Непрочитанное сообщение
freak » 2008-07-24 1:10:11
только что смотрел свой топик и заметил это:
ппц)))))
значит правильные сделал выводы не сильно вникая в маны)) ужс)
…no lords, no gods, no masters…
-
Pattern
- сержант
- Сообщения: 180
- Зарегистрирован: 2007-08-30 23:45:54
- Откуда: Санкт-Петербург
- Контактная информация:
Re: ACER Aspire 5520G ACPI & other problem
Непрочитанное сообщение
Pattern » 2008-07-24 1:23:35
Тэкс, ну во первых, так как это метод, он не может выглядеть так
это не определение имени, для метода должна быть такая запись
Ну а что конкретно там должно быть….. Тебе по длинее или по короче?
в общем — это ман
6.3.3 _EJx (Eject)
These control methods are optional and are supplied for devices that support a software-controlled VCR-style ejection mechanism or that require an action be performed such as isolation of power/data lines before the device can be removed from the system. To support warm (system is in a sleep state) and hot (system is in S0) removal, an _EJx control method is listed for each sleep state from which the device supports removal, where x is the sleeping state supported. For example, _EJ0 indicates the device supports hot removal; _EJ1–EJ4 indicate the device supports warm removal.
For hot removal, the device must be immediately ejected when OSPM calls the _EJ0 control method. The _EJ0 control method does not return until ejection is complete. After calling _EJ0, OSPM verifies the device no longer exists to determine if the eject succeeded. For _HID devices, OSPM evaluates the _STA method. For _ADR devices, OSPM checks with the bus driver for that device.
For warm removal, the _EJ1–_EJ4 control methods do not cause the device to be immediately ejected. Instead, they set proprietary registers to prepare the hardware to eject when the system goes into the given sleep state. The hardware ejects the device only after OSPM has put the system in a sleep state by writing to the SLP_EN register. After the system resumes, OSPM calls _STA to determine if the eject succeeded.
The _EJx control methods take one parameter to indicate whether eject should be enabled or disabled:
1–Hot eject or mark for ejection
0–Cancel mark for ejection (EJ0 will never be called with this value)
A device object may have multiple _EJx control methods. First, it lists an EJx control method for the preferred sleeping state to eject the device. Optionally, the device may list an EJ4 control method to be used when the system has no power (for example, no battery) after the eject. For example, a hot-docking notebook might list _EJ0 and _EJ4.
А это 2 вида примера
Код: Выделить всё
Name(_ADR,0x000200 02)
Method(_EJ0, 1) { // Remove all power to device}
очень похоже на твой пример
Код: Выделить всё
Method(_EJ0, 1) // Successful ejection sequence
{
Store(Zero, ^^S3LE) // Turn off Ejection Progress LED
}
Собственно, в твоём конкретном случае этот код
Код: Выделить всё
Method (_EJ0, 0, NotSerialized)
{
Return (0x01)
}
нужно поменять на следующую запись
Попробуй, должно помочь
Your bunny wrote: its not a bug, this is a feature, actually…
-
freak
- сержант
- Сообщения: 183
- Зарегистрирован: 2008-07-16 9:30:18
- Откуда: UA
- Контактная информация:
Re: ACER Aspire 5520G ACPI & other problem
Непрочитанное сообщение
freak » 2008-07-24 1:39:46
Pattern писал(а):это не определение имени, для метода должна быть такая запись
я знаю. просто обрезал. суть в аргументах.
Pattern писал(а):Ну а что конкретно там должно быть….. Тебе по длинее или по короче?
в общем — это ман
ну что-то вроде я читал. суть в откл.питания для хотплагии)))
Pattern писал(а):Method (_EJ0, 0)
{
Return (0x01)
}
так пробовал. ругается. при чем см.выше. ругается на маркер «0».
я поставил пока «1», но боюсь))
The _EJx control methods take one parameter to indicate whether eject should be enabled or disabled:
1–Hot eject or mark for ejection
0–Cancel mark for ejection (EJ0 will never be called with this value)
1 — можно выдергивать))
0 — низя! но блин при этом никогда не вызывается с этим значением! ппц. накрутили код. думаю простым изменением 0 -> 1 не прокатит. разве что только компилятору)) тут надо глобально вникать((
…no lords, no gods, no masters…
-
paradox
- проходил мимо
- Сообщения: 11620
- Зарегистрирован: 2008-02-21 18:15:41
Re: ACER Aspire 5520G ACPI & other problem
Непрочитанное сообщение
paradox » 2008-07-24 1:48:58
тут надо глобально вникать((
вово
лучше пофиксите весь acpi
чем asl для каждого компа менять
заипетесь))
-
Pattern
- сержант
- Сообщения: 180
- Зарегистрирован: 2007-08-30 23:45:54
- Откуда: Санкт-Петербург
-
Контактная информация:
Re: ACER Aspire 5520G ACPI & other problem
Непрочитанное сообщение
Pattern » 2008-07-24 2:03:11
paradox писал(а):лучше пофиксите весь acpi
чем asl для каждого компа менять
заипетесь))
Ну с чего то же надо начинать
freak, ну если компилятор требует
то поставь ты ему эту единицу и голову не ломай. Тем более, если при правильной записи, если он ругается на 0, а всего он может иметь 2 значения: 0 и 1, то ничего не остаётся, как поставить 1
Не думаю, что что то очень мегастрашное случится
Your bunny wrote: its not a bug, this is a feature, actually…
-
freak
- сержант
- Сообщения: 183
- Зарегистрирован: 2008-07-16 9:30:18
- Откуда: UA
- Контактная информация:
Re: ACER Aspire 5520G ACPI & other problem
Непрочитанное сообщение
freak » 2008-07-24 8:11:25
Pattern писал(а):freak, ну если компилятор требует
то поставь ты ему эту единицу и голову не ломай. Тем более, если при правильной записи, если он ругается на 0, а всего он может иметь 2 значения: 0 и 1, то ничего не остаётся, как поставить 1
Не думаю, что что то очень мегастрашное случится
ну я пока и поставил «1». вот только мегастрашное то, что этот маркер говорит о готовности к горячему отключению. как бы менять на противоположный….. вдруг флешку спалю?))
а вообще, пришла тут мысль, в одном из топиков я упоминал о постоянном горении индикатора обращения к диску при подключении SD-флешки. хотя даже не монтировал ее. и судя по ману за это тоже отвечают _EJx.
…no lords, no gods, no masters…
-
Pattern
- сержант
- Сообщения: 180
- Зарегистрирован: 2007-08-30 23:45:54
- Откуда: Санкт-Петербург
- Контактная информация:
Re: ACER Aspire 5520G ACPI & other problem
Непрочитанное сообщение
Pattern » 2008-07-24 11:26:39
Очень даже может быть. Но на самом деле надо смотреть ASL с dmesg’ом и анализировать, где какой девайс прописан в ASL’е. Например, в моём такая запись
Код: Выделить всё
Device (LID)
{
Name (_HID, EisaId ("PNP0C0D"))
Method (_LID, 0, NotSerialized)
{
Return (LNot (_SB.PCI0.SMB.GM3C))
}
}
определяет дисплей ноута. Вот и тебе нужно определить, где у тебя описание SD. Однако это достаточно муторная работка
Your bunny wrote: its not a bug, this is a feature, actually…
-
freak
- сержант
- Сообщения: 183
- Зарегистрирован: 2008-07-16 9:30:18
- Откуда: UA
- Контактная информация:
Re: ACER Aspire 5520G ACPI & other problem
Непрочитанное сообщение
freak » 2008-07-24 11:36:30
Pattern писал(а):Очень даже может быть. Но на самом деле надо смотреть ASL с dmesg’ом и анализировать, где какой девайс прописан в ASL’е. Например, в моём такая запись
Код: Выделить всё
Device (LID) { Name (_HID, EisaId ("PNP0C0D")) Method (_LID, 0, NotSerialized) { Return (LNot (_SB.PCI0.SMB.GM3C)) } }
определяет дисплей ноута. Вот и тебе нужно определить, где у тебя описание SD. Однако это достаточно муторная работка
я уже понял, что муторная. но за меня никто не сделает. «ответа комьюнити 3 года ждут» (с) ))
ничего. потихоньку доковыряю
…no lords, no gods, no masters…
@ZombieTheBest hi, I run the ./Deploy.sh -d , the log show complete DSDT.dsl and SSDT-1.dsl errors. How to fix it ?
1. DSDT.dsl error:
patch complete: 8 patches, 8 changes, 0 rejects
patched result written to ‘/Users/hugowong/Documents/XPS9350-10.13-HighSierra/DSDT/raw/DSDT.dsl’
Intel ACPI Component Architecture
ASL+ Optimizing Compiler version 20160422-64(RM)
Copyright (c) 2000 — 2016 Intel Corporation
/Users/hugowong/Documents/XPS9350-10.13-HighSierra/DSDT/raw/DSDT.dsl 4026: Method (XDSM, 4, Serialized) // _DSM: Device-Specific Method
Warning 3115 — Not all control paths return a value ^ (XDSM)
/Users/hugowong/Documents/XPS9350-10.13-HighSierra/DSDT/raw/DSDT.dsl 11172: Store (STSX, Local3)
Warning 3144 — Method Local is set but never used ^ (Local3)
/Users/hugowong/Documents/XPS9350-10.13-HighSierra/DSDT/raw/DSDT.dsl 11275: Method (THDS, 1, Serialized)
Warning 3115 — Not all control paths return a value ^ (THDS)
/Users/hugowong/Documents/XPS9350-10.13-HighSierra/DSDT/raw/DSDT.dsl 12384: Store (DAT1, Local1)
Warning 3144 — Method Local is set but never used ^ (Local1)
/Users/hugowong/Documents/XPS9350-10.13-HighSierra/DSDT/raw/DSDT.dsl 12556: Method (GPEH, 0, NotSerialized)
Warning 3115 — Not all control paths return a value ^ (GPEH)
/Users/hugowong/Documents/XPS9350-10.13-HighSierra/DSDT/raw/DSDT.dsl 12669: Method (GPEH, 0, NotSerialized)
Warning 3115 — Not all control paths return a value ^ (GPEH)
/Users/hugowong/Documents/XPS9350-10.13-HighSierra/DSDT/raw/DSDT.dsl 12718: Method (_PS0, 0, Serialized) // _PS0: Power State 0
Warning 3115 — Not all control paths return a value ^ (_PS0)
/Users/hugowong/Documents/XPS9350-10.13-HighSierra/DSDT/raw/DSDT.dsl 12728: Store (D0D3, Local3)
Warning 3144 — Method Local is set but never used ^ (Local3)
/Users/hugowong/Documents/XPS9350-10.13-HighSierra/DSDT/raw/DSDT.dsl 12759: Method (_PS3, 0, Serialized) // _PS3: Power State 3
Warning 3115 — Not all control paths return a value ^ (_PS3)
/Users/hugowong/Documents/XPS9350-10.13-HighSierra/DSDT/raw/DSDT.dsl 12813: Method (_PS0, 0, Serialized) // _PS0: Power State 0
Warning 3115 — Not all control paths return a value ^ (_PS0)
/Users/hugowong/Documents/XPS9350-10.13-HighSierra/DSDT/raw/DSDT.dsl 12826: Method (_PS2, 0, Serialized) // _PS2: Power State 2
Warning 3115 — Not all control paths return a value ^ (_PS2)
/Users/hugowong/Documents/XPS9350-10.13-HighSierra/DSDT/raw/DSDT.dsl 12839: Method (_PS3, 0, Serialized) // _PS3: Power State 3
Warning 3115 — Not all control paths return a value ^ (_PS3)
/Users/hugowong/Documents/XPS9350-10.13-HighSierra/DSDT/raw/DSDT.dsl 13067: Method (SPPS, 2, Serialized)
Warning 3115 — Not all control paths return a value ^ (SPPS)
/Users/hugowong/Documents/XPS9350-10.13-HighSierra/DSDT/raw/DSDT.dsl 13250: Method (GPEH, 0, NotSerialized)
Warning 3115 — Not all control paths return a value ^ (GPEH)
/Users/hugowong/Documents/XPS9350-10.13-HighSierra/DSDT/raw/DSDT.dsl 13295: Method (GPEH, 0, NotSerialized)
Warning 3115 — Not all control paths return a value ^ (GPEH)
/Users/hugowong/Documents/XPS9350-10.13-HighSierra/DSDT/raw/DSDT.dsl 13365: Method (XDSM, 4, Serialized) // _DSM: Device-Specific Method
Warning 3115 — Not all control paths return a value ^ (XDSM)
/Users/hugowong/Documents/XPS9350-10.13-HighSierra/DSDT/raw/DSDT.dsl 13528: Method (RDCA, 5, Serialized)
Warning 3115 — Not all control paths return a value ^ (RDCA)
/Users/hugowong/Documents/XPS9350-10.13-HighSierra/DSDT/raw/DSDT.dsl 13636: Method (CNRS, 0, Serialized)
Warning 3115 — Not all control paths return a value ^ (CNRS)
/Users/hugowong/Documents/XPS9350-10.13-HighSierra/DSDT/raw/DSDT.dsl 13670: While (LEqual (And (RDCA (NCRN, 0x52, Zero, Zero, Zero), 0x2000), Zero))
Warning 3122 — Called method may not always return a value ^
/Users/hugowong/Documents/XPS9350-10.13-HighSierra/DSDT/raw/DSDT.dsl 13688: Method (_PS3, 0, Serialized) // _PS3: Power State 3
Warning 3115 — Not all control paths return a value ^ (_PS3)
/Users/hugowong/Documents/XPS9350-10.13-HighSierra/DSDT/raw/DSDT.dsl 13695: Store (RDCA (NCRN, 0x04, Zero, Zero, 0x02), PCMD)
Warning 3122 — Called method may not always return a value ^
/Users/hugowong/Documents/XPS9350-10.13-HighSierra/DSDT/raw/DSDT.dsl 13699: Store (RDCA (NCRN, 0x24, Zero, Zero, 0x02), PRBD)
Warning 3122 — Called method may not always return a value ^
/Users/hugowong/Documents/XPS9350-10.13-HighSierra/DSDT/raw/DSDT.dsl 13704: Store (RDCA (NCRN, 0x10, Zero, Zero, 0x02), PRBD)
Warning 3122 — Called method may not always return a value ^
/Users/hugowong/Documents/XPS9350-10.13-HighSierra/DSDT/raw/DSDT.dsl 13711: Method (_PS0, 0, Serialized) // _PS0: Power State 0
Warning 3115 — Not all control paths return a value ^ (_PS0)
/Users/hugowong/Documents/XPS9350-10.13-HighSierra/DSDT/raw/DSDT.dsl 13720: Store (RDCA (NCRN, Add (NPMV, 0x04), Zero, Zero, 0x02), Local0)
Warning 3122 — Called method may not always return a value ^
/Users/hugowong/Documents/XPS9350-10.13-HighSierra/DSDT/raw/DSDT.dsl 13782: Method (CNRS, 0, Serialized)
Warning 3115 — Not all control paths return a value ^ (CNRS)
/Users/hugowong/Documents/XPS9350-10.13-HighSierra/DSDT/raw/DSDT.dsl 13816: While (LEqual (And (RDCA (NCRN, 0x52, Zero, Zero, Zero), 0x2000), Zero))
Warning 3122 — Called method may not always return a value ^
/Users/hugowong/Documents/XPS9350-10.13-HighSierra/DSDT/raw/DSDT.dsl 13834: Method (_PS3, 0, Serialized) // _PS3: Power State 3
Warning 3115 — Not all control paths return a value ^ (_PS3)
/Users/hugowong/Documents/XPS9350-10.13-HighSierra/DSDT/raw/DSDT.dsl 13841: Store (RDCA (NCRN, 0x04, Zero, Zero, 0x02), PCMD)
Warning 3122 — Called method may not always return a value ^
/Users/hugowong/Documents/XPS9350-10.13-HighSierra/DSDT/raw/DSDT.dsl 13845: Store (RDCA (NCRN, 0x24, Zero, Zero, 0x02), PRBD)
Warning 3122 — Called method may not always return a value ^
/Users/hugowong/Documents/XPS9350-10.13-HighSierra/DSDT/raw/DSDT.dsl 13850: Store (RDCA (NCRN, 0x10, Zero, Zero, 0x02), PRBD)
Warning 3122 — Called method may not always return a value ^
/Users/hugowong/Documents/XPS9350-10.13-HighSierra/DSDT/raw/DSDT.dsl 13857: Method (_PS0, 0, Serialized) // _PS0: Power State 0
Warning 3115 — Not all control paths return a value ^ (_PS0)
/Users/hugowong/Documents/XPS9350-10.13-HighSierra/DSDT/raw/DSDT.dsl 13866: Store (RDCA (NCRN, Add (NPMV, 0x04), Zero, Zero, 0x02), Local0)
Warning 3122 — Called method may not always return a value ^
/Users/hugowong/Documents/XPS9350-10.13-HighSierra/DSDT/raw/DSDT.dsl 13928: Method (CNRS, 0, Serialized)
Warning 3115 — Not all control paths return a value ^ (CNRS)
/Users/hugowong/Documents/XPS9350-10.13-HighSierra/DSDT/raw/DSDT.dsl 13962: While (LEqual (And (RDCA (NCRN, 0x52, Zero, Zero, Zero), 0x2000), Zero))
Warning 3122 — Called method may not always return a value ^
/Users/hugowong/Documents/XPS9350-10.13-HighSierra/DSDT/raw/DSDT.dsl 13980: Method (_PS3, 0, Serialized) // _PS3: Power State 3
Warning 3115 — Not all control paths return a value ^ (_PS3)
/Users/hugowong/Documents/XPS9350-10.13-HighSierra/DSDT/raw/DSDT.dsl 13987: Store (RDCA (NCRN, 0x04, Zero, Zero, 0x02), PCMD)
Warning 3122 — Called method may not always return a value ^
/Users/hugowong/Documents/XPS9350-10.13-HighSierra/DSDT/raw/DSDT.dsl 13991: Store (RDCA (NCRN, 0x24, Zero, Zero, 0x02), PRBD)
Warning 3122 — Called method may not always return a value ^
/Users/hugowong/Documents/XPS9350-10.13-HighSierra/DSDT/raw/DSDT.dsl 13996: Store (RDCA (NCRN, 0x10, Zero, Zero, 0x02), PRBD)
Warning 3122 — Called method may not always return a value ^
/Users/hugowong/Documents/XPS9350-10.13-HighSierra/DSDT/raw/DSDT.dsl 14003: Method (_PS0, 0, Serialized) // _PS0: Power State 0
Warning 3115 — Not all control paths return a value ^ (_PS0)
/Users/hugowong/Documents/XPS9350-10.13-HighSierra/DSDT/raw/DSDT.dsl 14012: Store (RDCA (NCRN, Add (NPMV, 0x04), Zero, Zero, 0x02), Local0)
Warning 3122 — Called method may not always return a value ^
/Users/hugowong/Documents/XPS9350-10.13-HighSierra/DSDT/raw/DSDT.dsl 14126: Store (PMEC, Local0)
Warning 3144 — Method Local is set but never used ^ (Local0)
/Users/hugowong/Documents/XPS9350-10.13-HighSierra/DSDT/raw/DSDT.dsl 14138: Store (PMEC, Local0)
Warning 3144 — Method Local is set but never used ^ (Local0)
/Users/hugowong/Documents/XPS9350-10.13-HighSierra/DSDT/raw/DSDT.dsl 14357: Device (I2C0)
Warning 3141 — Missing dependency ^ (Device object requires a _HID or _ADR in same scope)
/Users/hugowong/Documents/XPS9350-10.13-HighSierra/DSDT/raw/DSDT.dsl 14418: Device (I2C1)
Warning 3141 — Missing dependency ^ (Device object requires a _HID or _ADR in same scope)
/Users/hugowong/Documents/XPS9350-10.13-HighSierra/DSDT/raw/DSDT.dsl 14479: Device (I2C2)
Warning 3141 — Missing dependency ^ (Device object requires a _HID or _ADR in same scope)
/Users/hugowong/Documents/XPS9350-10.13-HighSierra/DSDT/raw/DSDT.dsl 14540: Device (I2C3)
Warning 3141 — Missing dependency ^ (Device object requires a _HID or _ADR in same scope)
/Users/hugowong/Documents/XPS9350-10.13-HighSierra/DSDT/raw/DSDT.dsl 14601: Device (I2C4)
Warning 3141 — Missing dependency ^ (Device object requires a _HID or _ADR in same scope)
/Users/hugowong/Documents/XPS9350-10.13-HighSierra/DSDT/raw/DSDT.dsl 14662: Device (I2C5)
Warning 3141 — Missing dependency ^ (Device object requires a _HID or _ADR in same scope)
/Users/hugowong/Documents/XPS9350-10.13-HighSierra/DSDT/raw/DSDT.dsl 14723: Device (SPI0)
Warning 3141 — Missing dependency ^ (Device object requires a _HID or _ADR in same scope)
/Users/hugowong/Documents/XPS9350-10.13-HighSierra/DSDT/raw/DSDT.dsl 14783: Device (SPI1)
Warning 3141 — Missing dependency ^ (Device object requires a _HID or _ADR in same scope)
/Users/hugowong/Documents/XPS9350-10.13-HighSierra/DSDT/raw/DSDT.dsl 14843: Device (UA00)
Warning 3141 — Missing dependency ^ (Device object requires a _HID or _ADR in same scope)
/Users/hugowong/Documents/XPS9350-10.13-HighSierra/DSDT/raw/DSDT.dsl 14923: Device (UA01)
Warning 3141 — Missing dependency ^ (Device object requires a _HID or _ADR in same scope)
/Users/hugowong/Documents/XPS9350-10.13-HighSierra/DSDT/raw/DSDT.dsl 15003: Device (UA02)
Warning 3141 — Missing dependency ^ (Device object requires a _HID or _ADR in same scope)
/Users/hugowong/Documents/XPS9350-10.13-HighSierra/DSDT/raw/DSDT.dsl 15172: Method (_INI, 0, NotSerialized) // _INI: Initialize
Warning 3115 — Not all control paths return a value ^ (_INI)
/Users/hugowong/Documents/XPS9350-10.13-HighSierra/DSDT/raw/DSDT.dsl 15278: Method (_INI, 0, NotSerialized) // _INI: Initialize
Warning 3115 — Not all control paths return a value ^ (_INI)
/Users/hugowong/Documents/XPS9350-10.13-HighSierra/DSDT/raw/DSDT.dsl 15375: Method (_INI, 0, NotSerialized) // _INI: Initialize
Warning 3115 — Not all control paths return a value ^ (_INI)
/Users/hugowong/Documents/XPS9350-10.13-HighSierra/DSDT/raw/DSDT.dsl 15474: Method (_INI, 0, NotSerialized) // _INI: Initialize
Warning 3115 — Not all control paths return a value ^ (_INI)
/Users/hugowong/Documents/XPS9350-10.13-HighSierra/DSDT/raw/DSDT.dsl 16308: Store (CLR, Local0)
Warning 3144 — Method Local is set but never used ^ (Local0)
/Users/hugowong/Documents/XPS9350-10.13-HighSierra/DSDT/raw/DSDT.dsl 16413: Store (D0D3, Local0)
Warning 3144 — Method Local is set but never used ^ (Local0)
/Users/hugowong/Documents/XPS9350-10.13-HighSierra/DSDT/raw/DSDT.dsl 16426: Store (D0D3, Local0)
Warning 3144 — Method Local is set but never used ^ (Local0)
/Users/hugowong/Documents/XPS9350-10.13-HighSierra/DSDT/raw/DSDT.dsl 16585: Store (PSTA, Local0)
Warning 3144 — Method Local is set but never used ^ (Local0)
/Users/hugowong/Documents/XPS9350-10.13-HighSierra/DSDT/raw/DSDT.dsl 16592: Store (PSTA, Local0)
Warning 3144 — Method Local is set but never used ^ (Local0)
/Users/hugowong/Documents/XPS9350-10.13-HighSierra/DSDT/raw/DSDT.dsl 16595: Method (XDSM, 4, Serialized) // _DSM: Device-Specific Method
Warning 3115 — Not all control paths return a value ^ (XDSM)
/Users/hugowong/Documents/XPS9350-10.13-HighSierra/DSDT/raw/DSDT.dsl 16691: Store (PSTA, Local0)
Warning 3144 — Method Local is set but never used ^ (Local0)
/Users/hugowong/Documents/XPS9350-10.13-HighSierra/DSDT/raw/DSDT.dsl 16698: Store (PSTA, Local0)
Warning 3144 — Method Local is set but never used ^ (Local0)
/Users/hugowong/Documents/XPS9350-10.13-HighSierra/DSDT/raw/DSDT.dsl 16701: Method (XDSM, 4, Serialized) // _DSM: Device-Specific Method
Warning 3115 — Not all control paths return a value ^ (XDSM)
/Users/hugowong/Documents/XPS9350-10.13-HighSierra/DSDT/raw/DSDT.dsl 16768: Method (XDSM, 4, NotSerialized) // _DSM: Device-Specific Method
Warning 3115 — Not all control paths return a value ^ (XDSM)
/Users/hugowong/Documents/XPS9350-10.13-HighSierra/DSDT/raw/DSDT.dsl 17022: Add (One, ShiftLeft (Local2, One, Local2), Local3)
Warning 3144 — Method Local is set but never used ^ (Local3)
/Users/hugowong/Documents/XPS9350-10.13-HighSierra/DSDT/raw/DSDT.dsl 17545: Method (SPL1, 0, Serialized)
Warning 3115 — Not all control paths return a value ^ (SPL1)
/Users/hugowong/Documents/XPS9350-10.13-HighSierra/DSDT/raw/DSDT.dsl 17583: Method (GUAM, 1, Serialized)
Warning 3115 — Not all control paths return a value ^ (GUAM)
/Users/hugowong/Documents/XPS9350-10.13-HighSierra/DSDT/raw/DSDT.dsl 17751: If (CondRefOf (_OSI, Local0))
Warning 3144 — Method Local is set but never used ^ (Local0)
/Users/hugowong/Documents/XPS9350-10.13-HighSierra/DSDT/raw/DSDT.dsl 18511: Store (_SB.STDC (_SB.PCI0.GPCB (), Zero, TBTD (TBSE), TBTF (TBSE), 0x05), Local7)
Warning 3122 — Called method may not always return a value ^
/Users/hugowong/Documents/XPS9350-10.13-HighSierra/DSDT/raw/DSDT.dsl 18692: Method (_E42, 0, NotSerialized) // _Exx: Edge-Triggered GPE
Warning 3115 — Not all control paths return a value ^ (_E42)
/Users/hugowong/Documents/XPS9350-10.13-HighSierra/DSDT/raw/DSDT.dsl 18981: Method (STDC, 5, Serialized)
Warning 3115 — Not all control paths return a value ^ (STDC)
/Users/hugowong/Documents/XPS9350-10.13-HighSierra/DSDT/raw/DSDT.dsl 19474: Method (_STA, 0, NotSerialized) // _STA: Status
Warning 3107 — Reserved method must return a value ^ (Integer required for _STA)
/Users/hugowong/Documents/XPS9350-10.13-HighSierra/DSDT/raw/DSDT.dsl 19803: Method (_STA, 0, NotSerialized) // _STA: Status
Warning 3107 — Reserved method must return a value ^ (Integer required for _STA)
/Users/hugowong/Documents/XPS9350-10.13-HighSierra/DSDT/raw/DSDT.dsl 20131: Method (_STA, 0, NotSerialized) // _STA: Status
Warning 3107 — Reserved method must return a value ^ (Integer required for _STA)
/Users/hugowong/Documents/XPS9350-10.13-HighSierra/DSDT/raw/DSDT.dsl 20459: Method (_STA, 0, NotSerialized) // _STA: Status
Warning 3107 — Reserved method must return a value ^ (Integer required for _STA)
/Users/hugowong/Documents/XPS9350-10.13-HighSierra/DSDT/raw/DSDT.dsl 20789: Method (_STA, 0, NotSerialized) // _STA: Status
Warning 3107 — Reserved method must return a value ^ (Integer required for _STA)
/Users/hugowong/Documents/XPS9350-10.13-HighSierra/DSDT/raw/DSDT.dsl 21118: Method (_STA, 0, NotSerialized) // _STA: Status
Warning 3107 — Reserved method must return a value ^ (Integer required for _STA)
/Users/hugowong/Documents/XPS9350-10.13-HighSierra/DSDT/raw/DSDT.dsl 21446: Method (_STA, 0, NotSerialized) // _STA: Status
Warning 3107 — Reserved method must return a value ^ (Integer required for _STA)
/Users/hugowong/Documents/XPS9350-10.13-HighSierra/DSDT/raw/DSDT.dsl 21774: Method (_STA, 0, NotSerialized) // _STA: Status
Warning 3107 — Reserved method must return a value ^ (Integer required for _STA)
/Users/hugowong/Documents/XPS9350-10.13-HighSierra/DSDT/raw/DSDT.dsl 21941: Scope (_SB.PCI0.RP09.PXSX)
Error 6085 — Object not found or not accessible from scope ^ (_SB.PCI0.RP09.PXSX)
/Users/hugowong/Documents/XPS9350-10.13-HighSierra/DSDT/raw/DSDT.dsl 21941: Scope (_SB.PCI0.RP09.PXSX)
Error 6116 — Forward references from Scope operator not allowed ^ (_SB.PCI0.RP09.PXSX)
/Users/hugowong/Documents/XPS9350-10.13-HighSierra/DSDT/raw/DSDT.dsl 22104: Method (_STA, 0, NotSerialized) // _STA: Status
Warning 3107 — Reserved method must return a value ^ (Integer required for _STA)
/Users/hugowong/Documents/XPS9350-10.13-HighSierra/DSDT/raw/DSDT.dsl 22433: Method (_STA, 0, NotSerialized) // _STA: Status
Warning 3107 — Reserved method must return a value ^ (Integer required for _STA)
/Users/hugowong/Documents/XPS9350-10.13-HighSierra/DSDT/raw/DSDT.dsl 22761: Method (_STA, 0, NotSerialized) // _STA: Status
Warning 3107 — Reserved method must return a value ^ (Integer required for _STA)
/Users/hugowong/Documents/XPS9350-10.13-HighSierra/DSDT/raw/DSDT.dsl 23089: Method (_STA, 0, NotSerialized) // _STA: Status
Warning 3107 — Reserved method must return a value ^ (Integer required for _STA)
/Users/hugowong/Documents/XPS9350-10.13-HighSierra/DSDT/raw/DSDT.dsl 23417: Method (_STA, 0, NotSerialized) // _STA: Status
Warning 3107 — Reserved method must return a value ^ (Integer required for _STA)
/Users/hugowong/Documents/XPS9350-10.13-HighSierra/DSDT/raw/DSDT.dsl 23745: Method (_STA, 0, NotSerialized) // _STA: Status
Warning 3107 — Reserved method must return a value ^ (Integer required for _STA)
/Users/hugowong/Documents/XPS9350-10.13-HighSierra/DSDT/raw/DSDT.dsl 24073: Method (_STA, 0, NotSerialized) // _STA: Status
Warning 3107 — Reserved method must return a value ^ (Integer required for _STA)
/Users/hugowong/Documents/XPS9350-10.13-HighSierra/DSDT/raw/DSDT.dsl 24401: Method (_STA, 0, NotSerialized) // _STA: Status
Warning 3107 — Reserved method must return a value ^ (Integer required for _STA)
/Users/hugowong/Documents/XPS9350-10.13-HighSierra/DSDT/raw/DSDT.dsl 24729: Method (_STA, 0, NotSerialized) // _STA: Status
Warning 3107 — Reserved method must return a value ^ (Integer required for _STA)
/Users/hugowong/Documents/XPS9350-10.13-HighSierra/DSDT/raw/DSDT.dsl 25057: Method (_STA, 0, NotSerialized) // _STA: Status
Warning 3107 — Reserved method must return a value ^ (Integer required for _STA)
/Users/hugowong/Documents/XPS9350-10.13-HighSierra/DSDT/raw/DSDT.dsl 25385: Method (_STA, 0, NotSerialized) // _STA: Status
Warning 3107 — Reserved method must return a value ^ (Integer required for _STA)
/Users/hugowong/Documents/XPS9350-10.13-HighSierra/DSDT/raw/DSDT.dsl 25713: Method (_STA, 0, NotSerialized) // _STA: Status
Warning 3107 — Reserved method must return a value ^ (Integer required for _STA)
/Users/hugowong/Documents/XPS9350-10.13-HighSierra/DSDT/raw/DSDT.dsl 28845: If (LOr (^^PCI0.RP09.SSD0.PAHC (), ^^PCI0.RP09.SSD0.PNVM ()))
Error 6085 — Object not found or not accessible from scope ^ (^^PCI0.RP09.SSD0.PAHC)
/Users/hugowong/Documents/XPS9350-10.13-HighSierra/DSDT/raw/DSDT.dsl 28845: If (LOr (^^PCI0.RP09.SSD0.PAHC (), ^^PCI0.RP09.SSD0.PNVM ()))
Error 6085 — Object not found or not accessible from scope ^ (^^PCI0.RP09.SSD0.PNVM)
/Users/hugowong/Documents/XPS9350-10.13-HighSierra/DSDT/raw/DSDT.dsl 29062: If (^^PCI0.RP09.SSD0.WIST ())
Error 6085 — Object not found or not accessible from scope ^ (^^PCI0.RP09.SSD0.WIST)
/Users/hugowong/Documents/XPS9350-10.13-HighSierra/DSDT/raw/DSDT.dsl 30357: Method (_CRS, 0, Serialized) // _CRS: Current Resource Settings
Warning 3115 — Not all control paths return a value ^ (_CRS)
/Users/hugowong/Documents/XPS9350-10.13-HighSierra/DSDT/raw/DSDT.dsl 30357: Method (_CRS, 0, Serialized) // _CRS: Current Resource Settings
Warning 3107 — Reserved method must return a value ^ (Buffer required for _CRS)
/Users/hugowong/Documents/XPS9350-10.13-HighSierra/DSDT/raw/DSDT.dsl 31018: Divide (Arg2, 0x04, Local3, Local4)
Warning 3144 — Method Local is set but never used ^ (Local4)
/Users/hugowong/Documents/XPS9350-10.13-HighSierra/DSDT/raw/DSDT.dsl 31439: If (CondRefOf (_OSI, Local0))
Warning 3144 — Method Local is set but never used ^ (Local0)
/Users/hugowong/Documents/XPS9350-10.13-HighSierra/DSDT/raw/DSDT.dsl 31542: Store (DCLS, Local1)
Warning 3144 — Method Local is set but never used ^ (Local1)
/Users/hugowong/Documents/XPS9350-10.13-HighSierra/DSDT/raw/DSDT.dsl 31546: Store (^^^LID0._LID (), Local0)
Warning 3144 — Method Local is set but never used ^ (Local0)
/Users/hugowong/Documents/XPS9350-10.13-HighSierra/DSDT/raw/DSDT.dsl 32289: Acquire (PATM, 0x0064)
Warning 3130 — Result is not used, possible operator timeout will be missed ^
/Users/hugowong/Documents/XPS9350-10.13-HighSierra/DSDT/raw/DSDT.dsl 32986: Divide (Local0, 0x64, Local5, Local3)
Warning 3144 — Method Local is set but never used ^ (Local5)
/Users/hugowong/Documents/XPS9350-10.13-HighSierra/DSDT/raw/DSDT.dsl 33860: Store (ECGC (), Local0)
Warning 3144 — Method Local is set but never used ^ (Local0)
/Users/hugowong/Documents/XPS9350-10.13-HighSierra/DSDT/raw/DSDT.dsl 34155: If (And (Local0, One, Local1))
Warning 3144 — Method Local is set but never used ^ (Local1)
ASL Input: /Users/hugowong/Documents/XPS9350-10.13-HighSierra/DSDT/raw/DSDT.dsl — 34292 lines, 1058092 bytes, 16579 keywords
Compilation complete. 5 Errors, 105 Warnings, 180 Remarks, 238 Optimizations, 2 Constants Folded
[ Note ] syscl_SSD was not applied as it was causing errors..
2. SSDT-1.dsl errors
patch complete: 2 patches, 1 changes, 0 rejects
patched result written to ‘/Users/hugowong/Documents/XPS9350-10.13-HighSierra/DSDT/raw/SSDT-1.dsl’
Intel ACPI Component Architecture
ASL+ Optimizing Compiler version 20160422-64(RM)
Copyright (c) 2000 — 2016 Intel Corporation
Compiler aborting due to parser-detected syntax error(s)
/Users/hugowong/Documents/XPS9350-10.13-HighSierra/DSDT/raw/SSDT-1.dsl 101: }
Error 6126 — syntax error, unexpected ‘}’ ^
/Users/hugowong/Documents/XPS9350-10.13-HighSierra/DSDT/raw/SSDT-1.dsl 122: If (LGreater (DFUD, Zero))
Error 6126 — syntax error, unexpected PARSEOP_IF ^
/Users/hugowong/Documents/XPS9350-10.13-HighSierra/DSDT/raw/SSDT-1.dsl 123: {
Error 6126 — syntax error, unexpected ‘{‘ ^
/Users/hugowong/Documents/XPS9350-10.13-HighSierra/DSDT/raw/SSDT-1.dsl 127: }
Error 6126 — syntax error, unexpected ‘}’ ^
/Users/hugowong/Documents/XPS9350-10.13-HighSierra/DSDT/raw/SSDT-1.dsl 157:
Error 6126 — syntax error, unexpected $end and premature End-Of-File
ASL Input: /Users/hugowong/Documents/XPS9350-10.13-HighSierra/DSDT/raw/SSDT-1.dsl — 157 lines, 6080 bytes, 77 keywords
Compilation complete. 5 Errors, 0 Warnings, 0 Remarks, 0 Optimizations
[ Note ] rename_DSM was not applied as it was causing errors..
This is my ACPI/origin :
origin.zip
View previous topic :: View next topic | |||||||||||||||
Author | Message | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
_Stevie_ n00b Joined: 20 Jan 2008 |
|
||||||||||||||
Back to top |
|
||||||||||||||
_Stevie_ n00b Joined: 20 Jan 2008 |
|
||||||||||||||
Back to top |
|
||||||||||||||
mimosinnet l33t Joined: 10 Aug 2006 |
|
||||||||||||||
Back to top |
|
||||||||||||||
_Stevie_ n00b Joined: 20 Jan 2008 |
|
||||||||||||||
Back to top |
|
||||||||||||||
sonicbhoc Veteran Joined: 24 Oct 2005 |
|
||||||||||||||
Back to top |
|
||||||||||||||
boda2004 n00b Joined: 28 Mar 2006 |
|
||||||||||||||
Back to top |
|
||||||||||||||
P0w3r3d n00b Joined: 13 Jan 2005 |
|
||||||||||||||
Back to top |
|
||||||||||||||
kreon28 Apprentice Joined: 08 Jul 2006 |
|
||||||||||||||
Back to top |
|
||||||||||||||
thegigistouch n00b Joined: 11 Jun 2008 |
|
||||||||||||||
Back to top |
|
||||||||||||||
twalter Tux’s lil’ helper Joined: 07 Apr 2004 |
|
||||||||||||||
Back to top |
|
||||||||||||||
kernelhacker n00b Joined: 18 Feb 2004 |
|
||||||||||||||
Back to top |
|
||||||||||||||
kernelhacker n00b Joined: 18 Feb 2004 |
|
||||||||||||||
Back to top |
|
||||||||||||||
jetblack Guru Joined: 15 Jan 2003 |
|
||||||||||||||
Back to top |
|
||||||||||||||
jetblack Guru Joined: 15 Jan 2003 |
|
||||||||||||||
Back to top |
|
||||||||||||||
kernelhacker n00b Joined: 18 Feb 2004 |
|
||||||||||||||
Back to top |
|
||||||||||||||
kodiakmax n00b Joined: 28 Jan 2009 |
|
||||||||||||||
Back to top |
|
||||||||||||||
kodiakmax n00b Joined: 28 Jan 2009 |
|
||||||||||||||
Back to top |
|
||||||||||||||
kodiakmax n00b Joined: 28 Jan 2009 |
|
||||||||||||||
Back to top |
|
||||||||||||||
riczan Tux’s lil’ helper Joined: 09 Feb 2005 |
|
||||||||||||||
Back to top |
|
||||||||||||||
kodiakmax n00b Joined: 28 Jan 2009 |
|
||||||||||||||
Back to top |
|
||||||||||||||
riczan Tux’s lil’ helper Joined: 09 Feb 2005 |
|
||||||||||||||
Back to top |
|
||||||||||||||
kodiakmax n00b Joined: 28 Jan 2009 |
|
||||||||||||||
Back to top |
|
||||||||||||||
riczan Tux’s lil’ helper Joined: 09 Feb 2005 |
|
||||||||||||||
Back to top |
|
||||||||||||||
kodiakmax n00b Joined: 28 Jan 2009 |
|
||||||||||||||
Back to top |
|
||||||||||||||
riczan Tux’s lil’ helper Joined: 09 Feb 2005 |
|
||||||||||||||
Back to top |
|
||||||||||||||
|
You cannot post new topics in this forum |
- Forum
- The Ubuntu Forum Community
- Other Discussion and Support
- Tutorials
- HOWTO Fix A Buggy DSDT File
-
Re: HOWTO Fix A Buggy DSDT File
Originally Posted by eloralon
Hello experts,
I have an HP Envy 14T-2000 (Beatsaudio) and have extracted it’s dsdt. When I try to compile it I get the following error and warnings:
19 Error Name already exists in scope (TNOT)
2316 Remark Initializer list shorter than declared package length
4520 Warning Not all control paths return a value (_HID)
4520 Warning Reserved method must return a value (Integer/String required for _HID)
4579 Warning Not all control paths return a value (_CID)
4579 Warning Reserved method must return a value (Integer/String/Package required for _CID)
5052 Warning Not all control paths return a value (_BST)
14218 Warning Not all control paths return a value (_CRS)
14218 Warning Reserved method must return a value (Buffer required for _CRS)Can you please help fix the above errors so I can compile and use it on my Ubuntu 11.04 installation?
I have attached the DSDT file for easy reference.
Thank you.
Fixed. Should have Provided me with the .aml instead.
Code:
Intel ACPI Component Architecture ASL Optimizing Compiler version 20110922-32 [Sep 22 2011] Copyright (c) 2000 - 2011 Intel Corporation ASL Input: DSDT.dsl - 14398 lines, 576367 bytes, 6723 keywords AML Output: dsdt.aml - 62775 bytes, 1191 named objects, 5532 executable opcod es Hex Dump: DSDT.hex - 596705 bytes Compilation complete. 0 Errors, 0 Warnings, 0 Remarks, 29 Optimizations
-
Re: HOWTO Fix A Buggy DSDT File
Originally Posted by mathfeel
For my DSDT file, when recompiling, at first I get a series of error like this:
Code:
dsdt.dsl 8236: Name (_PLD, Buffer (0x10) Error 4080 - Invalid object type for reserved name ^ (found BUFFER, requires Package)
I changed s/Buffer/Package/ in each line and the Errors are gone.
All that remains are these Warnings:
Code:
# iasl -tc dsdt.dsl Intel ACPI Component Architecture ASL Optimizing Compiler version 20100528 [Jun 23 2011] Copyright (c) 2000 - 2010 Intel Corporation Supports ACPI Specification Revision 4.0a dsdt.dsl 4421: If (LFLS ()) Warning 1093 - ^ Called method may not always return a value dsdt.dsl 4524: If (LFLS ()) Warning 1093 - ^ Called method may not always return a value dsdt.dsl 4547: If (LFLS ()) Warning 1093 - ^ Called method may not always return a value dsdt.dsl 4612: If (LFLS ()) Warning 1093 - ^ Called method may not always return a value dsdt.dsl 4624: If (LFLS ()) Warning 1093 - ^ Called method may not always return a value dsdt.dsl 4644: Method (LFLS, 0, NotSerialized) Warning 1088 - ^ Not all control paths return a value (LFLS) dsdt.dsl 9060: Store (_SB.PCI0.LPC.EC.SLBN (), Local0) Warning 1093 - Called method may not always return a value ^ dsdt.dsl 9385: Method (SLBN, 0, NotSerialized) Warning 1088 - ^ Not all control paths return a value (SLBN) dsdt.dsl 9854: Method (_Q15, 0, NotSerialized) Warning 1088 - ^ Not all control paths return a value (_Q15) ASL Input: dsdt.dsl - 13834 lines, 450481 bytes, 5744 keywords AML Output: dsdt.aml - 50486 bytes, 1110 named objects, 4634 executable opcodes
which I am not sure how to fix. Please help!
This is for a Lenovo ThinkPAD x201 Tablet.
Fixed.
Code:
Intel ACPI Component Architecture ASL Optimizing Compiler version 20110922-32 [Sep 22 2011] Copyright (c) 2000 - 2011 Intel Corporation ASL Input: dsdt.dsl - 13839 lines, 450520 bytes, 5746 keywords AML Output: dsdt.aml - 50490 bytes, 1110 named objects, 4636 executable opcod es Hex Dump: dsdt.hex - 480046 bytes Compilation complete. 0 Errors, 0 Warnings, 0 Remarks, 2799 Optimizations
-
Re: HOWTO Fix A Buggy DSDT File
Originally Posted by guandalino
Laptop: HP Pavilion dv6 6008el (2Ghz Intel Core i7 2630QM, 8Gb DDR3, Radeon HD 6490 1Gb, 500Gb sata 7200rpm).
My laptop doesn’t boot — blank screen — if acpi=off is not specified in grub, that way disabling ACPI entirely (unacceptable). Ubuntu 10.04 LTS and 10.10 aren’t affected, Natty 11.04 is. I followed debug instructions on LessWatts and discovered DSDT table is broken, please help!
HTML Code:
DSDT.dsl 37: External (TNOT) Error 4057 - ^ Name already exists in scope (TNOT) DSDT.dsl 11050: Method (PAPR, 0, NotSerialized) Warning 1088 - ^ Not all control paths return a value (PAPR) DSDT.dsl 12566: Method (_CRS, 0, NotSerialized) Warning 1088 - ^ Not all control paths return a value (_CRS) DSDT.dsl 12566: Method (_CRS, 0, NotSerialized) Warning 1081 - ^ Reserved method must return a value (Buffer required for _CRS)
Thanks
Fixed.
Code:
Intel ACPI Component Architecture ASL Optimizing Compiler version 20110922-32 [Sep 22 2011] Copyright (c) 2000 - 2011 Intel Corporation ASL Input: DSDT.dsl - 12753 lines, 424443 bytes, 5911 keywords AML Output: DSDT.aml - 50369 bytes, 1037 named objects, 4874 executable opcod es Hex Dump: DSDT.hex - 478905 bytes Compilation complete. 0 Errors, 0 Warnings, 0 Remarks, 20 Optimizations
-
Re: HOWTO Fix A Buggy DSDT File
Hi. Asus MB E35M1-M with AMD Zacate APU and + 2 network cards. 10.04.03 server sometimes throw out messages in console «irq 19: nobody cared» and become laggy till reboot it. Even with «irqpoll» option its just happen less frequently. I try a couple of kernels. Last one is 2.6.38-11 lucid. Compiling DSDT cause lot of errors. Help please!
-
Re: HOWTO Fix A Buggy DSDT File
Upload the aml file please.
-
Re: HOWTO Fix A Buggy DSDT File
this is an amazing thread… my gratitude…
I’ve fixed a couple of bugs in my dsdt, would anyone be able to check my other bugs… (uploading aml)…
many thanks,
mike
-
Re: HOWTO Fix A Buggy DSDT File
almost finished just a couple more to go…
-
Re: HOWTO Fix A Buggy DSDT File
finished… (par one bug, which i found info on here), but i’ll just leave that one as i don’t think it’ll affect anything much…
attached is my final dsdt… maybe it will be helpful for anyone with hp g6 to diff… if anyone can give the start to finish a quick diff to check my changes would be appreciated…
cheers,
mike
-
Re: HOWTO Fix A Buggy DSDT File
Originally Posted by guandalino
Laptop: HP Pavilion dv6 6008el (2Ghz Intel Core i7 2630QM, 8Gb DDR3, Radeon HD 6490 1Gb, 500Gb sata 7200rpm).
My laptop doesn’t boot — blank screen — if acpi=off is not specified in grub, that way disabling ACPI entirely (unacceptable). Ubuntu 10.04 LTS and 10.10 aren’t affected, Natty 11.04 is. I followed debug instructions on LessWatts and discovered DSDT table is broken, please help!
[HTML]
DSDT.dsl 37: External (TNOT)
Error 4057 — ^ Name already exists in scope (TNOT)can you tell what brand is your bios ? because I have the same error on lenovo g470 :
Code:
DSDT.dsl 36: External (TNOT) Error 4057 - Name already exists in scope ^ (TNOT)
-
Re: HOWTO Fix A Buggy DSDT File
Hi,
Could someone help me fix my DSDT table ? I’m stuck with the warning and remarks, I’ve fixed the 2 errors (Min/Max error using Max — Min + 1 equation).
I’ve got an Acer 4820TG with 1.25 bios, maybe someone as already fixed the dsdt table.
Particularities of this model : ATI switchable graphic between Intel GPU and ATI GPU.
System : ArchLinux.I’ve attached my dsdt.aml (and .dsl if you need it) to the post.
Thx,
Qiou.
Bookmarks
Bookmarks

Posting Permissions
Created attachment 1061026 [details]
Output from test on ppc64
Description of problem: running the tests fails in the ppc64 architecture. The output is:
# ./run-misc-tests.sh /builddir/build/BUILDROOT/acpica-tools-20150717-1.fc22.ppc64/usr/bin/ 20150717
+ BINDIR=/builddir/build/BUILDROOT/acpica-tools-20150717-1.fc22.ppc64/usr/bin/
+ VERSION=20150717
+ /builddir/build/BUILDROOT/acpica-tools-20150717-1.fc22.ppc64/usr/bin//iasl -h
Supports ACPI Specification Revision 6.0
Usage: iasl [Options] [Files]
Options:
General:
-@ <file> Specify command file
-I <dir> Specify additional include directory
-T <sig>|ALL|* Create table template file for ACPI <Sig>
-p <prefix> Specify path/filename prefix for all output files
-v Display compiler version
-vo Enable optimization comments
-vs Disable signon
Help:
-h This message
-hc Display operators allowed in constant expressions
-hf Display help for output filename generation
-hr Display ACPI reserved method names
-ht Display currently supported ACPI table names
Preprocessor:
-D <symbol> Define symbol for preprocessor use
-li Create preprocessed output file (*.i)
-P Preprocess only and create preprocessor output file (*.i)
-Pn Disable preprocessor
Errors, Warnings, and Remarks:
-va Disable all errors/warnings/remarks
-ve Report only errors (ignore warnings and remarks)
-vi Less verbose errors and warnings for use with IDEs
-vr Disable remarks
-vw <messageid> Disable specific warning or remark
-w1 -w2 -w3 Set warning reporting level
-we Report warnings as errors
AML Code Generation (*.aml):
-oa Disable all optimizations (compatibility mode)
-of Disable constant folding
-oi Disable integer optimization to Zero/One/Ones
-on Disable named reference string optimization
-cr Disable Resource Descriptor error checking
-in Ignore NoOp operators
-r <revision> Override table header Revision (1-255)
Optional Source Code Output Files:
-sc -sa Create source file in C or assembler (*.c or *.asm)
-ic -ia Create include file in C or assembler (*.h or *.inc)
-tc -ta -ts Create hex AML table in C, assembler, or ASL (*.hex)
-so Create offset table in C (*.offset.h)
Optional Listing Files:
-l Create mixed listing file (ASL source and AML) (*.lst)
-lm Create hardware summary map file (*.map)
-ln Create namespace file (*.nsp)
-ls Create combined source file (expanded includes) (*.src)
Data Table Compiler:
-G Compile custom table that contains generic operators
-vt Create verbose template files (full disassembly)
AML Disassembler:
-d <f1 f2 ...> Disassemble or decode binary ACPI tables to file (*.dsl)
(Optional, file type is automatically detected)
-da <f1 f2 ...> Disassemble multiple tables from single namespace
-db Do not translate Buffers to Resource Templates
-dc <f1 f2 ...> Disassemble AML and immediately compile it
(Obtain DSDT from current system if no input file)
-df Force disassembler to assume table contains valid AML
-dl Emit legacy ASL code only (no C-style operators)
-e <f1 f2 ...> Include ACPI table(s) for external symbol resolution
-fe <file> Specify external symbol declaration file
-in Ignore NoOp opcodes
-vt Dump binary table data in hex format within output file
Debug Options:
-bf Create debug file (full output) (*.txt)
-bs Create debug file (parse tree only) (*.txt)
-bp <depth> Prune ASL parse tree
-bt <type> Object type to be pruned from the parse tree
-f Ignore errors, force creation of AML output file(s)
-m <size> Set internal line buffer size (in Kbytes)
-n Parse only, no output generation
-ot Display compile times and statistics
-x <level> Set debug level for trace output
-z Do not insert new compiler ID for DataTables
++ uname -m
+ m=ppc64
+ case $m in
+ BITS=64
++ stat --format=%Y /builddir/build/BUILDROOT/acpica-tools-20150717-1.fc22.ppc64/usr/bin//iasl
++ cut '-d ' -f1
+ FDATE=1439193928
++ date --date=@1439193928 '+%b %_d %Y'
+ WHEN='Aug 10 2015'
+ sed -e 's/XXXXXXXXXXX/Aug 10 2015/' -e s/YYYY/64/ -e s/VVVVVVVV/20150717/ ../badcode.asl.result
+ sed -e 's/XXXXXXXXXXX/Aug 10 2015/' -e s/YYYY/64/ -e s/VVVVVVVV/20150717/ ../grammar.asl.result
+ cd misc
+ tee badcode
+ /builddir/build/BUILDROOT/acpica-tools-20150717-1.fc22.ppc64/usr/bin//iasl -f badcode.asl
badcode.asl 25: Mutex (MTX1, 32)
Error 6125 - ^ SyncLevel must be in the range 0-15
badcode.asl 29: Name (BIG, 0x1234567887654321)
Warning 3038 - ^ 64-bit integer in 32-bit table, truncating (DSDT version < 2)
badcode.asl 33: Name (PKG1, Package(5) {0,1})
Remark 2063 - ^ Initializer list shorter than declared package length
badcode.asl 37: Name (PATH, Buffer() {"_SB_.PCI2._CRS"})
Warning 3046 - ^ Invalid or unknown escape sequence
badcode.asl 41: Name (ESC1, "abcdefgx00hijklmn")
Warning 3055 - ^ Invalid Hex/Octal Escape - Non-ASCII or NULL
badcode.asl 49: FLD1, 8
Error 6030 - ^ Access width of Field Unit extends beyond region limit
badcode.asl 55: Field (OPR2, DWordAcc, NoLock, Preserve)
Error 6100 - ^ Host Operation Region requires ByteAcc access
badcode.asl 60: Field (OPR3, WordAcc, NoLock, Preserve)
Error 6099 - ^ Host Operation Region requires BufferAcc access
badcode.asl 67: Method (MTH1, 0, NotSerialized, 32)
Error 6125 - SyncLevel must be in the range 0-15 ^
badcode.asl 71: Store (Arg3, Local0)
Warning 3144 - ^ Method Local is set but never used (Local0)
badcode.asl 71: Store (Arg3, Local0)
Error 6006 - ^ Method argument is not initialized (Arg3)
badcode.asl 71: Store (Arg3, Local0)
Remark 2087 - ^ Not a parameter, used as local only (Arg3)
badcode.asl 72: Store (Local1, Local2)
Warning 3144 - ^ Method Local is set but never used (Local2)
badcode.asl 72: Store (Local1, Local2)
Error 6066 - ^ Method local variable is not initialized (Local1)
badcode.asl 76: Subtract (MTX1, 4, Local3)
Warning 3144 - Method Local is set but never used ^ (Local3)
badcode.asl 76: Subtract (MTX1, 4, Local3)
Error 6058 - Invalid type ^ ([Mutex|Reference] found, Subtract operator requires [Integer|String|Buffer])
badcode.asl 80: CreateField (BUF1, 0, Subtract (4, 4), FLD1)
Remark 2089 - Object is not referenced ^ (Name is within method [MTH1])
badcode.asl 80: CreateField (BUF1, 0, Subtract (4, 4), FLD1)
Error 6083 - Operand evaluates to zero ^
badcode.asl 84: Acquire (MTX1, 100)
Warning 3130 - ^ Result is not used, possible operator timeout will be missed
badcode.asl 85: Wait (EVT1, 1)
Warning 3130 - ^ Result is not used, possible operator timeout will be missed
badcode.asl 89: Add (INT1, 8)
Error 6114 - ^ Result is not used, operator has no effect
badcode.asl 94: Store (5, INT1)
Warning 3134 - ^ Statement is unreachable
badcode.asl 97: Method (MTH2)
Remark 2119 - ^ Control Method marked Serialized (Due to use of Switch operator)
badcode.asl 97: Method (MTH2)
Warning 3115 - ^ Not all control paths return a value (MTH2)
badcode.asl 101: Switch (ToInteger (INT1))
Error 6078 - ^ No Case statements under Switch
badcode.asl 120: Store (MTH2 (), Local0)
Warning 3144 - ^ Method Local is set but never used (Local0)
badcode.asl 120: Store (MTH2 (), Local0)
Warning 3122 - ^ Called method may not always return a value
badcode.asl 126: Method (MTH5) {Store (MTH4(), Local0)}
Warning 3144 - Method Local is set but never used ^ (Local0)
badcode.asl 126: Method (MTH5) {Store (MTH4(), Local0)}
Error 6080 - Called method returns no value ^
badcode.asl 132: Name (_HID, "*PNP0C0A") // Illegal leading asterisk
Error 6061 - Invalid leading asterisk ^ (*PNP0C0A)
badcode.asl 136: Name (_HID, "PNP") // Too short, must be 7 or 8 chars
Error 6033 - ^ _HID string must be exactly 7 or 8 characters (PNP)
badcode.asl 140: Name (_HID, "MYDEVICE01") // Too long, must be 7 or 8 chars
Error 6033 - ^ _HID string must be exactly 7 or 8 characters (MYDEVICE01)
badcode.asl 144: Name (_HID, "acpi0001") // non-hex chars must be uppercase
Error 6034 - ^ _HID prefix must be all uppercase or decimal digits (acpi0001)
badcode.asl 148: Name (_HID, "PNP-123") // HID must be alphanumeric
Error 6002 - ^ String must be entirely alphanumeric (PNP-123)
badcode.asl 152: Name (_HID, "") // Illegal Null HID
Error 6091 - ^ Invalid zero-length (null) string
badcode.asl 153: Name (_CID, "") // Illegal Null CID
Error 6091 - ^ Invalid zero-length (null) string
badcode.asl 158: Name (_PRW, 4)
Error 6105 - ^ Invalid object type for reserved name (_PRW: found Integer, Package required)
badcode.asl 159: Name (_FDI, Buffer () {0})
Error 6105 - ^ Invalid object type for reserved name (_FDI: found Buffer, Package required)
badcode.asl 164: Method (_OSC, 5)
Remark 2146 - ^ Method Argument is never used (Arg0)
badcode.asl 164: Method (_OSC, 5)
Remark 2146 - ^ Method Argument is never used (Arg1)
badcode.asl 164: Method (_OSC, 5)
Remark 2146 - ^ Method Argument is never used (Arg2)
badcode.asl 164: Method (_OSC, 5)
Remark 2146 - ^ Method Argument is never used (Arg3)
badcode.asl 164: Method (_OSC, 5)
Remark 2146 - ^ Method Argument is never used (Arg4)
badcode.asl 164: Method (_OSC, 5)
Warning 3101 - ^ Reserved method has too many arguments (_OSC requires 4)
badcode.asl 164: Method (_OSC, 5)
Warning 3107 - ^ Reserved method must return a value (Buffer required for _OSC)
badcode.asl 170: Name (_L01, 1)
Error 6103 - ^ Reserved name must be a control method (with zero arguments)
badcode.asl 171: Name (_E02, 2)
Error 6103 - ^ Reserved name must be a control method (with zero arguments)
badcode.asl 172: Name (_Q03, 3)
Error 6103 - ^ Reserved name must be a control method (with zero arguments)
badcode.asl 173: Name (_ON, 0)
Error 6103 - ^ Reserved name must be a control method (with zero arguments)
badcode.asl 174: Name (_INI, 1)
Error 6103 - ^ Reserved name must be a control method (with zero arguments)
badcode.asl 175: Name (_PTP, 2)
Error 6103 - ^ Reserved name must be a control method (with arguments)
badcode.asl 184: Method (_E1D)
Error 6032 - ^ Name conflicts with a previous GPE method (_L1D)
badcode.asl 191: Method (_FDM, 1)
Remark 2146 - ^ Method Argument is never used (Arg0)
badcode.asl 193: Return (Buffer(1){0x33})
Warning 3104 - ^ Reserved method should not return a value (_FDM)
badcode.asl 197: Return ("Unexpected Return Value")
Warning 3104 - Reserved method should not return a value ^ (_Q22)
badcode.asl 203: Device (EC)
Warning 3141 - ^ Missing dependency (Device object requires a _HID or _ADR in same scope)
badcode.asl 205: Method (_REG, 2)
Remark 2146 - ^ Method Argument is never used (Arg0)
badcode.asl 205: Method (_REG, 2)
Remark 2146 - ^ Method Argument is never used (Arg1)
badcode.asl 205: Method (_REG, 2)
Warning 3079 - ^ _REG has no corresponding Operation Region
badcode.asl 219: StartDependentFn (0, 0)
Error 6019 - ^ Dependent function macros cannot be nested
badcode.asl 225: })
Error 6070 - ^ Missing EndDependentFn() macro in dependent resource list
badcode.asl 242: 0x00002000, // Length
Error 6049 - ^ Length is larger than Min/Max window
badcode.asl 247: 0x00001001, // Range Minimum
Error 6001 - ^ Must be a multiple of alignment/granularity value
badcode.asl 248: 0x00002002, // Range Maximum
Error 6001 - ^ Must be a multiple of alignment/granularity value
badcode.asl 255: 0xFFFF, // Address
Warning 3060 - ^ Maximum 10-bit ISA address (0x3FF)
badcode.asl 264: 0x05 // Access Size
Error 6042 - ^ Invalid AccessSize (Maximum is 4 - QWord access)
badcode.asl 268: QWordSpace (0xB0, ResourceConsumer, PosDecode, MinFixed, MaxFixed, 0xA5,
Error 6139 - Constant out of range ^ (0xB0, allowable: 0xC0-0xFF)
badcode.asl 279: 0x0200, // Range Minimum
Error 6051 - ^ Address Min is greater than Address Max
badcode.asl 291: 0x00001002, // Length
Error 6049 - ^ Length is larger than Min/Max window
badcode.asl 296: 0x00000010,
Error 6048 - ^ Granularity must be zero or a power of two minus one
badcode.asl 305: 0x0000000000000B02, // Range Minimum
Error 6001 - ^ Must be a multiple of alignment/granularity value
badcode.asl 315: 0x00000000002FFFFE, // Range Maximum
Error 6001 - ^ Must be a multiple of alignment/granularity value (-1)
badcode.asl 326: 0x00000000, // Length
Error 6043 - ^ Invalid combination of Length and Min/Max fixed flags
badcode.asl 335: 0x00000100, // Length
Error 6043 - ^ Invalid combination of Length and Min/Max fixed flags
badcode.asl 344: 0x00000200, // Length
Error 6043 - ^ Invalid combination of Length and Min/Max fixed flags
badcode.asl 349: 0x0000000F, // Granularity
Error 6047 - ^ Granularity must be zero for fixed Min/Max
badcode.asl 358: DWordIO (ResourceProducer, MinFixed, MaxFixed, PosDecode, EntireRange,
Error 6090 - ^ Min/Max/Length/Gran are all zero, but no resource tag
badcode.asl 368: EndDependentFn ()
Error 6071 - ^ Missing StartDependentFn() macro in dependent resource list
badcode.asl 388: CreateWordField (RSC3, DWI1._LEN, LEN)
Warning 3128 - ResourceTag larger than Field ^ (Size mismatch, Tag: 32 bits, Field: 16 bits)
badcode.asl 388: CreateWordField (RSC3, DWI1._LEN, LEN)
Remark 2089 - Object is not referenced ^ (Name is within method [REM1])
badcode.asl 389: CreateByteField (RSC3, DWI1._MIN, MIN)
Warning 3128 - ResourceTag larger than Field ^ (Size mismatch, Tag: 32 bits, Field: 8 bits)
badcode.asl 389: CreateByteField (RSC3, DWI1._MIN, MIN)
Remark 2089 - Object is not referenced ^ (Name is within method [REM1])
badcode.asl 390: CreateBitField (RSC3, DWI1._RNG, RNG1)
Warning 3128 - ResourceTag larger than Field ^ (Size mismatch, Tag: 2 bits, Field: 1 bit)
badcode.asl 390: CreateBitField (RSC3, DWI1._RNG, RNG1)
Remark 2089 - Object is not referenced ^ (Name is within method [REM1])
badcode.asl 394: CreateQWordField (RSC3, DWI1._MAX, MAX)
Warning 3129 - ResourceTag smaller than Field ^ (Size mismatch, Tag: 32 bits, Field: 64 bits)
badcode.asl 394: CreateQWordField (RSC3, DWI1._MAX, MAX)
Remark 2089 - Object is not referenced ^ (Name is within method [REM1])
badcode.asl 395: CreateBitField (RSC3, DWI1._GRA, GRA)
Warning 3128 - ResourceTag larger than Field ^ (Size mismatch, Tag: 32 bits, Field: 1 bit)
badcode.asl 395: CreateBitField (RSC3, DWI1._GRA, GRA)
Remark 2089 - Object is not referenced ^ (Name is within method [REM1])
badcode.asl 396: CreateField (RSC3, DWI1._MIF, 5, MIF)
Warning 3129 - ResourceTag smaller than Field ^ (Size mismatch, Tag: 1 bit, Field: 5 bits)
badcode.asl 396: CreateField (RSC3, DWI1._MIF, 5, MIF)
Remark 2089 - Object is not referenced ^ (Name is within method [REM1])
badcode.asl 397: CreateField (RSC3, DWI1._RNG, 3, RNG2)
Warning 3129 - ResourceTag smaller than Field ^ (Size mismatch, Tag: 2 bits, Field: 3 bits)
badcode.asl 397: CreateField (RSC3, DWI1._RNG, 3, RNG2)
Remark 2089 - Object is not referenced ^ (Name is within method [REM1])
badcode.asl 404: Store (40, Local0)
Warning 3144 - ^ Method Local is set but never used (Local0)
Intel ACPI Component Architecture
ASL+ Optimizing Compiler version 20150717-64
Copyright (c) 2000 - 2015 Intel Corporation
Ignoring all errors, forcing AML file generation
ASL Input: badcode.asl - 409 lines, 11588 bytes, 81 keywords
AML Output: badcode.aml - 1195 bytes, 61 named objects, 20 executable opcodes
Compilation complete. 46 Errors, 28 Warnings, 19 Remarks, 16 Optimizations, 1 Constants Folded
+ diff badcode badcode.asl.result
+ '[' 1 -eq 0 ']'
+ exit 1
Version-Release number of selected component (if applicable): 20150717-1
How reproducible: run run-misc-tests.sh on ppc64.
Additional info: badcode file generated is attached.
Created attachment 1072596 [details]
Fix little-endian assumption in method name check
This patch fixes the issue; verified with a scratch build that passes the test case:
http://ppc.koji.fedoraproject.org/koji/taskinfo?taskID=2743354
The issue was that a routine was looking at the first character of a name to determine if it is an underscore or not. If so, it's a predefined name, and the routine skips checking the number of arguments in a method call (which makes sense since they can be highly variable). However, on ppc64 the check for an underscore fails since it looks at the wrong end of the integer holding the four bytes of method name. This causes the check on number of arguments to be made, which then fails, and additional remarks are printed out that are false positives. The patch fixes the check for underscore so that now the expected test results match the results we actually get.
acpica-tools-20150818-2.fc23 has been pushed to the Fedora 23 testing repository. If problems still persist, please make note of it in this bug report.nIf you want to test the update, you can install it with n su -c 'yum --enablerepo=updates-testing update acpica-tools'. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2015-15643
acpica-tools-20150818-2.fc22 has been pushed to the Fedora 22 testing repository. If problems still persist, please make note of it in this bug report.nIf you want to test the update, you can install it with n su -c 'yum --enablerepo=updates-testing update acpica-tools'. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2015-15642
acpica-tools-20150818-2.fc23 has been pushed to the Fedora 23 stable repository. If problems still persist, please make note of it in this bug report.
acpica-tools-20150818-2.fc22 has been pushed to the Fedora 22 stable repository. If problems still persist, please make note of it in this bug report. |
pro100senya 0 / 0 / 0 Регистрация: 03.01.2016 Сообщений: 5 |
||||
1 |
||||
12.12.2014, 17:24. Показов 21501. Ответов 2 Метки нет (Все метки)
Error 2 ‘ClassChkName.ChkNum.IsPrime(int)’: not all code paths return a value
__________________
0 |
Монфрид 1239 / 1049 / 293 Регистрация: 07.03.2012 Сообщений: 3,245 |
||||
12.12.2014, 17:27 |
2 |
|||
pro100senya,
0 |
745 / 486 / 187 Регистрация: 30.12.2012 Сообщений: 1,278 Записей в блоге: 2 |
|
12.12.2014, 17:31 |
3 |
pro100senya, ошибка говорит сама за себя. Не все ветви кода возвращают значение. Нужно вернуть какое-нибудь значение в конце функции, после цикла for.
0 |