Kodi only displays at a portion of screen
#1
Hi everyone,

I have a TOP059TB1105A 5.9 inch LCD screen that I want to use as a monitor for my Raspberry Pi 3. The screen is vertical with a native resolution of 1080x1920 but I want to use it horizontally. I was able to get the screen working horizontally with Raspbian by changing the hdmi_timings value and display_rotate in config.txt.

However, when I started Kodi, it only got displayed at a portion of the screen, as shown here:
watch gallery


I looked into the log file of Kodi and it seems that although I rotated the screen, Kodi still only recognised the native solution of 1080x1920 and tried to display on the screen with 608x1080 resolution (same aspect ratio). The relevant part of the log file is posted below:
Code:
23:08:53.326 T:1945952928   DEBUG: EGL initial desktop resolution 1080x1920 (608x1080) @ 60.00 - Full Screen (3.16)
23:08:53.326 T:1945952928   DEBUG: EGL get supported modes (2) = 2, prefer_group=2, prefer_mode=57
23:08:53.327 T:1945952928   DEBUG: EGL mode 0: 640x480 (640x480) @ 60.00 - Full Screen (1.00) :4
23:08:53.327 T:1945952928   DEBUG: EGL mode 1: 1080x1920 (608x1080) @ 60.00 - Full Screen (3.16) :57
23:08:53.327 T:1945952928   DEBUG: EGL get supported modes (1) = 2, prefer_group=2, prefer_mode=57
23:08:53.327 T:1945952928   DEBUG: EGL mode 0: 1280x720 (1280x720) @ 60.00 - Full Screen (1.00) :4
23:08:53.327 T:1945952928   DEBUG: EGL mode 1: 1920x1080 (1920x1080) @ 60.00 - Full Screen (1.00) :10
23:08:53.327 T:1945952928   DEBUG: EGL probe resolution 1080x1920 (608x1080) @ 60.00 - Full Screen:57020004
23:08:53.327 T:1945952928  NOTICE: Found resolution 640 x 480 for display 0 with 640 x 480 @ 60.000000 Hz
23:08:53.328 T:1945952928  NOTICE: Found resolution 640 x 480 for display 0 with 640 x 480 @ 59.940063 Hz
23:08:53.328 T:1945952928  NOTICE: Found resolution 608 x 1080 for display 0 with 1080 x 1920 @ 60.000000 Hz
23:08:53.328 T:1945952928  NOTICE: Found resolution 608 x 1080 for display 0 with 1080 x 1920 @ 59.940063 Hz
23:08:53.328 T:1945952928  NOTICE: Found resolution 1280 x 720 for display 0 with 1280 x 720 @ 60.000000 Hz
23:08:53.328 T:1945952928  NOTICE: Found resolution 1280 x 720 for display 0 with 1280 x 720 @ 59.940063 Hz
23:08:53.328 T:1945952928  NOTICE: Found resolution 1920 x 1080 for display 0 with 1920 x 1080 @ 60.000000 Hz
23:08:53.328 T:1945952928  NOTICE: Found resolution 1920 x 1080 for display 0 with 1920 x 1080 @ 59.940063 Hz
23:08:53.328 T:1945952928  NOTICE: Found ([email protected]) at 18, setting to RES_DESKTOP at 16
23:08:53.328 T:1945952928  NOTICE: Checking resolution 16
23:08:53.437 T:1914696624   DEBUG: CAESinkPi:Drain delay:100ms now:0ms
23:08:53.437 T:1914696624   DEBUG: CAESinkPi:Deinitialize
23:08:53.437 T:1914696624   DEBUG: CAESinkPi:SetAudioProps hdmi_stream_channels 0 hdmi_channel_map 00000000
23:08:53.440 T:1914696624   DEBUG: COMXCoreComponent::Deinitialize : OMX.broadcom.audio_render handle 0x72301ff0
23:08:53.475 T:1945952928   DEBUG: EGL set HDMI mode (2,87)=0 off
23:08:53.639 T:1887433648   DEBUG: EGL tv_service_callback (8,2,87)
23:08:53.641 T:1945952928   DEBUG: EGL set resolution 608x1080 -> 1080x1920 @ 60.00 fps (2,87) flags:57020004 aspect:3.16
23:08:53.677 T:1945952928   DEBUG: CreateWindow: Created surface of size 608x1080[/

Is there anyway I could make Kodi detect the right resolution when I rotate the screen like this? Any help or suggestion would be very appreciated.
Thanks in advance.
Reply
#2
FYI, Kodi has no specific skin support for 90 or 270 dgrs rotated screens.

On a RPi, usually the /boot/config.txt file must be edited for rotating a screen:
display_rotate=1 (=90 drgs)
display_rotate=3 (=270 drgs)

Btw, your screenshot is not working. Try uploading it to imgur.com and share the URL here.
Reply
#3
Hi Klojum,

Thanks for your response. I already edited my previous post with the right image.
I also already have display_rotate=3 in my config.txt, that's why I was able to run the screen horizontally on Raspbian.
Only with Kodi, the display is not working correctly as shown in my original post.
Reply
#4
Bump,
Anyone has anymore ideas about how to fix this?
Reply
#5
Kodi doesn't understand the rotated display so it is scaling the gui to the unrotated aspect ratio, hence the tall/narrow shape.

In theory that could be fixed, but use of display_rotate=1 will never be satisfactory for something like a video player.
Rotating playing video (and the GUI) though this mechanism is expensive. You will likely have frame drops.
It also writes to the "live" framebuffer which causes tearing. Not a big issue for running an X desktop, but much more annoying for video playback.

You should be able to see this tearing effect currently on this visible part of the screen.

You really want to be using a display that is natively landscape.
Reply
#6
Hi popcornmix,
Thank you for shedding light on this issue. I do indeed see a bit of slow down when playing video in horizontal mode like this. But I'm not so sure since the logging of Kodi did not get displayed because the upper portion of the screen is not shown.

You said in theory this could be fixed. Is it possible to do it on the Pi itself or there would need to be modification on Kodi source code?
Thank you very much.
Reply

Logout Mark Read Team Forum Stats Members Help
Kodi only displays at a portion of screen0