You first need to determine which widget nodes need modification. You use CodecCommanderClient (installed as hda-verb with 'make install') to determine what needs to change. After you determine the widget node that needs to be set after sleep, you can make the necessary Info.plist changes.
I added some scripts to the repo today based on stuff that the-darkvoid provided. They are simple scripts that run hda-verb for all nodes...
Check out the repo:
https://github.com/RehabMan/EAPD-Codec-Commander
Here's an overview of what I did:
- installed and got VoodooHDA to work (built from latest sources, fixed bugs, etc.)
- noticed that no headphone problem with VoodooHDA
- used widget_dump.sh to look at the widget values
- set everything back for patched AppleHDA
- verified headphones still a problem
- used widget_dump.sh to look at widget values
- compared the two dumps (VoodooHDA vs. AppleHDA dump)
- started poking around with hda-verb to set the pini widgets control
- for example, I noticed that pin widget for node 0x19 was 0 with AppleHDA, but 0x25 with VoodooHDA, so with AppleHDA (headphone problematic):
Code:
hda-verb 0x19 SET_PIN_WIDGET_CONTROL 0x25
- tested headphones... and at that point they were working
And all that led to what is now in the checked in Info.plist for CodecCommander, Realtek ALC283 profile.
I'm not sure how you'd stumble into the right setup without having a working configuration (in my case, VoodooHDA) that you can read the HDA configuration from. It would take a lot of trial/error (or reading the HDA spec) to figure out that node 0x19 needs to be 0x25.
Maybe there is a way to read HDA pin widget control (or other settings) in Linux?
Note: I did a fair bit of reading of the Intel HDA spec.... That way I knew what an HDA verb was, what a node was, etc.
sorry to keep bumping but this is the only thing stopping e from a perfecto hack
Ok @rehabman Im trying to go along with the method you posted before, since the pin values I have after changing my codec Id doesnt seem to work at all...I also want to try this to fix the no audio after sleep issue...but don't understand how to get the script to run....Never done anytype of thing like this ever.....
from what I have read.....you drag the script into the terminal nd make sure the script is in the same folder as hda-verb....thn drag script to terminal but i just get this...
Pros-MacBook-Air:desktop protoolsfor96$ /Users/protoolsfor96/Desktop/widget_dump.sh
/Users/protoolsfor96/Desktop/widget_dump.sh: line 1: +#!/bin/bash: No such file or directory
/Users/protoolsfor96/Desktop/widget_dump.sh: line 2: +: command not found
/Users/protoolsfor96/Desktop/widget_dump.sh: line 3: +#: command not found
/Users/protoolsfor96/Desktop/widget_dump.sh: line 4: +#: command not found
/Users/protoolsfor96/Desktop/widget_dump.sh: line 5: +#: command not found
/Users/protoolsfor96/Desktop/widget_dump.sh: line 6: +#: command not found
/Users/protoolsfor96/Desktop/widget_dump.sh: line 7: +#: command not found
/Users/protoolsfor96/Desktop/widget_dump.sh: line 8: +#: command not found
/Users/protoolsfor96/Desktop/widget_dump.sh: line 9: +#: command not found
/Users/protoolsfor96/Desktop/widget_dump.sh: line 10: +#: command not found
/Users/protoolsfor96/Desktop/widget_dump.sh: line 11: +#: command not found
/Users/protoolsfor96/Desktop/widget_dump.sh: line 12: +: command not found
/Users/protoolsfor96/Desktop/widget_dump.sh: line 13: +#: command not found
/Users/protoolsfor96/Desktop/widget_dump.sh: line 14: +#: command not found
/Users/protoolsfor96/Desktop/widget_dump.sh: line 15: +#: command not found
/Users/protoolsfor96/Desktop/widget_dump.sh: line 16: +: command not found
/Users/protoolsfor96/Desktop/widget_dump.sh: line 17: +function: command not found
/Users/protoolsfor96/Desktop/widget_dump.sh: line 18: +{: command not found
/Users/protoolsfor96/Desktop/widget_dump.sh: line 19: hda-verb: command not found
/Users/protoolsfor96/Desktop/widget_dump.sh: line 19: +: command not found
/Users/protoolsfor96/Desktop/widget_dump.sh: line 20: +}: command not found
/Users/protoolsfor96/Desktop/widget_dump.sh: line 21: +: command not found
/Users/protoolsfor96/Desktop/widget_dump.sh: line 22: +function: command not found
/Users/protoolsfor96/Desktop/widget_dump.sh: line 23: +{: command not found
/Users/protoolsfor96/Desktop/widget_dump.sh: line 24: +: command not found
/Users/protoolsfor96/Desktop/widget_dump.sh: line 25: +: command not found
/Users/protoolsfor96/Desktop/widget_dump.sh: line 26: +: command not found
/Users/protoolsfor96/Desktop/widget_dump.sh: line 27: +: command not found
/Users/protoolsfor96/Desktop/widget_dump.sh: line 28: +: command not found
/Users/protoolsfor96/Desktop/widget_dump.sh: line 29: +: command not found
/Users/protoolsfor96/Desktop/widget_dump.sh: line 30: +: command not found
/Users/protoolsfor96/Desktop/widget_dump.sh: line 31: +: command not found
/Users/protoolsfor96/Desktop/widget_dump.sh: line 32: +: command not found
/Users/protoolsfor96/Desktop/widget_dump.sh: line 33: +: command not found
/Users/protoolsfor96/Desktop/widget_dump.sh: line 34: +: command not found
/Users/protoolsfor96/Desktop/widget_dump.sh: line 35: +: command not found
/Users/protoolsfor96/Desktop/widget_dump.sh: line 36: +: command not found
/Users/protoolsfor96/Desktop/widget_dump.sh: line 37: +: command not found
/Users/protoolsfor96/Desktop/widget_dump.sh: line 38: +: command not found
/Users/protoolsfor96/Desktop/widget_dump.sh: line 39: +: command not found
/Users/protoolsfor96/Desktop/widget_dump.sh: line 40: +: command not found
/Users/protoolsfor96/Desktop/widget_dump.sh: line 41: +: command not found
/Users/protoolsfor96/Desktop/widget_dump.sh: line 42: +: command not found
/Users/protoolsfor96/Desktop/widget_dump.sh: line 43: +: command not found
/Users/protoolsfor96/Desktop/widget_dump.sh: line 44: +: command not found
/Users/protoolsfor96/Desktop/widget_dump.sh: line 45: +: command not found
/Users/protoolsfor96/Desktop/widget_dump.sh: line 46: +: command not found
/Users/protoolsfor96/Desktop/widget_dump.sh: line 47: +: command not found
/Users/protoolsfor96/Desktop/widget_dump.sh: line 48: +: command not found
/Users/protoolsfor96/Desktop/widget_dump.sh: line 49: +: command not found
/Users/protoolsfor96/Desktop/widget_dump.sh: line 50: +: command not found
/Users/protoolsfor96/Desktop/widget_dump.sh: line 51: +: command not found
/Users/protoolsfor96/Desktop/widget_dump.sh: line 52: +: command not found
/Users/protoolsfor96/Desktop/widget_dump.sh: line 53: +: command not found
/Users/protoolsfor96/Desktop/widget_dump.sh: line 54: +: command not found
/Users/protoolsfor96/Desktop/widget_dump.sh: line 55: +: command not found
/Users/protoolsfor96/Desktop/widget_dump.sh: line 56: +: command not found
/Users/protoolsfor96/Desktop/widget_dump.sh: line 57: +: command not found
/Users/protoolsfor96/Desktop/widget_dump.sh: line 58: +: command not found
/Users/protoolsfor96/Desktop/widget_dump.sh: line 59: +}: command not found
/Users/protoolsfor96/Desktop/widget_dump.sh: line 60: +: command not found
/Users/protoolsfor96/Desktop/widget_dump.sh: line 61: +#echo: command not found
/Users/protoolsfor96/Desktop/widget_dump.sh: line 62: +#dump_all: command not found
/Users/protoolsfor96/Desktop/widget_dump.sh: line 63: +: command not found
/Users/protoolsfor96/Desktop/widget_dump.sh: line 64: +#echo: command not found
/Users/protoolsfor96/Desktop/widget_dump.sh: line 65: +#dump_all: command not found
/Users/protoolsfor96/Desktop/widget_dump.sh: line 66: +: command not found
/Users/protoolsfor96/Desktop/widget_dump.sh: line 67: +#echo: command not found
/Users/protoolsfor96/Desktop/widget_dump.sh: line 68: +#dump_all: command not found
/Users/protoolsfor96/Desktop/widget_dump.sh: line 69: +: command not found
/Users/protoolsfor96/Desktop/widget_dump.sh: line 70: +echo: command not found
/Users/protoolsfor96/Desktop/widget_dump.sh: line 71: +dump_all: command not found
/Users/protoolsfor96/Desktop/widget_dump.sh: line 72: +: command not found
/Users/protoolsfor96/Desktop/widget_dump.sh: line 73: +#echo: command not found
/Users/protoolsfor96/Desktop/widget_dump.sh: line 74: +#dump_all: command not found
/Users/protoolsfor96/Desktop/widget_dump.sh: line 75: +: command not found
/Users/protoolsfor96/Desktop/widget_dump.sh: line 76: +#echo: command not found
/Users/protoolsfor96/Desktop/widget_dump.sh: line 77: +#dump_all: command not found
/Users/protoolsfor96/Desktop/widget_dump.sh: line 78: +: command not found
/Users/protoolsfor96/Desktop/widget_dump.sh: line 79: +#echo: command not found
/Users/protoolsfor96/Desktop/widget_dump.sh: line 80: +#dump_all: command not found
/Users/protoolsfor96/Desktop/widget_dump.sh: line 81: +: command not found
/Users/protoolsfor96/Desktop/widget_dump.sh: line 82: +#echo: command not found
/Users/protoolsfor96/Desktop/widget_dump.sh: line 83: +#dump_all: command not found
/Users/protoolsfor96/Desktop/widget_dump.sh: line 84: +: command not found
/Users/protoolsfor96/Desktop/widget_dump.sh: line 85: +#echo: command not found
/Users/protoolsfor96/Desktop/widget_dump.sh: line 86: +#dump_all: command not found
/Users/protoolsfor96/Desktop/widget_dump.sh: line 87: +: command not found
/Users/protoolsfor96/Desktop/widget_dump.sh: line 88: +#echo: command not found
/Users/protoolsfor96/Desktop/widget_dump.sh: line 89: +#dump_all: command not found
/Users/protoolsfor96/Desktop/widget_dump.sh: line 90: +: command not found
/Users/protoolsfor96/Desktop/widget_dump.sh: line 91: +#echo: command not found
/Users/protoolsfor96/Desktop/widget_dump.sh: line 92: +#dump_all: command not found
/Users/protoolsfor96/Desktop/widget_dump.sh: line 93: +: command not found
/Users/protoolsfor96/Desktop/widget_dump.sh: line 94: +#echo: command not found
/Users/protoolsfor96/Desktop/widget_dump.sh: line 95: +#dump_all: command not found
Pros-MacBook-Air:desktop protoolsfor96$
SOMEONE HELP PLEASE....ITS DRIVING ME NUTS!