Skip to content

Latest commit

 

History

History
133 lines (93 loc) · 3.65 KB

raspberry-roonbridge-display.md

File metadata and controls

133 lines (93 loc) · 3.65 KB

RaspberryPi with Roon Bridge and display

Hardware

Raspberry Pi 3 Model B with DietPi including Roon Bridge and display for my Home Assistant installation.

Installation

DietPi

After initial bootup, login through ssh: ssh root@dietpi

Password: dietpi

DietPi Initial

After confirmation DietPi will update itself.

DietPi-Set Software

DietPi Unix Password

DietPi Serial Console

DietPi Software

  1. Select Software
  2. Software Optimized -> Desktops -> 133 Chromium
  3. Software Optimized -> Media Systems -> 121 Roon Bridge
  4. Install the software

DietPi Software Install

DietPi GPU Memory

DietPi GPU Memory

DietPi Software Final

Configure Sound Card

dietpi-config

Audio -> Soundcard -> hifiberry-digi

DietPi Software Configure Soundcard

Rotate the display

In my configuration I had to rotate the display 180 degrees:

DietPi-Config -> Display Options -> Rotation (LCD)

Console boot up

There's a way to configure DietPi to boot into a Chromium window. But with the following procedure you will get the following advantages:

  • No cursor
  • No scroll bar
  • Turn your screen off after a given time
    • DietPi has disabled dpms by default. So you'll have to remove /etc/X11/xorg.conf.d/98-dietpi-disable_dpms.conf.
  1. As root, run the autostart configuration:
  2. dietpi-autostart
  3. Select Custom - /var/lib/dietpi/dietpi-autostart/custom.sh
  4. Save and exit

System configuration

  1. Modify the custom.sh startup script
  2. nano /var/lib/dietpi/dietpi-autostart/custom.sh
  3. Add this to the bottom of the file:
# Run the custom kiosk script
xinit /root/kiosk.sh -- -nocursor
  1. Save and exit
  2. Make the custom.sh script executable
  3. chmod +x /var/lib/dietpi/dietpi-autostart/custom.sh
  4. Create the kiosk.sh script
  5. nano /root/kiosk.sh
  6. Paste the following code as content:
#!/bin/sh

#######################################
#
# Start up script for running the
# Chromium web browser full screen
#
#######################################

# Set the X display
export DISPLAY=":0"
# Tune the screen blanking time - time in seconds (standby, suspend, off)
# All numbers are time in seconds
# default value
# xset dpms 600 600 600 &
# 1 minute blank time
xset dpms 60 60 60 &

# start full screen web app
# change the URL if Roon Web Controller is running on a different system
# set --user-data-dir to restore your login and Home Assistant settings
/usr/bin/chromium --kiosk --user-data-dir=/root/.config/chromium https://server:9330/display/
  1. Save and exit
  2. Make the kiosk.sh executable
  3. chmod +x /root/kiosk.sh
  4. reboot

Source

ToDo

  • Keep LEDs off
    • nano /boot/config.txt
      #--------Onboard LEDs--------
      # Disable the ACT LED
      dtparam=act_led_trigger=none
      dtparam=act_led_activelow=off
      
      # Disable the PWR LED
      dtparam=pwr_led_trigger=none
      dtparam=pwr_led_activelow=off
      

Links