Kodi Community Forum

Full Version: Kodi screen not the same as Rasp Pi settings.
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
The screen resolution for the rasp pi on my visio TV is 1280x720 @ 60.00Hz, progressive
but when I launch kodi, it changes it to 1366x768 @ 60.00Hz, progressive which is not supported by my TV

This a clean new setup.  Raspbian with all updates, then installed kodi.

Running with the desktop:
@raspberrypi:~ $ tvservice -s
state 0xa [HDMI CUSTOM RGB lim 16:9], 1280x720 @ 60.00Hz, progressive

Started kodi, no screen
pi@raspberrypi:~ $ tvservice -s
state 0xa [HDMI CUSTOM RGB full 16:9], 1366x768 @ 60.00Hz, progressive

How can I edit the configuration for kodi and keep the resolution at 1280x720 @ 60.00Hz, progressive?
exit Kodi
then try something like: mv ~/.kodi/userdata/guisettings.xml ~/.kodi/userdata/guisettings.xml.old and then start Kodi again. 

Does that fix something?
(2020-07-02, 20:12)DaVu Wrote: [ -> ]exit Kodi
then try something like: mv ~/.kodi/userdata/guisettings.xml ~/.kodi/userdata/guisettings.xml.old and then start Kodi again. 

Does that fix something?
Nope, same thing.... nothing has been configured in kodi yet... but I need a way to enter some kind of safe video mode just to select the resolution
I guess you could set it on your desktop and copy the settings over.
(2020-07-02, 20:42)sarbes Wrote: [ -> ]I guess you could set it on your desktop and copy the settings over.

I've not found in the kodi settings where it specifies the resolution... do you know where that is?
From the startup of kodi here's the last part of the log file showing the resolutions.  Note the bold line, that's the resolution I would like kodi to use...

Help?


2020-07-02 14:20:21.620 T:2972556384  NOTICE: Raspberry PI firmware version: Jun  1 2020 13:23:40 
                                            Copyright © 2012 Broadcom
                                            version 6379679d1ec6a8c746d7e77e015f5b56b939976f (clean) (release) (start)
2020-07-02 14:20:21.620 T:2972556384  NOTICE: ARM mem: 948MB GPU mem: 76MB MPG2:0 WVC1:0
2020-07-02 14:20:21.620 T:2972556384  NOTICE: Config:
                                            arm_freq=1500
                                            audio_pwm_mode=514
                                            config_hdmi_boost=5
                                            core_freq=500
                                            core_freq_min=200
                                            disable_commandline_tags=2
                                            disable_l2cache=1
                                            disable_overscan=1
                                            display_hdmi_rotate=-1
                                            display_lcd_rotate=-1
                                            enable_gic=1
                                            force_eeprom_read=1
                                            force_pwm_open=1
                                            framebuffer_ignore_alpha=1
                                            framebuffer_swap=1
                                            gpu_freq=500
                                            gpu_freq_min=250
                                            hdmi_channel_map=8
                                            init_uart_clock=0x2dc6c00
                                            lcd_framerate=60
                                            mask_gpu_interrupt0=1024
                                            mask_gpu_interrupt1=0x10000
                                            max_framebuffers=2
                                            over_voltage_avs=-36250
                                            pause_burst_frames=1
                                            program_serial_random=1
                                            total_mem=4096
                                            hdmi_force_cec_address:0=65535
                                            hdmi_force_cec_address:1=65535
                                            hdmi_pixel_freq_limit:0=0x11e1a300
                                            hdmi_pixel_freq_limit:1=0x11e1a300
2020-07-02 14:20:21.620 T:2972556384  NOTICE: Config:
                                            device_tree=-
                                            overlay_prefix=overlays/
                                            hdmi_cvt:0=
                                            hdmi_cvt:1=
                                            hdmi_edid_filename:0=
                                            hdmi_edid_filename:1=
                                            hdmi_timings:0=
                                            hdmi_timings:1=
