Linux Kodi 21.1 on 1920x1080 laptop detects/uses *only* wrong 3490x1964p resolution ?
#1
Question 
I run

Code:
inxi -GS
    System:
      Host: desk.loc Kernel: 6.10.12-200.fc40.x86_64
        arch: x86_64 bits: 64
      Console: pty pts/2 Distro: Fedora Linux 40 (Forty)
    Graphics:
      Device-1: AMD Lucienne driver: amdgpu v: kernel
      Device-2: Realtek Integrated_Webcam_HD driver: uvcvideo type: USB
      Display: server: Xwayland v: 24.1.3 driver: X: loaded: amdgpu
        unloaded: modesetting dri: radeonsi gpu: amdgpu resolution: 1920x1080
      API: EGL v: 1.5 drivers: radeonsi,swrast platforms: gbm,surfaceless,device
      API: OpenGL v: 4.6 compat-v: 4.5 vendor: mesa v: 24.1.7 note: incomplete
        (EGL sourced) renderer: AMD Radeon Graphics (radeonsi renoir LLVM 18.1.6
        DRM 3.57 6.10.12-200.fc40.x86_64), llvmpipe (LLVM 18.1.6 256 bits)
      API: Vulkan Message: No Vulkan data available.

It's a Dell Inspiron 15 3525, my daily-driver laptop. It's a 15.6" screen, with Native Display Resolution == 1920 x 1080

I clean installed Kodi -- no prior install or data
Code:
    flatpak info tv.kodi.Kodi

        Kodi - Ultimate entertainment center

                  ID: tv.kodi.Kodi
                 Ref: app/tv.kodi.Kodi/x86_64/stable
                Arch: x86_64
              Branch: stable
             Version: 21.1-Omega
             License: GPL-2.0-only GPL-2.0-or-later LGPL-2.1-or-later MIT BSD-3-Clause BSD-4-Clause
              Origin: flathub
          Collection: org.flathub.Stable
        Installation: system
           Installed: 516.5 MB
             Runtime: org.freedesktop.Platform/x86_64/23.08
                 Sdk: org.freedesktop.Sdk/x86_64/23.08

              Commit: 301038887baa0cdc8fab5ef3b5d5737469efc50cfe121ada4f6ebdff6a1fac08
              Parent: d7ea1b8b6c6feab74427b01ac214f7e95187c1024a34c718b265af769e12c5a4
             Subject: Don't bundle lirc docs (c7392276)
                Date: 2024-08-18 01:19:19 +0000

When I launch Kodi, it launches in Windowed mode.
The Kodi window display resolution -- all icons are huge, and the window's expanded way off screen.
I can resize the window, but that doesn't survive restart. It returns to as above.

If I "\" to get to full screen, all looks ok as long as I'm in full screen.
In
Code:
    Settings>Systen>Display

I see
Code:
    General
    Monitor      ---> Default
    Display mode ---> Full Screen
    - Resolution ---> 3490x1964p.

If I click Resolution, the selection dialog opens, displaying only one resolution: 3490x1964p.
Nothing else to select from.

If I click on Whitelist, only one option's available: 3490x1964p 120.00Hz.

I don't know where it's getting that resolution.

How do I get Kodi to detect, or accept change to, the correct resolution for my laptop, i.e., the 1920x1080?
Reply
#2
Reminds me of https://bugs.debian.org/cgi-bin/bugrepor...ug=1031975 : Wayland, windowed mode, and every subsequent Kodi launch doubles the perceived resolution.

Can you check if your config is affected? If yes, we can fix both issues at once!
Maintainer of Kodi from Debian | Got an issue with Kodi from Debian? Report it here: Kodi from Debian - Support Thread
Reply
#3
(2024-10-10, 06:47)basilgello Wrote: Reminds me of https://bugs.debian.org/cgi-bin/bugrepor...ug=1031975 : Wayland, windowed mode, and every subsequent Kodi launch doubles the perceived resolution.

Can you check if your config is affected? If yes, we can fix both issues at once!
I run Fedora40 + KDE.

X11 is pretty much a thing of the past here. Well, at least without jumping through a bunch of unsupported hoops ... and I haven't done that.

On exec with x11, fails
Code:
flatpak run tv.kodi.Kodi --windowing=x11
    'this->recurse > 0' failed at ../src/pipewire/thread-loop.c:63 do_unlock()
    ERROR: Unable to create GUI. Exiting


whereas
Code:
flatpak run tv.kodi.Kodi
    'this->recurse > 0' failed at ../src/pipewire/thread-loop.c:63 do_unlock()
    ERROR: Unable to create GUI. Exiting

launches. But has the windowed-size issue.

Checking, in my KDE Display Config, I have
Code:
Resolution: 1920x1080 (16:9)
Scale: 110% <============ fractional scaling ?
Refresh rate: 120 HzAdaptive sync: Automatic
Overscan: 0%
legacy applications (X11):
    [X] Apply scaling themselves
    [ ] Scaled by the system

Reducing the scaling to 100%, on Kodi launch (withOUT the `--windowing=X11`), I still have the windowed-size issue.
Reply
#4
@basilgello

and, currently,
Code:
grep -E '\.screen"|\.resolution"|screenmode"|window\.width|window\.height' .var/app/tv.kodi.Kodi/data/userdata/guisettings.xml
    <setting id="window.width">6940</setting>
    <setting id="window.height">3460</setting>
    <setting id="videoscreen.screen" default="true">0</setting>
    <setting id="videoscreen.resolution" default="true">16</setting>
    <setting id="videoscreen.screenmode" default="true">DESKTOP</setting>
Reply
#5
Yes, 110% is fractional scaling (aka 1.1). Congrats, you are the second person hitting this bug! Smile Can you please post the Debug Log with GUI category enabled in the detailed toggle menu?
Maintainer of Kodi from Debian | Got an issue with Kodi from Debian? Report it here: Kodi from Debian - Support Thread
Reply
#6
@basilgello

I don't see a 'GUI category' available -- I enabled "Windowing component".

--> https://paste.kodi.tv/raw/zupopoduxe

EDIT:
@basilgello
Is that what you're looking for?
Reply
#7
Windowed Kodi growing indefinitely on Wayland will be fixed with this PR: https://github.com/xbmc/xbmc/pull/25955

As for the "wrong" resolution from the tread starter: This in the correct resolution and how scaling on Wayland works. To scale on Wayland (without the fractional scale protocol) works by requesting a smaller window from the application and then the compositor scales it up the intended resolution and making it larger in the process. Because scaling up looks blurry the compositor can instead request the application to render double the size of the smaller resolution (confusing, I know...) and then it's scaled down instead being less blurry. So in OPs case the compositor asked Kodi to render at a logic resolution of 1745x982 but to double the resolution.
Reply
#8
If opened in full screen, Kodi spreads between my monitors (Qtile wayland - scaling factor 2). I have to toggle "windowed/full screen" to obtain a full screen Kodi in my primary monitor only. It is the aim of the PR to solve this, am I correct?
Reply

Logout Mark Read Team Forum Stats Members Help
Kodi 21.1 on 1920x1080 laptop detects/uses *only* wrong 3490x1964p resolution ?0