Contribute
Register

[Guide] Patching LAPTOP DSDT/SSDTs

There are patches in my laptop repo for many common errors. Which ones you need to use depends on the error you have.

So I got the DSDT and SSDT files from clover. I decompiled all at once with refs.txt. Next step would be fixing the errors, and only the errors right? NO Remarks or warnings?
The DSDt got only 3 errors, SSDT-0 is fine, SSDT-1 got 17 errors, and I have not even an idea how to fix, SSDT-2 is fine, SSDT-3x is fine, SSDT-4x is fine, SSDT-5x is fine too, SSDT-6 got 8 errors I don't know how fix. So can someone solve the problem or tell me whats wrong with this files? When everything is done I don't need to copy the *X files right? Those are for cpu functions? Do I need to rename SSDT-6 that I have the right order?

I will put the ones from clover (clean) and the ones from linux (clean) in the attachments.

thanks for helping again :D

Thomas
 

Attachments

  • Clover aml+dsl.zip
    88.1 KB · Views: 63
  • aml+dsl.zip
    451 KB · Views: 81
So I got the DSDT and SSDT files from clover. I decompiled all at once with refs.txt. Next step would be fixing the errors, and only the errors right? NO Remarks or warnings?
The DSDt got only 3 errors, SSDT-0 is fine, SSDT-1 got 17 errors, and I have not even an idea how to fix, SSDT-2 is fine, SSDT-3x is fine, SSDT-4x is fine, SSDT-5x is fine too, SSDT-6 got 8 errors I don't know how fix. So can someone solve the problem or tell me whats wrong with this files? When everything is done I don't need to copy the *X files right? Those are for cpu functions? Do I need to rename SSDT-6 that I have the right order?

I will put the ones from clover (clean) and the ones from linux (clean) in the attachments.

thanks for helping again :D

Thomas

DSDT.dsl: Move the unresolved Externals and Externals from refs.txt to after the other Externals. Remove the line causing the last error.

SSDT-1.dsl: Apply "Remove _PSS placeholders"

As stated in the guide dynamic SSDTs are not included in ACPI/patched (so your comments regarding the SSDT-?x files make no sense).

SSDT-6.dsl: Move the unresolved Externals and Externals from refs.txt to after the other Externals.
 
Keep in mind there is a ~15 second delay before sleep begins...


Ok, so I've let the laptop go to sleep (took around 20-25 seconds) and after that it has woken up instantly...I've applied usb_prw_0x6d_xhc.txt (no result) and after that (unmodified DSDT by 0x6d) usb_prw_0x0d_xhc.txt, which had results - PC went to sleep. But now the problem is, that it won't go to sleep sometimes (LEDs are ON) or it won't wake from sleep properly (XWAK patch applied, to no avail).