2020-07-02 14:20:22.244 T:2972556384 WARNING: CDRMUtils::FindPlane - could not find plane
2020-07-02 14:20:22.244 T:2972556384 WARNING: CDRMUtils::InitDrm - failed to set drm master, will try to authorize instead: Permission denied
2020-07-02 14:20:22.245 T:2972556384  NOTICE: CDRMUtils::InitDrm - successfully authorized drm magic
2020-07-02 14:20:23.141 T:2972556384  NOTICE: Found resolution 1366x768 with 1366x768 @ 60.000000 Hz
2020-07-02 14:20:23.141 T:2972556384  NOTICE: Found resolution 1920x1080 with 1920x1080 @ 60.000000 Hz
2020-07-02 14:20:23.141 T:2972556384  NOTICE: Found resolution 1920x1080 with 1920x1080 @ 59.940063 Hz
2020-07-02 14:20:23.141 T:2972556384  NOTICE: Found resolution 1920x1080 with 1920x1080 @ 24.000000 Hz
2020-07-02 14:20:23.141 T:2972556384  NOTICE: Found resolution 1920x1080 with 1920x1080 @ 23.976025 Hz
2020-07-02 14:20:23.141 T:2972556384  NOTICE: Found resolution 1360x768 with 1360x768 @ 60.000000 Hz
2020-07-02 14:20:23.141 T:2972556384  NOTICE: Found resolution 1280x720 with 1280x720 @ 60.000000 Hz
2020-07-02 14:20:23.141 T:2972556384  NOTICE: Found resolution 1280x720 with 1280x720 @ 59.940063 Hz
2020-07-02 14:20:23.141 T:2972556384  NOTICE: Found resolution 1024x768 with 1024x768 @ 75.000000 Hz
2020-07-02 14:20:23.141 T:2972556384  NOTICE: Found resolution 1024x768 with 1024x768 @ 70.000000 Hz
2020-07-02 14:20:23.142 T:2972556384  NOTICE: Found resolution 1024x768 with 1024x768 @ 60.000000 Hz
2020-07-02 14:20:23.142 T:2972556384  NOTICE: Found resolution 800x600 with 800x600 @ 75.000000 Hz
2020-07-02 14:20:23.142 T:2972556384  NOTICE: Found resolution 800x600 with 800x600 @ 72.000000 Hz
2020-07-02 14:20:23.142 T:2972556384  NOTICE: Found resolution 800x600 with 800x600 @ 60.000000 Hz
2020-07-02 14:20:23.142 T:2972556384  NOTICE: Found resolution 720x480 with 720x480 @ 59.940063 Hz
2020-07-02 14:20:23.142 T:2972556384  NOTICE: Found resolution 720x480 with 720x480 @ 60.000000 Hz
2020-07-02 14:20:23.142 T:2972556384  NOTICE: Found resolution 640x480 with 640x480 @ 75.000000 Hz
2020-07-02 14:20:23.142 T:2972556384  NOTICE: Found resolution 640x480 with 640x480 @ 60.000000 Hz
2020-07-02 14:20:23.142 T:2972556384  NOTICE: Previous line repeats 1 times.
2020-07-02 14:20:23.142 T:2972556384  NOTICE: Found resolution 720x400 with 720x400 @ 70.000000 Hz
2020-07-02 14:20:23.144 T:2972556384  NOTICE: EGL_VERSION = 1.4
2020-07-02 14:20:23.144 T:2972556384  NOTICE: EGL_VENDOR = Mesa Project
2020-07-02 14:20:23.144 T:2972556384  NOTICE: EGL_EXTENSIONS = EGL_ANDROID_blob_cache EGL_EXT_buffer_age EGL_EXT_image_dma_buf_import EGL_EXT_image_dma_buf_
import_modifiers EGL_KHR_cl_event2 EGL_KHR_config_attribs EGL_KHR_create_context EGL_KHR_create_context_no_error EGL_KHR_fence_sync EGL_KHR_get_all_proc_add
resses EGL_KHR_gl_colorspace EGL_KHR_gl_renderbuffer_image EGL_KHR_gl_texture_2D_image EGL_KHR_gl_texture_3D_image EGL_KHR_gl_texture_cubemap_image EGL_KHR_
image EGL_KHR_image_base EGL_KHR_image_pixmap EGL_KHR_no_config_context EGL_KHR_reusable_sync EGL_KHR_surfaceless_context EGL_EXT_pixel_format_float EGL_KHR
_wait_sync EGL_MESA_configless_context EGL_MESA_drm_image EGL_MESA_image_dma_buf_export EGL_MESA_query_driver EGL_WL_bind_wayland_display
2020-07-02 14:20:23.144 T:2972556384  NOTICE: EGL_CLIENT_EXTENSIONS = EGL_EXT_device_base EGL_EXT_device_enumeration EGL_EXT_device_query EGL_EXT_platform_b
ase EGL_KHR_client_get_all_proc_addresses EGL_EXT_client_extensions EGL_KHR_debug EGL_EXT_platform_wayland EGL_EXT_platform_x11 EGL_MESA_platform_gbm EGL_ME
SA_platform_surfaceless EGL_EXT_platform_device
2020-07-02 14:20:23.147 T:2972556384  NOTICE: Checking resolution 16
2020-07-02 14:20:23.294 T:2972556384 WARNING: CGBMUtils:Big GrinestroySurface - surface already destroyed
2020-07-02 14:20:23.335 T:2972556384  NOTICE: GL_VENDOR = Broadcom
2020-07-02 14:20:23.335 T:2972556384  NOTICE: GL_RENDERER = V3D 4.2
2020-07-02 14:20:23.335 T:2972556384  NOTICE: GL_VERSION = OpenGL ES 3.1 Mesa 19.3.2
2020-07-02 14:20:23.335 T:2972556384  NOTICE: GL_SHADING_LANGUAGE_VERSION = OpenGL ES GLSL ES 3.10
2020-07-02 14:20:23.336 T:2972556384  NOTICE: GL_EXTENSIONS = GL_EXT_blend_minmax GL_EXT_multi_draw_arrays GL_EXT_texture_format_BGRA8888 GL_OES_compressed_
ETC1_RGB8_texture GL_OES_depth24 GL_OES_element_index_uint GL_OES_fbo_render_mipmap GL_OES_mapbuffer GL_OES_rgb8_rgba8 GL_OES_standard_derivatives GL_OES_st
encil8 GL_OES_texture_3D GL_OES_texture_float GL_OES_texture_half_float GL_OES_texture_half_float_linear GL_OES_texture_npot GL_OES_vertex_half_float GL_EXT
_texture_sRGB_decode GL_OES_EGL_image GL_OES_depth_texture GL_OES_packed_depth_stencil GL_EXT_texture_type_2_10_10_10_REV GL_OES_get_program_binary GL_APPLE
_texture_max_level GL_EXT_discard_framebuffer GL_EXT_read_format_bgra GL_EXT_frag_depth GL_NV_fbo_color_attachments GL_OES_EGL_image_external GL_OES_EGL_syn
c GL_OES_vertex_array_object GL_EXT_occlusion_query_boolean GL_EXT_texture_rg GL_EXT_unpack_subimage GL_NV_draw_buffers GL_NV_read_buffer GL_NV_read_depth G
L_NV_read_depth_stencil GL_NV_read_stencil GL_EXT_draw_buffers GL_EXT_map_buffer_range GL_KHR_debug GL_KHR_texture_compression_astc_ldr GL_OES_depth_texture
_cube_map GL_OES_required_internalformat GL_OES_surfaceless_context GL_EXT_color_buffer_float GL_EXT_sRGB_write_control GL_EXT_separate_shader_objects GL_EX
T_shader_implicit_conversions GL_EXT_shader_integer_mix GL_EXT_base_instance GL_EXT_compressed_ETC1_RGB8_sub_texture GL_EXT_draw_elements_base_vertex GL_EXT
_primitive_bounding_box GL_EXT_shader_io_blocks GL_EXT_texture_border_clamp GL_EXT_texture_norm16 GL_KHR_context_flush_control GL_NV_image_formats GL_OES_dr
aw_elements_base_vertex GL_OES_primitive_bounding_box GL_OES_shader_io_blocks GL_OES_texture_border_clamp GL_OES_texture_stencil8 GL_OES_texture_storage_mul
tisample_2d_array GL_EXT_buffer_storage GL_EXT_float_blend GL_KHR_no_error GL_KHR_texture_compression_astc_sliced_3d GL_OES_EGL_image_external_essl3 GL_OES_
shader_image_atomic GL_MESA_shader_integer_functions GL_KHR_parallel_shader_compile GL_MESA_framebuffer_flip_y GL_EXT_texture_query_lod
2020-07-02 14:20:23.845 T:2764468432  NOTICE: Running database version Addons27
2020-07-02 14:20:23.846 T:2764468432  NOTICE: Running database version ViewModes6
2020-07-02 14:20:23.846 T:2764468432  NOTICE: Running database version Textures13
2020-07-02 14:20:23.849 T:2764468432  NOTICE: Running database version MyMusic72
2020-07-02 14:20:23.853 T:2764468432  NOTICE: Running database version MyVideos116
2020-07-02 14:20:23.854 T:2764468432  NOTICE: Running database version TV32
2020-07-02 14:20:23.855 T:2764468432  NOTICE: Running database version Epg12
2020-07-02 14:20:23.872 T:2972556384  NOTICE: start dvd mediatype detection
2020-07-02 14:20:23.907 T:2972556384  NOTICE:   load skin from: /usr/share/kodi/addons/skin.estuary (version: 2.0.27)
2020-07-02 14:20:24.165 T:2972556384 WARNING: JSONRPC: Could not parse type "Setting.Details.SettingList"
2020-07-02 14:20:24.197 T:2972556384  NOTICE: Register - new keyboard device registered on application->keyboard: Keyboard (0000:0000)
2020-07-02 14:20:24.198 T:2972556384  NOTICE: Register - new mouse device registered on application->mouse: Mouse (0000:0000)
2020-07-02 14:20:24.200 T:2972556384  NOTICE: Loading player core factory settings from special://xbmc/system/playercorefactory.xml.
2020-07-02 14:20:24.200 T:2972556384  NOTICE: Loaded playercorefactory configuration
2020-07-02 14:20:24.200 T:2972556384  NOTICE: Loading player core factory settings from special://masterprofile/playercorefactory.xml.
2020-07-02 14:20:24.200 T:2972556384  NOTICE: special://masterprofile/playercorefactory.xml does not exist. Skipping.
2020-07-02 14:20:24.208 T:2972556384  NOTICE: initialize done
2020-07-02 14:20:24.208 T:2972556384  NOTICE: Running the application...
2020-07-02 14:20:24.213 T:2972556384  NOTICE: starting zeroconf publishing
2020-07-02 14:20:24.213 T:2666750160  NOTICE: ES: Starting UDP Event server on port 9777
2020-07-02 14:20:24.213 T:2666750160  NOTICE: UDP: Listening on port 9777 (ipv6 : false)
2020-07-02 14:20:24.225 T:2972556384  NOTICE: VideoPlayer::OpenFile: /var/run/lirc/lircd
2020-07-02 14:20:24.242 T:2631184592  NOTICE: Creating InputStream
2020-07-02 14:20:24.242 T:2631184592   ERROR: CVideoPlayer::OpenInputStream - error opening [/var/run/lirc/lircd]
2020-07-02 14:20:24.242 T:2631184592  NOTICE: CVideoPlayer::OnExit()
2020-07-02 14:20:24.431 T:2717368528  NOTICE: Register - new cec device registered on cec->RPI: CEC Adapter (2708:1001)
2020-07-02 14:20:24.659 T:2972556384  NOTICE: CVideoPlayer::CloseFile()
2020-07-02 14:20:24.659 T:2972556384  NOTICE: VideoPlayer: waiting for threads to exit
2020-07-02 14:20:24.659 T:2972556384  NOTICE: VideoPlayer: finished waiting
pi@raspberrypi:~/.kodi/temp $
What's the output of the following commands:
:
tvservice --modes=CEA
tvservice --modes=DMT
This will show you your TV's supported resolutions accordingly to its EDID
(2020-07-02, 23:36)rascas Wrote: [ -> ]What's the output of the following commands:
:
tvservice --modes=CEA
tvservice --modes=DMT
This will show you your TV's supported resolutions accordingly to its EDID

