Dolnor / EAPD-Codec-Commander

handles EAPD state updating for power-managed HDA codecs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Only popping noises after GA-Z97X-UD7 deep sleep with dual boot

johnryan opened this issue · comments

I'm using clover with a GA-Z97X-UD7 motherboard. Also dual-booting windows on a separate drive. I build with xCode and added the (very helpful) custom commands from another issue in order to get it working after switching to the windows drive and back.

Now everything works great EXCEPT when the computer goes into a "deep" sleep mode after a while. In this case the computer wakes up and I only get popping noises until I restart the computer.

Any suggestions as to what I might be missing?

The very helpful commands are already in the repo, not sure how recent yo've build.
At any rate, you are definitely missing a debug log for starters ?

Hm, I just cloned the repo yesterday but didn't see anything in the custom
commands section.

I just built the Xcode project in release mode without modifying anything
before hand (not sure if I was supposed to do anything else, but the
instructions mostly mentioned modifying the resulting info.plist)

I'd be happy to provide a debug log, is there any info on how to collect
the logs?

On Sat, Aug 1, 2015, 1:29 PM Dmitry Seryogin notifications@github.com
wrote:

The very helpful commands are already in the repo, not sure how recent
yo've build.
At any rate, you are definitely missing a debug log for starters ?


Reply to this email directly or view it on GitHub
#15 (comment)
.

There's a default profile for ALC1150 (with EAPD updating disabled by default) if you look closely. You were looking in Default profile I presume .. ? Build it for running and in the Console get to your system log and filter it out by 'codeccommander' in the upper right search box.

Here's the logs with unmodified CodecCommander.kext. When the computer woke up at 4:02 there was no sound.

