Closed Qonfused closed 2 years ago
https://github.com/Qonfused/ASUS-ZenBook-Duo-14-UX481-Hackintosh/pull/1/commits/cc3eec49a9b9e41d38d67ee11b0e1e17ec552998 produces a black screen (still backlit because of forced 'ready' status from boot arg igfxonln=1
).
It seems mapping connector 1 to any port beyond 01
(e.g. 02
, 03
, 4
) will cause a black screen for the screenpad-plus instead of the default static behavior:
This seems to confirm the screenpad plus's location at connector 1 port 01
, which is verified by the screenpad-plus's location at PCI0@0/AppleACPIPCI/IGPU@2/AppleIntelFramebuffer@1
in IORegistryExplorer:
It also shows up as an external display in macOS:
Adding to my previous note https://github.com/Qonfused/ASUS-ZenBook-Duo-14-UX481-Hackintosh/pull/1#issuecomment-1207287705, I noticed similar behavior for the primary display when using busID 04
for connector 1, but only when disabling connector2 and using the displayport type:
Connector | Port | BusID | Type |
---|---|---|---|
con1 | 01 |
04 |
00040000 |
Going through the remaining busIDs and types (following this guide for busID patching), no behavior appeared to have changed:
Connector | Port | BusID | Type |
---|---|---|---|
con1 | 01 |
01 |
00040000 |
con1 | 01 |
02 |
00040000 |
con1 | 01 |
03 |
00040000 |
con1 | 01 |
05 |
00040000 |
con1 | 01 |
06 |
00040000 |
con1 | 01 |
01 |
02000000 |
con1 | 01 |
02 |
02000000 |
con1 | 01 |
03 |
02000000 |
con1 | 01 |
04 |
02000000 |
con1 | 01 |
05 |
02000000 |
con1 | 01 |
06 |
02000000 |
I added the above patches w/ con0 and con2 disabled:
Adding to my previous note #1 (comment), I noticed similar behavior for the primary display when using busID
04
for connector 1, but only when disabling connector2 and using the displayport type:Connector Port BusID Type con1
01
04
00040000
Going through the remaining busIDs and types (following this guide for busID patching), no behavior appeared to have changed:Connector Port BusID Type con1
01
01
00040000
con101
02
00040000
con101
03
00040000
con101
05
00040000
con101
06
00040000
con101
01
02000000
con101
02
02000000
con101
03
02000000
con101
04
02000000
con101
05
02000000
con101
06
02000000
What really intrigues me the most is that according to the data sheet of the screenpad (which would be apriori: BOE NV126B5M-N41) the screen would be connected by eDP (2 Lanes) , eDP1.2 , HBR1 (2.7G/lane) , 40 pins Connector
Screenshot : https://prnt.sc/bJnMFlz3F4xW (from datasheet)
so in logic, it would be the connector type : 02000000 (B64 : AgAAAA==)
But, on Windows and MacOS, it is detected as DisplayPort... so quick question, do Windows and MacOS consider eDP and DP = DP?
Then, I was able to open IORegistry, and I could observe that by clicking on AppleDisplay (i.e. the ScreenPad) (Path: IGPU@2/AppleIntelFrambuffer@1/display0/AppleDisplay) I observe that IODisplayConnectFlags has a data of <00 00 00 00> But if we look at the main screen of Asus (Path: IGPU@2/AppleIntelFramebuffer@0/display0/AppleBacklightDisplay) I observe here that IODisplyConnectFlags has a data of <00 08 00 00> (If we look at the datasheet of Dortania, it says that the Connector Type = <00 08 00 00> HDMI...) So, do the connector Type and the flags have something in common?
Photo :
IORegistry main screen: AppleBacklightDisplay: https://drive.google.com/file/d/1P6X__1fuyXqPDdo1f8srZRbDtbuF-5rp/view?usp=sharing
Screenpad IORegistry AppleDisplay : https://drive.google.com/file/d/1aHdPLobJfJBRtOXq9KoQp4uTzshPA36G/view?usp=sharing
Datasheet : https://www.panelook.com/NV126B5M-N41_BOE_12.6_LCM_overview_44187.html
I noticed that the screenpad plus is designated as DP (also listed as DDI1
) in the device's schematic w/ a different layout than eDP, though it matches what was shown in the datasheet you linked as the physical connector:
On the left is the LCD connector and on the right looks to be for the touchscreen digitizer:
The second display for the UX482 model of this laptop though has a very similar part no. BOE NV126B5M-N42 (BOE0921)
.
yes true, So that means that from the beginning, not only am I wrong to try to put the EDP patch x) but I'm also talking nonsense... what an idiot... xD 😅
So we have to rely on DP instead? so the type connector would be just to put as a DP but we just have to find the right framebuffer-id so...? 🤔
Yep it seems this is the right datasheet: Display | Specs w/ pt number |
---|---|
Primary | 14.0 inch, 1920 x 1080 px, IPS, matte, non-touch, Chi Mei N140HCE-EN2 panel |
Secondary | 12.6 inch, 1920 x 515 px, IPS, matte, touch, BOE NV126B5M-N41 panel |
Exact, the resolutions is good and the Serials number too
yes true, So that means that from the beginning, not only am I wrong to try to put the EDP patch x) but I'm also talking nonsense... what an idiot... xD 😅
So we have to rely on DP instead? so the type connector would be just to put as a DP but we just have to find the right framebuffer-id so...? 🤔
I'm assuming so; it's the same case for the Pro Duo UX582 as well.
The display type would be 00040000
for displayport instead of 02000000
for embedded displayport.
That's right according to the dortania guide. So we just have to find the right framebuffer-id...
<02 00 00 00> LVDS and eDP - Laptop displays <00 04 00 00> DisplayPort - USB-C display-out are DP internally
because if we look at your picture :
We see that the port is already in DisplayPort... So it's not a connector type problem anymore, but the busID I think ? and so potentially also the framebuffer
It also seems that in IORegistryExplorer, the AppleBacklightDisplay
device name maps to eDP, and just AppleDisplay
maps to DP/HDMI.
I see it. So it would just be a Framebuffer-id error? With a possible busID error? This whole Framebuffer-id thing is not very clear to me heh... But personally I have the same thing as you in terms of port.For the moment the screen is still blurred visually so I hope to see if the busId and framebuffer changes something...
Yeah pretty much. I'm not sure on what the cause of the static is though, so that might need more research since the device is detected correctly sans the busID patch, etc.
I just pushed a fix to disable the screenpad plus static by just routing it to a different port (so it's instead a black screen to save power), though there isn't a clean way of disabling the backlight even after removing the igfxonln=1
boot arg.
I'll try the same busID search I did with the previous 00009B3E
framebuffer id with 0900A53E
(keeping the same device id) and then test with other device ids like C89B0000
.
~Will need to investigate possible EDID patch as suggested here and explained further here and in tylernguyen/x1c6-hackintosh#60.~
Both displays appear to have the proper EDID properties after testing; doesn't affect this issue.
Just dumped the EDID data for the second display to once again confirm this; it also confirms the NV126B5M
part no. from the datasheet linked before:
...
Manufacturer: BOE Model 87f Serial Number 0
Made week 1 of 2019
EDID version: 1.4
Digital display
8 bits per primary color channel
DisplayPort interface
...
Detailed mode: Clock 70.600 MHz, 309 mm x 83 mm
1920 1968 2000 2080 hborder 0
515 520 525 565 vborder 0
+hsync -vsync
Detailed mode: Clock 56.500 MHz, 309 mm x 83 mm
1920 1968 2000 2080 hborder 0
515 520 525 565 vborder 0
+hsync -vsync
ASCII string: BOE
ASCII string: NV126B5M
...
^ This was dumped using edid-decode.
Additionally, the av-signal-type
property in IORegistryExplorer shows a value of 10 00 00 00
for the screenpad-plus, which matches the displayport type for the display.
~Will need to investigate possible EDID patch as suggested here and explained further here and in tylernguyen/x1c6-hackintosh#60.~ Both displays appear to have the proper EDID properties after testing; doesn't affect this issue.
Just dumped the EDID data for the second display to once again confirm this; it also confirms the
NV126B5M
part no. from the datasheet linked before:^ This was dumped using edid-decode.
Additionally, the
av-signal-type
property in IORegistryExplorer shows a value of10 00 00 00
for the screenpad-plus, which matches the displayport type for the display.
I see, I was just going to take care of it yesterday to see a bit of the EDID except I didn't have the faith haha x)
<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
FramebufferID | AAPL, ig-platform-id | Type | Connector | Stolen Memory | Port Number | NoPatch | Patched -- | -- | -- | -- | -- | -- | -- | -- 0x3EA50009 | 0900A53E | Mobile | 3 | 58MB | 0 | 00000800 02000000 98000000 | No need 0x3EA50009 | 0900A53E | Mobile | 3 | 58MB | 1 | 01050900 00040000 C7010000 | No need ? 0x3EA50009 | 0900A53E | Mobile | 3 | 58MB | 2 | 02040A00 00040000 C7010000 | 02040A00 00080000 C7010000 | | | | | | | 0x3E920009 | 0900923E | Mobile | 3 | 58MB | 0 | 00000800 02000000 98000000 | No need 0x3E920009 | 0900923E | Mobile | 3 | 58MB | -1 (NP[1]) | FF000000 01000000 20000000 | Need to fix busID ? and Port 0x3E920009 | 0900923E | Mobile | 3 | 58MB | -1 (NP[2]) | FF000000 01000000 20000000 | Need to fix busID ? and Port | | | | | | | 0x3E9B0009 | 09009B3E | Mobile | 3 | 58MB | 0 | 00000800 02000000 98000000 | No need 0x3E9B0009 | 09009B3E | Mobile | 3 | 58MB | 1 | 01050900 00040000 87010000 | No need ? 0x3E9B0009 | 09009B3E | Mobile | 3 | 58MB | 2 | 02040A00 00040000 87010000 | 02040A00 00080000 87010000 | | | | | | | 0x3EA50000 | 0000A53E | Mobile | 3 | 58MB | 0 | 00000800 02000000 98000000 | No need 0x3EA50000 | 0000A53E | Mobile | 3 | 58MB | 1 | 01050900 00040000 87010000 | No need? 0x3EA50000 | 0000A53E | Mobile | 3 | 58MB | 2 | 02040A00 00040000 87010000 | 02040A00 00080000 87010000 | | | | | | | 0x3E920000 | 0000923E | Mobile | 3 | 58MB | 0 | 00000800 02000000 98000000 | No need 0x3E920000 | 0000923E | Mobile | 3 | 58MB | 1 | 01050900 00040000 87010000 | No need? 0x3E920000 | 0000923E | Mobile | 3 | 58MB | 2 | 02040A00 00040000 87010000 | 02040A00 00080000 87010000 | | | | | | | 0x3E000000 | 0000003E | Mobile | 3 | 58MB | 0 | 00000800 02000000 98000000 | No need 0x3E000000 | 0000003E | Mobile | 3 | 58MB | 1 | 01050900 00040000 87010000 | No need? 0x3E000000 | 0000003E | Mobile | 3 | 58MB | 2 | 02040A00 00040000 87010000 | 02040A00 00080000 87010000 | | | | | | | 0x3E9B0000 | 00009B3E | Mobile | 3 | 58MB | 0 | 00000800 02000000 98000000 | No need 0x3E9B0000 | 00009B3E | Mobile | 3 | 58MB | 1 | 01050900 00040000 87010000 | No need 0x3E9B0000 | 00009B3E | Mobile | 3 | 58MB | 2 | 02040A00 00040000 87010000 | 02040A00 00080000 87010000 | | | | | | | 0x3EA50004 | 0400A53E | Mobile | 3 | 58MB | 0 | 00000800 02000000 98040000 | No need 0x3EA50004 | 0400A53E | Mobile | 3 | 58MB | 1 | 01050900 00040000 C7030000 | No need? 0x3EA50004 | 0400A53E | Mobile | 3 | 58MB | 2 | 02040A00 00040000 C7030000 | 02040A00 00080000 C7030000 | | | | | | | 0x3EA50004 | 0400A53E | Mobile | 3 | 58MB | 0 | 00000800 02000000 98040000 | No need 0x3EA50004 | 0400A53E | Mobile | 3 | 58MB | 1 | 01050900 00040000 C7030000 | No need ? 0x3EA50004 | 0400A53E | Mobile | 3 | 58MB | 2 | 02040A00 00040000 C7030000 | 02040A00 00080000 C7030000 | | | | | | | 0x3EA50005 | 0500A53E | Mobile | 3 | 58MB | 0 | 00000800 02000000 98040000 | No need 0x3EA50005 | 0500A53E | Mobile | 3 | 58MB | 1 | 01050900 00040000 C7030000 | No need? 0x3EA50005 | 0500A53E | Mobile | 3 | 58MB | 2 | 02040A00 00040000 C7030000 | 02040A00 00080000 C7030000 | | | | | | | 0x3EA60005 | 0500A63E | Mobile | 3 | 58MB | 0 | 00000800 02000000 98040000 | No need 0x3EA60005 | 0500A63E | Mobile | 3 | 58MB | 1 | 01050900 00040000 C7030000 | No need? 0x3EA60005 | 0500A63E | Mobile | 3 | 58MB | 2 | 02040A00 00040000 C7030000 | 02040A00 00080000 C7030000
This pull request builds upon https://github.com/shiecldk/ASUS-ZenBook-Pro-Duo-15-OLED-UX582-Hackintosh/issues/2#issuecomment-1207144919.
Testing connector patches with platform-id
00009B3E
using the following framebuffer profile and base configuration for the framebuffer patch:LVDS/eDP
0x0
8
98000000
Displayport
0x5
9
87010000
Displayport
0x4
A
87010000
DeviceProperties > Add > PciRoot(0x0)/Pci(0x2,0x0)
: Key00009B3E
9B3E0000