Opened 4 years ago

Closed 2 years ago

#15746 closed bug (fixed)

eDP flat panel not working

Reported by: korli Owned by: pulkomandy
Priority: normal Milestone: R1/beta4
Component: Drivers/Graphics/intel_extreme/sandybridge Version: R1/Development
Keywords: Cc: rudolfc
Blocked By: Blocking:
Platform: All

Description (last modified by korli)

Laptop ASUS Zenbook UX31E-RY029V, integrated panel.

hrev53878 dirty

Attachments (8)

syslog (259.6 KB ) - added by korli 4 years ago.
syslog ASUS Zenbook UX31E-RY029V
syslog.sandybridge (216.0 KB ) - added by korli 2 years ago.
syslog hrev55674
syslog.2 (227.7 KB ) - added by korli 2 years ago.
syslog hrev55688
sandybridge_i915_dump.txt (19.4 KB ) - added by korli 2 years ago.
intel_reg dump
syslog-r55823-x86_64-Asus-UX31E-RY029V.txt (319.8 KB ) - added by korli 2 years ago.
syslog_short.log (12.5 KB ) - added by korli 2 years ago.
custom build
syslog_hrev55845_dirty.log (226.7 KB ) - added by korli 2 years ago.
syslog hrev55845
syslog.3 (269.6 KB ) - added by korli 2 years ago.
syslog hrev55874 dirty

Download all attachments as: .zip

Change History (32)

by korli, 4 years ago

Attachment: syslog added

syslog ASUS Zenbook UX31E-RY029V

comment:1 by korli, 4 years ago

Description: modified (diff)

comment:2 by pulkomandy, 4 years ago

What is the last known working revision?

comment:3 by pulkomandy, 4 years ago

According to the syslog it uses embedded DisplayPort, which is not supported by the driver (it won't even try to set a videomode)

comment:4 by korli, 4 years ago

Can't remember whether it ever worked, sorry. I could check with beta1 and alpha4.

comment:5 by pulkomandy, 4 years ago

I'm mostly interested to know if it's a regression from the last few month changes. If its not, I'd say it can wait a bit more and we can look into it later (I'd rather get the VGA output working completely first. And I need to get a DisplayPort cable and display to test that on my laptop...)

comment:6 by pulkomandy, 4 years ago

Summary: flat panel switches to black on intel SandyBridge MobileeDP flat panel not working

comment:7 by korli, 2 years ago

The screen now turns white after the boot screen. it looks like #17350 The app_server tries to set the correct native resolution 1600x900.

by korli, 2 years ago

Attachment: syslog.sandybridge added

syslog hrev55674

by korli, 2 years ago

Attachment: syslog.2 added

syslog hrev55688

by korli, 2 years ago

Attachment: sandybridge_i915_dump.txt added

intel_reg dump

comment:8 by korli, 2 years ago

Same behavior here too (note I had to boot on a USB2 port as USB3 boot seems now broken).

comment:9 by waddlesplash, 2 years ago

(note I had to boot on a USB2 port as USB3 boot seems now broken).

This deserves its own ticket. Any change you can collect information? (Is it a regression or did it never work on this hardware?)

comment:10 by rudolfc, 2 years ago

Cc: rudolfc added

Hi, I am currently working on this.. Would be nice if a new syslog could be uploaded since I put some time in yesterday, and will do so the coming time as well.. I mean the white panel ;-)

Last edited 2 years ago by rudolfc (previous) (diff)

by korli, 2 years ago

Attachment: syslog_short.log added

custom build

comment:11 by korli, 2 years ago

Hi, here is an updated short syslog for intel_extreme. the white panel is still with us :)

Last edited 2 years ago by korli (previous) (diff)

comment:12 by rudolfc, 2 years ago

Thank you, Looks indeed the same as #17350 so far. Keep the ticket open however just to be sure. Since you filtered the syslog I am missing the actual VESA info dumped by the driver to the log, could you add that for completeness sake?

I'll modify the driver more for a new test with the panel, same as that other ticket. Thanks again!

