[Plugin] Pi Screen Setup Plugin - Display Configuration for Volumio 4

Dear Volumionauts,

Pi Screen Setup has been reworked from the ground up. Version 1.0.0 is now in the Volumio plugin store.

Important: this is for Volumio OS V4 (Bookworm-based) on Raspberry Pi only.

TL;DR

What this is

This is a guided wizard that writes the display configuration for your Raspberry Pi. It covers HDMI, DSI, DPI and SPI panels and composite output, including resolution, rotation and HDMI audio. It draws on a database of 228 display configurations listed under 285 product names, and it keeps your configuration across Volumio updates.

What this is not

This plugin configures the boot files for the display hardware. It does not put the Volumio UI on the screen. That is the job of the Touch Display plugin (see post 2).

Installation

Settings → Plugins → Search Plugins, category System Hardware. Install Pi Screen Setup, then enable it.

The test-store steps from the original version of this post are no longer needed.

Updating from 0.8.x

If you authored presets in the Preset Manager, export them before updating and import them again afterwards. You can export from Preset Manager → Export, or by opening http://:4567/api/database/export. Releases before 1.0 kept these presets inside the plugin folder, which Volumio deletes when it updates a plugin. From 1.0 on they live under /data/INTERNAL/pi_screen_setup/, which an update leaves alone.

Your display settings are kept and converted at the first start.

What changed in 1.0

  • Settings persist. 0.8.x did not keep its settings across a restart. 1.0 stores them properly. If the settings file is ever lost, the plugin rebuilds it from its own boot files at the next start and tells you so.
  • The board is read from its revision code. Zero 2 W, 400, 500, CM4S, CM5 and CM5 Lite are now recognised as themselves.
  • config.txt and its includes are read the way the firmware reads them, conditional filters included. The plugin shows what actually applies to your board right now.
  • If the boot files apply no display driver (KMS) on a board that has one, the plugin writes the driver line itself under its own banner once enabled, even before you configure it, and says so. The wizard’s configuration replaces that line.
  • HDMI under KMS: the kernel ignores hdmi_group, hdmi_mode, hdmi_cvt and hdmi_timings. The plugin now derives the kernel mode for every HDMI row and for custom timings, and puts it on the kernel command line.
  • Panels with non-standard timings get a generated EDID. This also enables HDMI audio on panels that have no EDID of their own, provided the port is set to Screen + Audio.
  • Vendor overlay files are bundled for eight Waveshare presets: 2.8", 3.5", 4" (B), 4" (C), 5" and 7" DPI LCD, and 3.5" DSI LCD (E) and (H). They are installed when needed and removed when not.
  • SPI panels are supported, experimentally (see below).
  • Rotation is applied where the kernel reads it: the panel overlay’s own parameter where one exists, the kernel command line otherwise. Rotation is no longer doubled, and rotate= is no longer appended to overlays that do not accept it.
  • Graphics memory (CMA) is set per board, with “Kernel default” as one of the choices. Installs still on the old “Default (64 MB)” setting are moved once to “Kernel default”, with a notice.
  • After a Volumio update, the plugin recognises the version change and regenerates the configuration from your current settings rather than from copies taken at install.
  • Lines in userconfig.txt that act on the display, such as the Touch Display plugin’s display_lcd_rotate, are pointed out.
  • A new “Write a diagnostics report” button writes /tmp/pi-screen-setup-diagnostics.txt. It records the board, the boot files as they are and as they apply, what the firmware applied, the connectors the kernel sees, and the plugin’s state.
  • Security: every write now goes through one root helper with a single sudoers entry, and the plugin itself runs as the volumio user. The Preset Manager API on port 4567 no longer accepts arbitrary file paths.
  • These database rows were corrected in place: Waveshare 5" DSI LCD (C) (1024x600) and (D) (720x1280), Waveshare 7" DSI LCD (C) touch (i2c1), and Hosyond 10.1" HDMI Display-H timings.

Supported boards

Raspberry Pi 2, 3, 3+, 4, 400, 5, 500; Compute Modules 3, 3+, 4, 5; Zero 2 W.

The plugin offers only the outputs your board has. The Zero 2 W boots without the KMS driver on Volumio, and the plugin follows that.

Supported displays (228 configurations, 285 names)

The database updates itself from the repository, so new displays arrive without a plugin update. If a row does not fit your player, for example because the kernel is too old or the panel does not exist for your board, the picker tells you before you apply.

