Owners of 4K and 5K iMacs could soon enjoy their screen’s full native resolution on Linux, thanks to a set of proposed kernel patches.

I run Ubuntu on a 2017 21.5-inch iMac with a 4K display. The distro runs and looks great, but with a catch: it doesn’t use the native panel resolution of 4096×2304 (4K), only 3840×2160 (4K UHD). That’s the maximum option shown in Settings > Display.

“4K is 4K”, so this is a first world problem. Workarounds, like booting from GRUB with a kernel parameter1 applied makes the resolution value available, but not the quality: the screen is blurrier at the higher resolution than a lesser one.

Why? It’s all to do with how Apple’s Retina iMac displays (and some third-party monitors, like the LG UltraFine 5K) work. These all-in-one computers use a two-in-one screen. Well, kinda.

The 21.5-inch 4K (2017 and 2019) and 27-inch 5K (2014 to 2019) Retina iMacs use tiled displays2, with two sections driven by separate DisplayPort streams. Apple’s EFI firmware initialises only one display ‘pipe’ at boot, leaving the second ’tile’ inactive.

Linux’s AMDGPU driver currently struggles to detect and initialise the second tile.

As a result, the display’s timing controller (stay with me, here) runs the entire panel at 3840×2160 (4K UHD). Activating the second DisplayPort link stream is what allows it to run in dual-pipe mode, unlocking the full native resolution of 4096×2304.

But, thankfully, it is closer to being resolved.

This week, Richard Lane submitted his ‘Enable 2×1 tiled display support on Apple Retina iMacs‘ patch series to the kernel’s AMDGPU driver. The patches aim to make the display driver activate and detect the second tile.

Alex Deucher, who maintains the AMDGPU driver, has already reviewed two of the three patches, but has questions about the remaining one. As such, the fix hasn’t been merged or released yet, but things are progressing.

Other patch efforts are available, some made with LLMs and running to thousands of lines, some hand-coded and only a few hundred. I attempted to compile one from GitHub against an Ubuntu mainline kernels. It didn’t work.

But if this patch set makes it in to the kernel itself, that wouldn’t be need. The full, crisp resolution would be available from the get go.

More work to do elsewhere

Not all Linux desktops and compositors handle tiled displays well. Under GNOME’s Mutter, a merge request is pending that aims to address screen tearing under tiled displays.

If you’re wondering why I use an iMac at all, well: it’s almost a decade old but still runs great. I prefer glossy monitors, colours and brightness are fantastic and, being someone who stares at text a lot, I appreciate the crispness of a high pixel-per inch (PPI) count.

I plan to convert this iMac into a regular monitor. That will bypass this issue entirely. It does require gutting a capable computer, installing a third-party driver board flashed with the right firmware for my exact iMac’s panel and gluing it back together.

Which may explain why I haven’t gotten around to it yet. Still, being able repurpose this computer into a standalone monitor will be worth the effort – and preferable to throwing it on the heap with all the other e-waste.

  1. Something like video=eDP-1:4096x2304MR@60 ↩︎
  2. Some other brands sell 5K monitors using tiled displays, like the LG UltraFine 5k. Those have their full resolution available. It’s Apple’s EFI handling that the kernel patches need to work around. ↩︎