Skip to content

Commit

Permalink
Switch to 50hz
Browse files Browse the repository at this point in the history
  • Loading branch information
rmens committed Aug 16, 2024
1 parent b85bb48 commit 2873182
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
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 60Hz. 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 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.

## License

Expand Down
8 changes: 4 additions & 4 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ FUNCTIONS_LIB_URL="https://raw.githubusercontent.com/oszuidwest/bash-functions/m
# Constants
FUNCTIONS_LIB_PATH="/tmp/functions.sh"
CMDLINE_FILE="/boot/firmware/cmdline.txt"
VIDEO_OPTION="video=HDMI-A-1:1920x1080@60D"
VIDEO_OPTION="video=HDMI-A-1:1920x1080i@50D"

# Remove old functions library and download the latest version
rm -f "$FUNCTIONS_LIB_PATH"
Expand Down Expand Up @@ -83,11 +83,11 @@ xset s off # Disable screen saver.
xset s noblank # Don't blank the video device.
# Set the resolution and position monitor 2 to the right of monitor 1
xrandr --newmode "1920x1080_60.00" 173.00 1920 2048 2248 2576 1080 1083 1088 1120 -hsync +vsync
xrandr --addmode HDMI-1 1920x1080_60.00
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
xrandr --output HDMI-1 --primary --mode 1920x1080_60.00 --rate 60
xrandr --output HDMI-1 --mode "1920x1080_50i"
# Hide the mouse cursor when idle
unclutter -idle 0 &
Expand Down

0 comments on commit 2873182

Please sign in to comment.