8/1/15 9:35:04.000 AM kernel[0]: CodecCommander: BLURP! setEAPD(0x00) failed... attempt fix with codec reset
8/1/15 9:49:44.000 AM kernel[0]: CodecCommander: BLURP! setEAPD(0x00) failed... attempt fix with codec reset
8/1/15 12:34:06.000 PM kernel[0]: CodecCommander: BLURP! setEAPD(0x00) failed... attempt fix with codec reset
8/1/15 3:28:18.000 PM kernel[0]: warning: debugserver(1282) performed out-of-band resume on CodecCommanderCl(1281)
8/1/15 3:28:19.022 PM com.apple.LLDB.framework[1235]: error: CodecCommanderClient debug map object file '/Users/johnryan-home/Downloads/EAPD-Codec-Commander-master/build/Products/CodecCommander.build/Debug/CodecCommanderClient.build/Objects-normal/x86_64/main.o' has changed (actual time is 0x55bd1dd1, debug map time is 0x55bb8ad2) since this executable was linked, file will be ignored
8/1/15 3:29:59.000 PM kernel[0]: warning: debugserver(1297) performed out-of-band resume on CodecCommanderCl(1296)
8/1/15 3:35:02.000 PM kernel[0]: CodecCommander: Version 2.4.0 starting.
8/1/15 3:35:02.000 PM kernel[0]: CodecCommander: Evaluating device "IOService:/AppleACPIPlatformExpert/PCI0@0/AppleACPIPCI/PEG0@1/IOPP/HDAU@0,1" [10de:0e0a].
8/1/15 3:35:02.000 PM kernel[0]: CodecCommander: ....CodecVendor Id: 0x10de0040
8/1/15 3:35:02.000 PM kernel[0]: CodecCommander: ....Codec Address: 0
8/1/15 3:35:02.000 PM kernel[0]: CodecCommander: ....Subsystem Id: 0x38423768
8/1/15 3:35:02.000 PM kernel[0]: CodecCommander: ....PCI Sub Id: 0x38423768
8/1/15 3:35:02.000 PM kernel[0]: CodecCommander: stopping due to codec profile Disable flag
8/1/15 3:35:02.000 PM kernel[0]: CodecCommander: Version 2.4.0 starting.
8/1/15 3:35:02.000 PM kernel[0]: CodecCommander: Evaluating device "IOService:/AppleACPIPlatformExpert/PCI0@0/AppleACPIPCI/PEG0@1/IOPP/HDAU@0,1" [10de:0e0a].
8/1/15 3:35:02.000 PM kernel[0]: CodecCommander: ....CodecVendor Id: 0x10de0040
8/1/15 3:35:02.000 PM kernel[0]: CodecCommander: ....Codec Address: 0
8/1/15 3:35:02.000 PM kernel[0]: CodecCommander: ....Subsystem Id: 0x38423768
8/1/15 3:35:02.000 PM kernel[0]: CodecCommander: ....PCI Sub Id: 0x38423768
8/1/15 3:35:02.000 PM kernel[0]: CodecCommander: stopping due to codec profile Disable flag
8/1/15 3:35:52.414 PM com.apple.kextcache[1477]: kext-dev-mode allowing invalid signature -67062 0xFFFFFFFFFFFEFA0A for kext CodecCommander.kext
8/1/15 3:37:21.000 PM kernel[0]: CodecCommander: Initializing
8/1/15 3:37:21.000 PM kernel[0]: CodecCommander: Probe
8/1/15 3:37:21.000 PM kernel[0]: CodecCommander: Initializing
8/1/15 3:37:21.000 PM kernel[0]: CodecCommander: Probe
8/1/15 3:37:21.000 PM kernel[0]: CodecCommander: Version 2.4.0 starting.
8/1/15 3:37:21.000 PM kernel[0]: CodecCommander: IntelHDA::initialize
8/1/15 3:37:21.000 PM kernel[0]: CodecCommander: Device memory @ 0xdc080000, size 0x00004000
8/1/15 3:37:21.000 PM kernel[0]: CodecCommander: Memory mapped at @ 0xffffff8206412000
8/1/15 3:37:21.000 PM kernel[0]: CodecCommander: Evaluating device "IOService:/AppleACPIPlatformExpert/PCI0@0/AppleACPIPCI/PEG0@1/IOPP/HDAU@0,1" [10de:0e0a].
8/1/15 3:37:21.000 PM kernel[0]: CodecCommander: ....CodecVendor Id: 0x10de0040
8/1/15 3:37:21.000 PM kernel[0]: CodecCommander: ....Codec Address: 0
8/1/15 3:37:21.000 PM kernel[0]: CodecCommander: ....Subsystem Id: 0x38423768
8/1/15 3:37:21.000 PM kernel[0]: CodecCommander: ....PCI Sub Id: 0x38423768
8/1/15 3:37:21.000 PM kernel[0]: CodecCommander: ....Output Streams: 5
8/1/15 3:37:21.000 PM kernel[0]: CodecCommander: ....Input Streams: 0
8/1/15 3:37:21.000 PM kernel[0]: CodecCommander: ....Bidi Streams: 4
8/1/15 3:37:21.000 PM kernel[0]: CodecCommander: ....Serial Data: 2
8/1/15 3:37:21.000 PM kernel[0]: CodecCommander: ....x64 Support: 0
8/1/15 3:37:21.000 PM kernel[0]: CodecCommander: ....Codec Version: 1.0
8/1/15 3:37:21.000 PM kernel[0]: CodecCommander: ....Vendor Id: 0x10de
8/1/15 3:37:21.000 PM kernel[0]: CodecCommander: ....Device Id: 0x0040
8/1/15 3:37:21.000 PM kernel[0]: CodecCommander: stopping due to codec profile Disable flag
8/1/15 3:37:21.000 PM kernel[0]: CodecCommander: Stopping...
8/1/15 3:37:21.000 PM kernel[0]: CodecCommander: Version 2.4.0 starting.
8/1/15 3:37:21.000 PM kernel[0]: CodecCommander: IntelHDA::initialize
8/1/15 3:37:21.000 PM kernel[0]: CodecCommander: Device memory @ 0xdcb30000, size 0x00004000
8/1/15 3:37:21.000 PM kernel[0]: CodecCommander: Memory mapped at @ 0xffffff8205478000
8/1/15 3:37:21.000 PM kernel[0]: CodecCommander: Evaluating device "IOService:/AppleACPIPlatformExpert/PCI0@0/AppleACPIPCI/HDEF@1B" [8086:8ca0].
8/1/15 3:37:21.000 PM kernel[0]: CodecCommander: ....CodecVendor Id: 0x10ec0900
8/1/15 3:37:21.000 PM kernel[0]: CodecCommander: ....Codec Address: 2
8/1/15 3:37:21.000 PM kernel[0]: CodecCommander: ....Subsystem Id: 0x1458a172
8/1/15 3:37:21.000 PM kernel[0]: CodecCommander: ....PCI Sub Id: 0x1458a172
8/1/15 3:37:21.000 PM kernel[0]: CodecCommander: ....Output Streams: 1
8/1/15 3:37:21.000 PM kernel[0]: CodecCommander: ....Input Streams: 0
8/1/15 3:37:21.000 PM kernel[0]: CodecCommander: ....Bidi Streams: 4
8/1/15 3:37:21.000 PM kernel[0]: CodecCommander: ....Serial Data: 2
8/1/15 3:37:21.000 PM kernel[0]: CodecCommander: ....x64 Support: 0
8/1/15 3:37:21.000 PM kernel[0]: CodecCommander: ....Codec Version: 1.0
8/1/15 3:37:21.000 PM kernel[0]: CodecCommander: ....Vendor Id: 0x10ec
8/1/15 3:37:21.000 PM kernel[0]: CodecCommander: ....Device Id: 0x0900
8/1/15 3:37:21.000 PM kernel[0]: CodecCommander: Configuration
8/1/15 3:37:21.000 PM kernel[0]: CodecCommander: ...Check Infinite: false
8/1/15 3:37:21.000 PM kernel[0]: CodecCommander: ...Check Interval: 3000
8/1/15 3:37:21.000 PM kernel[0]: CodecCommander: ...Perform Reset: true
8/1/15 3:37:21.000 PM kernel[0]: CodecCommander: ...Perform Reset on External Wake: true
8/1/15 3:37:21.000 PM kernel[0]: CodecCommander: ...Perform Reset on EAPD Fail: false
8/1/15 3:37:21.000 PM kernel[0]: CodecCommander: ...Send Delay: 100
8/1/15 3:37:21.000 PM kernel[0]: CodecCommander: ...Update Nodes: false
8/1/15 3:37:21.000 PM kernel[0]: CodecCommander: ...Sleep Nodes: false
8/1/15 3:37:21.000 PM kernel[0]: CodecCommander: Custom Command
8/1/15 3:37:21.000 PM kernel[0]: CodecCommander: ...Command: 0x02050007
8/1/15 3:37:21.000 PM kernel[0]: CodecCommander: ...OnInit: true
8/1/15 3:37:21.000 PM kernel[0]: CodecCommander: ...OnWake: true
8/1/15 3:37:21.000 PM kernel[0]: CodecCommander: ...OnSleep: true
8/1/15 3:37:21.000 PM kernel[0]: CodecCommander: Custom Command
8/1/15 3:37:21.000 PM kernel[0]: CodecCommander: ...Command: 0x02047cb0
8/1/15 3:37:21.000 PM kernel[0]: CodecCommander: ...OnInit: true
8/1/15 3:37:21.000 PM kernel[0]: CodecCommander: ...OnWake: true
8/1/15 3:37:21.000 PM kernel[0]: CodecCommander: ...OnSleep: false
8/1/15 3:37:21.000 PM kernel[0]: CodecCommander: --> custom command 0x02050007
8/1/15 3:37:21.000 PM kernel[0]: CodecCommander: SendCommand: (w) --> 0x22050007
8/1/15 3:37:21.000 PM kernel[0]: CodecCommander: SendCommand: (r) <-- 0x00000000
8/1/15 3:37:21.000 PM kernel[0]: CodecCommander: --> custom command 0x02047cb0
8/1/15 3:37:21.000 PM kernel[0]: CodecCommander: SendCommand: (w) --> 0x22047cb0
8/1/15 3:37:21.000 PM kernel[0]: CodecCommander: SendCommand: (r) <-- 0x00000000
8/1/15 3:37:21.000 PM kernel[0]: CodecCommander: setPowerState 2
8/1/15 3:37:21.000 PM kernel[0]: CodecCommander: --> awake(2)
8/1/15 3:37:21.000 PM kernel[0]: CodecCommander: --> custom command 0x02050007
8/1/15 3:37:21.000 PM kernel[0]: CodecCommander: SendCommand: (w) --> 0x22050007
8/1/15 3:37:21.000 PM kernel[0]: CodecCommander: SendCommand: (r) <-- 0x00000000
8/1/15 3:37:21.000 PM kernel[0]: CodecCommander: --> custom command 0x02047cb0
8/1/15 3:37:21.000 PM kernel[0]: CodecCommander: SendCommand: (w) --> 0x22047cb0
8/1/15 3:37:21.000 PM kernel[0]: CodecCommander: SendCommand: (r) <-- 0x00000000
8/1/15 3:37:22.000 PM kernel[0]: CodecCommander: CodecCommanderPowerHook::init
8/1/15 3:37:22.000 PM kernel[0]: CodecCommander: CodecCommanderPowerHook::probe
8/1/15 3:37:22.000 PM kernel[0]: CodecCommander: CodecCommanderPowerHook::start
8/1/15 3:37:22.000 PM kernel[0]: CodecCommander: no CodecCommander found with child iterator
8/1/15 3:37:24.000 PM kernel[0]: CodecCommander: CodecCommanderPowerHook::init
8/1/15 3:37:24.000 PM kernel[0]: CodecCommander: CodecCommanderPowerHook::probe
8/1/15 3:37:24.000 PM kernel[0]: CodecCommander: CodecCommanderPowerHook::start
8/1/15 3:37:24.000 PM kernel[0]: CodecCommander: PowerHook: setPowerState 2
8/1/15 3:37:24.000 PM kernel[0]: CodecCommander: setPowerStateExternal 2
8/1/15 3:37:24.000 PM kernel[0]: CodecCommander: --> awake(2)
8/1/15 3:47:33.000 PM kernel[0]: CodecCommander: PowerHook: setPowerState 0
8/1/15 3:47:33.000 PM kernel[0]: CodecCommander: setPowerStateExternal 0
8/1/15 3:47:33.000 PM kernel[0]: CodecCommander: --> asleep(0)
8/1/15 3:47:33.000 PM kernel[0]: CodecCommander: --> custom command 0x02050007
8/1/15 3:47:33.000 PM kernel[0]: CodecCommander: SendCommand: (w) --> 0x22050007
8/1/15 3:47:33.000 PM kernel[0]: CodecCommander: SendCommand: (r) <-- 0x00000000
8/1/15 3:47:50.000 PM kernel[0]: CodecCommander: setPowerState 0
8/1/15 3:47:50.000 PM kernel[0]: CodecCommander: --> asleep(0)
8/1/15 4:02:59.000 PM kernel[0]: CodecCommander: setPowerState 2
8/1/15 4:02:59.000 PM kernel[0]: CodecCommander: --> awake(2)
8/1/15 4:02:59.000 PM kernel[0]: CodecCommander: --> resetting codec
8/1/15 4:02:59.000 PM kernel[0]: CodecCommander: SendCommand: node 0x00, verb 0x000f00, payload 0x04.
8/1/15 4:02:59.000 PM kernel[0]: CodecCommander: SendCommand: (w) --> 0x200f0004
8/1/15 4:02:59.000 PM kernel[0]: CodecCommander: SendCommand: (r) <-- 0x00010001
8/1/15 4:02:59.000 PM kernel[0]: CodecCommander: SendCommand: node 0x01, verb 0x000f00, payload 0x05.
8/1/15 4:02:59.000 PM kernel[0]: CodecCommander: SendCommand: (w) --> 0x201f0005
8/1/15 4:02:59.000 PM kernel[0]: CodecCommander: SendCommand: (r) <-- 0x00000101
8/1/15 4:02:59.000 PM kernel[0]: CodecCommander: getAudioRoot found audio root = 0x01
8/1/15 4:02:59.000 PM kernel[0]: CodecCommander: SendCommand: node 0x01, verb 0x0007ff, payload 0x00.
8/1/15 4:02:59.000 PM kernel[0]: CodecCommander: SendCommand: (w) --> 0x2017ff00
8/1/15 4:02:59.000 PM kernel[0]: CodecCommander: SendCommand: (r) <-- 0x00000000
8/1/15 4:02:59.000 PM kernel[0]: CodecCommander: SendCommand: node 0x01, verb 0x0007ff, payload 0x00.
8/1/15 4:02:59.000 PM kernel[0]: CodecCommander: SendCommand: (w) --> 0x2017ff00
8/1/15 4:02:59.000 PM kernel[0]: CodecCommander: SendCommand: (r) <-- 0x00000000
8/1/15 4:02:59.000 PM kernel[0]: CodecCommander: SendCommand: node 0x01, verb 0x000705, payload 0x03.
8/1/15 4:02:59.000 PM kernel[0]: CodecCommander: SendCommand: (w) --> 0x20170503
8/1/15 4:02:59.000 PM kernel[0]: CodecCommander: SendCommand: (r) <-- 0x00000000
8/1/15 4:02:59.000 PM kernel[0]: CodecCommander: --> hda codec power restored
8/1/15 4:02:59.000 PM kernel[0]: CodecCommander: --> custom command 0x02050007
8/1/15 4:02:59.000 PM kernel[0]: CodecCommander: SendCommand: (w) --> 0x22050007
8/1/15 4:02:59.000 PM kernel[0]: CodecCommander: SendCommand: (r) <-- 0x00000000
8/1/15 4:02:59.000 PM kernel[0]: CodecCommander: --> custom command 0x02047cb0
8/1/15 4:02:59.000 PM kernel[0]: CodecCommander: SendCommand: (w) --> 0x22047cb0
8/1/15 4:02:59.000 PM kernel[0]: CodecCommander: SendCommand: (r) <-- 0x00000000
8/1/15 4:02:59.000 PM kernel[0]: CodecCommander: PowerHook: setPowerState 2
8/1/15 4:02:59.000 PM kernel[0]: CodecCommander: setPowerStateExternal 2
8/1/15 4:02:59.000 PM kernel[0]: CodecCommander: --> awake(2)

I wouldn't be surprised as I told you by default Update Nodes (for EAPD capable nodes) is disabled for 1150 profile and your board, much like the one mentioned in previous issue #14 has EAPD nodes with physical amps present, rather than just ones that are faulty reported.

That did it. Also had to bump up the send delay a bit. Thanks for the help.