Skip to content

Commit fbdbd2e

Browse files
authored
Correct markdown presentation on config.txt video page, close raspberrypi#967
1 parent 0f814cf commit fbdbd2e

File tree

1 file changed

+32
-17
lines changed

1 file changed

+32
-17
lines changed

configuration/config-txt/video.md

Lines changed: 32 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -301,8 +301,11 @@ Note that there is a [pixel clock limit](https://www.raspberrypi.org/forums/view
301301

302302
This allows setting of raw HDMI timing values for a custom mode, selected using `hdmi_group=2` and `hdmi_mode=87`.
303303

304-
`hdmi_timings=<h_active_pixels> <h_sync_polarity> <h_front_porch> <h_sync_pulse> <h_back_porch> <v_active_lines> <v_sync_polarity> <v_front_porch> <v_sync_pulse> <v_back_porch> <v_sync_offset_a> <v_sync_offset_b> <pixel_rep> <frame_rate> &lt;interlaced> <pixel_freq> <aspect_ratio>`
304+
```
305+
hdmi_timings=<h_active_pixels> <h_sync_polarity> <h_front_porch> <h_sync_pulse> <h_back_porch> <v_active_lines> <v_sync_polarity> <v_front_porch> <v_sync_pulse> <v_back_porch> <v_sync_offset_a> <v_sync_offset_b> <pixel_rep> <frame_rate> <interlaced> <pixel_freq> <aspect_ratio>
306+
```
305307

308+
```
306309
<h_active_pixels> = horizontal pixels (width)
307310
<h_sync_polarity> = invert hsync polarity
308311
<h_front_porch> = horizontal forward padding from DE acitve edge
@@ -320,9 +323,11 @@ This allows setting of raw HDMI timing values for a custom mode, selected using
320323
&lt;interlaced> = leave at zero
321324
<pixel_freq> = clock frequency (width*height*framerate)
322325
<aspect_ratio> = *
326+
```
323327

324-
* The aspect ratio can be set to one of eight values (choose the closest for your screen):
328+
`*` The aspect ratio can be set to one of eight values (choose the closest for your screen):
325329

330+
```
326331
HDMI_ASPECT_4_3 = 1
327332
HDMI_ASPECT_14_9 = 2
328333
HDMI_ASPECT_16_9 = 3
@@ -331,6 +336,7 @@ HDMI_ASPECT_16_10 = 5
331336
HDMI_ASPECT_15_9 = 6
332337
HDMI_ASPECT_21_9 = 7
333338
HDMI_ASPECT_64_27 = 8
339+
```
334340

335341
### hdmi_force_mode
336342

@@ -341,11 +347,11 @@ Setting to `1` will remove all other modes except the ones specified by `hdmi_mo
341347
Forces the edit content type to a specific value.
342348

343349
The options are:
344-
- 0 = EDID_ContentType_NODATA, content type none.
345-
- 1 = EDID_ContentType_Graphics, content type graphics, ITC must be set to 1
346-
- 2 = EDID_ContentType_Photo, content type photo
347-
- 3 = EDID_ContentType_Cinema, content type cinema
348-
- 4 = EDID_ContentType_Game, content type game
350+
- `0` = `EDID_ContentType_NODATA`, content type none.
351+
- `1` = `EDID_ContentType_Graphics`, content type graphics, ITC must be set to 1
352+
- `2` = `EDID_ContentType_Photo`, content type photo
353+
- `3` = `EDID_ContentType_Cinema`, content type cinema
354+
- `4` = `EDID_ContentType_Game`, content type game
349355

350356
## Which values are valid for my monitor?
351357

@@ -363,7 +369,9 @@ The `edid.dat` should also be provided when troubleshooting problems with the de
363369

364370
If your monitor requires a mode that is not in one of the tables above, then it's possible to define a custom [CVT](https://en.wikipedia.org/wiki/Coordinated_Video_Timings) mode for it instead:
365371

366-
hdmi_cvt=<width> <height> <framerate> <aspect> <margins> <interlace> <rb>
372+
```
373+
hdmi_cvt=<width> <height> <framerate> <aspect> <margins> <interlace> <rb>
374+
```
367375

368376
| Value | Default | Description |
369377
| --- | --- | --- |
@@ -379,10 +387,12 @@ Fields at the end can be omitted to use the default values.
379387

380388
Note that this simply **creates** the mode (group 2 mode 87). In order to make the Pi use this by default, you must add some additional settings. For example, the following selects an 800 × 480 resolution and enables audio drive:
381389

382-
hdmi_cvt=800 480 60 6
383-
hdmi_group=2
384-
hdmi_mode=87
385-
hdmi_drive=2
390+
```
391+
hdmi_cvt=800 480 60 6
392+
hdmi_group=2
393+
hdmi_mode=87
394+
hdmi_drive=2
395+
```
386396

387397
This may not work if your monitor does not support standard CVT timings.
388398

@@ -428,8 +438,11 @@ More details on using the DPI modes and the output format can be found [here](..
428438

429439
This allows setting of raw DPI timing values for a custom mode, selected using `dpi_group=2` and `dpi_mode=87`.
430440

431-
`dpi_timings=<h_active_pixels> <h_sync_polarity> <h_front_porch> <h_sync_pulse> <h_back_porch> <v_active_lines> <v_sync_polarity> <v_front_porch> <v_sync_pulse> <v_back_porch> <v_sync_offset_a> <v_sync_offset_b> <pixel_rep> <frame_rate> &lt;interlaced> <pixel_freq> <aspect_ratio>`
441+
```
442+
dpi_timings=<h_active_pixels> <h_sync_polarity> <h_front_porch> <h_sync_pulse> <h_back_porch> <v_active_lines> <v_sync_polarity> <v_front_porch> <v_sync_pulse> <v_back_porch> <v_sync_offset_a> <v_sync_offset_b> <pixel_rep> <frame_rate> <interlaced> <pixel_freq> <aspect_ratio>
443+
```
432444

445+
```
433446
<h_active_pixels> = horizontal pixels (width)
434447
<h_sync_polarity> = invert hsync polarity
435448
<h_front_porch> = horizontal forward padding from DE acitve edge
@@ -444,12 +457,14 @@ This allows setting of raw DPI timing values for a custom mode, selected using `
444457
<v_sync_offset_b> = leave at zero
445458
<pixel_rep> = leave at zero
446459
<frame_rate> = screen refresh rate in Hz
447-
&lt;interlaced> = leave at zero
460+
<interlaced> = leave at zero
448461
<pixel_freq> = clock frequency (width*height*framerate)
449-
<aspect_ratio> = *
462+
<aspect_ratio> = *
463+
```
450464

451-
* The aspect ratio can be set to one of eight values (choose the closest for your screen):
465+
`*` The aspect ratio can be set to one of eight values (choose the closest for your screen):
452466

467+
```
453468
HDMI_ASPECT_4_3 = 1
454469
HDMI_ASPECT_14_9 = 2
455470
HDMI_ASPECT_16_9 = 3
@@ -458,6 +473,7 @@ HDMI_ASPECT_16_10 = 5
458473
HDMI_ASPECT_15_9 = 6
459474
HDMI_ASPECT_21_9 = 7
460475
HDMI_ASPECT_64_27 = 8
476+
```
461477

462478
## Generic display options
463479

@@ -524,7 +540,6 @@ Set `framebuffer_ignore_alpha` to `1` to disable the alpha channel. Can help wit
524540

525541
The `test_mode` command displays a test image and sound during boot (over the composite video and analogue audio outputs only) for the given number of seconds, before continuing to boot the OS as normal. This is used as a manufacturing test; the default value is `0`.
526542

527-
528543
### display_hdmi_rotate
529544

530545
Use `display_hdmi_rotate` to rotate or flip the HDMI display orientation. The default value is `0`.

0 commit comments

Comments
 (0)