rpifbss - Raspberry Pi Framebuffer Slideshow

  • Ausgelagert aus: Informationen im Eingangsbereich darstellen

    Klar sind wir neugierig. :green_wink:

    Na gut, hier ist der aktuelle Stand, sozusagen als Schnappschuss (von meinem Repository https://github.com/rpi-simonz/rpifbss).

    Die Dokumentation ist auf Englisch, sorry about that! ;)

    Script-Quelltext im Spoiler:

    Display Spoiler


    rpifbss - Raspberry Pi Framebuffer Slideshow

    This program provides a simple framebuffer slideshow from a directory of files.

    It uses the software 'fbi' for that. So only still images are possible, no videos.

    PDF files are displayed as well. Even short text files (with extension .txt) are converted to images and shown.

    The directory containing the files to be displayed can be defined by the first commandline argument. Otherwise the current working directory is used.

    The slideshow can be controlled interactively with fbi's key shortcuts.

    • 'h' lists all of them on the framebuffer display, see below
    • 'q' stops the current slideshow, and then
      • reads in possible new or modified files
      • converts unseen text files
      • and restarts the slideshow with the new contents


    During re-reading and possibly converting new files, what can need several seconds, there is a maintenance message displayed.
    This message is stored in a text file in the automatically created subdirectory 'maintenance/' and can be adapted to individual needs.

    Ctrl-C ends this program and therfore the slideshow completely.

    The configuration is done in the script rpifbss itself, in a 'Configuration section' at the beginning.

    To have a comfortable environment it is recommended to start rpifbss in a tmux or screen session.
    Then the running slideshow is always accessible, even remotely via an SSH connection.

    Requirements and preparations

    Raspberry Pi OS

    Tested with Bookworm (Debian 12) 64-Bit Desktop. TODO: Test lite version.

    Should work on older releases too, but that has not been tested yet.

    fbi with current version 2.14 or newer

    The really old version 2.09 included in Raspberry Pi OS doesn't work well. So we need to compile fbi ourselves from source...

    Compile fbi from source

    Download fbida-master.zip from https://github.com/kraxel/fbida

    Then - in a terminal - change into the folder where the downloaded file is, and:

    Unfortunately the provided Makefile has a missing target entry...

    Edit it with

    Code
    nano Makefile

    and add these two lines at the bottom (important: That's a leading TAB in the second line!):

    Code
    install:
    	$(MESON) install -C $(BDIR)

    Following the fbida documentation won't work on standard Raspberry Pi OS because the user root isn't usable there by default.

    Instead of

    Code
    su -c "make install"

    better use this:

    Code
    sudo make install

    In case the original old fbi is already/still installed it is recommended to uninstall it:

    Code
    sudo apt purge fbi

    Or at least we should clean up the current shell's cache by:

    Code
    hash -r fbi

    Some of ImageMagick's policy restrictions need to be adapted

    Code
    sudo nano /etc/ImageMagick-6/policy.xml

    The following two entries need to be commented out as shown:

    Code
        <!--  <policy domain="path" rights="none" pattern="@*"/>  -->
        <!--  <policy domain="coder" rights="none" pattern="PDF" />  -->

    Additionally show some more configured limits for ImageMagick:

    Code
    identify -list resource

    The system should be using the multi-user target, not the graphical one

    List available targets:

    Code
    systemctl list-units --type target --all

    Stop graphical desktop:

    Code
    # temporarily:
    sudo systemctl isolate multi-user
    
    # permanently (recommended):
    sudo systemctl set-default multi-user
    sudo systemctl isolate multi-user

    TODO: Check 'lite' systems and update this readme if needed.

    Stop the blinking cursor usually visible on the frame buffer display

    Code
    sudo -s
    echo 0 > /sys/class/graphics/fbcon/cursor_blink
    exit

    Edited 13 times, last by simonz: Updates (November 27, 2024 at 1:27 PM).

  • In case the original old fbi is already/still installed it is recommended to uninstall it:

    Wäre purge da nicht besser?

    Ja, vermutlich. Aber soweit ich weiß, legt fbi keine Config-Dateien etc. an.

    Edit: Habe es in #8 entsprechend geändert.

    Edit2: Doch, es gibt eine Config-Datei, wenn vom User angestoßen.
    Eigentlich macht es ja Sinn, die Datei zu belassen.
    Aber es haben sich bei fbi Aufrufparameter geändert, so dass es in diesem Fall tatsächlich besser zu sein scheint, die Config ebenfalls zu deinstallieren.

    Edited 2 times, last by simonz (November 27, 2024 at 11:58 AM).

  • Post by simonz (November 26, 2024 at 10:17 PM).

    This post was deleted by the author themselves: Obsolet (November 27, 2024 at 5:52 PM).

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!