Recipe: 002-Boot Display





Recipe Card

 

002 : Boot Display

 

Recipe Files Ingredients
(flavour)_boot.txt

(flavour)_root.txt

002-bootdisplay_INGREDIENTS.zip

For the markdown version of this recipe on the Pi-Kitchen GitHub site see:

002-Boot Display.md

 

Description

 

This recipe places a range of selectable display settings on to the SD-Card.

The config.txt allows you to specify the configuration of the Raspberry Pi on boot (such as the display).

This allows you to specify the specific display you wish to use with the Raspberry Pi when it boots. You can select a particular display within the recipe file as well as change the selected display using the supplied script.

In addition to the display output type you can also specify a number of options to fine tune the display:

  • overscan values for left/right/top/bottom allow you to remove any black boarders/overlap off the screen
  • framebuffer height and width allows adjustment of the screen resolution (useful for small screens)

This is particularly useful if you are using a smaller/custom screen where the output is difficult to read if not configured carefully.

The intention is that if you use a range of different screens you can add your own variants to the supplied configurations. This will allow you to quickly and easily switch between them (as well as apply the settings automatically as part of your Pi-Kitchen installation).

This file can also control more than the display settings (such as codex licensing and overclocking), more details are available here:

Raspberry Pi (elinux) Wiki for RPiconfig.

A fully documented version of the config.txt file is available here:

Documented config.txt

How to use

 

Enable/Disable by running sudo ./bin/switchdisp.sh

 

Ingredients

The ingredient files should be placed in the following location on the NOOBS RECOVERY partition:

 

pi-kitchen/002-bootdisplay

 

This recipe uses the following files:

 

hdminormal/config.txt

hdmiforced/config.txt

sdtvpal/config.txt

sdtvntsc/config.txt

switchdisp.sh

 

You can download all the ingredient files, and extracted directly to the NOOBS SD-Card (ensuring you remove the ZIP file’s name from the directory – the files should be extracted to pi-kitchen/002-bootdisplay).

The Recipe Files

Each recipe will use one file for each of the partitions it installs to – boot, root and data).

You will need to suitably rename or copy the content of each of the following files into your recipe files (i.e. RaspbianPiKitchen_root.txt) and place them in your os folder in the NOOBS partition (i.e. os/Raspbian).

For more information see the Pi-Kitchen: Creating Flavours guide.

(flavour)_boot.txt

#

#Recipe: 002-bootdisplay

#Configure the boot settings:

#-- Only one config.txt file should be applied at any one time (only comment one out)

#- HDMI Normal - Default setting will detect HDMI connection on power up

../../pi-kitchen/002-bootdisplay/hdminormal/config.txt

#- HDMI Forced - Will always select HDMI output

#../../pi-kitchen/002-bootdisplay/hdmiforced/config.txt

#- SD PAL - Set composite video output to PAL

#../../pi-kitchen/002-bootdisplay/sdtvpal/config.txt

#- SD NTSC - Set composite video output to PAL

#../../pi-kitchen/002-bootdisplay/sdtvntsc/config.txt

#

#Add switchdisp files:

../../pi-kitchen/002-bootdisplay/hdminormal/config.txt /display/hdminormal

../../pi-kitchen/002-bootdisplay/hdmiforced/config.txt /display/hdmiforced

../../pi-kitchen/002-bootdisplay/sdtvpal/config.txt /display/sdtvpal

../../pi-kitchen/002-bootdisplay/sdtvntsc/config.txt /display/sdtvntsc

(flavour)_root.txt

#

#Recipe: 002-bootdisplay

#Add switchdisp files:

#- switchdisp.sh should be set as executable

../../pi-kitchen/002-bootdisplay/switchdisp.sh /home/pi/bin +x

Enjoy baking your Raspberry Pi SD-Card fresh from the Pi-Kitchen.

Comments

Leave a comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.