Tutorials
Monday, 05 May 2014 17:37

Changing the Screen Resolution for Raspberry Pi

Written by 
View the current display configuration
tvservice -s
 
View the /boot/config.txt settings
vcgencmd get_config int
 
Get the list of what is supported by your monitor:
tvservice -d dataFile #dump information to dataFile
edidparser dataFile #load dataFile & display on screen
 
This is the information from my Acer 20" LCD monitor, note that the preferred mode is DMT 85
HDMI:EDID version 1.3, 0 extensions, screen size 44x25 cm
HDMI:EDID features - videodef 0x80 !standby !suspend active off; colour encoding:RGB444|YCbCr422; sRGB is not default colourspace; preferred format is native; does not support GTF
HDMI:EDID found monitor range descriptor tag 0xfd
HDMI:EDID monitor range offsets: V min=0, V max=0, H min=0, H max=0
HDMI:EDID monitor range: vertical is 50-76 Hz, horizontal is 30-80 kHz, max pixel clock is 160 MHz
HDMI:EDID monitor range does not support GTF
HDMI:EDID found monitor S/N descriptor tag 0xff
HDMI:EDID found monitor name descriptor tag 0xfc
HDMI:EDID monitor name is Acer_S201HL
HDMI:EDID found preferred DMT detail timing format: 1600x900p @ 60 Hz (83)
HDMI:EDID established timing I/II bytes are BF EE 80
HDMI:EDID found DMT format: code 4, 640x480p @ 60 Hz in established timing I/II
HDMI:EDID found DMT format: code 5, 640x480p @ 72 Hz in established timing I/II
HDMI:EDID found DMT format: code 6, 640x480p @ 75 Hz in established timing I/II
HDMI:EDID found DMT format: code 8, 800x600p @ 56 Hz in established timing I/II
HDMI:EDID found DMT format: code 9, 800x600p @ 60 Hz in established timing I/II
HDMI:EDID found DMT format: code 10, 800x600p @ 72 Hz in established timing I/II
HDMI:EDID found DMT format: code 11, 800x600p @ 75 Hz in established timing I/II
HDMI:EDID found DMT format: code 16, 1024x768p @ 60 Hz in established timing I/II
HDMI:EDID found DMT format: code 17, 1024x768p @ 70 Hz in established timing I/II
HDMI:EDID found DMT format: code 18, 1024x768p @ 75 Hz in established timing I/II
HDMI:EDID standard timings block x 8: 0x714F 81C0 8100 A9C0 0101 0101 0101 0101
HDMI:EDID found DMT format: code 21, 1152x864p @ 75 Hz (4:3) in standard timing 0
HDMI:EDID found DMT format: code 85, 1280x720p @ 60 Hz (16:9) in standard timing 1
HDMI:EDID found DMT format: code 28, 1280x800p @ 60 Hz (16:10) in standard timing 2
HDMI:EDID found DMT format: code 83, 1600x900p @ 60 Hz (16:9) in standard timing 3
HDMI:EDID filtering formats with pixel clock > 162 MHz or h. blanking > 1023
HDMI:EDID best score mode initialised to DMT (4) 640x480p @ 60 Hz with pixel clock 25 MHz (score 0)
HDMI:EDID best score mode is now DMT (4) 640x480p @ 60 Hz with pixel clock 25 MHz (score 36864)
HDMI:EDID best score mode is now DMT (5) 640x480p @ 72 Hz with pixel clock 31 MHz (score 44236)
HDMI:EDID best score mode is now DMT (6) 640x480p @ 75 Hz with pixel clock 31 MHz (score 46080)
HDMI:EDID best score mode is now DMT (8) 800x600p @ 56 Hz with pixel clock 36 MHz (score 53760)
HDMI:EDID best score mode is now DMT (9) 800x600p @ 60 Hz with pixel clock 40 MHz (score 57600)
HDMI:EDID best score mode is now DMT (10) 800x600p @ 72 Hz with pixel clock 50 MHz (score 69120)
HDMI:EDID best score mode is now DMT (11) 800x600p @ 75 Hz with pixel clock 49 MHz (score 72000)
HDMI:EDID best score mode is now DMT (16) 1024x768p @ 60 Hz with pixel clock 65 MHz (score 94370)
HDMI:EDID best score mode is now DMT (17) 1024x768p @ 70 Hz with pixel clock 75 MHz (score 110100)
HDMI:EDID best score mode is now DMT (18) 1024x768p @ 75 Hz with pixel clock 78 MHz (score 117964)
HDMI:EDID best score mode is now DMT (21) 1152x864p @ 75 Hz with pixel clock 108 MHz (score 174298)
HDMI:EDID DMT mode (28) 1280x800p @ 60 Hz with pixel clock 83 MHz has a score of 147880
HDMI:EDID best score mode is now DMT (83) 1600x900p @ 60 Hz with pixel clock 108 MHz (score 5284200)
HDMI:EDID DMT mode (85) 1280x720p @ 60 Hz with pixel clock 74 MHz has a score of 135592
HDMI:EDID preferred mode remained as DMT (83) 1600x900p @ 60 Hz with pixel clock 108 MHz
HDMI:EDID has only DVI support and no audio support
edid_parser exited with code 0
 
 
List of CEA and DMT formats
Here is a list of all CEA and DMT formats, I copy it from Raspberry Pi forum
CEA (hdmi_group = 1) DMT (hdmi_group = 2)

