dgtutu 发表于 2017-4-14 11:20

重金求助!睡眠后唤醒无声!ALC255

本帖最后由 dgtutu 于 2017-4-18 21:20 编辑

睡眠唤醒无声,只能跪求远景大大!!万分感激!!按照了远景大神和R大的教程修改了codecommander.kext,无用,地址:
https://bitbucket.org/RehabMan/os-x-eapd-codec-commander
原文:
The structure of the commands is as follows:
            <key>Custom Commands</key>
            <array>
                <dict>
                  <key>Command</key>
                  <data>AhcIgw==</data>
                  <key>Comment</key>
                  <string>0x21 SET_UNSOLICITED_ENABLE 0x83</string>
                  <key>On Init</key>
                  <true/>
                  <key>On Sleep</key>
                  <false/>
                  <key>On Wake</key>
                  <true/>
                </dict>
            </array>
The actual command is specified in any of the plist editors (don't try deciphering base64 as is), be it Xcode or PlistEdit. You can opt to execute the command on cold boot, on sleep and on wake by setting respective flags.
Profiles
The easiest way to create profiles, again, is via a proper plist editing tool, opposed to notepad or similar.
You have to define a new profile, which is vendorid_deviceid, followed by profile Name
            <key>10ec_0269</key>
            <string>Realtek ALC269</string>
If there's already a profile for your codec, but you have a different variant and that config doesn't suite you, then you can use extended profile definition like this
            <key>10ec_0269_HDA_1028_04d9</key>
            <string>Realtek ALC269</string>
which uses the subvendor id of your board as well. To know your subvendor you can look in IORegistry or log in Console for the log of CC:
            CodecCommander: Version 2.4.0 starting.
            CodecCommander: ....CodecVendor Id: 0x10ec0269
            CodecCommander: ....Codec Address: 0
            CodecCommander: ....Subsystem Id: 0x102804d9
            CodecCommander: ....PCI Sub Id: 0x102804d9
Then, to set up a profile you need to create a dictionary referencing the name you just assigned.
Default profile is merged with your custom profile, so all you have to do is override the setting that you don't feel like suite your codec with default values configured.
            <key>Realtek ALC269VB</key>
            <dict>
                <key>Custom Commands</key>
                <array>
                  <dict>
                        <key>Command</key>
                        <data>AhcIgw==</data>
                        <key>Comment</key>
                        <string>0x21 SET_UNSOLICITED_ENABLE 0x83</string>
                        <key>On Init</key>
                        <true/>
                        <key>On Sleep</key>
                        <false/>
                        <key>On Wake</key>
                        <true/>
                  </dict>
                </array>
                <key>Send Delay</key>
                <integer>20</integer>
                <key>Sleep Nodes</key>
                <false/>
            </dict>
已经按照其增加我的节点,但是依旧无效,我的codec:
Codec: Intel Haswell HDMI
Address: 0
AFG Function Id: 0x1 (unsol 0)
Vendor Id: 0x80862807
Subsystem Id: 0x80860101
Revision Id: 0x100000
No Modem Function Group found
Default PCM:
    rates :
    bits :
    formats :
Default Amp-In caps: N/A
Default Amp-Out caps: N/A
State of AFG node 0x01:
Power states:D0 D3 CLKSTOP EPSS
Power: setting=D0, actual=D0, Clock-stop-OK
GPIO: io=0, o=0, i=0, unsolicited=0, wake=0
Node 0x02 wcaps 0x6611: 8-Channels Digital
Converter: stream=0, channel=0
Digital: Enabled KAE
Digital category: 0x0
IEC Coding Type: 0x0
PCM:
    rates : 32000 44100 48000 88200 96000 176400 192000
    bits : 16 20 24 32
    formats : PCM AC3
Power states:D0 D3 EPSS
Power: setting=D0, actual=D0
Node 0x03 wcaps 0x6611: 8-Channels Digital
Converter: stream=0, channel=0
Digital: Enabled KAE
Digital category: 0x0
IEC Coding Type: 0x0
PCM:
    rates : 32000 44100 48000 88200 96000 176400 192000
    bits : 16 20 24 32
    formats : PCM AC3
Power states:D0 D3 EPSS
Power: setting=D0, actual=D0
Node 0x04 wcaps 0x6611: 8-Channels Digital
Converter: stream=0, channel=0
Digital: Enabled KAE
Digital category: 0x0
IEC Coding Type: 0x0
PCM:
    rates : 32000 44100 48000 88200 96000 176400 192000
    bits : 16 20 24 32
    formats : PCM AC3
Power states:D0 D3 EPSS
Power: setting=D0, actual=D0
Node 0x05 wcaps 0x40778d: 8-Channels Digital Amp-Out CP
Control: name="IEC958 Playback Con Mask", index=0, device=0
Control: name="IEC958 Playback Pro Mask", index=0, device=0
Control: name="IEC958 Playback Default", index=0, device=0
Control: name="IEC958 Playback Switch", index=0, device=0
Control: name="ELD", index=0, device=3
Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
Amp-Out vals:
Pincap 0x0b000094: OUT Detect HBR HDMI DP
Pin Default 0x18560010: Digital Out at Int HDMI
    Conn = Digital, Color = Unknown
    DefAssociation = 0x1, Sequence = 0x0
Pin-ctls: 0x00:
Unsolicited: tag=01, enabled=1
Power states:D0 D3 EPSS
Power: setting=D0, actual=D0
Devices: 0
Connection: 0
In-driver Connection: 3
   0x02 0x03 0x04
Node 0x06 wcaps 0x40778d: 8-Channels Digital Amp-Out CP
Control: name="IEC958 Playback Con Mask", index=1, device=0
Control: name="IEC958 Playback Pro Mask", index=1, device=0
Control: name="IEC958 Playback Default", index=1, device=0
Control: name="IEC958 Playback Switch", index=1, device=0
Control: name="ELD", index=0, device=7
Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
Amp-Out vals:
Pincap 0x0b000094: OUT Detect HBR HDMI DP
Pin Default 0x18560010: Digital Out at Int HDMI
    Conn = Digital, Color = Unknown
    DefAssociation = 0x1, Sequence = 0x0
Pin-ctls: 0x00:
Unsolicited: tag=02, enabled=1
Power states:D0 D3 EPSS
Power: setting=D0, actual=D0
Devices: 0
Connection: 0
In-driver Connection: 3
   0x02 0x03 0x04
Node 0x07 wcaps 0x40778d: 8-Channels Digital Amp-Out CP
Control: name="IEC958 Playback Con Mask", index=2, device=0
Control: name="IEC958 Playback Pro Mask", index=2, device=0
Control: name="IEC958 Playback Default", index=2, device=0
Control: name="IEC958 Playback Switch", index=2, device=0
Control: name="ELD", index=0, device=8
Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
Amp-Out vals:
Pincap 0x0b000094: OUT Detect HBR HDMI DP
Pin Default 0x18560010: Digital Out at Int HDMI
    Conn = Digital, Color = Unknown
    DefAssociation = 0x1, Sequence = 0x0
Pin-ctls: 0x00:
Unsolicited: tag=03, enabled=1
Power states:D0 D3 EPSS
Power: setting=D0, actual=D0
Devices: 0
Connection: 0
In-driver Connection: 3
   0x02 0x03 0x04
Node 0x08 wcaps 0xf00000: Mono

增加到的 codecommander:

我把我的 6节点全加进去了


重启之后:
睡眠之前打开的 IO查看:


睡眠之后:


依旧无声音。
求大大带飞

dgtutu 发表于 2017-4-14 13:05

这是我的codec 和 改过的 codecommander,
我的clover 设置了 darkwake=8
不插电源唤醒就可以有声音
插电源唤醒就没有,但是插拔耳机声音又出了了

dgtutu 发表于 2017-4-14 13:50

谁来救救我呀呀呀

khs1994 发表于 2017-4-14 14:09

同255 ,10.12.4 之前睡眠之后无声,升到.4 之后问题解决了

dgtutu 发表于 2017-4-14 14:47

khs1994 发表于 2017-4-14 14:09
同255 ,10.12.4 之前睡眠之后无声,升到.4 之后问题解决了

升级后解决???

ISExcalibur 发表于 2017-4-14 20:35

晕,codec都提取错了当然没用,你提取的是HDMI音频的,重新去提取alc的。。。

dgtutu 发表于 2017-4-15 20:28

ISExcalibur 发表于 2017-4-14 20:35 https://www.pcbeta.com/static/image/common/back.gif
晕,codec都提取错了当然没用,你提取的是HDMI音频的,重新去提取alc的。。。

我提取到啦,我自己用 idsdt 获得 legacy重新做了个applealc
但是还是睡眠唤醒无声,必须要插拔,cc的节点加了很多次也没用
也不知道是什么原因
这是新的 codec
Codec: Realtek ALC3234
Address: 0
AFG Function Id: 0x1 (unsol 1)
Vendor Id: 0x10ec0255
Subsystem Id: 0x10280680
Revision Id: 0x100002
No Modem Function Group found
Default PCM:
    rates : 44100 48000 96000 192000
    bits : 16 20 24
    formats : PCM
Default Amp-In caps: N/A
Default Amp-Out caps: N/A
State of AFG node 0x01:
Power states:D0 D1 D2 D3 D3cold CLKSTOP EPSS
Power: setting=D0, actual=D0
GPIO: io=3, o=0, i=0, unsolicited=1, wake=0
IO: enable=0, dir=0, wake=0, sticky=0, data=0, unsol=0
IO: enable=0, dir=0, wake=0, sticky=0, data=0, unsol=0
IO: enable=0, dir=0, wake=0, sticky=0, data=0, unsol=0
Node 0x02 wcaps 0x41d: Stereo Amp-Out
Control: name="Front Playback Volume", index=0, device=0
    ControlAmp: chs=3, dir=Out, idx=0, ofs=0
Device: name="ALC3234 Analog", type="Audio", device=0
Amp-Out caps: ofs=0x57, nsteps=0x57, stepsize=0x02, mute=0
Amp-Out vals:
Converter: stream=5, channel=0
PCM:
    rates : 44100 48000
    bits : 16 20 24
    formats : PCM
Power states:D0 D1 D2 D3 EPSS
Power: setting=D0, actual=D0
Node 0x03 wcaps 0x41d: Stereo Amp-Out
Control: name="Bass Speaker Playback Volume", index=0, device=0
    ControlAmp: chs=3, dir=Out, idx=0, ofs=0
Amp-Out caps: ofs=0x57, nsteps=0x57, stepsize=0x02, mute=0
Amp-Out vals:
Converter: stream=5, channel=0
PCM:
    rates : 44100 48000
    bits : 16 20 24
    formats : PCM
Power states:D0 D1 D2 D3 EPSS
Power: setting=D0, actual=D0
Node 0x04 wcaps 0xf00000: Mono
Node 0x05 wcaps 0xf00000: Mono
Node 0x06 wcaps 0x611: Stereo Digital
Converter: stream=0, channel=0
Digital:
Digital category: 0x0
IEC Coding Type: 0x0
PCM:
    rates : 44100 48000 88200 96000 192000
    bits : 16 20 24
    formats : PCM
Power states:D0 D1 D2 D3 EPSS
Power: setting=D3, actual=D3
Node 0x07 wcaps 0xf00000: Mono
Node 0x08 wcaps 0x10051b: Stereo Amp-In
Control: name="Capture Volume", index=0, device=0
    ControlAmp: chs=3, dir=In, idx=0, ofs=0
Control: name="Capture Switch", index=0, device=0
    ControlAmp: chs=3, dir=In, idx=0, ofs=0
Device: name="ALC3234 Analog", type="Audio", device=0
Amp-In caps: ofs=0x17, nsteps=0x3f, stepsize=0x02, mute=1
Amp-In vals:
Converter: stream=1, channel=0
SDI-Select: 0
PCM:
    rates : 44100 48000 96000 192000
    bits : 16 20 24
    formats : PCM
Power states:D0 D1 D2 D3 EPSS
Power: setting=D0, actual=D0
Connection: 1
   0x23
Node 0x09 wcaps 0x10051b: Stereo Amp-In
Amp-In caps: ofs=0x17, nsteps=0x3f, stepsize=0x02, mute=1
Amp-In vals:
Converter: stream=0, channel=0
SDI-Select: 0
PCM:
    rates : 44100 48000 96000 192000
    bits : 16 20 24
    formats : PCM
Power states:D0 D1 D2 D3 EPSS
Power: setting=D3, actual=D3
Connection: 1
   0x22
Node 0x0a wcaps 0xf00000: Mono
Node 0x0b wcaps 0x20010b: Stereo Amp-In
Control: name="Headset Mic Playback Volume", index=0, device=0
    ControlAmp: chs=3, dir=In, idx=1, ofs=0
Control: name="Headset Mic Playback Switch", index=0, device=0
    ControlAmp: chs=3, dir=In, idx=1, ofs=0
Control: name="Headphone Mic Playback Volume", index=0, device=0
    ControlAmp: chs=3, dir=In, idx=2, ofs=0
Control: name="Headphone Mic Playback Switch", index=0, device=0
    ControlAmp: chs=3, dir=In, idx=2, ofs=0
Control: name="Beep Playback Volume", index=0, device=0
    ControlAmp: chs=3, dir=In, idx=4, ofs=0
Control: name="Beep Playback Switch", index=0, device=0
    ControlAmp: chs=3, dir=In, idx=4, ofs=0
Amp-In caps: ofs=0x17, nsteps=0x1f, stepsize=0x05, mute=1
Amp-In vals:
Connection: 5
   0x18 0x19 0x1a 0x1b 0x1d
Node 0x0c wcaps 0x20010b: Stereo Amp-In
Amp-In caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
Amp-In vals:
Connection: 2
   0x02 0x0b
Node 0x0d wcaps 0x20010b: Stereo Amp-In
Amp-In caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
Amp-In vals:
Connection: 2
   0x03 0x0b
Node 0x0e wcaps 0xf00000: Mono
Node 0x0f wcaps 0x20010a: Mono Amp-In
Amp-In caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
Amp-In vals:
Connection: 1
   0x0d
Node 0x10 wcaps 0xf00000: Mono
Node 0x11 wcaps 0xf00000: Mono
Node 0x12 wcaps 0x40040b: Stereo Amp-In
Control: name="Internal Mic Boost Volume", index=0, device=0
    ControlAmp: chs=3, dir=In, idx=0, ofs=0
Amp-In caps: ofs=0x00, nsteps=0x03, stepsize=0x27, mute=0
Amp-In vals:
Pincap 0x00000020: IN
Pin Default 0x90a60160: Mic at Int N/A
    Conn = Digital, Color = Unknown
    DefAssociation = 0x6, Sequence = 0x0
    Misc = NO_PRESENCE
Pin-ctls: 0x20: IN
Power states:D0 D1 D2 D3 EPSS
Power: setting=D0, actual=D0
Node 0x13 wcaps 0xf00000: Mono
Node 0x14 wcaps 0x40058d: Stereo Amp-Out
Control: name="Speaker Playback Switch", index=0, device=0
    ControlAmp: chs=3, dir=Out, idx=0, ofs=0
Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
Amp-Out vals:
Pincap 0x00010014: OUT EAPD Detect
EAPD 0x2: EAPD
Pin Default 0x90170120: Speaker at Int N/A
    Conn = Analog, Color = Unknown
    DefAssociation = 0x2, Sequence = 0x0
    Misc = NO_PRESENCE
Pin-ctls: 0x40: OUT
Unsolicited: tag=00, enabled=0
Power states:D0 D1 D2 D3 EPSS
Power: setting=D0, actual=D0
Connection: 1
   0x0c
Node 0x15 wcaps 0xf00000: Mono
Node 0x16 wcaps 0xf00000: Mono
Node 0x17 wcaps 0x40050c: Mono Amp-Out
Control: name="Bass Speaker Playback Switch", index=0, device=0
    ControlAmp: chs=1, dir=Out, idx=0, ofs=0
Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
Amp-Out vals:
Pincap 0x00000010: OUT
Pin Default 0x90170140: Speaker at Int N/A
    Conn = Analog, Color = Unknown
    DefAssociation = 0x4, Sequence = 0x0
    Misc = NO_PRESENCE
Pin-ctls: 0x40: OUT
Power states:D0 D1 D2 D3 EPSS
Power: setting=D0, actual=D0
Connection: 1
   0x0f
Node 0x18 wcaps 0x40048b: Stereo Amp-In
Amp-In caps: ofs=0x00, nsteps=0x03, stepsize=0x27, mute=0
Amp-In vals:
Pincap 0x00003724: IN Detect
    Vref caps: HIZ 50 GRD 80 100
Pin Default 0x40000000: Line Out at Ext N/A
    Conn = Unknown, Color = Unknown
    DefAssociation = 0x0, Sequence = 0x0
Pin-ctls: 0x20: IN VREF_HIZ
Unsolicited: tag=00, enabled=0
Power states:D0 D1 D2 D3 EPSS
Power: setting=D3, actual=D3
Node 0x19 wcaps 0x40048b: Stereo Amp-In
Control: name="Headset Mic Boost Volume", index=0, device=0
    ControlAmp: chs=3, dir=In, idx=0, ofs=0
Amp-In caps: ofs=0x00, nsteps=0x03, stepsize=0x27, mute=0
Amp-In vals:
Pincap 0x00003724: IN Detect
    Vref caps: HIZ 50 GRD 80 100
Pin Default 0x411111f0: Speaker at Ext Rear
    Conn = 1/8, Color = Black
    DefAssociation = 0xf, Sequence = 0x0
    Misc = NO_PRESENCE
Pin-ctls: 0x24: IN VREF_80
Unsolicited: tag=00, enabled=0
Power states:D0 D1 D2 D3 EPSS
Power: setting=D0, actual=D0
Node 0x1a wcaps 0x40048b: Stereo Amp-In
Control: name="Headphone Mic Boost Volume", index=0, device=0
    ControlAmp: chs=3, dir=In, idx=0, ofs=0
Amp-In caps: ofs=0x00, nsteps=0x03, stepsize=0x27, mute=0
Amp-In vals:
Pincap 0x00003724: IN Detect
    Vref caps: HIZ 50 GRD 80 100
Pin Default 0x411111f0: Speaker at Ext Rear
    Conn = 1/8, Color = Black
    DefAssociation = 0xf, Sequence = 0x0
    Misc = NO_PRESENCE
Pin-ctls: 0x20: IN VREF_HIZ
Unsolicited: tag=00, enabled=0
Power states:D0 D1 D2 D3 EPSS
Power: setting=D0, actual=D0
Node 0x1b wcaps 0x40058f: Stere

dgtutu 发表于 2017-4-15 21:09

本帖最后由 dgtutu 于 2017-4-17 21:38 编辑

这层楼继续留下备用

dgtutu 发表于 2017-4-16 00:58

ISExcalibur 发表于 2017-4-14 20:35 https://www.pcbeta.com/static/image/common/back.gif
晕,codec都提取错了当然没用,你提取的是HDMI音频的,重新去提取alc的。。。

很奇怪的是,插着电源不行,但是不插电源就可以完美

dgtutu 发表于 2017-4-16 00:59

本帖最后由 dgtutu 于 2017-4-17 21:38 编辑

这层楼还是留下备用

dgtutu 发表于 2017-4-16 00:59

本帖最后由 dgtutu 于 2017-4-17 21:37 编辑

这层楼留下备用

dgtutu 发表于 2017-4-16 10:44

ISExcalibur 发表于 2017-4-14 20:35 https://www.pcbeta.com/static/image/common/back.gif
晕,codec都提取错了当然没用,你提取的是HDMI音频的,重新去提取alc的。。。

重新提取的codec

qq787152848 发表于 2017-4-17 21:50

dgtutu 发表于 2017-4-16 10:44 https://www.pcbeta.com/static/image/common/back.gif
重新提取的codec

试试看可以不

dgtutu 发表于 2017-4-17 22:40

qq787152848 发表于 2017-4-17 21:50 https://www.pcbeta.com/static/image/common/back.gif
试试看可以不

不行呢,不过还是谢谢啦

dgtutu 发表于 2017-4-18 12:50

跪着求高手

574249312 发表于 2017-4-18 12:59

看看EAPDFix是否有问题我我的ALC225开始时就是参照255整的

dgtutu 发表于 2017-4-18 19:12

574249312 发表于 2017-4-18 12:59 https://www.pcbeta.com/static/image/common/back.gif
看看EAPDFix是否有问题我我的ALC225开始时就是参照255整的

这是是啥。。。EAPDFIx??

qq787152848 发表于 2017-4-18 20:17

dgtutu 发表于 2017-4-17 22:40 https://www.pcbeta.com/static/image/common/back.gif
不行呢,不过还是谢谢啦

要加darkwake=8了忘了说

a7299 发表于 2017-4-18 20:45

直接买个usb 外置声卡,从此不用折腾声卡驱动了啊。。。或者买个usb输出的音响,比如类似B&W MM1这种usb输出的音响,或者蓝牙连接的音响都行,,一劳永逸,随便升级都不怕{:5_262:}

dgtutu 发表于 2017-4-18 21:20

qq787152848 发表于 2017-4-18 20:17 https://www.pcbeta.com/static/image/common/back.gif
要加darkwake=8了忘了说

完美了!!!!!!!!!!!!!!!美滋滋,谢谢你!!!!!
页: [1] 2
查看完整版本: 重金求助!睡眠后唤醒无声!ALC255