pi@raspberrypi:~ $ tvservice --modes=CEA
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 
           mode 5: 1920x1080 @ 60Hz 16:9, clock:74MHz interlaced 
           mode 6: 720x480 @ 60Hz 4:3, clock:27MHz x2 interlaced 
           mode 7: 720x480 @ 60Hz 16:9, clock:27MHz x2 interlaced 
  (native) mode 16: 1920x1080 @ 60Hz 16:9, clock:148MHz progressive 
           mode 32: 1920x1080 @ 24Hz 16:9, clock:74MHz progressive 
pi@raspberrypi:~ $ tvservice --modes=DMT
Group DMT has 10 modes:
           mode 4: 640x480 @ 60Hz 4:3, clock:25MHz progressive 
           mode 6: 640x480 @ 75Hz 4:3, clock:31MHz 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 39: 1360x768 @ 60Hz 16:9, clock:85MHz progressive 
  (prefer) mode 81: 1366x768 @ 60Hz 16:9, clock:85MHz progressive 
pi@raspberrypi:~ $
So accordingly to your TV EDID, 1366x768 is a supported resolution. Native resolution is CEA mode 16: 1920x1080 @ 60Hz 16:9, clock:148MHz progressive by the way. Why do you say 1366x768 is not supported ? Is there anythong wrong with Kodi in that resolution ?
PS: You only have 76MB of RAM dedicated to the GPU. Kodi won't work good with only that. The recommend GPU RAM for the RPI 4 is 320MB.
Ok, using tvservice I have been able to get a kodi screen.  Here's what happens:
From the working desktop, start kodi.  Screen is blank/purple
ssh in and do tvservice --off
Then tvservice -e "CEA 4"
The kodi screen is then working.