HDMI_CEA_VGA = 1,
HDMI_CEA_480p60 = 2,
HDMI_CEA_480p60H = 3,
HDMI_CEA_720p60 = 4,
HDMI_CEA_1080i60 = 5,
HDMI_CEA_480i60 = 6,
HDMI_CEA_480i60H = 7,
HDMI_CEA_240p60 = 8,
HDMI_CEA_240p60H = 9,
HDMI_CEA_480i60_4x = 10,
HDMI_CEA_480i60_4xH = 11,
HDMI_CEA_240p60_4x = 12,
HDMI_CEA_240p60_4xH = 13,
HDMI_CEA_480p60_2x = 14,
HDMI_CEA_480p60_2xH = 15,
HDMI_CEA_1080p60 = 16,
HDMI_CEA_576p50 = 17,
HDMI_CEA_576p50H = 18,
HDMI_CEA_720p50 = 19,
HDMI_CEA_1080i50 = 20,
HDMI_CEA_576i50 = 21,
HDMI_CEA_576i50H = 22,
HDMI_CEA_288p50 = 23,
HDMI_CEA_288p50H = 24,
HDMI_CEA_576i50_4x = 25,
HDMI_CEA_576i50_4xH = 26,
HDMI_CEA_288p50_4x = 27,
HDMI_CEA_288p50_4xH = 28,
HDMI_CEA_576p50_2x = 29,
HDMI_CEA_576p50_2xH = 30,
HDMI_CEA_1080p50 = 31,
HDMI_CEA_1080p24 = 32,
HDMI_CEA_1080p25 = 33,
HDMI_CEA_1080p30 = 34,
HDMI_CEA_480p60_4x = 35,
HDMI_CEA_480p60_4xH = 36,
HDMI_CEA_576p50_4x = 37,
HDMI_CEA_576p50_4xH = 38,
HDMI_CEA_1080i50_rb = 39,
HDMI_CEA_1080i100 = 40,
HDMI_CEA_720p100 = 41,
HDMI_CEA_576p100 = 42,
HDMI_CEA_576p100H = 43,
HDMI_CEA_576i100 = 44,
HDMI_CEA_576i100H = 45,
HDMI_CEA_1080i120 = 46,
HDMI_CEA_720p120 = 47,
HDMI_CEA_480p120 = 48,
HDMI_CEA_480p120H = 49,
HDMI_CEA_480i120 = 50,
HDMI_CEA_480i120H = 51,
HDMI_CEA_576p200 = 52,
HDMI_CEA_576p200H = 53,
HDMI_CEA_576i200 = 54,
HDMI_CEA_576i200H = 55,
HDMI_CEA_480p240 = 56,
HDMI_CEA_480p240H = 57,
HDMI_CEA_480i240 = 58,
HDMI_CEA_480i240H = 59,
HDMI_CEA_720p24 = 60,
HDMI_CEA_720p25 = 61,
HDMI_CEA_720p30 = 62,
HDMI_CEA_1080p120 = 63,
HDMI_CEA_1080p100 = 64

