- Joined
- Apr 6, 2014
- Messages
- 3
- CPU
- 4790k
- Graphics
- GTX780
- Mac
- Mobile Phone
I modified the script so it accepts my system. This is what I changed and now I have working audio:
I don't know if the weird HDEF is worth adding to the script. There are a decent chunk of people that have the same set up as me on unRaid.
Code:
# verify ioreg/HDEF
ioreg -rw 0 -p IODeviceTree -n HDEF > /tmp/HDEF.txt
if [[ $(cat /tmp/HDEF.txt | grep -c "HDEF@4") != 0 ]]; then
gLayoutidioreg=01000000
gLayoutidhex="0x${gLayoutidioreg:6:2}${gLayoutidioreg:4:2}${gLayoutidioreg:2:2}${gLayoutidioreg:0:2}"
gAudioid=$((gLayoutidhex))
sudo rm -R /tmp/HDEF.txt
else
echo "Error: no IOReg/HDEF; BIOS/audio/disabled or ACPI problem"
echo "No system files were changed"
echo "To save a Copy of this Terminal session: Terminal/Shell/Export Text As ..."
sudo rm -R /tmp/HDEF.txt
exit 1
fi
I don't know if the weird HDEF is worth adding to the script. There are a decent chunk of people that have the same set up as me on unRaid.