1366x768 doesn't show in this list:

pi@raspberrypi:~ $ tvservice --modes=CEA
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 
  (prefer) mode 4: 1280x720 @ 60Hz 16:9, clock:74MHz progressive 
           mode 5: 1920x1080 @ 60Hz 16:9, clock:74MHz interlaced 
           mode 6: 720x480 @ 60Hz 4:3, clock:27MHz x2 interlaced 
           mode 7: 720x480 @ 60Hz 16:9, clock:27MHz x2 interlaced 
  (native) mode 16: 1920x1080 @ 60Hz 16:9, clock:148MHz progressive 
           mode 32: 1920x1080 @ 24Hz 16:9, clock:74MHz progressive 

So, mode 4 works.  I'm going to test some other modes and see which ones work well.
OK, got it working, both the desktop and kodi work with a resolution of 
 (native) mode 16: 1920x1080 @ 60Hz 16:9, clock:148MHz progressive 
           mode 32: 1920x1080 @ 24Hz 16:9, clock:74MHz progressive 

So mode 32 it is.  

Text of things I tried in case someone else has issues like this:

i@raspberrypi:~ $ tvservice --modes=CEA
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 
  (prefer) mode 4: 1280x720 @ 60Hz 16:9, clock:74MHz progressive 
           mode 5: 1920x1080 @ 60Hz 16:9, clock:74MHz interlaced 
           mode 6: 720x480 @ 60Hz 4:3, clock:27MHz x2 interlaced 
           mode 7: 720x480 @ 60Hz 16:9, clock:27MHz x2 interlaced 
  (native) mode 16: 1920x1080 @ 60Hz 16:9, clock:148MHz progressive 
           mode 32: 1920x1080 @ 24Hz 16:9, clock:74MHz progressive 