HDMI_DMT_640x350_85 = 0x1, /**<640x350 */
HDMI_DMT_640x400_85 = 0x2, /**<640x400 */
HDMI_DMT_IBM_VGA_85 = 0x3, /**<720x400 */
HDMI_DMT_VGA_60 = 0x4, /**<640x480 (60Hz is same as VGA in CEA above) */
HDMI_DMT_VGA_72 = 0x5,
HDMI_DMT_VGA_75 = 0x6,
HDMI_DMT_VGA_85 = 0x7,
HDMI_DMT_SVGA_56 = 0x8, /**<800x600 */
HDMI_DMT_SVGA_60 = 0x9,
HDMI_DMT_SVGA_72 = 0xA,
HDMI_DMT_SVGA_75 = 0xB,
HDMI_DMT_SVGA_85 = 0xC,
HDMI_DMT_SVGA_120 = 0xD,
HDMI_DMT_848x480_60 = 0xE, /**<848x480 */
HDMI_DMT_XGA_43 = 0xF, /**<1024x768 – interlaced, DO NOT USE */
HDMI_DMT_XGA_60 = 0x10, /**<1024x768 */
HDMI_DMT_XGA_70 = 0x11,
HDMI_DMT_XGA_75 = 0x12,
HDMI_DMT_XGA_85 = 0x13,
HDMI_DMT_XGA_120 = 0x14,
HDMI_DMT_XGAP_75 = 0x15, /**<1152x864 */
HDMI_DMT_WXGA_RB = 0x16, /**<1280x768 reduced blanking */
HDMI_DMT_WXGA_60 = 0x17,
HDMI_DMT_WXGA_75 = 0x18,
HDMI_DMT_WXGA_85 = 0x19,
HDMI_DMT_WXGA_120 = 0x1A, /**<120Hz with reduced blanking */
HDMI_DMT_1280x800_RB = 0x1B, /**<1280x800 reduced blanking */
HDMI_DMT_1280x800_60 = 0x1C,
HDMI_DMT_1280x800_75 = 0x1D,
HDMI_DMT_1280x800_85 = 0x1E,
HDMI_DMT_1280x800_120 = 0x1F, /** reduced blanking */
HDMI_DMT_1280x960_60 = 0x20, /**<1280x960 */
HDMI_DMT_1280x960_85 = 0x21,
HDMI_DMT_1280x960_120 = 0x22, /** reduced blanking */
HDMI_DMT_SXGA_60 = 0x23, /**<1280x1024 */
HDMI_DMT_SXGA_75 = 0x24,
HDMI_DMT_SXGA_85 = 0x25,
HDMI_DMT_SXGA_120 = 0x26, /** reduced blanking */
HDMI_DMT_1360x768_60 = 0x27, /**<1360x768 */
HDMI_DMT_1360x768_120 = 0x28, /**<120 Hz with reduced blanking */
HDMI_DMT_SXGAP_RB = 0x29, /**<1400x1050 reduced blanking */
HDMI_DMT_SXGAP_60 = 0x2A,
HDMI_DMT_SXGAP_75 = 0x2B,
HDMI_DMT_SXGAP_85 = 0x2C,
HDMI_DMT_SXGAP_120 = 0x2D, /** reduced blanking */
HDMI_DMT_1440x900_RB = 0x2E, /**<1440x900 reduced blanking */
HDMI_DMT_1440x900_60 = 0x2F,
HDMI_DMT_1440x900_75 = 0x30,
HDMI_DMT_1440x900_85 = 0x31,
HDMI_DMT_1440x900_120 = 0x32, /** reduced blanking */
HDMI_DMT_UXGA_60 = 0x33, /**<1600x1200 60Hz */
HDMI_DMT_UXGA_65 = 0x34,
HDMI_DMT_UXGA_70 = 0x35,
HDMI_DMT_UXGA_75 = 0x36,
HDMI_DMT_UXGA_85 = 0x37,
HDMI_DMT_UXGA_120 = 0x38, /** reduced blanking */
HDMI_DMT_SWXGAP_RB = 0x39, /**<1680x1050 reduced blanking */
HDMI_DMT_SWXGAP_60 = 0x3A, /**<1680x1050 60Hz */
HDMI_DMT_SWXGAP_75 = 0x3B,
HDMI_DMT_SWXGAP_85 = 0x3C,
HDMI_DMT_SWXGAP_120 = 0x3D, /** reduced blanking */
HDMI_DMT_1792x1344_60 = 0x3E, /**<1792x1344 60Hz */
HDMI_DMT_1792x1344_75 = 0x3F, /**<1792x1344 75Hz */
HDMI_DMT_1792x1344_120 = 0x40, /** reduced blanking */
HDMI_DMT_1856x1392_60 = 0x41, /**<1856x1392 60Hz */
HDMI_DMT_1856x1392_75 = 0x42, /**<1856x1392 75Hz */
HDMI_DMT_1856x1392_120 = 0x43, /** reduced blanking */
HDMI_DMT_WUXGA_RB = 0x44, /**<1920x1200 reduced blanking */
HDMI_DMT_WUXGA_60 = 0x45, /**<1920x1200 60Hz */
HDMI_DMT_WUXGA_75 = 0x46, /**<1920x1200 75Hz */
HDMI_DMT_WUXGA_85 = 0x47, /**<1920x1200 85Hz */
HDMI_DMT_WUXGA_120 = 0x48, /** reduced blanking */
HDMI_DMT_1920x1440_60 = 0x49, /**<1920x1440 60Hz */
HDMI_DMT_1920x1440_75 = 0x4A, /**<1920x1440 75Hz */
HDMI_DMT_1920x1440_120 = 0x4B, /** reduced blanking */
HDMI_DMT_2560x1600_RB = 0x4C, /**<2560x1600 reduced blanking */
HDMI_DMT_2560x1600_60 = 0x4D, /**<2560x1600 60 Hz */
HDMI_DMT_2560x1600_75 = 0x4E, /**<2560x1600 75 Hz */
HDMI_DMT_2560x1600_85 = 0x4E, /**<2560x1600 85 Hz */
HDMI_DMT_2560x1600_120 = 0x50, /** reduced blanking */
HDMI_DMT_1366x768_60 = 0x51, /**<1366x768 60Hz */
HDMI_DMT_1080p_60 = 0x52, /**<Same as 1080p60 in CEA above */
HDMI_DMT_1600x900_RB = 0x53, /**<1600x900 reduced blanking */
HDMI_DMT_2048x1152_RB = 0x54, /**<2048x1152 reduced blanking */
HDMI_DMT_720p_60 = 0x55, /**<Same as 720p60 in CEA above */
HDMI_DMT_1366x768_RB = 0x56, /**<1366x768 reduced blanking */

 
 
