projectSep 27, 20265 min

Sharp: iMac as a native high resolution display over Ethernet, Thunderbolt or USB

Give your iMac a place beside your newer Mac. The story behind Sharp, and a short guide to getting it connected.

macOSdisplaysopen source
Attachments
Get SharpOpenGitHub repositoryOpen
Sharp mirroring between a MacBook and an iMac
Sharp mirroring between a MacBook and an iMac

TL;DR

I still love the way old iMacs look. Even after all these years, I'm happy to daily drive one beside my silicon MacBook Pro. The gorgeous screen deserves more use than the ageing computer behind it can give it.

I wanted mine to become a second display. Connect a cable, move a window across, carry on working.

That turned out to be a much bigger request than I expected. Apple's Target Display Mode only works with certain older Macs and macOS versions. An Apple Silicon Mac doesn't qualify. I kept finding workarounds that needed specific hardware, lengthy setup, or paid software.

So I built Sharp. Install it on both Macs and connect them with Ethernet, Thunderbolt or USB. You can mirror your desktop or extend it onto the iMac, with sound through its speakers if you like. It's free and open source.

Download Sharp if you have an iMac (or any compatible Mac) you'd like to use again. Setup below.

Why Ethernet?

I started by looking at the ports on the iMac. Ethernet was already there, and I could control the connection in software. A cable and an ordinary adapter for the MacBook felt like a reasonable thing you probably already own.

There was one problem. Raw 4K at 60 frames per second needs about twelve times the bandwidth of a gigabit connection. Sending the screen without compression wasn't going to work.

H.264 video would fit, but I wanted to spend hours doing technical work, reading code, articles AND watch shows on this display. Small letters and coloured edges make compression much easier to notice than it is in a film. So I came up with a system that combines both lossless and compressed video.

Thunderbolt and USB came later. Sharp picks the fastest cable you plug in.

How the tile system works

Imagine scrolling through a page, then stopping to read. During the scroll, you need the picture to keep up. Once you stop, you want the letters to look right.

Sharp sends a complete video image and places lossless tiles over the parts it can restore to full detail. Those tiles preserve the captured pixels without lossy compression. A still part of the desktop can regain its sharpness while something elsewhere keeps moving.

An exploded view of lossless tiles above a complete video image
Lossless tiles above the complete video image. A schematic of the two layers.

The tricky part is knowing whether a tile still belongs there. Each tile has a version number. Sharp checks it against the displayed video frame before showing it, so a tile from an earlier moment cannot cover newer content.

As the screen settles, more tiles arrive. Sharp removes the video underneath only after the receiving Mac confirms that the lossless tiles cover the whole image.

That's the idea behind the name. You should be able to stop scrolling and enjoy reading on that screen again.

Try it on your Macs

You'll need one cable between the Macs. Ethernet works, with a gigabit adapter for any Mac without the port, and so do Thunderbolt and USB. USB needs an Apple Silicon Mac as the sender. Connect the Macs directly; you don't need a router.

The sending Mac needs macOS 12.3 or later. The receiving iMac needs macOS 10.15 or later. iMacs on El Capitan through High Sierra use the legacy receiver. To send system audio, the sending Mac needs macOS 14.2 or later. The same installer works on Intel and Apple Silicon.

1. Download Sharp

Open aminerostane.com/sharp on each Mac and click the Sharp icon to download the installer.

Download Sharp
Download Sharp

2. Put it in Applications

Open the downloaded disk image. Drag Sharp into Applications, then open the app from there. Do this on both Macs.

Drag Sharp into Applications
Drag Sharp into Applications

3. Allow it to open

If macOS blocks the first launch, open System Settings → Privacy & Security and choose Open Anyway for Sharp.

On older macOS versions, look under System Preferences → Security & Privacy.

Allow Sharp to open
Allow Sharp to open

4. Choose which Mac sends

On your newer Mac, choose Send this Mac. Grant Screen Recording permission and, if you want sound on the iMac, System Audio permission. Reopen Sharp if macOS asks, then click Done.

On the iMac, choose Use as a display.

Choose each Mac's role
Choose each Mac's role

5. Plug in the cable

Connect the Macs with Ethernet, Thunderbolt or USB. Sharp finds the other Mac and chooses the fastest connection for you.

Connect the Macs over Ethernet
Connect the Macs over Ethernet

Open Sharp in the menu bar. When you see Connected above the other Mac's name, you're streaming.

Mirror or extend

Sharp starts in Mirror mode, with the same desktop on both screens. Choose Extend when you want more room. Arrange the screens in macOS Display settings to match your desk, then move a window over to the iMac.

Mirror or extend from the menu bar
Mirror or extend from the menu bar

The sliders let you change the cursor's size and colour on the iMac. You'll see the changes there as you make them. Click the speaker to choose whether sound plays on the sending Mac or the display Mac.

Pause Sharp stops the stream. You can resume it from the same place.

The settings you might need later

The gear opens the full settings window. Resolution choices depend on the display you've connected, including its proportions.

Sharp settings
Sharp settings

Sharp picks the right resolution for your iMac. A 5K iMac starts at native Retina, as sharp as its own built-in display. On other iMacs you can go beyond the default with resolutions marked Experimental.

Under Advanced, choose a paired Mac to save its own defaults. That includes resolution, cursor appearance and audio output. You can also choose the connection (Ethernet, Thunderbolt or USB) if your setup needs it.

Settings for a paired Mac
Settings for a paired Mac

Sharp sends anonymous usage, like the Sharp and macOS versions and the cable type, to help us improve it. You can see every field and turn any of them off, or all of them, under Advanced.

If something feels wrong, open Reports and choose Create report. Open reports takes you to the files you can share with an issue on GitHub.

Create a report or run the visual benchmarks
Create a report or run the visual benchmarks

You can also Run benchmarks from the sending Mac while streaming. These are the visual tests we used during development, with moving shapes, page changes and fine text. Sharp saves the test output and engine measurements so we can investigate how it behaves on your setup.

Thank you for reading.