Skip to content
This repository has been archived by the owner on Apr 9, 2021. It is now read-only.

Commit

Permalink
Fix headphones
Browse files Browse the repository at this point in the history
  • Loading branch information
Wadim authored and Wadim committed Oct 15, 2019
1 parent 6196e42 commit 738818d
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 7 deletions.
4 changes: 2 additions & 2 deletions Clover/example.config.plist
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@
</dict>
<key>Boot</key>
<dict>
<key>#DefaultVolume</key>
<key>DefaultVolume</key>
<string>LastBootedVolume</string>
<key>Arguments</key>
<string>dart=0 nv_disable=1 -disablegfxfirmware -cdfon -igfxnohdmi lilucpu=8</string>
Expand Down Expand Up @@ -377,7 +377,7 @@
<key>#hda-gfx</key>
<string>onboard-1</string>
<key>layout-id</key>
<integer>13</integer>
<integer>21</integer>
<key>#no-controller-patch</key>
<integer>1</integer>
</dict>
Expand Down
14 changes: 10 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,21 +6,26 @@ OS: macOS Catalina 10.15.0

CPU: i5-7300HQ (Kaby Lake)
iGPU: Intel HD Graphics 630, 64MB video memory
dGPU: Nvidia GTX 1060 Max-Q - disabled
dGPU: Nvidia GTX 1060 Max-Q (disabled)
Screen: 15" FHD
Disk: M2 SATA SSD Crucial MX500
WiFi: Lenovo Broadcomm BCM94352Z
Bluetooth: none, hardware broken
Bluetooth: none, hardware broken (not working under Windows as well)
RAM: 8GB DDR4
Audio: Realtek ALC3246

## Not working
* Headphones jack
* Combo jack microphone (headphones and built-in mic work)
* Sensors (temperature etc.)
* Bluetooth? (may work, can't test)
* SD reader? (rather won't didn't check)
* Fingerprint scanner (3rd party don't work with Apple)

## Known issues
* After unplugging headphones loudspeakers turn back on only after ~25 seconds
* Waking from sleep sometimes causes Sleep Wake Failure panic (rarely, hard to reproduce)
* Touchpad may not work in recovery mode (acidanthera's VoodooPS2controller does not work with my touchpad and VoodooI2C HID won't work without IOGraphicsFamily, use RehabMan's VoodooPS2controller instead)

## Bootloader
[Clover v2.5k_r5093](https://github.com/Dids/clover-builder/releases)
Standard install. Drivers used:
Expand Down Expand Up @@ -65,4 +70,5 @@ sudo mkdir /var/vm/sleepimage
sudo pmset -a standby 0
sudo pmset -a autopoweroff 0
sudo pmset -a powernap 0
```
```
In Energy Saver disable Power Nap, optionally disable Put hard disks to sleep, Wake for network access.
6 changes: 5 additions & 1 deletion worklog.md
Original file line number Diff line number Diff line change
Expand Up @@ -136,4 +136,8 @@ After some poking around and reading I have discovered two things: 1) this lapto
I have noticed that with current setting of kb/touchpad kexts (acidanthera's VoodooPS2controller and VoodooI2C+HID in C/k/O) touchpad does not work in Recovery (and so probably in USB installer), so to fix it I suppose I might replace VoodooPS2 to RehabMan's, however currently I don't need it anad would rather have a newer kext handle my keyboard on normal boot (especially since RehabMan's intemittently fails to work at all for a few boots).

## 14-10-2019
After some random issues I've decided to go back to spoofing Skylake Laptop card, olny this time without patching framebuffer size. I'll see how it goes.
After some random issues I've decided to go back to spoofing Skylake Laptop card, olny this time without patching framebuffer size. I'll see how it goes.

Headphones: I'm testing ALC3246 layouts one by one (from https://github.com/acidanthera/applealc/wiki/supported-codecs). 5, 11, 13, 14: Only speakers work. 21 - headphones work as well, cleanly. Line-in microphone gets detected, but only picks fuzz. 22, 28 don't at all. 56 only speakers work. 57 speakers don't, headphones do, line in detected but only fuzz. 66 both speakers and headphones do work, but mic doesn't, also internal mic stops working. 97 speakers don't work, plugging headphones caused audio to crash (crossed sign).

It turns out though that with layout 21 after unplugging headphones speakers start to work after quite some time, about 25 seconds. It's still the best I have for now. I have also discovered that clamshell mode works. It also turns out, that going back to SKL does not really solve Sleep Wake Failure panics. It is however hard to reproduce this issue so I might just stick with it.

0 comments on commit 738818d

Please sign in to comment.