DietPi Display Resolution Topic is solved

Having issues with your DietPi installation or found a bug? Post it here.
User avatar
MichaIng
Site Admin
Posts: 3023
Joined: Sat Nov 18, 2017 6:21 pm

Re: DietPi Display Resolution

Post by MichaIng »

hdmi_pixel_freq_limit seems to not exist, but instead hdmi_max_pixel_freq: https://www.raspberrypi.org/documentati ... t/video.md

Also try to add hdmi_enable_4kp60=1. Same as above, not sure from which resolution on this is required to have 60 Hz, or if it's really just required from 4k on, like 3840xh resp, 4096xh.

And try to raise the gpu_mem_1024 to at least 64 (default) or more.

And finally what does the following say about supported DMT modes?

Code: Select all

tvservice -m DMT
lament
Posts: 6
Joined: Mon May 17, 2021 9:36 pm

Re: DietPi Display Resolution

Post by lament »

MichaIng wrote: Sat May 22, 2021 3:32 pm hdmi_pixel_freq_limit seems to not exist, but instead hdmi_max_pixel_freq: https://www.raspberrypi.org/documentati ... t/video.md

Also try to add hdmi_enable_4kp60=1. Same as above, not sure from which resolution on this is required to have 60 Hz, or if it's really just required from 4k on, like 3840xh resp, 4096xh.

And try to raise the gpu_mem_1024 to at least 64 (default) or more.

And finally what does the following say about supported DMT modes?

Code: Select all

tvservice -m DMT
Hi Michal, thanks for trying to solve this.

Added hdmi_max_pixel_freq=4000000 and hdmi_4k60p=1 with no luck. gpu_mem_1024 is at 128.

Code: Select all

root@DietPi:~# tvservice -m DMT
Group DMT has 19 modes:
           mode 4: 640x480 @ 60Hz 4:3, clock:25MHz progressive 
           mode 5: 640x480 @ 72Hz 4:3, clock:31MHz progressive 
           mode 6: 640x480 @ 75Hz 4:3, clock:31MHz progressive 
           mode 8: 800x600 @ 56Hz 4:3, clock:36MHz progressive 
           mode 9: 800x600 @ 60Hz 4:3, clock:40MHz progressive 
           mode 10: 800x600 @ 72Hz 4:3, clock:50MHz progressive 
           mode 11: 800x600 @ 75Hz 4:3, clock:49MHz progressive 
           mode 16: 1024x768 @ 60Hz 4:3, clock:65MHz progressive 
           mode 17: 1024x768 @ 70Hz 4:3, clock:75MHz progressive 
           mode 18: 1024x768 @ 75Hz 4:3, clock:78MHz progressive 
           mode 21: 1152x864 @ 75Hz 4:3, clock:108MHz progressive 
           mode 28: 1280x800 @ 60Hz 16:10, clock:83MHz progressive 
           mode 35: 1280x1024 @ 60Hz 5:4, clock:108MHz progressive 
           mode 36: 1280x1024 @ 75Hz 5:4, clock:135MHz progressive 
           mode 47: 1440x900 @ 60Hz 16:10, clock:106MHz progressive 
           mode 58: 1680x1050 @ 60Hz 16:10, clock:146MHz progressive 
           mode 83: 1600x900 @ 60Hz 16:9, clock:108MHz progressive 
           mode 85: 1280x720 @ 60Hz 16:9, clock:74MHz progressive 
           mode 86: 1366x768 @ 60Hz 16:9, clock:72MHz progressive 
And my config:

Code: Select all

# Docs: https://www.raspberrypi.org/documentation/configuration/config-txt/

#-------Display---------
# If you get no picture, set the following to "1" to apply most compatible HDMI $
#hdmi_safe=1

# Uncomment to adjust the HDMI signal strength if you have interferences, blanki$
# - Values from "0" to "11" are allowed, use values above "7" only if required, $
# - Default on first RPi1 A/B is "2", else "5", on RPi4 this setting is ignored.
#config_hdmi_boost=5

# Uncomment if HDMI display is not detected and composite is being outputted.
#hdmi_force_hotplug=1

# Uncomment to disable HDMI even if plugged, e.g. to force composite output.
#hdmi_ignore_hotplug=1

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

# Uncomment to enable SDTV/composite output on RPi4. This has no effect on previ$
#enable_tvout=1
# SDTV mode
#sdtv_mode=0

# Uncomment to force a specific HDMI mode (this will force VGA).
#hdmi_group=1
#hdmi_mode=1

# Custom code to get 2560x1440 working

hdmi_group=2
hdmi_mode=87
hdmi_cvt=2560 1440 60 3 0 0 1
max_framebuffer_width=2560
max_framebuffer_height=1440
hdmi_enable_4kp60=1
hdmi_max_pixel_freq=400000000

