Raspberry Pi: Configuration
References:
RPiconfig
config.txt
The system configuration parameters are stored in an optional text file named config.txt.
This is read by the GPU before the ARM CPU and Linux are initialised. It must therefore be located on the first (boot) partition of your SD card, alongside bootcode.bin and start.elf. This file is normally accessible as /boot/config.txt from Linux, and must be edited as root.
File format
property=value
Options
- Memory GPU memory in megabytes. This sets the memory split between the CPU and GPU; the CPU gets the remaining memory.
gpu_mem
decode_MPG2=mpg2_key
decode_WVC1=wvc1_key
- Composite video mode
- HDMI mode
- hdmi_safe "hdmi_safe=1" is equivalent to the following:
hdmi_force_hotplug=1
hdmi_ignore_edid=0xa5000080
config_hdmi_boost=4
hdmi_group=2
hdmi_mode=4
disable_overscan=0
overscan_left=24
overscan_right=24
overscan_top=24
overscan_bottom=24
- hdmi_group=1, hdmi_mode=4
- hdmi_group=2, hdmi_mode=85 1280x720
How to change Raspberry Pi's Swapfile Size on Raspbian
We will change the configuration in the file /etc/dphys-swapfile:
The default value in Raspbian is:
CONF_SWAPSIZE=100
We will need to change this to:
CONF_SWAPSIZE=1024
Then you will need to stop and start the service that manages the swapfile own Rasbian:
sudo /etc/init.d/dphys-swapfile stop
sudo /etc/init.d/dphys-swapfile start
留言