A Raspberry Pi and an old iPad gave my home theater the marquee it deserves


There’s nothing quite like a good movie night. A projector and screen combined with a surround sound system give me a taste of the real movie experience, and a bowl of popcorn adds to the impression. What’s missing is a movie poster for whatever I’m watching, so I decided to see if I could find a way to make that happen, too.

I wanted to build a “now showing” display for my TV

A movie poster for the current content

Angled iPad view of Jellyfin movie poster grid on a wood table. Credit: Patrick Campanale / How-To Geek

The concept was fairly simple. Some of the apps, services and devices that I use to watch shows and movies have integrations that expose “now playing” data to Home Assistant. For example, using the Jellyfin integration, Home Assistant can see information such as the current play state, the title of the movie, and most importantly for my needs, an entity_picture attribute that exposes the movie poster from Jellyfin.

I wanted to find a way to have this poster image automatically display in my living room when I start watching a movie. For this to happen, I needed a screen to display the image. There were plenty of options, such as wall-mounting a tablet or having the poster show on the tiny screen of my Echo Show 5, but using an entire tablet seemed like overkill, and the Echo Show was far too small.

Home Assistant Green

Dimensions (exterior)

4.41″L x 4.41″W x 1.26″H

Weight

12 Ounces

Home Assistant Green is a pre-built hub directly from the Home Assistant team. It’s a plug-and-play solution that comes with everything you need to set up Home Assistant in your home without needing to install the software yourself. 


An old iPad 2 was sitting unused

The glass was cracked but the display was fine

I have four old iPad 2 models in a box in my home office. They’re too old to be able to run anything useful; I can’t even open Home Assistant in Safari, as the browser is so outdated. Two of the iPads also have cracked screens.

I wondered whether it would be possible to rip the display out of one of these iPads, hook it up to a Raspberry Pi, and stick the display into a photo frame. I could then use the iPad display to show the movie poster for whatever I was watching.

A little internet research revealed that this was entirely possible. I could buy a controller board for the iPad 2 display that would allow me to connect it to my Raspberry Pi using an HDMI cable. I could then show whatever I wanted on the display.

The controller board set me back about $15 (although it’s more expensive from Amazon), and that was my only expense, as I already had the necessary 12V 3A power supply with 5.5 × 2.1 mm connector in my box of unused tech, along with an HDMI cable. I decided to build the project with my Raspberry Pi 3B+ as a proof of concept; this is also overkill for my needs, but I didn’t have a spare mini HDMI to HDMI cable, and the Pi Zero 2 W that I would have used otherwise only has a mini HDMI port.

Dismantling the iPad wasn’t too horrific; I used a hair dryer to soften the adhesive around the edges and pried the screen off. I only needed to unclip one connector to extract the display. Hooking it up to the controller board just involved attaching the board’s cable to the display and connecting my Pi to the board using the HDMI cable. Once connected, I powered everything on, and Raspberry Pi OS appeared on the iPad’s display.


A popcorn bucket with several spilled popcorns, the Jellyfin logo at the center, and the Plex logo blurred in the background.


5 Reasons I Use Jellyfin Instead of Plex

Jellyfin’s price isn’t the only thing going for it.

Displaying the current content on the screen

Jellyfin and Sky Q exposed what I needed

The next phase was to get the display to show the poster for the current movie. The Jellyfin integration in Home Assistant already gave me a link to the image I needed, so I just needed a way to get this image to display on the screen.

I tried a few different methods to get this to work, including running Chromium in kiosk mode, using a framebuffer image viewer command-line tool, and using Pygame, but these methods were either unnecessarily heavy, gave me scaling issues, or were unreliable when called from a background service.

In the end, I opted to convert the image into raw pixel data and write it directly to the Linux framebuffer. There was no need for a desktop environment, browser, or display server just to show the image. This method gave me a beautiful image on the iPad display without any scaling issues, and it was more than fast enough for an image that only needs to update when I start or stop a movie or TV show.

As well as getting now playing information from Jellyfin, I was able to pull it from my Sky Q set-top box too, so I could create a now playing image when watching live TV channels. An automation detects when Jellyfin or Sky Q starts playing and uses a REST command to send an HTTP POST request to a Flask server running on the Raspberry Pi, with a payload containing the poster image URL.

The Pi downloads the image and processes it to suit the display. The artwork is resized while preserving its aspect ratio, placed onto a custom canvas, given a blurred background to fill any unused screen space, and rotated to match the portrait orientation of the display. The final image is then converted into RGB565 format, the 16-bit pixel format used by the framebuffer.

The raw data is written to /dev/fb0, which updates the screen to display the converted poster image. The upshot is that I get beautiful movie poster artwork on the iPad’s display whenever I start a show or movie in Jellyfin or watch something on my Sky Q box.


