mfc88 Posted May 4, 2017 Author Share Posted May 4, 2017 I'll add it back in and do 5 reboots with a ioreg after each. EDIT: nevvermind, adding the SSDT back in didnt activate HDMI audio. Took quite a few reboots to get it back again. My guess would be that it isn't the SSDT, but how you're loading audio. If you haven't already, I highly, highly, highly recommend installing the audio kexts to S/L/E instead of Clover's "other" folder. Link to comment Share on other sites More sharing options...
mfc88 Posted May 5, 2017 Author Share Posted May 5, 2017 Updated app to 0.1.8b - see change log for more details. This will probably be the last update for awhile, unless someone wants something specific added. Link to comment Share on other sites More sharing options...
SavageAUS Posted May 5, 2017 Share Posted May 5, 2017 My guess would be that it isn't the SSDT, but how you're loading audio. If you haven't already, I highly, highly, highly recommend installing the audio kexts to S/L/E instead of Clover's "other" folder. AppleALC, Lilu and CodecCommander installed in S/L/E. Still random if HDMI audio works or not. Because im not using a dsdt is it safe to drop OEM if i have the SSDT's in sorted order? Link to comment Share on other sites More sharing options...
mfc88 Posted May 5, 2017 Author Share Posted May 5, 2017 AppleALC, Lilu and CodecCommander installed in S/L/E. Still random if HDMI audio works or not. Because im not using a dsdt is it safe to drop OEM if i have the SSDT's in sorted order? You can drop OEM SSDTs as long as they don't cause system instability. You'll have to experiment. Any reason why you're using sorted tables? Trying removing them and seeing it still causes audio loss. If so, in that case, try switching back to your custom DSDT.aml and see if it's recognizing consistently. I have a suspicion that it won't. Link to comment Share on other sites More sharing options...
PMheart Posted May 5, 2017 Share Posted May 5, 2017 First of all please forgive that this is really somewhat off-topic. We'd better load Lilu and its plug-ins via Clover's InjectKexts, for otherwise those stuffs may be not loaded properly in some rare cases. So always let Clover inject them, as for other things like FakeSMC or something else, it's up to you. Link to comment Share on other sites More sharing options...
SavageAUS Posted May 5, 2017 Share Posted May 5, 2017 You can drop OEM SSDTs as long as they don't cause system instability. You'll have to experiment. Any reason why you're using sorted tables? Trying removing them and seeing it still causes audio loss. If so, in that case, try switching back to your custom DSDT.aml and see if it's recognizing consistently. I have a suspicion that it won't. I've always been under the assumption that if were using a custom ssdt it needs to be in the sorted order section of the config.plist. Sent from my SM-G930F using Tapatalk Link to comment Share on other sites More sharing options...
mfc88 Posted May 5, 2017 Author Share Posted May 5, 2017 I've always been under the assumption that if were using a custom ssdt it needs to be in the sorted order section of the config.plist. Sent from my SM-G930F using Tapatalk Only needed if your system requires certain SSDTs to be loaded first, second, third...etc, where you'll get system instability otherwise. Link to comment Share on other sites More sharing options...
mfc88 Posted May 6, 2017 Author Share Posted May 6, 2017 Updated app to 0.1.9b - see change log for more details. Fixes focus on NVME devices not residing within SB.PCI0 and on how the motherboard id is checked against. Link to comment Share on other sites More sharing options...
Pavo Posted May 6, 2017 Share Posted May 6, 2017 mfc88, having all kinds of permission denied issues and command not found, it looks like your iasl isn't working /Users/henrybrock/Desktop/ssdtGen.app/Contents/Resources/ssdtGen.command: line 796: iasl: command not found Link to comment Share on other sites More sharing options...
mfc88 Posted May 6, 2017 Author Share Posted May 6, 2017 mfc88, having all kinds of permission denied issues and command not found, it looks like your iasl isn't working /Users/henrybrock/Desktop/ssdtGen.app/Contents/Resources/ssdtGen.command: line 796: iasl: command not found Found the problem, but I won't be able to fix it until tomorrow. For now, manually download iasl: usr/bin: cd ~/Desktop && curl -OL https://github.com/mattcarlotta/ssdtGenApp/raw/master/tools/iasl.zip && unzip -qu iasl.zip && sudo cp iasl /usr/bin && rm iasl.zip && rm iasl Link to comment Share on other sites More sharing options...
mfc88 Posted May 7, 2017 Author Share Posted May 7, 2017 Updated app to 0.2.0b - see change log for more details. Link to comment Share on other sites More sharing options...
Pavo Posted May 7, 2017 Share Posted May 7, 2017 Updated script to 0.2.0b - see change log for more details. Still a few issues: Re-downloaded app, ran as root for first time using sudo open ssdtGen.app Clicked build all with debug selected get the following: + _checkPreInstalled + '[' -f /usr/bin/iasl ']' + echo '—-ERROR—- IASL64 isn'\''t installed in your /usr/bin/iasl directory!' —-ERROR—- IASL64 isn't installed in your /usr/bin/iasl directory! + echo '' + echo 'Attempting to download IASL from Github...' Attempting to download IASL from Github... + curl -o /usr/bin/iasl https://raw.githubusercontent.com/mattcarlotta/ssdtGenApp/master/tools/iasl % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0Warning: Failed to create the file /usr/bin/iasl: Permission denied 0 1056k 0 1926 0 0 15744 0 0:01:08 --:--:-- 0:01:08 15786 curl: (23) Failed writing body (0 != 1926) + [[ 23 -ne 0 ]] + echo '—-ERROR—- Make sure you initially run the program as ROOT (sudo), and/or that your network connection' —-ERROR—- Make sure you initially run the program as ROOT (sudo), and/or that your network connection + echo 'is active!' is active! + exit 1 Manually did the curl -o /usr/bin/iasl https://raw.githubusercontent.com/mattcarlotta/ssdtGenApp/master/tools/iasland re-ran the app again as sudo and got the following output: + _checkPreInstalled + '[' -f /usr/bin/iasl ']' + echo 'IASL64 is already installed!' + _user_choices + choice=buildall + case "$choice" in + _checkBoard + (( i=0 )) + (( i<3 )) + _findMoboID ++ ioreg -lw0 -p IODeviceTree ++ grep OEMBoard ++ sed -e 's/ *[<>"|=:/_@-]//g; s/OEMBoard//g' ++ grep -o X99 + moboID= + '[' '!' -z '' ']' + (( i++ )) + (( i<3 )) + _findMoboID ++ ioreg -lw0 -p IODeviceTree ++ grep OEMBoard ++ sed -e 's/ *[<>"|=:/_@-]//g; s/OEMBoard//g' ++ grep -o Z170 + moboID=Z170 + '[' '!' -z Z170 ']' + echo 'User has a Z170 board!' + break + [[ Z170 = \X\9\9 ]] + [[ Z170 = \Z\1\7\0 ]] + gTableID=('GLAN' 'GFX1' 'HDAS' 'HECI' 'LPCB' 'SAT0' 'SBUS' 'XHC' 'XOSI' 'NVME') + _printHeader + gSSDTID=SSDT-GLAN + echo 'Creating: SSDT-GLAN.dsl' Creating: SSDT-GLAN.dsl + gSSDT=/Users/henrybrock/Desktop/SSDT-GLAN.dsl + echo 'DefinitionBlock ("", "SSDT", 1, "mfc88", "GLAN", 0x00000000)' + echo '{' + _buildSSDT GLAN + SSDT=GLAN + '[' GLAN == ALZA ']' + '[' GLAN == HDAS ']' + [[ GLAN == \E\V\S\S ]] + [[ GLAN == \G\F\X\1 ]] + [[ GLAN == \G\L\A\N ]] + _getExtDevice_Address GLAN + DEVICE=GLAN + echo ' External (_SB_.PCI0.GLAN, DeviceObj)' + echo ' Method (_SB.PCI0.GLAN._DSM, 4, NotSerialized)' + echo ' {' + _getDSM true + local LNDSM=true + '[' true = true ']' + echo ' If (!Arg2) { Return (Buffer() { 0x03 } ) }' + echo ' Return (Package ()' + echo ' {' + _setDeviceProp '"AAPL,slot-name"' '"Built In"' + PROP='"AAPL,slot-name"' + VALUE='"Built In"' + echo ' "AAPL,slot-name", Buffer() {"Built' 'In"},' + [[ Z170 = \Z\1\7\0 ]] + _setDeviceProp '"model"' '"Intel i219V"' + PROP='"model"' + VALUE='"Intel i219V"' + echo ' "model", Buffer() {"Intel' 'i219V"},' + _setDeviceProp '"name"' '"Ethernet Controller"' + PROP='"name"' + VALUE='"Ethernet Controller"' + echo ' "name", Buffer() {"Ethernet' 'Controller"},' + _setDeviceProp '"built-in"' 0x00 + PROP='"built-in"' + VALUE=0x00 + echo ' "built-in", Buffer() {0x00},' + _findDeviceProp device-id + PROP=device-id + local PROP2= + '[' '!' -z '' ']' ++ ioreg -p IODeviceTree -n GLAN -k device-id ++ grep device-id ++ sed -e 's/ *["|=<A-Z>:/_@]//g; s/device-id//g' + SSDT_VALUE=b8150000 + _checkDevice_Prop b8150000 GLAN device-id + SSDT_VALUE=b8150000 + SSDT_DEVICE=GLAN + SSDT_PROP=device-id + '[' -z b8150000 ']' + echo ' "device-id", Buffer() {' + [[ device-id == \c\o\m\p\a\t\i\b\l\e ]] + [[ device-id == \d\e\v\i\c\e\-\i\d ]] + echo ' 0xb8, 0x15, 0x00, 0x00' + echo ' },' + _findDeviceProp subsystem-id + PROP=subsystem-id + local PROP2= + '[' '!' -z '' ']' ++ ioreg -p IODeviceTree -n GLAN -k subsystem-id ++ grep subsystem-id ++ sed -e 's/ *["|=<A-Z>:/_@]//g; s/subsystem-id//g' + SSDT_VALUE=72860000 + _checkDevice_Prop 72860000 GLAN subsystem-id + SSDT_VALUE=72860000 + SSDT_DEVICE=GLAN + SSDT_PROP=subsystem-id + '[' -z 72860000 ']' + echo ' "subsystem-id", Buffer() {' + [[ subsystem-id == \c\o\m\p\a\t\i\b\l\e ]] + [[ subsystem-id == \d\e\v\i\c\e\-\i\d ]] + [[ subsystem-id == \s\u\b\s\y\s\t\e\m\-\v\e\n\d\o\r\-\i\d ]] + echo ' 0x00, 0x86, 0x00, 0x00' + echo ' },' + _findDeviceProp subsystem-vendor-id + PROP=subsystem-vendor-id + local PROP2= + '[' '!' -z '' ']' ++ ioreg -p IODeviceTree -n GLAN -k subsystem-vendor-id ++ grep subsystem-vendor-id ++ sed -e 's/ *["|=<A-Z>:/_@]//g; s/subsystem-vendor-id//g' + SSDT_VALUE=43100000 + _checkDevice_Prop 43100000 GLAN subsystem-vendor-id + SSDT_VALUE=43100000 + SSDT_DEVICE=GLAN + SSDT_PROP=subsystem-vendor-id + '[' -z 43100000 ']' + echo ' "subsystem-vendor-id", Buffer() {' + [[ subsystem-vendor-id == \c\o\m\p\a\t\i\b\l\e ]] + [[ subsystem-vendor-id == \d\e\v\i\c\e\-\i\d ]] + [[ subsystem-vendor-id == \s\u\b\s\y\s\t\e\m\-\v\e\n\d\o\r\-\i\d ]] + echo ' 0x43, 0x10, 0x00, 0x00' + echo ' },' + _close_Brackets + local MB= + '[' '' = true ']' + echo ' })' + echo ' }' + echo ' }' + [[ GLAN == \H\E\C\I ]] + [[ GLAN == \N\V\M\E ]] + '[' GLAN == LPC0 ']' + '[' GLAN == LPCB ']' + '[' GLAN == SAT1 ']' + '[' GLAN == SAT0 ']' + '[' GLAN == SMBS ']' + '[' GLAN == SBUS ']' + [[ GLAN == \X\H\C ]] + [[ GLAN == \X\O\S\I ]] + _compileSSDT + (( gCount++ )) + chown henrybrock /Users/henrybrock/Desktop/SSDT-GLAN.dsl + echo 'Attemping to compile: SSDT-GLAN.dsl' Attemping to compile: SSDT-GLAN.dsl + iasl -G /Users/henrybrock/Desktop/SSDT-GLAN.dsl /Users/henrybrock/Desktop/ssdtGen.app/Contents/Resources/ssdtGen.command: line 789: /usr/bin/iasl: Permission denied + [[ 126 -ne 0 ]] + echo '' + echo '—-ERROR—- SSDT-GLAN.dsl has failed to compile!' —-ERROR—- SSDT-GLAN.dsl has failed to compile! + echo 'Please run this script in debug mode to generate a debug_output text file.' Please run this script in debug mode to generate a debug_output text file. + echo '' + echo 'Removing: SSDT-GLAN.dsl' Removing: SSDT-GLAN.dsl + echo --------------------------------------------------------------------------------------------------------------------------------------------- --------------------------------------------------------------------------------------------------------------------------------------------- + rm /Users/henrybrock/Desktop/SSDT-GLAN.dsl + '[' '!' -z '' ']' + (( 1 < 10-1 )) + echo 'Attempting to build all SSDTs...' + _printHeader + gSSDTID=SSDT-GFX1 + echo 'Creating: SSDT-GFX1.dsl' Creating: SSDT-GFX1.dsl + gSSDT=/Users/henrybrock/Desktop/SSDT-GFX1.dsl + echo 'DefinitionBlock ("", "SSDT", 1, "mfc88", "GFX1", 0x00000000)' + echo '{' + _buildSSDT GFX1 + SSDT=GFX1 + '[' GFX1 == ALZA ']' + '[' GFX1 == HDAS ']' + [[ GFX1 == \E\V\S\S ]] + [[ GFX1 == \G\F\X\1 ]] + _findGPU + PROP=attached-gpu-control-path ++ ioreg -l ++ grep attached-gpu-control-path ++ sed -e 's/ *[",|=:<a-z>/_@-]//g; s/IOSAACPIPEPCI//g; s/AACPIPCI//g; s/IOPP//g' ++ cut -c3-6,8-11 + GPUPATH=PEG0GFX0 + PCISLOT=PEG0 + DEVICE=GFX0 + GPU=GFX0 ++ ioreg -lw0 -p IODeviceTree ++ awk '/compatible/ {print $4}' ++ grep -o iMac17,1 + iMac171=iMac17,1 + _checkDevice_Prop PEG0GFX0 GFX1 attached-gpu-control-path + SSDT_VALUE=PEG0GFX0 + SSDT_DEVICE=GFX1 + SSDT_PROP=attached-gpu-control-path + '[' -z PEG0GFX0 ']' + echo ' Device (_SB.PCI0.PEG0.GFX1)' + echo ' {' + echo ' Name (_SUN, One) // _SUN: Slot User Number' + echo ' Name (_ADR, Zero) // _ADR: Address' + _getDSM + local LNDSM= + '[' '' = true ']' + echo ' Method (_DSM, 4, NotSerialized)' + echo ' {' + echo ' If (LEqual (Arg2, Zero)) { Return (Buffer() { 0x03 } ) }' + echo ' Return (Package ()' + echo ' {' + _setDeviceProp '"AAPL,slot-name"' '"Built In"' + PROP='"AAPL,slot-name"' + VALUE='"Built In"' + echo ' "AAPL,slot-name", Buffer() {"Built' 'In"},' + _setDeviceProp '"hda-gfx"' '"onboard-2"' + PROP='"hda-gfx"' + VALUE='"onboard-2"' + echo ' "hda-gfx", Buffer() {"onboard-2"},' + '[' '!' -z iMac17,1 ']' + _findDeviceProp subsystem-vendor-id + PROP=subsystem-vendor-id + local PROP2= + '[' '!' -z '' ']' ++ ioreg -p IODeviceTree -n GFX0 -k subsystem-vendor-id ++ grep subsystem-vendor-id ++ sed -e 's/ *["|=<A-Z>:/_@]//g; s/subsystem-vendor-id//g' + SSDT_VALUE=4b170000 + _checkDevice_Prop 4b170000 GFX0 subsystem-vendor-id + SSDT_VALUE=4b170000 + SSDT_DEVICE=GFX0 + SSDT_PROP=subsystem-vendor-id + '[' -z 4b170000 ']' + echo ' "subsystem-vendor-id", Buffer() {' + [[ subsystem-vendor-id == \c\o\m\p\a\t\i\b\l\e ]] + [[ subsystem-vendor-id == \d\e\v\i\c\e\-\i\d ]] + [[ subsystem-vendor-id == \s\u\b\s\y\s\t\e\m\-\v\e\n\d\o\r\-\i\d ]] + echo ' 0x4b, 0x17, 0x00, 0x00' + echo ' },' + _setDeviceProp '"@0,connector-type"' '0x00, 0x08, 0x00, 0x00' + PROP='"@0,connector-type"' + VALUE='0x00, 0x08, 0x00, 0x00' + echo ' "@0,connector-type", Buffer() {0x00,' 0x08, 0x00, '0x00},' + _setDeviceProp '"@1,connector-type"' '0x00, 0x08, 0x00, 0x00' + PROP='"@1,connector-type"' + VALUE='0x00, 0x08, 0x00, 0x00' + echo ' "@1,connector-type", Buffer() {0x00,' 0x08, 0x00, '0x00},' + _setDeviceProp '"@2,connector-type"' '0x00, 0x08, 0x00, 0x00' + PROP='"@2,connector-type"' + VALUE='0x00, 0x08, 0x00, 0x00' + echo ' "@2,connector-type", Buffer() {0x00,' 0x08, 0x00, '0x00},' + _setDeviceProp '"@3,connector-type"' '0x00, 0x08, 0x00, 0x00' + PROP='"@3,connector-type"' + VALUE='0x00, 0x08, 0x00, 0x00' + echo ' "@3,connector-type", Buffer() {0x00,' 0x08, 0x00, '0x00},' + _setDeviceProp '"@4,connector-type"' '0x00, 0x08, 0x00, 0x00' + PROP='"@4,connector-type"' + VALUE='0x00, 0x08, 0x00, 0x00' + echo ' "@4,connector-type", Buffer() {0x00,' 0x08, 0x00, '0x00},' + _setDeviceProp '"@5,connector-type"' '0x00, 0x08, 0x00, 0x00' + PROP='"@5,connector-type"' + VALUE='0x00, 0x08, 0x00, 0x00' + echo ' "@5,connector-type", Buffer() {0x00,' 0x08, 0x00, '0x00},' + _close_Brackets + local MB= + '[' '' = true ']' + echo ' })' + echo ' }' + echo ' }' + _findAUDIO + [[ Z170 = \X\9\9 ]] + echo ' Device (_SB.PCI0.PEG0.HDAU)' + echo ' {' + echo ' Name (_ADR, One) // _ADR: Address' + _getDSM + local LNDSM= + '[' '' = true ']' + echo ' Method (_DSM, 4, NotSerialized)' + echo ' {' + echo ' If (LEqual (Arg2, Zero)) { Return (Buffer() { 0x03 } ) }' + echo ' Return (Package ()' + echo ' {' + _setDeviceProp '"hda-gfx"' '"onboard-2"' + PROP='"hda-gfx"' + VALUE='"onboard-2"' + echo ' "hda-gfx", Buffer() {"onboard-2"},' + _setDeviceProp '"PinConfigurations"' '0xe0, 0x00, 0x56, 0x28' + PROP='"PinConfigurations"' + VALUE='0xe0, 0x00, 0x56, 0x28' + echo ' "PinConfigurations", Buffer() {0xe0,' 0x00, 0x56, '0x28},' + _findDeviceProp device-id AUDIO + PROP=device-id + local PROP2=AUDIO + '[' '!' -z AUDIO ']' + [[ AUDIO == \A\U\D\I\O ]] ++ ioreg -lw0 -p IODeviceTree -n PEG0 -r ++ grep device-id ++ tail -n 1 ++ sed -e 's/ *[",|=:/_@<>]//g; s/device-id//g' + SSDT_VALUE=f0aa0000 + _checkDevice_Prop f0aa0000 GFX0 device-id + SSDT_VALUE=f0aa0000 + SSDT_DEVICE=GFX0 + SSDT_PROP=device-id + '[' -z f0aa0000 ']' + echo ' "device-id", Buffer() {' + [[ device-id == \c\o\m\p\a\t\i\b\l\e ]] + [[ device-id == \d\e\v\i\c\e\-\i\d ]] + echo ' 0xf0, 0xaa, 0x00, 0x00' + echo ' },' + _close_Brackets + local MB= + '[' '' = true ']' + echo ' })' + echo ' }' + echo ' }' + _setGPUDevice_Status + [[ Z170 = \X\9\9 ]] + echo ' Name (_SB.PCI0.PEG0.GFX0._STA, Zero)' + echo '}' + [[ GFX1 == \G\L\A\N ]] + [[ GFX1 == \H\E\C\I ]] + [[ GFX1 == \N\V\M\E ]] + '[' GFX1 == LPC0 ']' + '[' GFX1 == LPCB ']' + '[' GFX1 == SAT1 ']' + '[' GFX1 == SAT0 ']' + '[' GFX1 == SMBS ']' + '[' GFX1 == SBUS ']' + [[ GFX1 == \X\H\C ]] + [[ GFX1 == \X\O\S\I ]] + _compileSSDT + (( gCount++ )) + chown henrybrock /Users/henrybrock/Desktop/SSDT-GFX1.dsl + echo 'Attemping to compile: SSDT-GFX1.dsl' Attemping to compile: SSDT-GFX1.dsl + iasl -G /Users/henrybrock/Desktop/SSDT-GFX1.dsl /Users/henrybrock/Desktop/ssdtGen.app/Contents/Resources/ssdtGen.command: line 789: /usr/bin/iasl: Permission denied + [[ 126 -ne 0 ]] + echo '' + echo '—-ERROR—- SSDT-GFX1.dsl has failed to compile!' —-ERROR—- SSDT-GFX1.dsl has failed to compile! + echo 'Please run this script in debug mode to generate a debug_output text file.' Please run this script in debug mode to generate a debug_output text file. + echo '' + echo 'Removing: SSDT-GFX1.dsl' Removing: SSDT-GFX1.dsl + echo --------------------------------------------------------------------------------------------------------------------------------------------- --------------------------------------------------------------------------------------------------------------------------------------------- + rm /Users/henrybrock/Desktop/SSDT-GFX1.dsl + '[' '!' -z '' ']' + (( 2 < 10-1 )) + echo 'Attempting to build all SSDTs...' + _printHeader + gSSDTID=SSDT-HDAS + echo 'Creating: SSDT-HDAS.dsl' Creating: SSDT-HDAS.dsl + gSSDT=/Users/henrybrock/Desktop/SSDT-HDAS.dsl + echo 'DefinitionBlock ("", "SSDT", 1, "mfc88", "HDAS", 0x00000000)' + echo '{' + _buildSSDT HDAS + SSDT=HDAS + '[' HDAS == ALZA ']' + '[' HDAS == HDAS ']' + _getDevice_ACPI_Path HDAS HDEF + DEVICE=HDAS + NEWDEVICE=HDEF + PROP=acpi-path ++ ioreg -p IODeviceTree -n HDAS -k acpi-path ++ grep acpi-path ++ sed -e 's/ *["|=<A-Z>:/_@-]//g; s/acpipathlane//g; y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/' + SSDTADR= + _checkDevice_Prop '' HDAS acpi-path + SSDT_VALUE= + SSDT_DEVICE=HDAS + SSDT_PROP=acpi-path + '[' -z '' ']' + echo '—-ERROR—- There was a problem locating HDAS'\''s acpi-path property!' —-ERROR—- There was a problem locating HDAS's acpi-path property! + '[' '!' -z HDEF ']' + echo ' Device (_SB.PCI0.HDEF)' + echo ' {' + echo ' Name (_ADR, 0x) // _ADR: Address' + _getDSM + local LNDSM= + '[' '' = true ']' + echo ' Method (_DSM, 4, NotSerialized)' + echo ' {' + echo ' If (LEqual (Arg2, Zero)) { Return (Buffer() { 0x03 } ) }' + echo ' Return (Package ()' + echo ' {' + _setDeviceProp '"AAPL,slot-name"' '"Built In"' + PROP='"AAPL,slot-name"' + VALUE='"Built In"' + echo ' "AAPL,slot-name", Buffer() {"Built' 'In"},' + _setDeviceProp '"device_type"' '"Audio Controller"' + PROP='"device_type"' + VALUE='"Audio Controller"' + echo ' "device_type", Buffer() {"Audio' 'Controller"},' + _setDeviceProp '"built-in"' 0x00 + PROP='"built-in"' + VALUE=0x00 + echo ' "built-in", Buffer() {0x00},' + _setDeviceProp '"model"' '"Realtek Audio Controller"' + PROP='"model"' + VALUE='"Realtek Audio Controller"' + echo ' "model", Buffer() {"Realtek' Audio 'Controller"},' + _setDeviceProp '"hda-gfx"' '"onboard-1"' + PROP='"hda-gfx"' + VALUE='"onboard-1"' + echo ' "hda-gfx", Buffer() {"onboard-1"},' + _setDeviceProp '"layout-id"' '0x01, 0x00, 0x00, 0x00' + PROP='"layout-id"' + VALUE='0x01, 0x00, 0x00, 0x00' + echo ' "layout-id", Buffer() {0x01,' 0x00, 0x00, '0x00},' + _setDeviceProp '"PinConfigurations"' 0x00 + PROP='"PinConfigurations"' + VALUE=0x00 + echo ' "PinConfigurations", Buffer() {0x00},' + _findDeviceProp compatible IOName + PROP=compatible + local PROP2=IOName + '[' '!' -z IOName ']' + [[ IOName == \A\U\D\I\O ]] ++ ioreg -p IODeviceTree -n HDAS -k IOName ++ grep IOName ++ sed -e 's/ *["|=:/_@]//g; s/IOName//g' + SSDT_VALUE= + _checkDevice_Prop '' HDAS compatible + SSDT_VALUE= + SSDT_DEVICE=HDAS + SSDT_PROP=compatible + '[' -z '' ']' + echo '—-ERROR—- There was a problem locating HDAS'\''s compatible property!' —-ERROR—- There was a problem locating HDAS's compatible property! + echo ' "compatible", Buffer() {' + [[ compatible == \c\o\m\p\a\t\i\b\l\e ]] + echo ' ""' + echo ' },' + _close_Brackets + local MB= + '[' '' = true ']' + echo ' })' + echo ' }' + echo ' }' + _setDevice_Status + echo ' Name (_SB.PCI0.HDAS._STA, Zero) // _STA: Status' + echo '}' + [[ HDAS == \E\V\S\S ]] + [[ HDAS == \G\F\X\1 ]] + [[ HDAS == \G\L\A\N ]] + [[ HDAS == \H\E\C\I ]] + [[ HDAS == \N\V\M\E ]] + '[' HDAS == LPC0 ']' + '[' HDAS == LPCB ']' + '[' HDAS == SAT1 ']' + '[' HDAS == SAT0 ']' + '[' HDAS == SMBS ']' + '[' HDAS == SBUS ']' + [[ HDAS == \X\H\C ]] + [[ HDAS == \X\O\S\I ]] + _compileSSDT + (( gCount++ )) + chown henrybrock /Users/henrybrock/Desktop/SSDT-HDAS.dsl + echo 'Attemping to compile: SSDT-HDAS.dsl' Attemping to compile: SSDT-HDAS.dsl + iasl -G /Users/henrybrock/Desktop/SSDT-HDAS.dsl /Users/henrybrock/Desktop/ssdtGen.app/Contents/Resources/ssdtGen.command: line 789: /usr/bin/iasl: Permission denied + [[ 126 -ne 0 ]] + echo '' + echo '—-ERROR—- SSDT-HDAS.dsl has failed to compile!' —-ERROR—- SSDT-HDAS.dsl has failed to compile! + echo 'Please run this script in debug mode to generate a debug_output text file.' Please run this script in debug mode to generate a debug_output text file. + echo '' + echo 'Removing: SSDT-HDAS.dsl' Removing: SSDT-HDAS.dsl + echo --------------------------------------------------------------------------------------------------------------------------------------------- --------------------------------------------------------------------------------------------------------------------------------------------- + rm /Users/henrybrock/Desktop/SSDT-HDAS.dsl + '[' '!' -z '' ']' + (( 3 < 10-1 )) + echo 'Attempting to build all SSDTs...' + _printHeader + gSSDTID=SSDT-HECI + echo 'Creating: SSDT-HECI.dsl' Creating: SSDT-HECI.dsl + gSSDT=/Users/henrybrock/Desktop/SSDT-HECI.dsl + echo 'DefinitionBlock ("", "SSDT", 1, "mfc88", "HECI", 0x00000000)' + echo '{' + _buildSSDT HECI + SSDT=HECI + '[' HECI == ALZA ']' + '[' HECI == HDAS ']' + [[ HECI == \E\V\S\S ]] + [[ HECI == \G\F\X\1 ]] + [[ HECI == \G\L\A\N ]] + [[ HECI == \H\E\C\I ]] + _getDevice_ACPI_Path HECI IMEI + DEVICE=HECI + NEWDEVICE=IMEI + PROP=acpi-path ++ ioreg -p IODeviceTree -n HECI -k acpi-path ++ grep acpi-path ++ sed -e 's/ *["|=<A-Z>:/_@-]//g; s/acpipathlane//g; y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/' + SSDTADR= + _checkDevice_Prop '' HECI acpi-path + SSDT_VALUE= + SSDT_DEVICE=HECI + SSDT_PROP=acpi-path + '[' -z '' ']' + echo '—-ERROR—- There was a problem locating HECI'\''s acpi-path property!' —-ERROR—- There was a problem locating HECI's acpi-path property! + '[' '!' -z IMEI ']' + echo ' Device (_SB.PCI0.IMEI)' + echo ' {' + echo ' Name (_ADR, 0x) // _ADR: Address' + _getDSM + local LNDSM= + '[' '' = true ']' + echo ' Method (_DSM, 4, NotSerialized)' + echo ' {' + echo ' If (LEqual (Arg2, Zero)) { Return (Buffer() { 0x03 } ) }' + echo ' Return (Package ()' + echo ' {' + _setDeviceProp '"AAPL,slot-name"' '"Built In"' + PROP='"AAPL,slot-name"' + VALUE='"Built In"' + echo ' "AAPL,slot-name", Buffer() {"Built' 'In"},' + _setDeviceProp '"name"' '"IMEI Controller"' + PROP='"name"' + VALUE='"IMEI Controller"' + echo ' "name", Buffer() {"IMEI' 'Controller"},' + _setDeviceProp '"model"' '"IMEI Controller"' + PROP='"model"' + VALUE='"IMEI Controller"' + echo ' "model", Buffer() {"IMEI' 'Controller"},' + _setDeviceProp '"built-in"' 0x00 + PROP='"built-in"' + VALUE=0x00 + echo ' "built-in", Buffer() {0x00},' + _setDeviceProp '"compatible"' '"pci8086,1e3a"' + PROP='"compatible"' + VALUE='"pci8086,1e3a"' + echo ' "compatible", Buffer() {"pci8086,1e3a"},' + _setDeviceProp '"device-id"' '0x3A, 0x1E, 0x00, 0x00' + PROP='"device-id"' + VALUE='0x3A, 0x1E, 0x00, 0x00' + echo ' "device-id", Buffer() {0x3A,' 0x1E, 0x00, '0x00},' + _close_Brackets + local MB= + '[' '' = true ']' + echo ' })' + echo ' }' + echo ' }' + _setDevice_Status + echo ' Name (_SB.PCI0.HECI._STA, Zero) // _STA: Status' + echo '}' + [[ HECI == \N\V\M\E ]] + '[' HECI == LPC0 ']' + '[' HECI == LPCB ']' + '[' HECI == SAT1 ']' + '[' HECI == SAT0 ']' + '[' HECI == SMBS ']' + '[' HECI == SBUS ']' + [[ HECI == \X\H\C ]] + [[ HECI == \X\O\S\I ]] + _compileSSDT + (( gCount++ )) + chown henrybrock /Users/henrybrock/Desktop/SSDT-HECI.dsl + echo 'Attemping to compile: SSDT-HECI.dsl' Attemping to compile: SSDT-HECI.dsl + iasl -G /Users/henrybrock/Desktop/SSDT-HECI.dsl /Users/henrybrock/Desktop/ssdtGen.app/Contents/Resources/ssdtGen.command: line 789: /usr/bin/iasl: Permission denied + [[ 126 -ne 0 ]] + echo '' + echo '—-ERROR—- SSDT-HECI.dsl has failed to compile!' —-ERROR—- SSDT-HECI.dsl has failed to compile! + echo 'Please run this script in debug mode to generate a debug_output text file.' Please run this script in debug mode to generate a debug_output text file. + echo '' + echo 'Removing: SSDT-HECI.dsl' Removing: SSDT-HECI.dsl + echo --------------------------------------------------------------------------------------------------------------------------------------------- --------------------------------------------------------------------------------------------------------------------------------------------- + rm /Users/henrybrock/Desktop/SSDT-HECI.dsl + '[' '!' -z '' ']' + (( 4 < 10-1 )) + echo 'Attempting to build all SSDTs...' + _printHeader + gSSDTID=SSDT-LPCB + echo 'Creating: SSDT-LPCB.dsl' Creating: SSDT-LPCB.dsl + gSSDT=/Users/henrybrock/Desktop/SSDT-LPCB.dsl + echo 'DefinitionBlock ("", "SSDT", 1, "mfc88", "LPCB", 0x00000000)' + echo '{' + _buildSSDT LPCB + SSDT=LPCB + '[' LPCB == ALZA ']' + '[' LPCB == HDAS ']' + [[ LPCB == \E\V\S\S ]] + [[ LPCB == \G\F\X\1 ]] + [[ LPCB == \G\L\A\N ]] + [[ LPCB == \H\E\C\I ]] + [[ LPCB == \N\V\M\E ]] + '[' LPCB == LPC0 ']' + '[' LPCB == LPCB ']' + _getExtDevice_Address LPCB + DEVICE=LPCB + echo ' External (_SB_.PCI0.LPCB, DeviceObj)' + echo ' Method (_SB.PCI0.LPCB._DSM, 4, NotSerialized)' + echo ' {' + _getDSM true + local LNDSM=true + '[' true = true ']' + echo ' If (!Arg2) { Return (Buffer() { 0x03 } ) }' + echo ' Return (Package ()' + echo ' {' + [[ Z170 = \Z\1\7\0 ]] + _setDeviceProp '"compatible"' '"pci8086,9cc1"' + PROP='"compatible"' + VALUE='"pci8086,9cc1"' + echo ' "compatible", Buffer() {"pci8086,9cc1"},' + _close_Brackets + local MB= + '[' '' = true ']' + echo ' })' + echo ' }' + echo ' }' + '[' LPCB == SAT1 ']' + '[' LPCB == SAT0 ']' + '[' LPCB == SMBS ']' + '[' LPCB == SBUS ']' + [[ LPCB == \X\H\C ]] + [[ LPCB == \X\O\S\I ]] + _compileSSDT + (( gCount++ )) + chown henrybrock /Users/henrybrock/Desktop/SSDT-LPCB.dsl + echo 'Attemping to compile: SSDT-LPCB.dsl' Attemping to compile: SSDT-LPCB.dsl + iasl -G /Users/henrybrock/Desktop/SSDT-LPCB.dsl /Users/henrybrock/Desktop/ssdtGen.app/Contents/Resources/ssdtGen.command: line 789: /usr/bin/iasl: Permission denied + [[ 126 -ne 0 ]] + echo '' + echo '—-ERROR—- SSDT-LPCB.dsl has failed to compile!' —-ERROR—- SSDT-LPCB.dsl has failed to compile! + echo 'Please run this script in debug mode to generate a debug_output text file.' Please run this script in debug mode to generate a debug_output text file. + echo '' + echo 'Removing: SSDT-LPCB.dsl' Removing: SSDT-LPCB.dsl + echo --------------------------------------------------------------------------------------------------------------------------------------------- --------------------------------------------------------------------------------------------------------------------------------------------- + rm /Users/henrybrock/Desktop/SSDT-LPCB.dsl + '[' '!' -z '' ']' + (( 5 < 10-1 )) + echo 'Attempting to build all SSDTs...' + _printHeader + gSSDTID=SSDT-SAT0 + echo 'Creating: SSDT-SAT0.dsl' Creating: SSDT-SAT0.dsl + gSSDT=/Users/henrybrock/Desktop/SSDT-SAT0.dsl + echo 'DefinitionBlock ("", "SSDT", 1, "mfc88", "SAT0", 0x00000000)' + echo '{' + _buildSSDT SAT0 + SSDT=SAT0 + '[' SAT0 == ALZA ']' + '[' SAT0 == HDAS ']' + [[ SAT0 == \E\V\S\S ]] + [[ SAT0 == \G\F\X\1 ]] + [[ SAT0 == \G\L\A\N ]] + [[ SAT0 == \H\E\C\I ]] + [[ SAT0 == \N\V\M\E ]] + '[' SAT0 == LPC0 ']' + '[' SAT0 == LPCB ']' + '[' SAT0 == SAT1 ']' + '[' SAT0 == SAT0 ']' + _getExtDevice_Address SAT0 + DEVICE=SAT0 + echo ' External (_SB_.PCI0.SAT0, DeviceObj)' + echo ' Method (_SB.PCI0.SAT0._DSM, 4, NotSerialized)' + echo ' {' + _getDSM true + local LNDSM=true + '[' true = true ']' + echo ' If (!Arg2) { Return (Buffer() { 0x03 } ) }' + echo ' Return (Package ()' + echo ' {' + _setDeviceProp '"AAPL,slot-name"' '"Built In"' + PROP='"AAPL,slot-name"' + VALUE='"Built In"' + echo ' "AAPL,slot-name", Buffer() {"Built' 'In"},' + _setDeviceProp '"built-in"' 0x00 + PROP='"built-in"' + VALUE=0x00 + echo ' "built-in", Buffer() {0x00},' + _setDeviceProp '"device-type"' '"AHCI Controller"' + PROP='"device-type"' + VALUE='"AHCI Controller"' + echo ' "device-type", Buffer() {"AHCI' 'Controller"},' + _setDeviceProp '"name"' '"Intel AHCI Controller"' + PROP='"name"' + VALUE='"Intel AHCI Controller"' + echo ' "name", Buffer() {"Intel' AHCI 'Controller"},' + [[ Z170 = \Z\1\7\0 ]] + _setDeviceProp '"model"' '"Intel 10 Series Chipset Family SATA Controller"' + PROP='"model"' + VALUE='"Intel 10 Series Chipset Family SATA Controller"' + echo ' "model", Buffer() {"Intel' 10 Series Chipset Family SATA 'Controller"},' + _findDeviceProp compatible IOName + PROP=compatible + local PROP2=IOName + '[' '!' -z IOName ']' + [[ IOName == \A\U\D\I\O ]] ++ ioreg -p IODeviceTree -n SAT0 -k IOName ++ grep IOName ++ sed -e 's/ *["|=:/_@]//g; s/IOName//g' + SSDT_VALUE=pci8086,a102 + _checkDevice_Prop pci8086,a102 SAT0 compatible + SSDT_VALUE=pci8086,a102 + SSDT_DEVICE=SAT0 + SSDT_PROP=compatible + '[' -z pci8086,a102 ']' + echo ' "compatible", Buffer() {' + [[ compatible == \c\o\m\p\a\t\i\b\l\e ]] + echo ' "pci8086,a102"' + echo ' },' + _findDeviceProp device-id + PROP=device-id + local PROP2= + '[' '!' -z '' ']' ++ ioreg -p IODeviceTree -n SAT0 -k device-id ++ grep device-id ++ sed -e 's/ *["|=<A-Z>:/_@]//g; s/device-id//g' + SSDT_VALUE=02a10000 + _checkDevice_Prop 02a10000 SAT0 device-id + SSDT_VALUE=02a10000 + SSDT_DEVICE=SAT0 + SSDT_PROP=device-id + '[' -z 02a10000 ']' + echo ' "device-id", Buffer() {' + [[ device-id == \c\o\m\p\a\t\i\b\l\e ]] + [[ device-id == \d\e\v\i\c\e\-\i\d ]] + echo ' 0x02, 0xa1, 0x00, 0x00' + echo ' },' + _close_Brackets + local MB= + '[' '' = true ']' + echo ' })' + echo ' }' + echo ' }' + '[' SAT0 == SMBS ']' + '[' SAT0 == SBUS ']' + [[ SAT0 == \X\H\C ]] + [[ SAT0 == \X\O\S\I ]] + _compileSSDT + (( gCount++ )) + chown henrybrock /Users/henrybrock/Desktop/SSDT-SAT0.dsl + echo 'Attemping to compile: SSDT-SAT0.dsl' Attemping to compile: SSDT-SAT0.dsl + iasl -G /Users/henrybrock/Desktop/SSDT-SAT0.dsl /Users/henrybrock/Desktop/ssdtGen.app/Contents/Resources/ssdtGen.command: line 789: /usr/bin/iasl: Permission denied + [[ 126 -ne 0 ]] + echo '' + echo '—-ERROR—- SSDT-SAT0.dsl has failed to compile!' —-ERROR—- SSDT-SAT0.dsl has failed to compile! + echo 'Please run this script in debug mode to generate a debug_output text file.' Please run this script in debug mode to generate a debug_output text file. + echo '' + echo 'Removing: SSDT-SAT0.dsl' Removing: SSDT-SAT0.dsl + echo --------------------------------------------------------------------------------------------------------------------------------------------- --------------------------------------------------------------------------------------------------------------------------------------------- + rm /Users/henrybrock/Desktop/SSDT-SAT0.dsl + '[' '!' -z '' ']' + (( 6 < 10-1 )) + echo 'Attempting to build all SSDTs...' + _printHeader + gSSDTID=SSDT-SBUS + echo 'Creating: SSDT-SBUS.dsl' Creating: SSDT-SBUS.dsl + gSSDT=/Users/henrybrock/Desktop/SSDT-SBUS.dsl + echo 'DefinitionBlock ("", "SSDT", 1, "mfc88", "SBUS", 0x00000000)' + echo '{' + _buildSSDT SBUS + SSDT=SBUS + '[' SBUS == ALZA ']' + '[' SBUS == HDAS ']' + [[ SBUS == \E\V\S\S ]] + [[ SBUS == \G\F\X\1 ]] + [[ SBUS == \G\L\A\N ]] + [[ SBUS == \H\E\C\I ]] + [[ SBUS == \N\V\M\E ]] + '[' SBUS == LPC0 ']' + '[' SBUS == LPCB ']' + '[' SBUS == SAT1 ']' + '[' SBUS == SAT0 ']' + '[' SBUS == SMBS ']' + '[' SBUS == SBUS ']' + [[ Z170 = \Z\1\7\0 ]] + _findDevice_Address SBUS SMBS + DEVICE=SBUS + DEVICE2=SMBS + PROP=acpi-path ++ ioreg -p IODeviceTree -n SBUS -k acpi-path ++ grep acpi-path ++ sed -e 's/ *["|=<A-Z>:/_@-]//g; s/acpipathlane//g; y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/' + SSDTADR= + _checkDevice_Prop '' SBUS acpi-path + SSDT_VALUE= + SSDT_DEVICE=SBUS + SSDT_PROP=acpi-path + '[' -z '' ']' + echo '—-ERROR—- There was a problem locating SBUS'\''s acpi-path property!' —-ERROR—- There was a problem locating SBUS's acpi-path property! + echo ' External (_SB_.PCI0, DeviceObj)' + echo ' External (_SB_.PCI0.SBUS, DeviceObj)' + echo ' Scope (\_SB.PCI0.SBUS) {Name (_STA, Zero)}' + echo ' OperationRegion (GPIO, SystemIO, 0x0500, 0x3C)' + echo ' Field (GPIO, ByteAcc, NoLock, Preserve)' + echo ' {' + echo ' Offset (0x0C),' + echo ' GL00, 8,' + echo ' Offset (0x2C),' + echo ' , 1,' + echo ' GI01, 1,' + echo ' , 1,' + echo ' GI06, 1,' + echo ' Offset (0x2D),' + echo ' GL04, 8' + echo ' }' + echo ' Device (_SB.PCI0.SMBS)' + echo ' {' + echo ' Name (_ADR, 0x) // _ADR: Address' + echo ' Device (BUS0)' + echo ' {' + echo ' Name (_CID, "smbus") // _CID: Compatible ID' + echo ' Name (_ADR, Zero)' + echo ' Device (MKY0)' + echo ' {' + echo ' Name (_ADR, Zero)' + echo ' Name (_CID, "mikey")' + _getDSM + local LNDSM= + '[' '' = true ']' + echo ' Method (_DSM, 4, NotSerialized)' + echo ' {' + echo ' If (LEqual (Arg2, Zero)) { Return (Buffer() { 0x03 } ) }' + echo ' Return (Package ()' + echo ' {' + echo ' "refnum",' + echo ' Zero,' + echo ' "address",' + echo ' 0x39,' + echo ' "device-id",' + echo ' 0x0CCB,' + _setDevice_ValueZero + echo ' Buffer() { 0x00 },' + echo ' })' + echo ' }' + echo ' Method (H1EN, 1, Serialized)' + echo ' {' + echo ' If (LLessEqual (Arg0, One))' + echo ' {' + echo ' If (LEqual (Arg0, One)) { Or (GL04, 0x04, GL04) }' + echo ' Else { And (GL04, 0xFB, GL04) }' + echo ' }' + echo ' }' + echo ' Method (H1IL, 0, Serialized)' + echo ' {' + echo ' ShiftRight (And (GL00, 0x02), One, Local0)' + echo ' Return (Local0)' + echo ' }' + echo ' Method (H1IP, 1, Serialized)' + echo ' {' + echo ' If (LLessEqual (Arg0, One))' + echo ' {' + echo ' Not (Arg0, Arg0)' + echo ' Store (Arg0, GI01)' + echo ' }' + echo ' }' + echo ' Name (H1IN, 0x11)' + echo ' Scope (\_GPE)' + echo ' {' + echo ' Method (_L11, 0, NotSerialized)' + echo ' {' + echo ' Notify (\_SB.PCI0.SMBS.BUS0.MKY0, 0x80)' + echo ' }' + echo ' }' + echo ' Method (P1IL, 0, Serialized)' + echo ' {' + echo ' ShiftRight (And (GL00, 0x40), 0x06, Local0)' + echo ' Return (Local0)' + echo ' }' + echo ' Method (P1IP, 1, Serialized)' + echo ' {' + echo ' If (LLessEqual (Arg0, One))' + echo ' {' + echo ' Not (Arg0, Arg0)' + echo ' Store (Arg0, GI06)' + echo ' }' + echo ' }' + echo ' Name (P1IN, 0x16)' + echo ' Scope (\_GPE)' + echo ' {' + [[ Z170 = \X\9\9 ]] + echo ' Method (_L14, 0, NotSerialized)' + echo ' {' + echo ' XOr (GI06, One, GI06)' + echo ' Notify (\_SB.PCI0.SMBS.BUS0.MKY0, 0x80)' + echo ' }' + echo ' }' + echo ' }' + echo ' Device (DVL0)' + echo ' {' + echo ' Name (_ADR, 0x57)' + echo ' Name (_CID, "diagsvault")' + _getDSM + local LNDSM= + '[' '' = true ']' + echo ' Method (_DSM, 4, NotSerialized)' + echo ' {' + echo ' If (LEqual (Arg2, Zero)) { Return (Buffer() { 0x03 } ) }' + echo ' Return (Package ()' + echo ' {' + echo ' "address",' + echo ' 0x57,' + _setDevice_ValueZero + echo ' Buffer() { 0x00 },' + _close_Brackets + local MB= + '[' '' = true ']' + echo ' })' + echo ' }' + echo ' }' + echo ' Device (BLC0)' + echo ' {' + echo ' Name (_ADR, Zero)' + echo ' Name (_CID, "smbus-blc")' + _getDSM + local LNDSM= + '[' '' = true ']' + echo ' Method (_DSM, 4, NotSerialized)' + echo ' {' + echo ' If (LEqual (Arg2, Zero)) { Return (Buffer() { 0x03 } ) }' + echo ' Return (Package ()' + echo ' {' + echo ' "refnum",' + echo ' Zero,' + echo ' "version",' + echo ' 0x02,' + echo ' "fault-off",' + echo ' 0x03,' + echo ' "fault-len",' + echo ' 0x04,' + echo ' "skey",' + echo ' 0x4C445342,' + echo ' "type",' + echo ' 0x49324300,' + echo ' "smask",' + echo ' 0xFF,' + _close_Brackets + local MB= + '[' '' = true ']' + echo ' })' + echo ' }' + echo ' }' + echo ' }' + echo ' Device (BUS1)' + echo ' {' + echo ' Name (_CID, "smbus")' + echo ' Name (_ADR, One)' + echo ' }' + echo ' }' + echo '}' + [[ SBUS == \X\H\C ]] + [[ SBUS == \X\O\S\I ]] + _compileSSDT + (( gCount++ )) + chown henrybrock /Users/henrybrock/Desktop/SSDT-SBUS.dsl + echo 'Attemping to compile: SSDT-SBUS.dsl' Attemping to compile: SSDT-SBUS.dsl + iasl -G /Users/henrybrock/Desktop/SSDT-SBUS.dsl /Users/henrybrock/Desktop/ssdtGen.app/Contents/Resources/ssdtGen.command: line 789: /usr/bin/iasl: Permission denied + [[ 126 -ne 0 ]] + echo '' + echo '—-ERROR—- SSDT-SBUS.dsl has failed to compile!' —-ERROR—- SSDT-SBUS.dsl has failed to compile! + echo 'Please run this script in debug mode to generate a debug_output text file.' Please run this script in debug mode to generate a debug_output text file. + echo '' + echo 'Removing: SSDT-SBUS.dsl' Removing: SSDT-SBUS.dsl + echo --------------------------------------------------------------------------------------------------------------------------------------------- --------------------------------------------------------------------------------------------------------------------------------------------- + rm /Users/henrybrock/Desktop/SSDT-SBUS.dsl + '[' '!' -z '' ']' + (( 7 < 10-1 )) + echo 'Attempting to build all SSDTs...' + _printHeader + gSSDTID=SSDT-XHC + echo 'Creating: SSDT-XHC.dsl' Creating: SSDT-XHC.dsl + gSSDT=/Users/henrybrock/Desktop/SSDT-XHC.dsl + echo 'DefinitionBlock ("", "SSDT", 1, "mfc88", "XHC", 0x00000000)' + echo '{' + _buildSSDT XHC + SSDT=XHC + '[' XHC == ALZA ']' + '[' XHC == HDAS ']' + [[ XHC == \E\V\S\S ]] + [[ XHC == \G\F\X\1 ]] + [[ XHC == \G\L\A\N ]] + [[ XHC == \H\E\C\I ]] + [[ XHC == \N\V\M\E ]] + '[' XHC == LPC0 ']' + '[' XHC == LPCB ']' + '[' XHC == SAT1 ']' + '[' XHC == SAT0 ']' + '[' XHC == SMBS ']' + '[' XHC == SBUS ']' + [[ XHC == \X\H\C ]] + _getExtDevice_Address XHC + DEVICE=XHC + echo ' External (_SB_.PCI0.XHC, DeviceObj)' + echo ' Method (_SB.PCI0.XHC._DSM, 4, NotSerialized)' + echo ' {' + _getDSM true + local LNDSM=true + '[' true = true ']' + echo ' If (!Arg2) { Return (Buffer() { 0x03 } ) }' + echo ' Return (Package ()' + echo ' {' + _setDeviceProp '"AAPL,slot-name"' '"Built In"' + PROP='"AAPL,slot-name"' + VALUE='"Built In"' + echo ' "AAPL,slot-name", Buffer() {"Built' 'In"},' + _setDeviceProp '"name"' '"Intel XHC Controller"' + PROP='"name"' + VALUE='"Intel XHC Controller"' + echo ' "name", Buffer() {"Intel' XHC 'Controller"},' + [[ Z170 = \Z\1\7\0 ]] + _setDeviceProp '"model"' '"Intel 10 Series Chipset Family USB xHC Host Controller"' + PROP='"model"' + VALUE='"Intel 10 Series Chipset Family USB xHC Host Controller"' + echo ' "model", Buffer() {"Intel' 10 Series Chipset Family USB xHC Host 'Controller"},' + _setDevice_NoBuffer '"AAPL,current-available"' 0x0834 + PROP='"AAPL,current-available"' + VALUE=0x0834 + echo ' "AAPL,current-available",' + echo ' 0x0834,' + _setDevice_NoBuffer '"AAPL,current-extra"' 0x0A8C + PROP='"AAPL,current-extra"' + VALUE=0x0A8C + echo ' "AAPL,current-extra",' + echo ' 0x0A8C,' + _setDevice_NoBuffer '"AAPL,current-in-sleep"' 0x0A8C + PROP='"AAPL,current-in-sleep"' + VALUE=0x0A8C + echo ' "AAPL,current-in-sleep",' + echo ' 0x0A8C,' + _setDevice_NoBuffer '"AAPL,max-port-current-in-sleep"' 0x0834 + PROP='"AAPL,max-port-current-in-sleep"' + VALUE=0x0834 + echo ' "AAPL,max-port-current-in-sleep",' + echo ' 0x0834,' + _setDevice_NoBuffer '"AAPL,device-internal"' 0x00 + PROP='"AAPL,device-internal"' + VALUE=0x00 + echo ' "AAPL,device-internal",' + echo ' 0x00,' + _setDevice_ValueZero + echo ' Buffer() { 0x00 },' + _setDeviceProp '"AAPL,clock-id"' 0x01 + PROP='"AAPL,clock-id"' + VALUE=0x01 + echo ' "AAPL,clock-id", Buffer() {0x01},' + _findDeviceProp device-id + PROP=device-id + local PROP2= + '[' '!' -z '' ']' ++ ioreg -p IODeviceTree -n XHC -k device-id ++ grep device-id ++ sed -e 's/ *["|=<A-Z>:/_@]//g; s/device-id//g' + SSDT_VALUE=2fa10000 + _checkDevice_Prop 2fa10000 XHC device-id + SSDT_VALUE=2fa10000 + SSDT_DEVICE=XHC + SSDT_PROP=device-id + '[' -z 2fa10000 ']' + echo ' "device-id", Buffer() {' + [[ device-id == \c\o\m\p\a\t\i\b\l\e ]] + [[ device-id == \d\e\v\i\c\e\-\i\d ]] + echo ' 0x2f, 0xa1, 0x00, 0x00' + echo ' },' + _close_Brackets + local MB= + '[' '' = true ']' + echo ' })' + echo ' }' + echo ' }' + [[ XHC == \X\O\S\I ]] + _compileSSDT + (( gCount++ )) + chown henrybrock /Users/henrybrock/Desktop/SSDT-XHC.dsl + echo 'Attemping to compile: SSDT-XHC.dsl' Attemping to compile: SSDT-XHC.dsl + iasl -G /Users/henrybrock/Desktop/SSDT-XHC.dsl /Users/henrybrock/Desktop/ssdtGen.app/Contents/Resources/ssdtGen.command: line 789: /usr/bin/iasl: Permission denied + [[ 126 -ne 0 ]] + echo '' + echo '—-ERROR—- SSDT-XHC.dsl has failed to compile!' —-ERROR—- SSDT-XHC.dsl has failed to compile! + echo 'Please run this script in debug mode to generate a debug_output text file.' Please run this script in debug mode to generate a debug_output text file. + echo '' + echo 'Removing: SSDT-XHC.dsl' Removing: SSDT-XHC.dsl + echo --------------------------------------------------------------------------------------------------------------------------------------------- --------------------------------------------------------------------------------------------------------------------------------------------- + rm /Users/henrybrock/Desktop/SSDT-XHC.dsl + '[' '!' -z '' ']' + (( 8 < 10-1 )) + echo 'Attempting to build all SSDTs...' + _printHeader + gSSDTID=SSDT-XOSI + echo 'Creating: SSDT-XOSI.dsl' Creating: SSDT-XOSI.dsl + gSSDT=/Users/henrybrock/Desktop/SSDT-XOSI.dsl + echo 'DefinitionBlock ("", "SSDT", 1, "mfc88", "XOSI", 0x00000000)' + echo '{' + _buildSSDT XOSI + SSDT=XOSI + '[' XOSI == ALZA ']' + '[' XOSI == HDAS ']' + [[ XOSI == \E\V\S\S ]] + [[ XOSI == \G\F\X\1 ]] + [[ XOSI == \G\L\A\N ]] + [[ XOSI == \H\E\C\I ]] + [[ XOSI == \N\V\M\E ]] + '[' XOSI == LPC0 ']' + '[' XOSI == LPCB ']' + '[' XOSI == SAT1 ']' + '[' XOSI == SAT0 ']' + '[' XOSI == SMBS ']' + '[' XOSI == SBUS ']' + [[ XOSI == \X\H\C ]] + [[ XOSI == \X\O\S\I ]] + _getWindows_OSI + echo ' Method (XOSI, 1)' + echo ' {' + echo ' Store(Package()' + echo ' {' + echo ' "Windows", // generic Windows query' + echo ' "Windows 2001", // Windows XP' + echo ' "Windows 2001 SP2", // Windows XP SP2' + echo ' //"Windows 2001.1", // Windows Server 2003' + echo ' //"Windows 2001.1 SP1", // Windows Server 2003 SP1' + echo ' "Windows 2006", // Windows Vista' + echo ' "Windows 2006 SP1", // Windows Vista SP1' + echo ' //"Windows 2006.1", // Windows Server 2008' + echo ' "Windows 2009", // Windows 7/Windows Server 2008 R2' + echo ' "Windows 2012", // Windows 8/Windows Server 2012' + echo ' //"Windows 2013", // Windows 8.1/Windows Server 2012 R2' + echo ' "Windows 2015", // Windows 10/Windows Server TP' + echo ' }, Local0)' + echo ' Return (Ones != Match(Local0, MEQ, Arg0, MTR, 0, 0))' + echo ' }' + echo '}' + _compileSSDT + (( gCount++ )) + chown henrybrock /Users/henrybrock/Desktop/SSDT-XOSI.dsl + echo 'Attemping to compile: SSDT-XOSI.dsl' Attemping to compile: SSDT-XOSI.dsl + iasl -G /Users/henrybrock/Desktop/SSDT-XOSI.dsl /Users/henrybrock/Desktop/ssdtGen.app/Contents/Resources/ssdtGen.command: line 789: /usr/bin/iasl: Permission denied + [[ 126 -ne 0 ]] + echo '' + echo '—-ERROR—- SSDT-XOSI.dsl has failed to compile!' —-ERROR—- SSDT-XOSI.dsl has failed to compile! + echo 'Please run this script in debug mode to generate a debug_output text file.' Please run this script in debug mode to generate a debug_output text file. + echo '' + echo 'Removing: SSDT-XOSI.dsl' Removing: SSDT-XOSI.dsl + echo --------------------------------------------------------------------------------------------------------------------------------------------- --------------------------------------------------------------------------------------------------------------------------------------------- + rm /Users/henrybrock/Desktop/SSDT-XOSI.dsl + '[' '!' -z '' ']' + (( 9 < 10-1 )) + exit 0 Still looks like there is permission issues with the iasl after being downloaded from your repo and put in /usr/bin Link to comment Share on other sites More sharing options...
mfc88 Posted May 7, 2017 Author Share Posted May 7, 2017 Still looks like there is permission issues with the iasl after being downloaded from your repo and put in /usr/bin Run this command: /usr/bin/csrutil status Link to comment Share on other sites More sharing options...
LAbyOne Posted May 7, 2017 Share Posted May 7, 2017 Very Nice App! i didn't noticed before ... unfortunately its minsysV is 10.12 and I use 10.12 only for testing purpose, just don't feel the need of another half baked system yet. but thanks anyway, hopefully apple will do something decent in the near future Link to comment Share on other sites More sharing options...
mfc88 Posted May 7, 2017 Author Share Posted May 7, 2017 Very Nice App! i didn't noticed before ... unfortunately its minsysV is 10.12 and I use 10.12 only for testing purpose, just don't feel the need of another half baked system yet. but thanks anyway, hopefully apple will do something decent in the near future What OS version are you using? Link to comment Share on other sites More sharing options...
droples Posted May 7, 2017 Share Posted May 7, 2017 Updated script to 0.2.0b - see change log for more details. I have no problem. Last login: Sun May 7 22:53:01 on ttys000 Dr-HD530A:~ droplets$ cd ~/desktop && curl -OL https://github.com/mattcarlotta/ssdtGenApp/raw/master/ssdtGen.zip && unzip -qu ssdtGen.zip && rm -rf __MACOSX && rm -rf ssdtGen.zip % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 142 100 142 0 0 133 0 0:00:01 0:00:01 --:--:-- 133 100 3870k 100 3870k 0 0 626k 0 0:00:06 0:00:06 --:--:-- 976k Dr-HD530A:desktop droplets$ sudo ~/Desktop/ssdtGen.app/Contents/MacOS/ssdtGen Password: + main + tee /Users/droplets/Desktop/debug_output.txt + set +x SG2.0_debug_output_Z170m-Plus.txt Link to comment Share on other sites More sharing options...
mfc88 Posted May 7, 2017 Author Share Posted May 7, 2017 I have no problem. Last login: Sun May 7 22:53:01 on ttys000 Dr-HD530A:~ droplets$ cd ~/desktop && curl -OL https://github.com/mattcarlotta/ssdtGenApp/raw/master/ssdtGen.zip && unzip -qu ssdtGen.zip && rm -rf __MACOSX && rm -rf ssdtGen.zip % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 142 100 142 0 0 133 0 0:00:01 0:00:01 --:--:-- 133 100 3870k 100 3870k 0 0 626k 0 0:00:06 0:00:06 --:--:-- 976k Dr-HD530A:desktop droplets$ sudo ~/Desktop/ssdtGen.app/Contents/MacOS/ssdtGen Password: + main + tee /Users/droplets/Desktop/debug_output.txt + set +x SG2.0_debug_output_Z170m-Plus.txt My guess is that he has SIP enabled. Link to comment Share on other sites More sharing options...
Pavo Posted May 7, 2017 Share Posted May 7, 2017 My guess is that he has SIP enabled. Nope SIP is disabled Re-downloaded it again and ran it as sudo for first time again it doesn't download the iasl itself Manually did the curl Reran the app again in same window without reopening it and still getting permissions denied As you can see iasl is in /usr/bin but trying to run it without sudo gives permission denied and ran with sudo command not found Link to comment Share on other sites More sharing options...
mfc88 Posted May 7, 2017 Author Share Posted May 7, 2017 Nope SIP is disabled Re-downloaded it again and ran it as sudo for first time again it doesn't download the iasl itself Manually did the curl Reran the app again in same window without reopening it and still getting permissions denied Try this... sudo chmod +x /usr/bin/iasl Also, go to /usr/bin, right click on iasl, get info, and under "Sharing and Permissions" make sure you see "System"... Link to comment Share on other sites More sharing options...
Pavo Posted May 7, 2017 Share Posted May 7, 2017 Try this... sudo chmod +x /usr/bin/iasl Also, go to /usr/bin, right click on iasl, get info, and under "Sharing and Permissions" make sure you see "System"... That might be the issue, there is no system, how can I add system? But it does look like doing the sudo chmod +x /usr/bin/iasl fixed the issue, think you wanna add that into your script after download? Also why wouldn't it download itself? Link to comment Share on other sites More sharing options...
mfc88 Posted May 7, 2017 Author Share Posted May 7, 2017 That might be the issue, there is no system, how can I add system? But it does look like doing the sudo chmod +x /usr/bin/iasl fixed the issue, think you wanna add that into your script after download? Also why wouldn't it download itself? It's already there... no idea why it's not executing for you (running sudo on the app turns every command into a sudo command)... Link to comment Share on other sites More sharing options...
Pavo Posted May 7, 2017 Share Posted May 7, 2017 It's already there... no idea why it's not executing for you (running sudo on the app turns every command into a sudo command)... Interesting, well I dunno then. Also the LPC patch isn't loading into IOReg I also have Clover settings to Drop OEM Link to comment Share on other sites More sharing options...
mfc88 Posted May 8, 2017 Author Share Posted May 8, 2017 Interesting, well I dunno then. Also the LPC patch isn't loading into IOReg I also have Clover settings to Drop OEM See error reporting. Link to comment Share on other sites More sharing options...
LAbyOne Posted May 8, 2017 Share Posted May 8, 2017 What OS version are you using? Hi. I'm on 10.11.6 Link to comment Share on other sites More sharing options...
mfc88 Posted May 8, 2017 Author Share Posted May 8, 2017 Hi. I'm on 10.11.6 Not sure if this will work, but see if you can run it in 10.11.6... 1 Link to comment Share on other sites More sharing options...
Recommended Posts