Don't recycle your ePaper: repurpose that old eReader

Up to Date

© Lead Image © donatas1205, 123RF.com

© Lead Image © donatas1205, 123RF.com

Article from Issue 251/2021
Author(s): , Author(s):

Create a kiosk display from an old eReader to show data culled from Home Automation, Raspberry Pis, and Arduinos.

My daughter and I looked at trying to repurpose an old eReader. Our goal was to make a kitchen kiosk display that would show items of daily interest. For us, that included news, stocks, and weather data that we pulled from the Internet, along with some local data from Arduino, Home Assistant [1], and Raspberry Pi nodes (Figure 1).

Figure 1: Sources of data for an eReader in kiosk mode.

In this article, we look at how to install Linux on an eReader and look at eReader Python apps and kiosk-mode web browser pages.

Getting Started

For this project, we used a Kobo Mini eReader, so the procedure to load a new operating system will vary somewhat according to the eReader model and manufacturer you use.

First, crack open the eReader. The operating system (OS) and data are stored on a microSD card (Figure 2). You should keep the original SD in case you ever need to roll back to the original setup.

Figure 2: The microSD in the Kobo Mini eReader.

eReaders have two main OS choices: Android or Linux. For the requirements of this project, we determined that Linux would be a cleaner option. A Debian image for Kobo eReaders can be found online [2]. If you are trying to repurpose other brands of eReaders, some good how-to guides are available (e.g., for Kindle eReaders [3]).

Installing Debian Linux

A number of different tools can help you move and copy OS images. Raspberry Pi users like to use the Raspberry Pi Imager (rpi-imager) utility, which runs on Linux, Windows, and macOS. To install it on Linux, enter:

sudo snap install rpi-imager

The Use custom option lets you put the Debian Linux image on an SD card (Figure 3).

Figure 3: Make an eReader-bootable SD card with the Raspberry Pi Imager utility.

Depending on your eReader and the OS you are using, you might be ready to go after the new microSD card is installed into the eReader. Unfortunately, for our Kobo Mini installation we needed to take another step that moved some files from the original SD chip to the new SD chip:

# insert the original microsd
sudo dd if=/dev/mmcblk0 bs=512 skip=1024 count=1 of=/your_path/original.img
# insert the new microSD with the Debian image
sudo dd if=/your_path/original.img bs=512 seek=1024 count=1 of=/dev/mmcblk0

This added step provides all the files required for a clean double-boot installation (Figure 4).

Figure 4: The eReader can now dual-boot to either the original Kobo software or Debian Linux.

eReader Setup

Now that the OS is installed, you should be able to enable WiFi from the main menus (Figure 5). eReaders have great battery life when they are used as an eReader; however, when they use WiFi 100 percent of the time, their battery life is more like that of a standard tablet.

Figure 5: Linux on eReader.

The eReader has a floating keyboard, so you can work directly on the unit; however, an SSH connection from a PC is definitely easier.

The next step is to add custom apps to the eReader menus. Although we did all our programming remotely, this step allowed us to run and test the apps without an SSH connection.

The menuing on the eReader will vary according to the OS being used. On the Kobo, the Debian OS used the Awesome window manager [4]. Awesome menus are defined in the file .config/awesome/rc.lua. Figure 6 shows two extra entries: one for a Python app and the second for a browser kiosk script.

Figure 6: Adding apps to the eReader menus.

Buy this article as PDF

Express-Checkout as PDF
Price $2.95
(incl. VAT)

Buy Linux Magazine

SINGLE ISSUES
 
SUBSCRIPTIONS
 
TABLET & SMARTPHONE APPS
Get it on Google Play

US / Canada

Get it on Google Play

UK / Australia

Related content

comments powered by Disqus
Subscribe to our Linux Newsletters
Find Linux and Open Source Jobs
Subscribe to our ADMIN Newsletters

Support Our Work

Linux Magazine content is made possible with support from readers like you. Please consider contributing when you’ve found an article to be beneficial.

Learn More

News