Skip to content

Commit

Permalink
We support the Pi 3 now too
Browse files Browse the repository at this point in the history
  • Loading branch information
rmens committed Aug 17, 2024
1 parent c286bfc commit 69a5d0a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
This repository provides a script to configure a Raspberry Pi as a narrowcasting screen, displaying a webpage in full-screen mode using Chromium. The setup process includes installing essential packages, configuring the window manager, setting a fallback wallpaper, and enabling VNC for remote access.

## Compatibilty
This setup is designed for Raspberry Pi 4 or newer models and is compatible only with Raspberry Pi OS Bookworm (64-bit) Lite. There's no need to install a full desktop environment, as this script installs and configures a lightweight alternative.
This setup is designed for Raspberry Pi 3 or newer models and is compatible only with Raspberry Pi OS Bookworm (64-bit) Lite. There's no need to install a full desktop environment, as this script installs and configures a lightweight alternative.

## Usage
To get started, install Raspberry Pi OS Bookworm (64-bit) and log in as a non-privileged user. It's important to avoid using `su` or `sudo` for root access during this process. Run the following command to execute the setup script:
Expand Down Expand Up @@ -35,7 +35,7 @@ CHROME_URL="your_custom_chrome_url"
### Foreced resolution
To ensure the Raspberry Pi displays the content correctly on different screens, the script includes settings to force a specific screen resolution. This is particularly useful when connecting to displays that may not automatically configure to the desired resolution.

By default, the script configures the Raspberry Pi to use a standard HD resolution (1920x1080) at 50Hz. If you need a diffrent resolution, you can change the `VIDEO_OPTION` variable and the `xrandr` commands. By default only the main screen (HDMI-A) is used.
By default, the script configures the Raspberry Pi to use a broadcast HD resolution (1080i) at 50Hz. If you need a diffrent resolution, you can change the `VIDEO_OPTION` variable and the `xrandr` commands. By default only the main screen (HDMI-A) is used.

## License

Expand Down
8 changes: 4 additions & 4 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,10 @@ set_colors
# Check if the script is running as root
check_user_privileges normal

# Ensure the script is running on a supported platform (Linux, 64-bit, Raspberry Pi 4 or newer)
# Ensure the script is running on a supported platform (Linux, 64-bit, Raspberry Pi 3 or newer)
is_this_linux
is_this_os_64bit
check_rpi_model 4
check_rpi_model 3

# Clear the terminal for a clean start
clear
Expand Down Expand Up @@ -86,14 +86,14 @@ xset s noblank # Don't blank the video device.
xrandr --newmode "1920x1080_50i" 74.25 1920 2448 2492 2640 1080 1084 1094 1125 interlace -hsync +vsync
xrandr --addmode HDMI-1 "1920x1080_50i"
# Set HDMI-1 as the primary monitor
# Set the resolution
xrandr --output HDMI-1 --mode "1920x1080_50i"
# Hide the mouse cursor when idle
unclutter -idle 0 &
# Display the fallback image as a background using feh
feh --fullscreen /var/fallback/fallback.png &
feh --bg-fill /var/fallback/fallback.png &
# Wait for feh to start
sleep 2
Expand Down

0 comments on commit 69a5d0a

Please sign in to comment.