Documentsgap-between-display-and-displayed-content
Gap between display and displayed content
Remove the black border around your content by adjusting overscan.
Overscan can cause a black border around the displayed content. You can remove it by enabling overscan and adjusting its values in /boot/config.txt. There are three ways to do this.
A. From the web UI of the Pi player
- Open the settings page of the player in a browser.
http://<pi_ip>:8000/settings
- Enable overscan and reduce the overscan values to shrink the border. Increasing them brings content inside the display.
- The player reboots and shows the adjusted display.
B. Edit /boot/config.txt directly
Change these parameters, save and reboot. The file has comments explaining each one.
# uncomment this if your display has a black border of unused pixels visible
# and your display can output without overscan
disable_overscan=1
# uncomment the following to adjust overscan. Use positive numbers if console
# goes off screen, and negative if there is too much border
overscan_left=40
overscan_right=40
overscan_top=20
overscan_bottom=20
C. With sed commands from the server
Open the terminal of the screen (see Issue shell commands or connect to pi terminal) and run these commands, replacing the values with your own.
sudo sed 's/.*disable_overscan.*/disable_overscan=0/' -i /boot/config.txt
sudo sed -i -e 's/.*overscan_left.*/overscan_left=40/' -e 's/.*overscan_right.*/overscan_right=40/' -e 's/.*overscan_top.*/overscan_top=20/' -e 's/.*overscan_bottom.*/overscan_bottom=20/' /boot/config.txt
sudo reboot
The first command sets
disable_overscan=0while the example in B setsdisable_overscan=1. Check which value suits your display.
Read more about overscan.