comment:13 by rudolfc, 2 years ago

Hi, just committed hrev55845, which has a good chance to improve your situation. Please test it and upload the syslog once more, with VESA dump, and with your comments :-)

Thanks a lot!

by korli, 2 years ago

Attachment: syslog_hrev55845_dirty.log added

syslog hrev55845

comment:14 by korli, 2 years ago

Hi, just tested with hrev55845. The display shows vertical lines, then ends up white.

comment:15 by rudolfc, 2 years ago

Hi, progress :-)

Do you mind changing one line in the source, recompile and quickly test? I was assuming the panel uses two lanes, but seems it's four even.

In the log you see this message: SetFDILink: FDI/PIPE link with 2 lane(s) in use

Change the source so that lanes is defined with 4 instead. Please upload the (clean) syslog again and tell me what happens visibly?

Thanks!

(if you are unable to do it I'll change the code anyway for this change ;-)

comment:16 by rudolfc, 2 years ago

Good morning from Holland :-)

In hrev55846 I changed the number of lanes to four. Please retest and upload the syslog.. Thank you!

comment:17 by korli, 2 years ago

Sorry, I won't be able to check before about a week.

comment:18 by rudolfc, 2 years ago

Hi, thanks for the heads up! Luckily the other ticket is the same system AFAICT, so testing is proceding in the meantime so far. The test I asked you for just now can be disregarded, the results are in, and git is updated again (hrev55848).

In the end it turns out the calcuations for the link are correct (1 lane), the driver sets the same divider as the BIOS, though with other numbers, which should work OK (I gained a bit more insight). From here on a few loose tests should be done disabling code, and forcing code to see if that would get us a picture, but this is becoming more and more longshots without access to the actual hardware over here, unfortunately. Still, a test or two I'll try to do before I quit on this panel. The code is much closer to be working OK now at least on your system ;-)

comment:19 by rudolfc, 2 years ago

Hello, if you have time, you could test https://git.haiku-os.org/haiku/commit/?id=440667b4c6a6e93538270c835b164527e02331e9.

If all is right you should be having a working driver now.. If you do, please upload a syslog and let me know if all is OK.

Thanks you!

by korli, 2 years ago

Attachment: syslog.3 added

syslog hrev55874 dirty

comment:20 by korli, 2 years ago

Indeed, it works in native mode 60Hz (not 85Hz). Brightness settings work. I've also tested a non-native resolution. Thanks for the efforts.

comment:21 by rudolfc, 2 years ago

You're welcome.

BTW: the timing and refresh will currently only be used from the mode requested when the resolution is native. While 84Hz doesn't work, I wonder if there are frequencies outside of 60Hz that -do- work, or if it's really limited to 60Hz only. If the latter is true, I should totally block these changes and always use the real exact modeline from the panel as found in it's BIOS.

If you have time to checkout how hard the 60Hz limit is then I'd love to hear how much you can/cannot change it (using the refresh slider that is)..

I think spec-wise I should block all modifications to the native modeline: still I am very curious what the internal panel can and cannot do ;-)

EDIT: so I am looking for both the lower limit and the higher limit..

Last edited 2 years ago by rudolfc (previous) (diff)

comment:22 by korli, 2 years ago

On Ubuntu, only 60Hz and 59.9Hz are available at native resolution, otherwise the frequency can't be chosen for non-native resolutions (the combox box disappears).

On Haiku, it works until 61.5Hz. Non-working frequencies should probably disabled.

comment:23 by rudolfc, 2 years ago

Hi,

hrev55875 has exactly that. Please doublecheck it's now always working OK. The slider for refresh is the same, I'll keep it that way (in case someone uses a secondary screen it might be handy to not block it until we have dualhead support in app_Server).

comment:24 by rudolfc, 2 years ago

Milestone: UnscheduledR1/beta4
Resolution: fixed
Status: newclosed

Closing ticket as the eDP panel now works correctly. Feel free to reopen if needed. Thank you!

Note: See TracTickets for help on using tickets.