raspberry pi 4 dual monitor kiosk mode

Raspberry Pi 4 Dual Monitor Kiosk Mode - Set Up Guide

By Ashley Williams
AD

The Raspberry Pi 4's enhanced capabilities allow it to power multiple displays, making it perfect for unique projects like custom kiosks. Setting up a dual-monitor configuration in kiosk mode brings interactivity and engagement to your projects. Here's a comprehensive guide on achieving this, optimized for search engines and written in a user-friendly style.

Before diving into the setup, ensure you have the necessary hardware: a Raspberry Pi 4, two HDMI monitors, and appropriate HDMI cables. Also, familiarize yourself with the Raspberry Pi's software using Raspberry Pi OS (formerly Raspbian).

Setting Up the Hardware

The Raspberry Pi 4 supports up to two displays via its dual HDMI ports. Connect both monitors to the Raspberry Pi and ensure they're powered on. You may need to adjust your monitor settings for detection.

AD
Raspberry Pi Cyberdeck: The 3D Printable Dual Screen Build That Reveals The Real Constraints | Bit Rebels
Raspberry Pi Cyberdeck: The 3D Printable Dual Screen Build That Reveals The Real Constraints | Bit Rebels
Datastore summary dashboard running on raspberry pi kiosk
Datastore summary dashboard running on raspberry pi kiosk
The Best 4K Monitors for Raspberry Pi
The Best 4K Monitors for Raspberry Pi

Once connected, you'll notice that the Raspberry Pi defaults to displaying the same output on both screens. To change this, we'll modify the HDMI group settings.

Configuring HDMI Group Settings

The HDMI group settings determine whether the displays mirror or extend each other. To modify these settings, open the Raspberry Pi Configuration tool by typing sudo raspi-config in the terminal.

the raspberry pi4 is shown in this screenshot from an iphone app
the raspberry pi4 is shown in this screenshot from an iphone app
Raspberry Pi Kiosk
Raspberry Pi Kiosk
5 Inch Touchscreen Monitor for Raspberry Pi 4/3, 800x480 Pixel IPS Display Capacitive Screen MIPI
5 Inch Touchscreen Monitor for Raspberry Pi 4/3, 800x480 Pixel IPS Display Capacitive Screen MIPI

Navigate to Display Options and select Configure_tv. Here, choose Advanced options and set HDMI group to 2. This configures the Raspberry Pi to use both displays. Exit and reboot your Raspberry Pi.

Setting Up Xrandr for Custom Display Arrangement

While the default settings allow for dual-display usage, it might not be the desired arrangement. You can use xrandr, a command-line utility, to change the display arrangement. Run xrandr -q to see your current display layout and unique names (e.g., HDMI-1, HDMI-2).

AD

To set up your displays, use a command like xrandr --output HDMI-1 --mode 1920x1080 --position 0x0 --rotate normal --output HDMI-2 --mode 1920x1080 --position 1920x0 --rotate normal --above HDMI-1. Replace HDMI-1 and HDMI-2 with your display names and adjust sizes and positions as needed.

7 Inch Raspberry Pi 4/3/2/B/B+/A+ Monitor 1024x600 IPS 5-Points Capacitive Touchscreen Drive Free
7 Inch Raspberry Pi 4/3/2/B/B+/A+ Monitor 1024x600 IPS 5-Points Capacitive Touchscreen Drive Free
Raspberry Pi 4 Model B/ 3B+/ 3B 7 inch 1024x600 IPS Capacitive Touch Screen 7
Raspberry Pi 4 Model B/ 3B+/ 3B 7 inch 1024x600 IPS Capacitive Touch Screen 7
a computer monitor sitting on top of a wooden table
a computer monitor sitting on top of a wooden table
Five Things You Can Do With the New Raspberry Pi
Five Things You Can Do With the New Raspberry Pi
Discover the Top Raspberry Pi Screens - STEM Education Guide
Discover the Top Raspberry Pi Screens - STEM Education Guide
Raspberry Pi Touch Display 2 – 10″ Portrait review, 3D printed VESA mount - CNX Software
Raspberry Pi Touch Display 2 – 10″ Portrait review, 3D printed VESA mount - CNX Software

Enabling Kiosk Mode

