Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Kodi on Sway doesn't launch (black screen) [Solved]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
The Main Man
Veteran
Veteran


Joined: 27 Nov 2014
Posts: 1101
Location: /run/user/1000

PostPosted: Mon Mar 28, 2022 3:28 am    Post subject: Kodi on Sway doesn't launch (black screen) [Solved] Reply with quote

Actually it does launch but it's just black screen, picture.

Anyway, I was away from Gentoo few months, from Linux in general, got back, installed gentoo, everything is fine, right back to where I was when I left, Sway and Wayland.
Other apps are all working fine btw, even Steam and games, I say even because that's kinda sure thing that all is good I guess :)
Sure, it might not be Kodi after all but just saying how it is.
I'm on stable, sway was on stable, wayland wlroots on stable, as well as Kodi.
When I launched Kodi for the first time, I thought OK, maybe if I bump the version to latest it will work, it didn't, then I bumped Sway, wlroots and xwayland, same problem still.
Then I decided to ask here so here it goes, I have no clue why this is happening, there are no logs that I can see, when I launch it from the terminal there is no output at all, it launches as it launch with the launcher, it just doesn't output anything and I can kill that Kodi black screen by clicking on X on that app bar, which I'm shocked to even see it there, because on Sway I turned that feature off, there's obviously some conflict with Wayland (or Sway), can't really tell.

USE flags for Kodi :

Code:
* Found these USE flags for media-tv/kodi-19.4:
 U I
 + + X                               : Add support for X11
 - - airplay                         : enable AirPlay support
 + + alsa                            : Add support for media-libs/alsa-lib (Advanced Linux Sound Architecture)
 - - bluetooth                       : Enable JSON-RPC over BT for remote control connected via bluetooth
 - - bluray                          : Enable playback of Blu-ray filesystems
 - - caps                            : Use sys-libs/libcap to bind to privileged ports as non-root
 - - cec                             : Enable support for HDMI-CEC devices via libcec
 + + cpu_flags_x86_avx               : Adds support for Advanced Vector Extensions instructions
 + + cpu_flags_x86_avx2              : Adds support for Advanced Vector Extensions 2 instructions
 + + cpu_flags_x86_sse               : Use the SSE instruction set
 + + cpu_flags_x86_sse2              : Use the SSE2 instruction set
 + + cpu_flags_x86_sse3              : Use the SSE3 instruction set ([pni] in cpuinfo, NOT ssse3)
 + + cpu_flags_x86_sse4_1            : Enable SSE4.1 instruction support
 + + cpu_flags_x86_sse4_2            : Enable SSE4.2 instruction support
 + + css                             : Enable reading of encrypted DVDs
 - - dav1d                           : Enables AV1 decoding via media-libs/dav1d
 + + dbus                            : Enable dbus support for anything that needs it (gpsd, gnomemeeting, etc)
 - - eventclients                    : Install full set of Kodi python evenclients and evenclients examples
 - - gbm                             : Use the Graphics Buffer Manager for EGL on KMS.
 - - gles                            : Use simplified OpenGLES instead of full-scale OpenGL
 + + lcms                            : Add lcms support (color management engine)
 - - libusb                          : Use virtual/libusb for usb device hotplug support. This flag should only be enabled if you're running a non-Linux kernel or you don't want to use sys-fs/udev
 - - lirc                            : Enable support for IR remote controls using app-misc/lirc
 - - mariadb                         : Enable support store of media library metadata on local or remote MariaDB
 - - mysql                           : Enable support store of media library metadata on local or remote MySQL
 - - nfs                             : Enable NFS client support
 + + optical                         : Enable Audio CD playback, optical disks detection and reading (CD-ROM, Video CD, and others), and ISO optical disk images direct reading. DVD disks may require additional 'udf' flag.
 - - power-control                   : Enable control of shutdown, reboot, suspend, and hibernate
 + + pulseaudio                      : Add support for PulseAudio sound server
 - - python_single_target_python3_10 : Build for Python 3.10 only
 - - python_single_target_python3_8  : Build for Python 3.8 only
 + + python_single_target_python3_9  : Build for Python 3.9 only
 - - samba                           : Add support for SAMBA (Windows File and Printer sharing)
 - - test                            : Enable dependencies and/or preparations necessary to run tests (usually controlled by FEATURES=test but can be toggled independently)
 + + udev                            : Use sys-fs/udev rules to handle devices' permissions and hotplug support. Unless you know what you're doing do not disable this flag on Linux kernels. This is provided as an option for
                                       completeness.
 - - udf                             : Enable UDF support. Required for playing blurays.
 + + udisks                          : Enable storage management support (automounting, volume monitoring, etc)
 - - upnp                            : Enable UPnP port mapping support
 + + upower                          : Use sys-power/upower to get battery level and active power source
 - - vaapi                           : Enable Video Acceleration API for hardware decoding
 + + vdpau                           : Enable the Video Decode and Presentation API for Unix acceleration interface
 + + wayland                         : Enable dev-libs/wayland backend
 - - webserver                       : Enable internal webserver
 + + xslt                            : Enable metadata XSLT scrapers support with dev-libs/libxslt
 - - zeroconf                        : Support for DNS Service Discovery (DNS-SD)


Last edited by The Main Man on Mon Mar 28, 2022 1:49 pm; edited 1 time in total
Back to top
View user's profile Send private message
The Main Man
Veteran
Veteran


Joined: 27 Nov 2014
Posts: 1101
Location: /run/user/1000

PostPosted: Mon Mar 28, 2022 3:40 am    Post subject: Reply with quote

I've just noticed I left some USE flags out in the package.use for Kodi, from the previous setup, so it was default mostly, except for few global flags Ive done in make.conf
Anyway, this was from before , when it was working, so it might work again when I recompile the package, it will have to wait for tomorrow though.

Code:
media-tv/kodi -css -samba -dvd caps -upower -udisks
Back to top
View user's profile Send private message
The Main Man
Veteran
Veteran


Joined: 27 Nov 2014
Posts: 1101
Location: /run/user/1000

PostPosted: Mon Mar 28, 2022 1:11 pm    Post subject: Reply with quote

Unfortunately that didn't change a thing, still the same problem.

Edit:
Found this github issue, it's still open, [wayland] black screen when starting fullscreen #20629
Proposed fix seems to work (launching it in x11 mode) , but then again that has it's own problems.
Anyway, not much to do here on forum about it, so I'll mark this as solved.
Back to top
View user's profile Send private message
The Main Man
Veteran
Veteran


Joined: 27 Nov 2014
Posts: 1101
Location: /run/user/1000

PostPosted: Thu Jun 23, 2022 4:20 am    Post subject: Reply with quote

Actually, this is fixed in the latest versions of sway/wlroots, in 9999 ebuilds though, at the time of writing this post.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum