1
0
Fork
You've already forked set_overscan
0
Set overscan on the fly
This repository has been archived on 2026年05月01日. You can view files and clone it, but you cannot make any changes to its state, such as pushing and creating new issues, pull requests or comments.
  • Shell 69.3%
  • C 27.9%
  • Makefile 2.8%
Find a file
ukscone 32c7c76389 Update README.md
updated as archived
2026年05月01日 05:48:06 +02:00
debian Made a doc folder for man files 2019年07月23日 10:52:38 -04:00
doc Made a doc folder for man files 2019年07月23日 10:52:38 -04:00
.gitignore Added build files to .gitignore 2019年07月29日 14:26:02 -04:00
Makefile Fixed typos 2019年07月23日 10:30:29 -04:00
overscan.c Fixed typos 2019年07月23日 10:30:29 -04:00
README.md Update README.md 2026年05月01日 05:48:06 +02:00
set-overscan Fixed typos 2019年07月23日 10:30:29 -04:00

ARCHIVED as it's no longer needed on modern Pi models and Distros

  • Doesn't work on the Raspberry Pi 4 and actually isn't required for the Pi 4
  • was written in the wheezy/jessie era so probably does nasty things now so not recommended for use any more especially as I haven't used it in years and have no interest in it now

set-overscan

Set Raspberry Pi overscan on the fly.

Although I do most of my Raspberry Pi messing around on a headless Raspberry Pi via ssh my "gaming" Raspberry Pi is not always connected to the same monitor it was yesterday or will be tomorrow and because all my monitors are different makes and models I often found myself squinting at the monitor to count pixels so I could change the overscan values in /boot/config.txt and then rebooting to find that i'd miscounted and needed to make more changes to the overscan settings and repeating that until I got it just right.

As this was beginning to get annoying I asked the Raspberry Pi kernel guru Dom Cobley if he had an example of how to twiddle the overscan settings after booting and he sent me the code to do that. I've taken his program mailbox.c & made a few little changes to create overscan.c and have wrapped that in a simple bash shell script to make changes to the Raspberry Pi's overscan setting on the fly easy.

Because I need to use mknod to create a special file the script must be run by root or using sudo.

Use the included Makefile to build overscan and then run the set-overscan script. You currently use the arrow/cursor keys to change each setting in turn & the q key to move to the next overscan value to change. The script writes the final values to /boot/config.txt

Russell "ukscone" Davis 2013年03月10日