pi@raspberrypi:~ $ tvservice -s
state 0xa [HDMI CEA (4) RGB lim 16:9], 1280x720 @ 60.00Hz, progressive
pi@raspberrypi:~ $ tvservice --off
Powering off HDMI
pi@raspberrypi:~ $ tvservice -e "CEA 16"
Powering on HDMI with explicit settings (CEA mode 16)
pi@raspberrypi:~ $ tvservice --off
Powering off HDMI
pi@raspberrypi:~ $ tvservice -e "CEA 4"
Powering on HDMI with explicit settings (CEA mode 4)
pi@raspberrypi:~ $ tvservice --off
Powering off HDMI
pi@raspberrypi:~ $ tvservice -e "CEA 16"
Powering on HDMI with explicit settings (CEA mode 16)
pi@raspberrypi:~ $ tvservice --off
Powering off HDMI
pi@raspberrypi:~ $ tvservice -e "CEA 4"
Powering on HDMI with explicit settings (CEA mode 4)
pi@raspberrypi:~ $ tvservice -s
state 0xa [HDMI CUSTOM RGB full 16:9], 1366x768 @ 60.00Hz, progressive
pi@raspberrypi:~ $ tvservice --off
Powering off HDMI
pi@raspberrypi:~ $ tvservice -e "CEA 4"
Powering on HDMI with explicit settings (CEA mode 4)
pi@raspberrypi:~ $ tvservice --off
Powering off HDMI
pi@raspberrypi:~ $ tvservice -e "CEA 5"
Powering on HDMI with explicit settings (CEA mode 5)
pi@raspberrypi:~ $ tvservice --off
Powering off HDMI
pi@raspberrypi:~ $ tvservice -e "CEA 16"
Powering on HDMI with explicit settings (CEA mode 16)
pi@raspberrypi:~ $ tvservice -s
state 0xa [HDMI CUSTOM RGB lim 16:9], 1920x1080 @ 60.00Hz, progressive
pi@raspberrypi:~ $ tvservice --off
Powering off HDMI
pi@raspberrypi:~ $ tvservice -e "CEA 32"
Powering on HDMI with explicit settings (CEA mode 32)
pi@raspberrypi:~ $ tvservice -e "CEA 4"
Powering on HDMI with explicit settings (CEA mode 4)
pi@raspberrypi:~ $ tvservice -s
state 0xa [HDMI CUSTOM RGB lim 16:9], 1920x1080 @ 60.00Hz, progressive
The recommended resolution is the native one which in your case is CEA mode 16 1920x1080. Both the desktop (xorg server) and Kodi should be using that. Why they don't, I don't know, probably some setting in your TV internal settings.
If I couldn't find any setting in the TV that may cause this, I would force the native mode in /boot/config.txt and see.
Both mode 16 and 32 work, I just don't have a need for the higher scan rate.