Jellyfin Forum
libCEC connection errors - Printable Version

+- Jellyfin Forum (https://forum.jellyfin.org)
+-- Forum: Development (https://forum.jellyfin.org/f-development)
+--- Forum: Client Development (https://forum.jellyfin.org/f-client-development)
+--- Thread: libCEC connection errors (/t-libcec-connection-errors)



libCEC connection errors - jojorabbit - 2024-11-17

Jellyfinmediaplayer linux client taking a long time to open, I looked into logs, and seems it is repeatedly trying to connect to libCEC and failing till it connects.


2024-11-16 20:48:53.494 [info] unknown @ 0 - Starting Jellyfin Media Player version: 1.11.1 build date: 2024-10-26
2024-11-16 20:48:53.494 [info] unknown @ 0 -  Running on: Arch Linux [6.11.6-arch1-1] arch x86_64
2024-11-16 20:48:53.494 [info] unknown @ 0 -  Qt Version: 5.15.15 [x86_64-little_endian-lp64]
2024-11-16 20:48:53.498 [warning] unknown @ 0 - QObject::connect(SettingsSection, Unknown): invalid nullptr parameter
2024-11-16 20:48:53.500 [info] unknown @ 0 - Component: settings inited
2024-11-16 20:48:53.500 [info] unknown @ 0 - Loading inputmaps from: "Confused-faceinputmaps"
2024-11-16 20:48:53.504 [warning] unknown @ 0 - Missing element 'idmatcher' from mapping file: "Confused-faceinputmaps/dualshock4-xbox-emulate.json"
2024-11-16 20:48:53.504 [info] unknown @ 0 - Loading inputmaps from: "/home/kushy/.local/share/jellyfinmediaplayer/inputmaps"
2024-11-16 20:48:53.504 [info] unknown @ 0 - Successfully inited input: Keyboard
2024-11-16 20:48:53.504 [info] LocalJsonServer::listen @ 34 - Listening to socket: "/tmp/jmp_inputSocket_kushy.sock"
2024-11-16 20:48:53.504 [info] unknown @ 0 - Successfully inited input: socket
2024-11-16 20:48:53.577 [info] unknown @ 0 - SDL found  0  joysticks
2024-11-16 20:48:53.577 [info] unknown @ 0 - Successfully inited input: SDL
2024-11-16 20:48:53.577 [critical] unknown @ 0 - LIRC Socket Error :  QLocalSocket:Woozy-faceerverNotFoundError
2024-11-16 20:48:53.577 [warning] unknown @ 0 - Failed to init input: LIRC
2024-11-16 20:48:53.577 [info] unknown @ 0 - libCEC was successfully initialized, found version 393218
2024-11-16 20:48:53.602 [critical] unknown @ 0 - libCEC ERROR: could not open a connection (try 1)
2024-11-16 20:48:54.603 [critical] unknown @ 0 - libCEC ERROR: could not open a connection (try 2)
2024-11-16 20:48:55.603 [critical] unknown @ 0 - libCEC ERROR: could not open a connection (try 3)
2024-11-16 20:48:56.603 [critical] unknown @ 0 - libCEC ERROR: could not open a connection (try 4)
2024-11-16 20:48:57.603 [critical] unknown @ 0 - libCEC ERROR: could not open a connection (try 5)
2024-11-16 20:48:58.603 [critical] unknown @ 0 - libCEC ERROR: could not open a connection (try 6)
2024-11-16 20:48:59.603 [critical] unknown @ 0 - libCEC ERROR: could not open a connection (try 7)
2024-11-16 20:49:00.603 [critical] unknown @ 0 - libCEC ERROR: could not open a connection (try 8)
2024-11-16 20:49:01.603 [critical] unknown @ 0 - libCEC ERROR: could not open a connection (try 9)
2024-11-16 20:49:02.603 [critical] unknown @ 0 - libCEC ERROR: could not open a connection (try 10)
2024-11-16 20:49:03.604 [info] unknown @ 0 - libCEC found 1 CEC adapters.
2024-11-16 20:49:03.604 [info] unknown @ 0 - libCEC NOTICE: connection opened
2024-11-16 20:49:03.604 [critical] unknown @ 0 - libCEC ERROR: could not open a connection (try 1)
2024-11-16 20:49:04.604 [critical] unknown @ 0 - libCEC ERROR: could not open a connection (try 2)
2024-11-16 20:49:05.604 [critical] unknown @ 0 - libCEC ERROR: could not open a connection (try 3)
2024-11-16 20:49:06.604 [critical] unknown @ 0 - libCEC ERROR: could not open a connection (try 4)
2024-11-16 20:49:07.604 [critical] unknown @ 0 - libCEC ERROR: could not open a connection (try 5)
2024-11-16 20:49:08.604 [critical] unknown @ 0 - libCEC ERROR: could not open a connection (try 6)
2024-11-16 20:49:09.604 [critical] unknown @ 0 - libCEC ERROR: could not open a connection (try 7)
2024-11-16 20:49:10.604 [critical] unknown @ 0 - libCEC ERROR: could not open a connection (try 8)
2024-11-16 20:49:11.604 [critical] unknown @ 0 - libCEC ERROR: could not open a connection (try 9)
2024-11-16 20:49:12.605 [critical] unknown @ 0 - libCEC ERROR: could not open a connection (try 10)
2024-11-16 20:49:13.605 [critical] unknown @ 0 - Opening device Linux failed
2024-11-16 20:49:13.605 [info] unknown @ 0 - libCEC NOTICE: connection opened
2024-11-16 20:49:13.605 [info] unknown @ 0 - Successfully inited input: CEC
2024-11-16 20:49:13.605 [info] unknown @ 0 - Component: input inited
2024-11-16 20:49:13.605 [critical] unknown @ 0 - libCEC ERROR: could not start CEC communications
2024-11-16 20:49:13.605 [info] unknown @ 0 - Component: system inited



any idea on what the issue is, and what can i do to fix it.

- Jellyfin.Server 10.9.7.0 running in a docker container on rasp pi
- jellyfin-media-player 1.11.1-2 from AUR
- Arch/Hyprland


RE: libCEC connection errors - TheDreadPirate - 2024-11-17

I believe the issue is your use of Wayland/Hyprland. This user on github had a workaround that worked for them.

https://github.com/jellyfin/jellyfin-media-player/issues/610#issuecomment-2082020267

Install JMP via flatpak and disable the setting they mentioned.


RE: libCEC connection errors - jojorabbit - 2024-11-17

thanks, yea flatpak version launched instantly, even tho most of the issues in that thread seems to be related to nvidia gpu, and i have an amd igpu

didnt even need to disable that wayland socket thing


RE: libCEC connection errors - zjeffer - 2025-03-08

I'm having the same issue, on a new desktop with an AMD iGPU (9950x), also on Hyprland. I don't have any issues with black screens, just slow startup.
On my previous system (which had Nvidia) I could fix the black screen described in that github issue by launching with --platform xcb.

I'd rather not use flatpaks to fix this, perhaps it's an issue with AMD iGPUs?

Code:
2025-03-08 22:36:04.301 [info] Log::Init @ 115 - Starting Jellyfin Media Player version: 1.11.1 build date: 2025-03-07
2025-03-08 22:36:04.301 [info] Log::Init @ 116 -  Running on: Arch Linux [6.13.5-arch1-1] arch x86_64
2025-03-08 22:36:04.301 [info] Log::Init @ 117 -  Qt Version: 5.15.16 [x86_64-little_endian-lp64]
2025-03-08 22:36:04.304 [warning] unknown @ 0 - QObject::connect(SettingsSection, Unknown): invalid nullptr parameter
2025-03-08 22:36:04.305 [info] ComponentManager::registerComponent @ 36 - Component: settings inited
2025-03-08 22:36:04.305 [info] InputMapping::loadMappingDirectory @ 113 - Loading inputmaps from: ":/inputmaps"
2025-03-08 22:36:04.356 [warning] InputMapping::loadMappingFile @ 92 - Missing element 'idmatcher' from mapping file: ":/inputmaps/dualshock4-xbox-emulate.json"
2025-03-08 22:36:04.358 [info] InputMapping::loadMappingDirectory @ 113 - Loading inputmaps from: "/home/zjeffer/.local/share/jellyfinmediaplayer/inputmaps"
2025-03-08 22:36:04.358 [info] InputComponent::addInput @ 53 - Successfully inited input: Keyboard
2025-03-08 22:36:04.358 [info] LocalJsonServer::listen @ 34 - Listening to socket: "/tmp/jmp_inputSocket_zjeffer.sock"
2025-03-08 22:36:04.358 [info] InputComponent::addInput @ 53 - Successfully inited input: socket
2025-03-08 22:36:04.704 [info] InputSDLWorker::refreshJoystickList @ 207 - SDL found  0  joysticks
2025-03-08 22:36:04.704 [info] InputComponent::addInput @ 53 - Successfully inited input: SDL
2025-03-08 22:36:04.704 [critical] InputLIRC::socketerror @ 82 - LIRC Socket Error :  QLocalSocket::ServerNotFoundError
2025-03-08 22:36:04.704 [warning] InputComponent::addInput @ 49 - Failed to init input: LIRC
2025-03-08 22:36:04.704 [info] InputCECWorker::init @ 112 - libCEC was successfully initialized, found version 393218
2025-03-08 22:36:04.710 [critical] InputCECWorker::CecLogMessage @ 225 - libCEC ERROR: could not open a connection (try 1)
2025-03-08 22:36:05.710 [critical] InputCECWorker::CecLogMessage @ 225 - libCEC ERROR: could not open a connection (try 2)
2025-03-08 22:36:06.711 [critical] InputCECWorker::CecLogMessage @ 225 - libCEC ERROR: could not open a connection (try 3)
2025-03-08 22:36:07.711 [critical] InputCECWorker::CecLogMessage @ 225 - libCEC ERROR: could not open a connection (try 4)
2025-03-08 22:36:08.711 [critical] InputCECWorker::CecLogMessage @ 225 - libCEC ERROR: could not open a connection (try 5)
2025-03-08 22:36:09.711 [critical] InputCECWorker::CecLogMessage @ 225 - libCEC ERROR: could not open a connection (try 6)
2025-03-08 22:36:10.711 [critical] InputCECWorker::CecLogMessage @ 225 - libCEC ERROR: could not open a connection (try 7)
2025-03-08 22:36:11.711 [critical] InputCECWorker::CecLogMessage @ 225 - libCEC ERROR: could not open a connection (try 8)
2025-03-08 22:36:12.711 [critical] InputCECWorker::CecLogMessage @ 225 - libCEC ERROR: could not open a connection (try 9)
2025-03-08 22:36:13.711 [critical] InputCECWorker::CecLogMessage @ 225 - libCEC ERROR: could not open a connection (try 10)
2025-03-08 22:36:14.711 [info] InputCECWorker::openAdapter @ 158 - libCEC found 1 CEC adapters.
2025-03-08 22:36:14.711 [info] InputCECWorker::CecLogMessage @ 233 - libCEC NOTICE: connection opened
2025-03-08 22:36:14.711 [critical] InputCECWorker::CecLogMessage @ 225 - libCEC ERROR: could not open a connection (try 1)
2025-03-08 22:36:15.712 [critical] InputCECWorker::CecLogMessage @ 225 - libCEC ERROR: could not open a connection (try 2)
2025-03-08 22:36:16.712 [critical] InputCECWorker::CecLogMessage @ 225 - libCEC ERROR: could not open a connection (try 3)
2025-03-08 22:36:17.712 [critical] InputCECWorker::CecLogMessage @ 225 - libCEC ERROR: could not open a connection (try 4)
2025-03-08 22:36:18.712 [critical] InputCECWorker::CecLogMessage @ 225 - libCEC ERROR: could not open a connection (try 5)
2025-03-08 22:36:19.712 [critical] InputCECWorker::CecLogMessage @ 225 - libCEC ERROR: could not open a connection (try 6)
2025-03-08 22:36:20.713 [critical] InputCECWorker::CecLogMessage @ 225 - libCEC ERROR: could not open a connection (try 7)
2025-03-08 22:36:21.713 [critical] InputCECWorker::CecLogMessage @ 225 - libCEC ERROR: could not open a connection (try 8)
2025-03-08 22:36:22.713 [critical] InputCECWorker::CecLogMessage @ 225 - libCEC ERROR: could not open a connection (try 9)
2025-03-08 22:36:23.713 [critical] InputCECWorker::CecLogMessage @ 225 - libCEC ERROR: could not open a connection (try 10)
2025-03-08 22:36:24.713 [critical] InputCECWorker::openAdapter @ 169 - Opening device Linux failed
2025-03-08 22:36:24.713 [info] InputCECWorker::CecLogMessage @ 233 - libCEC NOTICE: connection opened
2025-03-08 22:36:24.713 [critical] InputCECWorker::CecLogMessage @ 225 - libCEC ERROR: could not start CEC communications
2025-03-08 22:36:24.713 [info] InputComponent::addInput @ 53 - Successfully inited input: CEC
2025-03-08 22:36:24.713 [info] ComponentManager::registerComponent @ 36 - Component: input inited
2025-03-08 22:36:24.713 [info] ComponentManager::registerComponent @ 36 - Component: system inited



RE: libCEC connection errors - TheDreadPirate - 2025-03-09

Does your DE support xWayland? Jellyfin Media Player does not support Wayland yet so your DE needs some sort of X11 compatibility for JMP to work. Work is being done to make JMP work in Wayland, but that requires an almost entire re-write of the app.


RE: libCEC connection errors - zjeffer - 2025-03-14

Yes, Hyprland supports XWayland, and that's why I always run jellyfinmediaplayer with --platform xcb. On my previous system (with an Nvidia card) this worked fine but not on my new desktop with an AMD iGPU.
My new Nvidia GPU arrived yesterday, and now JellyfinMediaPlayer starts up quickly again, so the problem definitely lies with the AMD iGPU or its drivers.

I'm aware of the work being done to make JMP work in Wayland, I've actually contributed to the repo a little for that Winking-face Sadly development on that point is very slow, no-one seems to have a clear plan as to how to move to Qt6, as it indeed requires a pretty big rewrite. It's an increasingly big problem because Qt5 standard support has already ended in 2023...