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

Commit

Permalink
Use KBL laptop id. Go back to audio layout 13
Browse files Browse the repository at this point in the history
  • Loading branch information
Wadim authored and Wadim committed Oct 17, 2019
1 parent 81b0090 commit 3292cc5
Show file tree
Hide file tree
Showing 3 changed files with 90 additions and 8 deletions.
76 changes: 70 additions & 6 deletions Clover/example.config.plist
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Comment</key>
<string>Dell Inspiron 15 7577 (GTX1060 6GB, FHD)</string>
<key>ACPI</key>
<dict>
<key>AutoMerge</key>
Expand Down Expand Up @@ -236,16 +238,14 @@
<key>DefaultVolume</key>
<string>LastBootedVolume</string>
<key>Arguments</key>
<string>dart=0 nv_disable=1 -disablegfxfirmware -cdfon -igfxnohdmi lilucpu=9</string>
<string>dart=0 nv_disable=1 -disablegfxfirmware -cdfon -igfxnohdmi lilucpu=9 alcid=13</string>
<key>NeverHibernate</key>
<true/>
<key>Secure</key>
<false/>
<key>Timeout</key>
<integer>5</integer>
</dict>
<key>Comment</key>
<string>Dell Inspiron 15 7577 (GTX1060 6GB, FHD)</string>
<key>Devices</key>
<dict>
<key>AddProperties</key>
Expand Down Expand Up @@ -366,17 +366,81 @@
<key>framebuffer-patch-enable</key>
<integer>1</integer>
<key>AAPL,ig-platform-id</key>
<data>AAAWWQ==</data>
<data>AAAbWQ==</data>
<key>device-id</key>
<data>FlkAAA==</data>
<key>hda-gfx</key>
<string>onboard-1</string>
<key>#AAPL00,override-no-connect</key>
<data></data>
<key>#AAPL00,override-no-edid</key>
<data></data>
<key>#framebuffer-stolenmem</key>
<data>AAAwAQ==</data>
<key>#framebuffer-fbmem</key>
<data>AACQAA==</data>
<key>## @0 LVDS-&gt;DP</key>
<string></string>
<key>#framebuffer-con0-enable</key>
<integer>1</integer>
<key>#framebuffer-con0-type</key>
<data>AAQAAA==</data>
<key>## @1 HDMI</key>
<string></string>
<key>#framebuffer-con1-enable</key>
<integer>1</integer>
<key>#framebuffer-con1-type</key>
<data>AAgAAA==</data>
<key>#framebuffer-con1-flags</key>
<data>hwEAAA==</data>
<key>#framebuffer-con1-pipe</key>
<data>EgAAAA==</data>
<key>## @2 HDMI</key>
<string></string>
<key>#framebuffer-con2-enable</key>
<integer>1</integer>
<key>#framebuffer-con2-type</key>
<data>AAgAAA==</data>
<key>#framebuffer-con2-flags</key>
<data>hwEAAA==</data>
<key>#framebuffer-con2-pipe</key>
<data>EgAAAA==</data>
<key>## @3 HDMI</key>
<string></string>
<key>#framebuffer-con3-enable</key>
<integer>1</integer>
<key>#framebuffer-con3-type</key>
<data>AAgAAA==</data>
<key>#framebuffer-con3-flags</key>
<data>hwEAAA==</data>
<key>#framebuffer-con3-pipe</key>
<data>EgAAAA==</data>
<key>#1 0306-&gt;0105</key>
<string>0x591b0000, 0105 instead of 0306, HDMI</string>
<key>framebuffer-con1-enable</key>
<integer>1</integer>
<key>framebuffer-con1-alldata</key>
<data>AQUKAAAIAACHAQAAAgQKAAAIAACHAQAA/wAAAAEAAAAgAAAA</data>
<key>#2 0204-&gt;0105</key>
<string>0x591b0000, 0105 instead of 0204, HDMI</string>
<key>#2 framebuffer-con1-enable</key>
<integer>1</integer>
<key>#2 framebuffer-con1-alldata</key>
<data>AQUKAAAIAACHAQAAAwYKAAAEAACHAQAA/wAAAAEAAAAgAAAA</data>
<key>#3 no external</key>
<string>0x591b0000, eliminate all external ports (0204 and 0306)</string>
<key>#3 framebuffer-con1-enable</key>
<integer>1</integer>
<key>#3 framebuffer-con1-alldata</key>
<data>/wAAAAEAAAAgAAAA/wAAAAEAAAAgAAAA/wAAAAEAAAAgAAAA</data>
</dict>
<key>PciRoot(0)/Pci(0x1f,3)</key>
<dict>
<key>#PinConfigurations</key>
<data></data>
<key>#hda-gfx</key>
<string>onboard-1</string>
<key>layout-id</key>
<key>#layout-id</key>
<integer>21</integer>
<key>#no-controller-patch</key>
<integer>1</integer>
Expand Down Expand Up @@ -463,7 +527,7 @@
<false/>
</dict>
<key>#ig-platform-id</key>
<string>0x59160000</string>
<string>0x591b0000</string>
<key>Inject</key>
<dict>
<key>ATI</key>
Expand Down
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ RAM: 8GB DDR4
Audio: Realtek ALC3246

## Not working
* Combo jack microphone (headphones and built-in mic work)
* Combo jack microphone and headphones (built-in mic works, headphones technically do with layout 21 but after unplugging speakers don't get back up)
* Sensors (temperature etc.)
* Bluetooth? (may work, can't test)
* SD reader? (rather won't didn't check)
Expand All @@ -24,6 +24,7 @@ Audio: Realtek ALC3246
## 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)
* WindowServer crashes sometimes when unplugging monitor (rarely as wll)
* 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
Expand Down
19 changes: 18 additions & 1 deletion worklog.md
Original file line number Diff line number Diff line change
Expand Up @@ -143,4 +143,21 @@ Headphones: I'm testing ALC3246 layouts one by one (from https://github.com/acid
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.

## 16-10-2019
Unplugging external monitor sometimes causes WindowServer to crash, so going back to Kaby Lake Desktop graphics id (which was working good on mojave). Will try to patch stuff according to this https://www.tonymacx86.com/threads/guide-intel-igpu-hdmi-dp-audio-all-sandy-bridge-kaby-lake-and-likely-later.189495/
Unplugging external monitor sometimes causes WindowServer to crash, so going back to Kaby Lake Desktop graphics id (which was working good on mojave). Will try to patch stuff according to this https://www.tonymacx86.com/threads/guide-intel-igpu-hdmi-dp-audio-all-sandy-bridge-kaby-lake-and-likely-later.189495/

So I have restored default RehabMan's patches to iGPU, then disabled 32MB memory patching. After some poking it turned out that patching 0105 instead of 0306 allows me to use 0x591b0000 and work with external monitor, no panics (don't know about WindowServer crashes or Sleep Wake Failures yet). Audio over it works as well. Sadly, with layout 21 unplugging headphones did not turn speakers back on anymore, so I'll do testing again:
```
ID Speakers Headphones Sp. restore HDMI Audio Built-in Mic Headphone Mic
5 ok no ok ok no no
11 ok no ok ok ok no
13 ok no ok ok ok no
14 ok no ok ok ok no
21 ok ok no ok ok no
22 no no ok ok no no
28 ok crackle ok ok no no
56 ok no ok ok ok no
57 no ok no ok ok no
66 ok ok delayed ok no no
97 no no no no no no
```
With that tested, I'm going back to 13 because I'd rather not need to reboot every so often to get my speakers back. I am setting layout id via boot arguments now in case I really need heacphones.

0 comments on commit 3292cc5

Please sign in to comment.