HDMI:

  • Waveshare 2.8" - 12.3" (including round, square and bar models)
  • Adafruit 5", 7", 10.1"
  • Elecrow 5", 7"
  • GeeekPi/52Pi 5" - 11.6"
  • UCTRONICS 3.5" - 7"
  • LCDwiki/goodtft 3.5" - 7" (Miuzei/Kuman rebrands)
  • Sunfounder 7", 10.1"
  • Kuman 7"
  • Joy-IT 5" - 10.1"
  • Seeed Studio 5" - 10.1"
  • Spotpear 4" - 10.1" (including round)
  • Freenove 7"
  • Longruner 5", 7"
  • Hosyond 5" - 10.1" (including 8.8" bar)
  • HMTECH 7", 10.1"
  • Pollin 5" 800x480 (pre-2020)
  • Generic resolutions: 480x320 to 1920x1200, 1520x720 wide bars, portrait 720x1280 and 1080x1920, 720p, 1080p, 4K
  • Custom hdmi_timings and hdmi_cvt

Official Raspberry Pi DSI:

  • Touch Display 7" (original)
  • Touch Display 2 - 5", 7", 10"

Waveshare DSI:

  • 2.8" - 13.3" panels, including round, square and bar form factors
  • Full DSI-TOUCH V2 series (2-lane and 4-lane)
  • 3.5" DSI LCD (E) and (H), with the vendor overlays bundled
  • 10.1" DSI LCD (E), which needs kernel 6.18.55

Other DSI:

  • BIGTREETECH/BIQU 4.3" - 7"
  • Freenove 4.3" - 7"
  • Hosyond 5", 7"
  • JDI LT070ME05000 panels

DPI:

  • Pimoroni HyperPixel 2.1" Round, 4.0", 4.0" Square
  • Waveshare 2.8" - 7", with the vendor overlays bundled
  • BIGTREETECH 4.3"
  • Adafruit Kippah 7"
  • Geekworm MZP280
  • Innolux AT056TN53
  • VGA666 adapter
  • Custom/generic DPI

SPI (experimental):

  • Adafruit PiTFT 2.2", 2.8"/2.4"/3.2" resistive, 2.8" capacitive, 3.5" resistive
  • OzzMaker PiScreen
  • Watterott RPi-Display

The kernel treats an SPI panel as a display device of its own (connector SPI-1), so Volumio’s screen may have to be pointed at it. Touch orientation is not managed.

Other:

  • Composite PAL/NTSC/PAL-M/PAL-N
  • Custom device tree overlay line
  • Headless

New rows since the original post also include Waveshare 3.2" (H), 3.4" round, 3.5" 480x800, 5DP-CAPLCD, 8" and 9.7" 768x1024, 8" 1536x2048, 9HP/10.1HP-CAPQLED, 10.1EP-CAPLCD, 10.4HP-CAPQLED, 11.6" 1768x828 and 12.3" 1920x720 HDMI panels; Elecrow Screen-D 7" and SF101C 10.1"; and Luckfox 7" HD.

In addition, 55 product names are now listed under their own name and select the row that carries their configuration. These include Luckfox DSI-TOUCH, Spotpear, Seeed, Joy-IT, Pollin, OSOYOO, DFRobot and the Waveshare CAPLCD family.

How it works

  1. Open the plugin settings. Choose whether the plugin should detect the connected display, or configure it by hand.
  2. Step through: Output → Display → Rotation → Graphics memory → After a Volumio update → Review and apply.
  3. Apply creates a restore point, writes the files and offers a reboot.

Once applied, the plugin shows the current configuration, its summary and the effective boot files. It also offers Edit, the restore points (the last ten are kept), the diagnostics report, the database update check, and removal of its configuration.

If things go sideways

If there is no picture after a reboot, run this over SSH:

sudo pi-screen-setup-root clean-exit

followed by:

sudo reboot

This returns the display to Volumio’s own configuration. Every videoconfig.txt that was applied is kept under /data/INTERNAL/pi_screen_setup/backups/restore_points/.

Reporting a problem

Follow the help request template:

Include:

  • Device model and storage type
  • Exact Volumio version
  • Exact plugin version
  • Exact display product name
  • Log link from http://volumio.local/dev
  • The diagnostics report: press “Write a diagnostics report” in the plugin’s hardware section, then post the output of:
cat /tmp/pi-screen-setup-diagnostics.txt

Contributing displays

Open the Preset Manager at http://:4567/, add the preset, test it on your display, then use “Export for PR” and open a pull request. Alternatively, post the details here using the templates in post 3. Each row needs a name, a type, the vendor’s lines, and where those lines come from.

Disclaimer

I do not take any responsibility if:

  • Your snowball develops an intense desire to become rocket fuel
  • Your microwave chooses to sing kumbaya at 3 AM
  • Your display decides it prefers interpretive dance over showing pixels
  • Any other unexpected behavior occurs

If things go sideways, the “Remove the plugin’s display configuration” button, or the command above, returns the display to Volumio’s own configuration. A full Volumio reinstall remains the last resort.

USE AT YOUR OWN RISK.

Source code and changelog

GitHub: GitHub - foonerd/pi_screen_setup · GitHub
Changelog: pi_screen_setup/CHANGELOG.md at main · foonerd/pi_screen_setup · GitHub

Support the project

Pi Screen Setup is free and open source, designed, built and maintained by one developer in his own time. If it has earned a place on your player, you can support it through:
GitHub Sponsors (Sponsor @foonerd on GitHub Sponsors · GitHub) or
Ko-fi (https://ko-fi.com/justanerd).
Sponsorship is a thank-you, not a purchase: it buys no priority, no features and no support agreement.

Feedback welcome

  • Does it work on your setup?
  • Which display are you using?
  • Anything not behaving as expected? See “Reporting a problem” above.

Kind Regards,