# Custom resolution, 12.6" 1920x515

**URL:** https://dietpi.com/forum/t/custom-resolution-12-6-1920x515/5655
**Category:** General Discussion
**Created:** [31 August 2021 15:58 UTC](https://dietpi.com/forum/t/custom-resolution-12-6-1920x515/5655 "2021-08-31T15:58:50Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![n0p0wer](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/n/4af34b/32.png) [@n0p0wer](https://dietpi.com/forum/u/n0p0wer)
#### Post date: [31 August 2021 15:58 UTC](https://dietpi.com/forum/t/custom-resolution-12-6-1920x515/5655/1 "2021-08-31T15:58:50Z")

</div>

I’ve ran down a myriad of rabbit holes on how to set the display resolution on my Pi4 (lastest DietPi, 7.5.2) using LXDE with an HDMI (on HDMI0) 1920x515 display but I’ve had no success.

Maybe I’m missing something dumb. Is there a clear how-to to follow on this?

I found [https://dietpi.com/forum/t/req-dietpi-config-custom-resolution-set-by-user-pls-1280x800/2941/1](https://dietpi.com/forum/t/req-dietpi-config-custom-resolution-set-by-user-pls-1280x800/2941/1) (which led to [https://www.raspberrypi.org/documentation/computers/configuration.html#setting-a-custom-hdmi-mode](https://www.raspberrypi.org/documentation/computers/configuration.html#setting-a-custom-hdmi-mode)) but that wasn’t helpful as I need a very non-standard aspect ratio.

This display: [https://www.amazon.com/dp/B08FJ33247](https://www.amazon.com/dp/B08FJ33247)

---

<div class="post-metadata">

### Author: ![n0p0wer](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/n/4af34b/32.png) [@n0p0wer](https://dietpi.com/forum/u/n0p0wer)
#### Post date: [31 August 2021 16:10 UTC](https://dietpi.com/forum/t/custom-resolution-12-6-1920x515/5655/2 "2021-08-31T16:10:09Z")

</div>

Out of frustration I searched blatantly for **_“raspberry pi” “1920x515” configuration_** which led me to:

[https://twitter.com/sentoki/status/1363417413388148745](https://twitter.com/sentoki/status/1363417413388148745)

Some mild translating later:

> The config when making this 1920x515 LCD vertical with Raspberry Pi is  
> disable\_overscan = 1  
> hdmi\_group = 2  
> hdmi\_mode = 87  
> hdmi\_cvt = 1920 515 60 6 0 0 0  
> display\_hdmi\_rotate = 3  
> was. It was simple. I thought it was a more complicated setting and lost time by trial and error. The photo is Yahoo seen on Lynx (Twitter is not supported)

/boot/config.txt

```plaintext
disable_overscan = 1
hdmi_group = 2
hdmi_mode = 87
hdmi_cvt = 1920 515 60 6 0 0 0
display_hdmi_rotate = 3

```

… man that is simple.

---

<div class="post-metadata">

### Author: ![MichaIng](https://dietpi.com/forum/user_avatar/dietpi.com/michaing/32/7_2.png) [@MichaIng](https://dietpi.com/forum/u/MichaIng)
#### Post date: [1 September 2021 15:33 UTC](https://dietpi.com/forum/t/custom-resolution-12-6-1920x515/5655/3 "2021-09-01T15:33:56Z")

</div>

Custom HDMI modes are documented here: [https://www.raspberrypi.org/documentation/computers/config\_txt.html#custom-mode](https://www.raspberrypi.org/documentation/computers/config_txt.html#custom-mode)  
The documentation got some major restructure some weeks ago, probably this is the reason why the old link wasn’t too helpful anymore. So yeah, hdmi\_group=2 + hdmi\_mode=87 enables the custom mode, hdmi\_cvt defines it, and then based on the actual screen a rotation via display\_hdmi\_rotate may be required.

On RPi 4, when using the second HDMI port, those settings all need to be suffixed with :1, so e.g. hdmi\_group:1=2