Kiosk mode ensures your Raspberry Pi boots directly into a full-screen web browser, displaying a specified webpage. This is ideal for public information displays or menus. We'll use a lightweight, touch-friendly browser called Chromium.

Install Chromium by running sudo apt-get update && sudo apt-get install chromium-browser. Now, let's configure it for kiosk mode.

AD

Autostarting Chromium in Kiosk Mode

Create a systemd service file to autostart Chromium in kiosk mode. Open a new file in the systemd directory: sudo nano /etc/systemd/system/chromium@kiosk.service. Add the following content:

a computer monitor sitting on top of a stand
a computer monitor sitting on top of a stand
Home Media Center Using Raspberry Pi
Home Media Center Using Raspberry Pi
7'' Small HDMI Monitor 800x480 Raspberry Pi Screen with Case Second/Extend Screen for Raspber...
7'' Small HDMI Monitor 800x480 Raspberry Pi Screen with Case Second/Extend Screen for Raspber...
NEW PRODUCTS – HDMI 4 Pi: 7″ Display w/Touchscreen – 1024×600 – HDMI/VGA/NTSC/PAL / Mini Driver / Audio
NEW PRODUCTS – HDMI 4 Pi: 7″ Display w/Touchscreen – 1024×600 – HDMI/VGA/NTSC/PAL / Mini Driver / Audio
TFP401 HDMI/DVI Decoder to 40-Pin TTL Breakout - Without Touch
TFP401 HDMI/DVI Decoder to 40-Pin TTL Breakout - Without Touch
HAMTYSAN 15.6 Inch Raspberry Pi Screen FHD 1920x1080 Touchscreen Monitor IPS Second Screen Display with Dual-Speakers for Raspbe
HAMTYSAN 15.6 Inch Raspberry Pi Screen FHD 1920x1080 Touchscreen Monitor IPS Second Screen Display with Dual-Speakers for Raspbe
10.1" Raspberry pi5 4/3B Touchscreen Monitor 1920x1200 IPS Display DC 12V HDMI RPI for Raspberry Pi
10.1" Raspberry pi5 4/3B Touchscreen Monitor 1920x1200 IPS Display DC 12V HDMI RPI for Raspberry Pi
Raspberry Pi: Openelec Vs Raspbmc
Raspberry Pi: Openelec Vs Raspbmc
You searched for raspberry pi handheld - Page 3 of 22 - Liliputing
You searched for raspberry pi handheld - Page 3 of 22 - Liliputing
4 Inch 720*720 480*480 IPS Capacitive Touch Screen Mini HDMI-Compatible Interface Computer Monitor
4 Inch 720*720 480*480 IPS Capacitive Touch Screen Mini HDMI-Compatible Interface Computer Monitor
the raspberry pi3 is connected to an electronic device and plugged in
the raspberry pi3 is connected to an electronic device and plugged in
Setup your Raspberry PI 4 as a headless server - PragmaticLinux
Setup your Raspberry PI 4 as a headless server - PragmaticLinux
[Unit] Description=Chromium in kiosk mode [Service] ExecStart=/usr/bin/chromium-browser --noerrdialogs --kiosk [Install] WantedBy=multi-user.target

Replace with the URL of the webpage you want to display. Save and close the file, then reload the daemon with sudo systemctl daemon-reload, and enable the service with sudo systemctl enable chromium@kiosk.service. Finally, reboot your Raspberry Pi.

Preventing Users from Exiting Kiosk Mode

To prevent users from escaping kiosk mode, add a file to prevent the taskbar/user interface from showing: sudo nano /etc अथ Domingo/grub. Find the line starting with GRUB_CMDLINE_LINUX_DEFAULT="quiet, and add vblank modeswitch=60 consoleblank=0:

AD
GRUB_CMDLINE_LINUX_DEFAULT="quiet vblank modeswitch=60 consoleblank=0"

Save and close the file, then update GRUB with sudo update-grub and reboot your Raspberry Pi. Now, your Raspberry Pi should boot directly into kiosk mode with both displays in your desired arrangement.

With this setup, you're ready to transform your Raspberry Pi 4 into a compelling dual-monitor kiosk – perfect for info displays, menus, or interactive projects. Explore the infinite possibilities and make your innovative idea a reality. Happy tinkering!

AD