Bug Kodi is resetting my CEC device settings on exit
#1
With the upgrade to Kodi 17 beta 6, Kodi keeps resetting my CEC settings on exit. I am stopping X by systemctl stop sddm, and Kodi is crashing on exit in CMediaSourceSetttings::Clear()

Debug log: http://paste.ubuntu.com/23629387/
Crash log: http://paste.ubuntu.com/23629411/
CEC settings: http://paste.ubuntu.com/23629396/
CEC settings after Kodi exit: http://paste.ubuntu.com/23629401/
Reply
#2
Yeah, the libCEC version bump is causing a lot of issues. I have no idea why that was allowed during the beta cycle, long after feature freeze :/
Reply
#3
I reported this bug here: http://trac.kodi.tv/ticket/17144 . It also causes the CEC settings to be reset on a suspend/resume cycle which means my CEC adapter is listening to the wrong input for the wake-up signal.
Reply
#4
I read through the CEC code a bit, and it looks like libcec is overwriting my CEC settings. There are numerous calls to SetSetting inside SetConfigurationFromLibCEC, and SetConfigurationFromLibCEC is called in CPeripheralCecAdapter::OpenConnection after a connection to the CEC adapter is opened which overwrites the user provided settings from the dialog.
Reply
#5
Hmm, the CEC settings on my TV (Samsung UE46C6000) are being reset every few times I send Kodi (v16) to sleep. Is the CEC adapter (PulseEight adapter for Intel NUC) able to directly change the settings on a TV?

Waking up works as intended and the TV remote works as well, just sending to sleep keeps the TV alive while the NUC goes to sleep. Changing the setting back on the TV will make it work again for one or two times, then it breaks again.

I remember this not to happen when I only had my Chromecast connected to the TV. There the CEC settings stayed as they were intially set.
AMD Ryzen 5 2700 | Asus ROG Strix B350 ITX | Geforce RTX 2060 
Ubuntu 22.04 LTS | Kernel 6.1 | Nvidia blob drivers | Kodi v20
Reply

Logout Mark Read Team Forum Stats Members Help
Kodi is resetting my CEC device settings on exit0