New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Linux kernel 4.18 breaks display on 14,3 #73
Comments
I've tried with 4.18 -> 4.18.3 to no avail. There were a ton of AMDGPU "fixes" that went into 4.18 so maybe something there broke it. |
Definitely the amdgpu driver. If loaded early in boot, it black screens faster. |
I can confirm that booting using the dGPU gives a black screen under 4.18 on a MBP13,3 too; but booting with the iGPU works fine (see #6 for how to switch to using the iGPU). |
I tried to boot Linux 4.18.5 with MBP 14,3 (dGPU), and found my external display (connected by HDMI) working and treated as the only display connected with my MBP. |
Downgrading to 4.15.18 on Ubuntu fixed the issue. I noticed when building 4.18.x that I was getting errors about missing firmware for amdgpu, perhaps forcing a revert to radeon... |
Looking into this a bit more, I see this in sway:
That indicates to me that the display is being seen, but it seems like the backlight is off. |
Same with 4.19-rc3 :/ |
4.18 also breaks 15,1 |
Booting with the iGPU does not work for me on 4.18. I get some serious graphic glitches. On <=4.17 the external displays won't work with the iGPU only on dGPU. External displays only are working on 4.18 and the eDP-1 is detected, just not enabled (no backlight). Using drm debug flags I can see that the 2880x1440 modeline is being called invalid. Wonder if I can provide a KMS modeline as a kernel arg. I dug through a bunch of amdgpu bugs looking for hints or fixes, but I didn't find anything terribly useful. |
I believe I have the same issue on 13,1 starting from 4.17. Currently running 4.16.8. I have no AMD GPU. It seems that the display goes black immediately after the bootloader, even without i915 in the initrd (i915.fastboot=1 does not make a difference). |
Not sure if that's the same issue because for 14,3 it started with kernel 4.18, not with 4.17. |
I worked on this a bit this morning. On 4.17, I needed to remove amdgpu from the initrd and blacklist the module. I also added i915 fastboot and the iGPU seems to be working fine, but only for the embedded display and not any externals. |
@roadrunner2 Using your various tutorials and bug reports I was able to get both GPUs enabled at the same time and switch off the dGPU. It required adding: amdgpu.dc=1 i915.fastboot=1 to the kernel commandline and NOT adding any modules to the initrd. |
I just played around with this a bit, and here are my notes. I tried things out on both 4.18.7 and 4.19.0-rc3 kernels, and the behaviour was the same. Setup:
Observations:
I can also confirm that booting 4.19.0-rc3 with the dGPU active results in a black screen too. |
I have just tried booting
Upd I have also noticed that my |
Kernel parameter Edit: https://bugzilla.kernel.org/show_bug.cgi?id=200695 looks relevant, doesn't it? |
@melentye yes, it does look like it is relevant!
So when these two options are true, users see the black screen. The Update It looks like And according to this torvalds/linux@2fa4173#diff-531835135ce1f53a5430016399b993e4L2097 I think we should see/bisect what happened between these two: https://github.com/torvalds/linux/commits/v4.17/drivers/gpu/drm/amd |
I think I've found the culprit. I was bisecting the AMD GPU related commits which came to So if you revert the following commit torvalds/linux@e03fd3f, you will not have the "black screen" issue. At least in my case, tried with
Probably the driver cannot get the I do not explicitly set
Upd Mikita's email does not exist, so email returned. Upd2
|
I just tried booting again with the dGPU. On my MBP13,3 I see the following behaviour:
Then I had a hunch the problem in the second case might be the resolution after login (I was using 1920x1200) - changing the resolution to 2880x1800 or 1440x900 fixed this. However, when I changed back to 1920x1200 and tried one more then it suddenly was fine. Go figure. In short, there appears to still be some resolution related flakiness. P.S. Gnome appears to remember display resolutions based on GPU, so setting the resolution while on iGPU does not affect the resolution when later booting with dGPU, and visa versa. So if anybody plays with resolutions, make sure you change them while running the same GPU that you're trying to test under. |
Btw., forgot to mention, but excellent work @arno01 on bisecting the issue - that's a tedious process! |
Great work @arno01. Is my understanding correct that this is just a bug which got introduced with 4.18 and will be fixed with 4.19 again? If yes, anything else to discuss here or can we just close this issue? |
I also had an interesting experience on 4.18 related to display. Did the backlight change with the new kernel? It seems like backlightctl now controls |
@arno01 or @jboyens: can I suggest one of you open a ticket upstream (on https://bugs.freedesktop.org/, (edit: corrected component) |
Applying the patch (reverted commit) to 4.19.0 worked for me. I can use the built-in display again! |
@roadrunner2 I have submitted the ticket there https://bugs.freedesktop.org/show_bug.cgi?id=108693 |
update: a proper patch would be https://gist.github.com/arno01/8115ef124fe7f42bbf1c317892013e86 |
@arno01 Thanks for shepherding this. I can confirm the patches have made it into 4.20-rc4 and fix the issue 👍 . |
Is there an iso file available with this kernel please? |
@frazer-jamieson please try this one:
|
@arno01 thank you sincerely for your help :) |
Isn't this issue fixed with Linux 4.20? |
I can confirm this in January when I undust my MBP :-) Close this if @jboyens confirms it sooner than I. |
I've confirmed that this seems to work perfectly on 4.20. It even worked on Arch's 4.19.12 kernel (which is the current latest; 4.20 is in testing). Either way, it seems the problem has been resolved from my end. I was without my MBP for a significant amount of time, nearly since I opened the issue, so I'm gutted that I couldn't help debug a bit more, but thrilled this was resolved. Thank you. Closing the issue. |
Just upgraded to 4.18 and it breaks the display in some way. I haven't figured it out yet, but it locks up to a back light black screen.
I'm not using a Login Manager or anything like that. Disabling kernel mode setting got me back to a usable prompt and let me downgrade the kernel.
The text was updated successfully, but these errors were encountered: