Opened 3 years ago

Last modified 19 months ago

#17688 new bug

Mangled image with intel_extreme on MacBook retina 12”

Reported by: Nexus-6 Owned by: rudolfc
Priority: normal Milestone: Unscheduled
Component: Drivers/Graphics/intel_extreme/kabylake Version: R1/Development
Keywords: Intel extreme macbook Cc:
Blocked By: Blocking:
Platform: x86-64

Description

Screen image is completely messed up (please see image attached) Graphics card is HD graphics 615 device ID 0x591e Processor is Intel Mobile Core i5 I5-7Y54 running at 1.3 GHz (7th gen Kaby Lake)

Attachments (5)

D31515D7-9BC1-4AB4-8A7B-56F085E50926.jpeg (3.3 MB ) - added by Nexus-6 3 years ago.
syslog.old (512.0 KB ) - added by Nexus-6 3 years ago.
syslog.2.old (512.0 KB ) - added by Nexus-6 3 years ago.
screenshot1.png (280.5 KB ) - added by Nexus-6 3 years ago.
8514579F-EB56-4E5C-A04E-F261A1ECF029.jpeg (3.3 MB ) - added by Nexus-6 3 years ago.

Change History (17)

by Nexus-6, 3 years ago

Attachment: syslog.old added

comment:1 by rudolfc, 3 years ago

Hi, thanks for reporting!

looks like register access succeeds. The display info from BIOS/VBT is incorrect no doubt. Furthermore no display is detected so no attempts are done to actually set a mode. On top of that the display memory pitch is not programmed looking at your screenshot which might be because we don't hit the register used for the internal panel, or the register setup has been changed by Intel again for this generation cards (generation 9.5 from the Intel graphics cards wiki list).

The driver does not detect EDID info from the internal panel yet because it's probably not yet implemented for DP panels: did you test with hrev56001 or later? As this is committed less than a day ago it might be worth it to wait a day or two and retry with a clean nightly. It would be interesting to see the syslog again after that..

comment:2 by Nexus-6, 3 years ago

Hi! I still have hrev55993, I will update and test hrev56001 tonight.

comment:3 by Nexus-6, 3 years ago

with hrev56001 it is even worse. I'll attach new syslog and photo

Last edited 3 years ago by Nexus-6 (previous) (diff)

by Nexus-6, 3 years ago

Attachment: syslog.2.old added

comment:4 by korli, 3 years ago

is the panel info correct, 2304x1440?

comment:5 by Nexus-6, 3 years ago

No it’s 2560x1600

comment:6 by Nexus-6, 3 years ago

I have managed to change the resolution (impossible mission but I did it!) and if I choose 1280x800 which is half of the native resolution I get a better result. The screenshot attached seems not to be affected by the problem. Please also find attached a photo taken from my mobile.

by Nexus-6, 3 years ago

Attachment: screenshot1.png added

comment:7 by korli, 3 years ago

weird the EDID mentions 2304x1440, and this looks correct, when checking MacBook10,1 here:

https://linux-hardware.org/?probe=62a1f4a38b&log=edid https://en.wikipedia.org/wiki/MacBook_(2015%E2%80%932019)

2560 × 1600 is a scaled resolution.

comment:8 by Nexus-6, 3 years ago

it is weird indeed. You are correct 2304x1440 is the resolution of the panel (confirmed also by Apple). According to this site (https://yesviz.com/devices/macbook-2017/) this MacBook has a viewport of 1280x800. It claims that the Mac has a pixel ratio of 111%. In framebuffer the native (and only) resolution available is 2560x1600 as twice as the view port. This is also confirmed in rEFInd.

I suspect that the gap between the viewport and the resolution could cause this problem?

comment:9 by korli, 3 years ago

rudolf, please have a look, thanks.

comment:10 by Nexus-6, 3 years ago

Detected dpi are also incorrect they should be 226. Can this affect how the screen is rendered?

comment:11 by Nexus-6, 3 years ago

Quick update: with hrev56010 I can see the panel native resolution 2304x1440 in the drop down list but nothing changed in terms of image rendered

comment:12 by malloc, 19 months ago

Hi, I’m also seeing only garbled pixels with Haiku R4 on my MacBook10,1 (Macbook 12" 2017, internal display). Any chance that this is fixable?

That supersmall (& fanless) laptop would be such a nice Haiku machine …

Last edited 19 months ago by malloc (previous) (diff)
Note: See TracTickets for help on using tickets.