Repurposing my iPad feels great

I’ve been wanting to find a genuinely useful way to repurpose my old iPads for a long time, and this is a great way to do so. My next steps are to have the screen display family photos when I’m not watching TV, and to display the current PS5 game I’m playing when I’m gaming. At around $40 for a Pi Zero 2 W and the iPad display controller board, I’m definitely going to rip the screens out of my other old iPads fairly soon.



Source link

Leave a Reply

Subscribe to Our Newsletter

Get our latest articles delivered straight to your inbox. No spam, we promise.

Recent Reviews


If you are a book purist, you might scoff when I recommend an e-reader instead of buying physical books, and I won’t blame you. The allure of the smell of pages, the weight of the book in my hands, the whole ritual, is hard to resist. 

However, if you allow me some leeway to convince you, there’s a strong argument to be made against physical books and in favor of using e-readers. So let me make the case for e-readers, because once you understand what you’ve been missing, it’s hard to go back.

Your entire library fits in your bag

This is the most obvious advantage, but it doesn’t get enough credit. I always read more than one book at a time, and carrying two or three physical books around is not realistic. Thick books alone are a chore to carry.

With an e-reader, you carry hundreds of books in a slim package. Switching between titles takes a second. If you travel frequently, this alone is reason enough to make the switch.

A thousand-page hardcover is great for your bookshelf but terrible for your commute.

Fat books are a workout, not a reading experience

If, like me, you are into fantasy books, you know they can be a behemoth to handle. You have to constantly shift how you’re holding it, find a way to keep it open, and somehow also stay comfortable. Thin books are fine, but the moment a book crosses a certain thickness, it starts working against you.

An e-reader weighs the same regardless of whether you’re reading a short novel or a massive fantasy series. That’s it. Whether I am reading The Count of Monte Cristo or the next book in Brandon Sanderson’s The Stormlight Archive series, my Supernote Nomad remains the same. 

Reading at night without waking anyone up

I do a lot of my reading at night, and this is where physical books completely fall apart for me. Lamps and book lights never feel comfortable. The light is never quite right, and if you share a room with someone, the whole setup becomes a problem.

Most e-readers, including Kindles, have a built-in backlight that you can dim to whatever level feels right. You can even switch to warm light mode, making it easier on your eyes. 

I’ve read at 3 AM with the brightness all the way down, and it felt completely natural. No lamp and no squinting required. 

Look up any word without losing your place

English is not my first language, and even for native speakers, encountering an unfamiliar word in the middle of a chapter is common. With a physical book, your options are to grab your phone and look it up, which almost always leads to distraction, or skip it and lose a bit of meaning.

On a Kindle or most other e-readers, you tap the word and the definition appears instantly. You can translate it, add it to a vocabulary list, and get back to reading in seconds. I look up far more words now than I ever did with physical books, and my reading comprehension is genuinely better for it.

Taking notes you’ll actually use later

I used to annotate physical books with a pen, and those notes would just sit there on the page, never to be seen again. Transferring them somewhere useful took more effort than I was ever willing to put in.

With my Supernote Nomad, I can use its Digest feature to clip what I am reading and quickly add any additional handwritten notes. I can then export those notes to Obsidian and process them. 

If you use any e-reader, highlighting a passage and adding a note will take a couple of seconds. Most e-readers also aggregate all your highlights and notes in one place, allowing you to quickly riffle through your notes without flipping pages. 

With physical books, my notes died on the page. With an e-reader, they became something I actually use.

Since these are digital notes, you can process them into your note-taking app to further digest the material.

Books are cheaper and easier to buy

Buying physical books is always more expensive than getting the digital version. Also, since most publishers are phasing out mass-market paperbacks, we are left with trade paperback and hardcover options, which may look better but also cost significantly more.

E-books don’t have that problem. I have purchased several books at less than half the price I would have paid for a physical version. Also, most of the time, e-books are on sale, making them even more affordable. 

And when you find a book you want to read at midnight, you don’t have to wait for a delivery or drive to a store. You buy it and start reading immediately. The convenience is hard to overstate once you get used to it.

Should you switch?

If you love the experience of physical books, the covers, the smell, the shelf aesthetic, that’s a completely valid reason to stick with them. There’s nothing wrong with it. I myself am curating my own bookshelf, and there will always be a place for those special books. 

But for convenience and ease of discovery and reading, I recommend you at least invest in one e-reader. It’s also one of the best times to buy them, as you can get good options around $100

Since these are e-readers, you don’t even need to upgrade them as often as your phone. If you don’t accidentally break them, they can easily last 5-6 years, making them worth the investment.



Source link