SysLog (filtered with "sleep" keyword... hopefuly it didn't filter too much) with 2 successful atempts and one unsuccessful


Code:
20/01/16 19:04:00,474 GoogleSoftwareUpdateAgent[392]: 2016-01-20 19:04:00.469 GoogleSoftwareUpdateAgent[392/0xa4221000] [lvl=2] -[KSAgentApp setupLoggerOutput] Agent settings: <KSAgentSettings:0x2202e0 bundleID=com.google.Keystone.Agent lastCheck=2016-01-20 16:38:51 +0000 checkInterval=18000.000000 uiDisplayInterval=604800.000000 sleepInterval=1800.000000 jitterInterval=900 maxRunInterval=0.000000 isConsoleUser=1 ticketStorePath=/Users/administartor/Library/Google/GoogleSoftwareUpdate/TicketStore/Keystone.ticketstore runMode=3 daemonUpdateEngineBrokerServiceName=com.google.Keystone.Daemon.UpdateEngine daemonAdministrationServiceName=com.google.Keystone.Daemon.Administration logEverything=0 logBufferSize=2048 alwaysPromptForUpdates=0 productIDToUpdate=(null) lastUIDisplayed=(null) alwaysShowStatusItem=0 updateCheckTag=(null) printResults=NO userInitiated=NO>20/01/16 19:10:19,000 kernel[0]: ACPI: sleep states S3 S4 S5
20/01/16 19:10:41,360 GoogleSoftwareUpdateAgent[329]: 2016-01-20 19:10:41.348 GoogleSoftwareUpdateAgent[329/0xa4221000] [lvl=2] -[KSAgentApp setupLoggerOutput] Agent settings: <KSAgentSettings:0x21e7e0 bundleID=com.google.Keystone.Agent lastCheck=2016-01-20 16:38:51 +0000 checkInterval=18000.000000 uiDisplayInterval=604800.000000 sleepInterval=1800.000000 jitterInterval=900 maxRunInterval=0.000000 isConsoleUser=1 ticketStorePath=/Users/administartor/Library/Google/GoogleSoftwareUpdate/TicketStore/Keystone.ticketstore runMode=3 daemonUpdateEngineBrokerServiceName=com.google.Keystone.Daemon.UpdateEngine daemonAdministrationServiceName=com.google.Keystone.Daemon.Administration logEverything=0 logBufferSize=2048 alwaysPromptForUpdates=0 productIDToUpdate=(null) lastUIDisplayed=(null) alwaysShowStatusItem=0 updateCheckTag=(null) printResults=NO userInitiated=NO>
20/01/16 19:11:12,043 AirPlayUIAgent[339]: 2016-01-20 07:11:12.042748 PM [AirPlayUIAgent] BecomingInactive: NSWorkspaceWillSleepNotification
20/01/16 19:11:55,000 kernel[0]: Opened file /var/log/SleepWakeStacks.bin, size 172032, extents 1, maxio 2000000 ssd 1
20/01/16 19:12:10,000 kernel[0]: hibernate image path: /var/vm/sleepimage
20/01/16 19:12:10,000 kernel[0]: Opened file /var/vm/sleepimage, size 4294967296, extents 4, maxio 2000000 ssd 1
20/01/16 19:12:10,000 kernel[0]: sleep
20/01/16 19:12:10,000 kernel[0]: Previous sleep cause: 5
20/01/16 19:12:10,540 WindowServer[165]: handle_will_sleep_auth_and_shield_windows: NULL shield_window (lock state: 1)
20/01/16 19:12:47,774 AirPlayUIAgent[339]: 2016-01-20 07:12:47.774036 PM [AirPlayUIAgent] BecomingInactive: NSWorkspaceWillSleepNotification
20/01/16 19:13:05,000 kernel[0]: Opened file /var/log/SleepWakeStacks.bin, size 172032, extents 1, maxio 2000000 ssd 1
20/01/16 19:13:24,000 kernel[0]: hibernate image path: /var/vm/sleepimage
20/01/16 19:13:24,000 kernel[0]: Opened file /var/vm/sleepimage, size 4294967296, extents 4, maxio 2000000 ssd 1
20/01/16 19:13:24,000 kernel[0]: sleep
20/01/16 19:13:24,000 kernel[0]: Previous sleep cause: 5
20/01/16 19:13:24,540 WindowServer[165]: handle_will_sleep_auth_and_shield_windows: NULL shield_window (lock state: 1)
20/01/16 19:14:07,064 AirPlayUIAgent[339]: 2016-01-20 07:14:07.063504 PM [AirPlayUIAgent] BecomingInactive: NSWorkspaceWillSleepNotification
20/01/16 19:14:07,423 WindowServer[165]: no sleep images for WillPowerOffWithImages
20/01/16 19:14:10,000 kernel[0]: Opened file /var/log/SleepWakeStacks.bin, size 172032, extents 1, maxio 2000000 ssd 1
20/01/16 19:15:02,000 kernel[0]: ACPI: sleep states S3 S4 S5
20/01/16 19:15:02,000 kernel[0]: Sleep failure code 0x00000000 0x21006500
20/01/16 19:15:27,269 GoogleSoftwareUpdateAgent[365]: 2016-01-20 19:15:27.253 GoogleSoftwareUpdateAgent[365/0xa4221000] [lvl=2] -[KSAgentApp setupLoggerOutput] Agent settings: <KSAgentSettings:0x30f0f0 bundleID=com.google.Keystone.Agent lastCheck=2016-01-20 16:38:51 +0000 checkInterval=18000.000000 uiDisplayInterval=604800.000000 sleepInterval=1800.000000 jitterInterval=900 maxRunInterval=0.000000 isConsoleUser=1 ticketStorePath=/Users/administartor/Library/Google/GoogleSoftwareUpdate/TicketStore/Keystone.ticketstore runMode=3 daemonUpdateEngineBrokerServiceName=com.google.Keystone.Daemon.UpdateEngine daemonAdministrationServiceName=com.google.Keystone.Daemon.Administration logEverything=0 logBufferSize=2048 alwaysPromptForUpdates=0 productIDToUpdate=(null) lastUIDisplayed=(null) alwaysShowStatusItem=0 updateCheckTag=(null) printResults=NO userInitiated=NO>

Any help, please?
 

Attachments

  • config.plist
    11.2 KB · Views: 142
  • DSDT.zip
    59.9 KB · Views: 79
Ok, so I've let the laptop go to sleep (took around 20-25 seconds) and after that it has woken up instantly...I've applied usb_prw_0x6d_xhc.txt (no result) and after that (unmodified DSDT by 0x6d) usb_prw_0x0d_xhc.txt, which had results - PC went to sleep. But now the problem is, that it won't go to sleep sometimes (LEDs are ON) or it won't wake from sleep properly (XWAK patch applied, to no avail).

SysLog (filtered with "sleep" keyword... hopefuly it didn't filter too much) with 2 successful atempts and one unsuccessful


Code:
20/01/16 19:04:00,474 GoogleSoftwareUpdateAgent[392]: 2016-01-20 19:04:00.469 GoogleSoftwareUpdateAgent[392/0xa4221000] [lvl=2] -[KSAgentApp setupLoggerOutput] Agent settings: <KSAgentSettings:0x2202e0 bundleID=com.google.Keystone.Agent lastCheck=2016-01-20 16:38:51 +0000 checkInterval=18000.000000 uiDisplayInterval=604800.000000 sleepInterval=1800.000000 jitterInterval=900 maxRunInterval=0.000000 isConsoleUser=1 ticketStorePath=/Users/administartor/Library/Google/GoogleSoftwareUpdate/TicketStore/Keystone.ticketstore runMode=3 daemonUpdateEngineBrokerServiceName=com.google.Keystone.Daemon.UpdateEngine daemonAdministrationServiceName=com.google.Keystone.Daemon.Administration logEverything=0 logBufferSize=2048 alwaysPromptForUpdates=0 productIDToUpdate=(null) lastUIDisplayed=(null) alwaysShowStatusItem=0 updateCheckTag=(null) printResults=NO userInitiated=NO>20/01/16 19:10:19,000 kernel[0]: ACPI: sleep states S3 S4 S5
20/01/16 19:10:41,360 GoogleSoftwareUpdateAgent[329]: 2016-01-20 19:10:41.348 GoogleSoftwareUpdateAgent[329/0xa4221000] [lvl=2] -[KSAgentApp setupLoggerOutput] Agent settings: <KSAgentSettings:0x21e7e0 bundleID=com.google.Keystone.Agent lastCheck=2016-01-20 16:38:51 +0000 checkInterval=18000.000000 uiDisplayInterval=604800.000000 sleepInterval=1800.000000 jitterInterval=900 maxRunInterval=0.000000 isConsoleUser=1 ticketStorePath=/Users/administartor/Library/Google/GoogleSoftwareUpdate/TicketStore/Keystone.ticketstore runMode=3 daemonUpdateEngineBrokerServiceName=com.google.Keystone.Daemon.UpdateEngine daemonAdministrationServiceName=com.google.Keystone.Daemon.Administration logEverything=0 logBufferSize=2048 alwaysPromptForUpdates=0 productIDToUpdate=(null) lastUIDisplayed=(null) alwaysShowStatusItem=0 updateCheckTag=(null) printResults=NO userInitiated=NO>
20/01/16 19:11:12,043 AirPlayUIAgent[339]: 2016-01-20 07:11:12.042748 PM [AirPlayUIAgent] BecomingInactive: NSWorkspaceWillSleepNotification
20/01/16 19:11:55,000 kernel[0]: Opened file /var/log/SleepWakeStacks.bin, size 172032, extents 1, maxio 2000000 ssd 1
20/01/16 19:12:10,000 kernel[0]: hibernate image path: /var/vm/sleepimage
20/01/16 19:12:10,000 kernel[0]: Opened file /var/vm/sleepimage, size 4294967296, extents 4, maxio 2000000 ssd 1
20/01/16 19:12:10,000 kernel[0]: sleep
20/01/16 19:12:10,000 kernel[0]: Previous sleep cause: 5
20/01/16 19:12:10,540 WindowServer[165]: handle_will_sleep_auth_and_shield_windows: NULL shield_window (lock state: 1)
20/01/16 19:12:47,774 AirPlayUIAgent[339]: 2016-01-20 07:12:47.774036 PM [AirPlayUIAgent] BecomingInactive: NSWorkspaceWillSleepNotification
20/01/16 19:13:05,000 kernel[0]: Opened file /var/log/SleepWakeStacks.bin, size 172032, extents 1, maxio 2000000 ssd 1
20/01/16 19:13:24,000 kernel[0]: hibernate image path: /var/vm/sleepimage
20/01/16 19:13:24,000 kernel[0]: Opened file /var/vm/sleepimage, size 4294967296, extents 4, maxio 2000000 ssd 1
20/01/16 19:13:24,000 kernel[0]: sleep
20/01/16 19:13:24,000 kernel[0]: Previous sleep cause: 5
20/01/16 19:13:24,540 WindowServer[165]: handle_will_sleep_auth_and_shield_windows: NULL shield_window (lock state: 1)
20/01/16 19:14:07,064 AirPlayUIAgent[339]: 2016-01-20 07:14:07.063504 PM [AirPlayUIAgent] BecomingInactive: NSWorkspaceWillSleepNotification
20/01/16 19:14:07,423 WindowServer[165]: no sleep images for WillPowerOffWithImages
20/01/16 19:14:10,000 kernel[0]: Opened file /var/log/SleepWakeStacks.bin, size 172032, extents 1, maxio 2000000 ssd 1
20/01/16 19:15:02,000 kernel[0]: ACPI: sleep states S3 S4 S5
20/01/16 19:15:02,000 kernel[0]: Sleep failure code 0x00000000 0x21006500
20/01/16 19:15:27,269 GoogleSoftwareUpdateAgent[365]: 2016-01-20 19:15:27.253 GoogleSoftwareUpdateAgent[365/0xa4221000] [lvl=2] -[KSAgentApp setupLoggerOutput] Agent settings: <KSAgentSettings:0x30f0f0 bundleID=com.google.Keystone.Agent lastCheck=2016-01-20 16:38:51 +0000 checkInterval=18000.000000 uiDisplayInterval=604800.000000 sleepInterval=1800.000000 jitterInterval=900 maxRunInterval=0.000000 isConsoleUser=1 ticketStorePath=/Users/administartor/Library/Google/GoogleSoftwareUpdate/TicketStore/Keystone.ticketstore runMode=3 daemonUpdateEngineBrokerServiceName=com.google.Keystone.Daemon.UpdateEngine daemonAdministrationServiceName=com.google.Keystone.Daemon.Administration logEverything=0 logBufferSize=2048 alwaysPromptForUpdates=0 productIDToUpdate=(null) lastUIDisplayed=(null) alwaysShowStatusItem=0 updateCheckTag=(null) printResults=NO userInitiated=NO>

Any help, please?

Make sure ACPI is patched per guide: http://www.tonymacx86.com/el-capitan-laptop-support/152573-guide-patching-laptop-dsdt-ssdts.html

And native CPU PM is implemented: http://www.tonymacx86.com/el-capita...01-guide-native-power-management-laptops.html
 
hi
i extracted my DSDT with Clover F4
then i Disassembled them by iasl
but when i try to open the DSDT.Dsl file (decombiled version of DSDT) with MaciASL
it gives many errors 57 with warnings i didnt edit anything or apply any fix
i understand from that is my dsdt has errors in it
so i attached it if anyone can tell me how to repair it or whats wrong ?!!:cry:
the attached file contains original DSDT.aml and SSDT....aml and the *.dsl files :thumbup:View attachment cube i7 stylus dsdt.zip


my device is Cube i7 stylus tablet
CPU : CORE M 5y10c
GPU : intel HD 5300
OS : MAC OS X EL CAPITAN 10.11.2
 
hi
i extracted my DSDT with Clover F4
then i Disassembled them by iasl
but when i try to open the DSDT.Dsl file (decombiled version of DSDT) with MaciASL
it gives many errors 57 with warnings i didnt edit anything or apply any fix
i understand from that is my dsdt has errors in it
so i attached it if anyone can tell me how to repair it or whats wrong ?!!:cry:
the attached file contains original DSDT.aml and SSDT....aml and the *.dsl files :thumbup:View attachment 173481


my device is Cube i7 stylus tablet
CPU : CORE M 5y10c
GPU : intel HD 5300
OS : MAC OS X EL CAPITAN 10.11.2

The DSDT.dsl you provided in the attachment has no errors.

Make sure you're using ACPI 5.0 in MaciASL->Preferences.
 
because I'm having several problems with _DSM cleanup methods, I decided to just rename the default _DMS methods instead of removing them.


replacing

into_all method label _DSM remove_entry;
per

into_all method label _DSM set_label begin XDSM end;
 
because I'm having several problems with _DSM cleanup methods, I decided to just rename the default _DMS methods instead of removing them.


replacing

into_all method label _DSM remove_entry;
per

into_all method label _DSM set_label begin XDSM end;

Yup... That works too... Of course, if there is code that directly calls the _DSM method, you'll have to fix that code too (to refer to XDSM instead).

I use a Clover patch for it in config.plist/ACPI/DSDT/Patches:
Comment: change _DSM to XDSM
Find: <5f44534d>
Replace: <5844534d>

Because if you're trying to patch on-the-fly with Clover, it is much easier to rename something than it is to remove it.
 
hi rehabman
me created refs.txt copy to folder name Patch and use cd ~/Desktop/Patch --> iasl -da -dl -fe refs.txt DSDT.aml
error
- Unknown option: -dl

if you do not mind please help me

- how to enable QE/CI intel HD 4600
for El capital
sorry if i have questions not appropriate
i have read you guide :
http://www.tonymacx86.com/el-capitan-laptop-support/175797-fix-hd4200-hd4400-hd4600-hd5600-10-11-a.html

- must inject
device-id=0x0412.
i do not understand use what software inject ( sorry my english not good )
and to inject what file from my system
can you explain me not?


I've tried a lot of ways, but all failed

thank a lot.

 

Attachments

  • IMG_0165.jpg
    IMG_0165.jpg
    1,018 KB · Views: 91
  • DSDT.aml
    60.7 KB · Views: 145
hi rehabman
me created refs.txt copy to folder name Patch and use cd ~/Desktop/Patch --> iasl -da -dl -fe refs.txt DSDT.aml
error
- Unknown option: -dl

if you do not mind please help me


You have the wrong version of iasl. Follow the guide carefully. The correct version of iasl is linked from post #1.

- how to enable QE/CI intel HD 4600
for El capital

http://www.tonymacx86.com/el-capita...de-booting-os-x-installer-laptops-clover.html

http://www.tonymacx86.com/el-capita...-fix-hd4200-hd4400-hd4600-hd5600-10-11-a.html
 
Back
Top