SimulPiscator / Billboard-O-Lino

Use your Tolino's sleep screen as a billboard.
GNU General Public License v3.0
10 stars 2 forks source link
android-application announcement-banner eink framebuffer live-wallpaper slideshow tolino

Billboard-O-Lino

This app allows utilization of a Tolino ebook reader's sleep screen to display announcements or data from a web source. Using the sleep screen means that the reader will still be available to serve its main purpose, and will go back to display useful information automatically when putting itself to sleep.

The app has been tested with a Tolino page with software 14.1.0. It may be broken with current versions of the Tolino software, or models with advanced e-ink displays. Still, the software may be useful for reference.

Use cases include:

Basic operation

  1. In regular intervals, the app renders a web location to an image.
  2. When the device goes to sleep, the rendered image is drawn to the device's screen.

Replace system sleep images

The app is notified of changes to the device's state only after the system has drawn its own sleep images to the screen. For a smooth transition, it is possible to replace the Tolino's sleep images with an image that has no content, a "transition image." Paths to sleep images are hardcoded into the Tolino system, thus it is necessary to perform a minor modification to the system partition in order to have it display a different image when going to sleep. The modification is harmless and may be reverted any time, but requires root access while being applied, or reverted. Proceed as follows:

  1. Make sure there is an su binary installed at /system/bin/su or /system/xbin/su, plus a compatible superuser app to grant root access to Android apps.
  2. You may want to temporarily enable both Window Animations and Transitions under Developer settings, to make sure the e-ink display is updated often enough for dialog windows to appear properly during the next steps.
  3. Start the Billboard-O-Lino app, and tap to enable "override system sleep images." The superuser app should display a dialog window, asking you to confirm root privileges for the Billboard-O-Lino app.
  4. If you answered "yes" in the previous step, the "override system sleep images" preference should now be checked. If not, a pop-up notice ("Toast") should appear for a few seconds.
  5. You may undo the modification by unchecking "override system sleep images" at a later time.

Customization

When "override system sleep images" is checked in the app's preferences, /data/sleep/images/ will contain the following files:

By default, suspend*.jpg files are symlinks to transition.jpg, which is updated by the app whenever a different transition image is selected. By replacing symlinks with actual files, or pointing them elsewhere, you may use custom transition images. Make sure to leave transition.jpg alone, as it will be overwritten each time a different transition image is selected in the preferences screen.

Limitations