Edit the /boot/config.txt file
To make changes to the resolution, set hdmi_group and hdmi_mode to the correct values in the config file. 
Edit the /boot/config.txt file, uncomment (remove # symbol) hdmi_group and hdmi_mode. For my case, I change the hdmi_group to 2 and hdmi_mode to 83

# uncomment if you get no picture on HDMI for a default "safe" mode
#hdmi_safe=1

# 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=16
#overscan_right=16
#overscan_top=16
#overscan_bottom=16

# uncomment to force a console size. By default it will be display's size minus
# overscan.
#framebuffer_width=1280
#framebuffer_height=720

# uncomment if hdmi display is not detected and composite is being output
#hdmi_force_hotplug=1

# uncomment to force a specific HDMI mode (this will force VGA)
hdmi_group=2
hdmi_mode=83

# uncomment to force a HDMI mode rather than DVI. This can make audio work in
# DMT (computer monitor) modes
#hdmi_drive=2

# uncomment to increase signal to HDMI, if you have interference, blanking, or
# no display
#config_hdmi_boost=4

# uncomment for composite PAL
#sdtv_mode=2

#uncomment to overclock the arm. 700 MHz is the default.
arm_freq=900

# for more options see http://elinux.org/RPi_config.txt
core_freq=250
sdram_freq=450
over_voltage=2

 
 
 
Force the Raspberry Pi to use HDMI mode
If you power on the Raspbmc first then turn on TV latter, you will get a blank display on TV through HDMI. Command below sets the Raspberry Pi to use HDMI mode even if no HDMI monitor is detected.
Edit /boot/config.txt and uncomment hdmi_force_hotplug as shown below
hdmi_force_hotplug=1
 
By default, Raspberry Pi would switch to DVI mode with no audio. Command below sets the Raspberry Pi to normal HDMI mode and sound will be sent if supported and enabled. 
hdmi_drive=2
 
 
 Disable Overscan
You may want to disable overscan if there was a big black border around the edge of the screen. To disable overscan, set disable_overscan to 1.
disable_overscan=1
 You should have also adjusting the overscan figures.
overscan_left=40 #number of pixels to skip on left
overscan_right=40 #number of pixels to skip on right
overscan_top=32 #number of pixels to skip on top
overscan_bottom=32 #number of pixels to skip on bottom
 
 
Reboot Raspberry Pi
sudo reboot
Read 13736 times Last modified on Tuesday, 27 May 2014 17:01

Leave a comment