From 6a9d3fdacecec88d27f0268b409fc929c006b81a Mon Sep 17 00:00:00 2001 From: Karl Date: Fri, 18 Jul 2025 13:24:28 +0100 Subject: [PATCH] add hyperion support --- kiosk_skeleton/build.sh | 9 +++++++- .../etc/hyperion/hyperion.config.json | 22 +++++++++++++++++++ raspberry_pi_skeleton/boot/config.txt | 7 +++--- 3 files changed, 34 insertions(+), 4 deletions(-) create mode 100644 kiosk_skeleton/etc/hyperion/hyperion.config.json diff --git a/kiosk_skeleton/build.sh b/kiosk_skeleton/build.sh index 720465d..e20f223 100755 --- a/kiosk_skeleton/build.sh +++ b/kiosk_skeleton/build.sh @@ -3,7 +3,7 @@ apt update APT_LISTCHANGES_FRONTEND=none DEBIAN_FRONTEND=noninteractive apt dist-upgrade -y -DEBIAN_FRONTEND=noninteractive apt install -y lightdm openbox nginx php-fpm php-cli chromium autossh unclutter x11-xserver-utils xdotool htop nano openssh-server rsync x11vnc lm-sensors ntpdate scrot wireless-regdb fontconfig +DEBIAN_FRONTEND=noninteractive apt install -y lightdm openbox nginx php-fpm php-cli chromium autossh unclutter x11-xserver-utils xdotool htop nano openssh-server rsync x11vnc lm-sensors ntpdate scrot wireless-regdb fontconfig curl gpg rsync -a --chown=root:root "/kiosk_skeleton/." "/" @@ -83,6 +83,13 @@ systemctl enable schedule-reboot.service systemctl enable setup-refresh-timer.service +# Install Hyperion +curl -sSL https://apt.hyperion-project.org/hyperion.pub.key | gpg --dearmor -o /usr/share/keyrings/hyperion.pub.gpg +echo "deb [signed-by=/usr/share/keyrings/hyperion.pub.gpg] https://apt.hyperion-project.org/ $(lsb_release -cs) main" | tee /etc/apt/sources.list.d/hyperion.list +apt update +apt install -y hyperiond +systemctl enable hyperiond + # generate a version info/build info file echo -n "Chromium version: " >> /version-info dpkg --list | grep "ii chromium " >> /version-info diff --git a/kiosk_skeleton/etc/hyperion/hyperion.config.json b/kiosk_skeleton/etc/hyperion/hyperion.config.json new file mode 100644 index 0000000..30d2a66 --- /dev/null +++ b/kiosk_skeleton/etc/hyperion/hyperion.config.json @@ -0,0 +1,22 @@ +{ + "general": { + "name": "AnotterKiosk" + }, + "grabber": { + "type": "framebuffer", + "device": "/dev/fb0", + "pixelformat": "rgb24" + }, + "leds": [ + { + "type": "ws281x", + "gpio": 18, + "dmanum": 10, + "freq": 800000, + "leds": 256, + "rewriteTime": 1000, + "rgbw": false, + "strip": "GRB" + } + ] +} \ No newline at end of file diff --git a/raspberry_pi_skeleton/boot/config.txt b/raspberry_pi_skeleton/boot/config.txt index 501455a..4c150a9 100755 --- a/raspberry_pi_skeleton/boot/config.txt +++ b/raspberry_pi_skeleton/boot/config.txt @@ -7,11 +7,11 @@ # uncomment to force a console size. By default it will be display's size minus # overscan. -#framebuffer_width=1280 -#framebuffer_height=720 +framebuffer_width=1920 +framebuffer_height=1080 # uncomment if hdmi display is not detected and composite is being output -#hdmi_force_hotplug=1 +hdmi_force_hotplug=1 # uncomment to force a specific HDMI mode (this will force VGA) #hdmi_group=1 @@ -29,6 +29,7 @@ enable_uart=1 disable_splash=1 dtparam=audio=on gpu_mem=256 +#dtparam=spi=on # Enable DRM VC4 V3D driver #dtoverlay=vc4-kms-v3d