# Uncomment to force an HDMI mode rather than DVI. This can make audio work in D$
hdmi_drive=2

# Set "hdmi_blanking=1" to allow the display going into standby after 10 minutes$
# With default value "0", the display shows a blank screen instead, but will not$
# NB: With "1" some applications (e.g. Kodi, OMXPlayer) cannot prevent display s$
#hdmi_blanking=1

# Set to "1" if your display has a black border of unused pixels visible.
disable_overscan=1

# Uncomment the following to adjust overscan. Use positive numbers if console go$
#overscan_left=16
#overscan_right=16
#overscan_top=16
#overscan_bottom=16

# Rotation
display_hdmi_rotate=0
lcd_rotate=0

#-------RPi camera module-------
#start_x=1
#disable_camera_led=1

#-------GPU memory splits-------
gpu_mem_256=128
gpu_mem_512=128
gpu_mem_1024=128

#-------Boot splash screen------
disable_splash=1

#-------Onboard sound----------
dtparam=audio=on

#-------I2C-------------
dtparam=i2c_arm=off
dtparam=i2c1=off
#dtparam=i2c_arm_baudrate=100000

#-------SPI-------------
dtparam=spi=off

#-------Serial/UART-----
# NB: Enabled for 1st run only. If you want to keep this setting, please set CON$
#core_freq=500
enable_uart=0

#-------Overclock-------
temp_limit=75
initial_turbo=20

#over_voltage=0
#arm_freq=1500
#core_freq=500

#over_voltage_min=0
#arm_freq_min=300
#core_freq_min=250
#sdram_freq_min=400
dtoverlay=disable-wifi
User avatar
MichaIng
Site Admin
Posts: 3023
Joined: Sat Nov 18, 2017 6:21 pm

Re: DietPi Display Resolution

Post by MichaIng »

Strange that it does not find any 2560 width mode to be supported. How is it with CEA?

Code: Select all

tvservice -m CEA
In the docs about custom modes, they also add hdmi_drive=2. This should actually only force HDMI audio, but worth to give it a try.

And it contains another option to try:
hdmi_force_mode
Setting to
will remove all other modes except the ones specified by hdmi_mode and hdmi_group from the internal list, meaning they will not appear in any enumerated lists of modes. This option may help if a display seems to be ignoring the hdmi_mode and hdmi_group settings.
=> Try to add:

Code: Select all

hdmi_force_mode=1
Otherwise we should have a look into the RPi forum, whether there is a similar report about >1080p monitors not being detected as such: https://www.raspberrypi.org/forums/viewforum.php?f=28
lament
Posts: 6
Joined: Mon May 17, 2021 9:36 pm

Re: DietPi Display Resolution

Post by lament »

MichaIng wrote: Sun May 23, 2021 8:03 pm Strange that it does not find any 2560 width mode to be supported. How is it with CEA?

Code: Select all

tvservice -m CEA
In the docs about custom modes, they also add hdmi_drive=2. This should actually only force HDMI audio, but worth to give it a try.

And it contains another option to try:
hdmi_force_mode
Setting to
will remove all other modes except the ones specified by hdmi_mode and hdmi_group from the internal list, meaning they will not appear in any enumerated lists of modes. This option may help if a display seems to be ignoring the hdmi_mode and hdmi_group settings.
=> Try to add:

Code: Select all

hdmi_force_mode=1
Otherwise we should have a look into the RPi forum, whether there is a similar report about >1080p monitors not being detected as such: https://www.raspberrypi.org/forums/viewforum.php?f=28
I did have hdmi_drive=2 but uncommented it.

Here's CEA

Code: Select all

Group CEA has 9 modes:
           mode 1: 640x480 @ 60Hz 4:3, clock:25MHz progressive 
           mode 2: 720x480 @ 60Hz 4:3, clock:27MHz progressive 
           mode 3: 720x480 @ 60Hz 16:9, clock:27MHz progressive 
           mode 4: 1280x720 @ 60Hz 16:9, clock:74MHz progressive 
  (prefer) mode 16: 1920x1080 @ 60Hz 16:9, clock:148MHz progressive 
           mode 17: 720x576 @ 50Hz 4:3, clock:27MHz progressive 
           mode 18: 720x576 @ 50Hz 16:9, clock:27MHz progressive 
           mode 19: 1280x720 @ 50Hz 16:9, clock:74MHz progressive 
           mode 31: 1920x1080 @ 50Hz 16:9, clock:148MHz progressive
Unfortunately using hdmi_force_mode=1 didn't work, but I'll check out the forum you linked. Thanks for trying to help!
Post Reply