Linux Suspend kicks in before CEC standby
#1
Couple of weeks I have been busy with my HTCP config. I changed over from an old ION2 with ATOM to skylake.
It still takes some time to figure all new features out and config them to what I want.

At the moment I ran into a problem which I cannot seem to figure out.

Explained:
When I suspend my HTPC and I turn all devices off (AVR & TV), and then turn on. Then the AVR & TV are both started. However when I want to suspend, the devices is almost immediately suspended and it seems it has no time to standby the AVR & TV.

I have tried if I could do it by command line and this is working fine. It looks like it is not a libcec problem. I am also wondering if it is a kodi problem, but as said before I have no idea how to find that out. And if it is, how can I "delay" suspend so Kodi can execute the cec action before suspend.
Reply
#2
I am bumping this topic, since it is still not working.
Do I need to create a trac ticket for this issue or make some config changes?

Ubuntu 16.04 64bit
(Used the nightly & self compiled, both have this issue)
Reply
#3
has nothing to do with kodi... use another button on the remote or kodis' menu.

As you again failed to provide logs in your 125th support request, not sure what to tell.
First decide what functions / features you expect from a system. Then decide for the hardware. Don't waste your money on crap.
Reply
#4
I have attached logs, but do not know if they are of any use:

Kodi log:
http://paste.ubuntu.com/23048786/

Dmesg log:
http://paste.ubuntu.com/23048783/

Config file:
http://paste.ubuntu.com/23048810/

I did not attach a log file (yet) because I had no idea what (log) to attach. Now attached files of which I am not sure they will help.
Furthermore, my testing is done with a keyboard attached to Kodi box and using the suspend option in the "power-menu". In the past this suspended all my CEC devices, atm it only powers the devices.
It has nothing to do with remote devices, since that is not (yet) used.
In the CEC menu I tried to enable the put other devices in standby/suspend, but this has no influence.

When I use in the android remote app the option "Put CEC devices in standby", then all CEC devices are put to standby, and of course the wake option does the reverse. Libcec therefore is working, it only does not work when using the suspend option..
Reply
#5
For the future: If you have a kodi bug, or think you have a kodi bug, provide a kodi Debug Log

I don't see a single suspend in your logfile ...
First decide what functions / features you expect from a system. Then decide for the hardware. Don't waste your money on crap.
Reply
#6
Well, I really "suspended". (Used the menu button on screen), and system is going into sleep.
What can I provide/do more to get more insight and solve this mystery?
Reply
#7
No idea - file a bug, post all proper logfiles and add opdenkamp for it. He will tell you, if that's by design or not.
First decide what functions / features you expect from a system. Then decide for the hardware. Don't waste your money on crap.
Reply
#8
Ticket: http://trac.kodi.tv/ticket/16842#ticket
Reply
#9
@tudstudent, your config file in trac has "<setting id="standby_tv_on_pc_standby" value="0" />", so this basically means that kodi should not put the tv in standby when suspending. Does it work correctly is this is enabled?
Reply
#10
Same problem here
Ubuntu 16.04 64bit / Krypton Nightly

I have a fresh install from Fritsch's guide on my i5 NUC.

I think something goes bad around here.

Code:
14:41:20 T:139884857350528  NOTICE: OnSleep: Running sleep jobs
14:41:20 T:139884857350528  NOTICE: OnSleep: Stopping lirc
14:41:20 T:139884199143168   DEBUG: Failed to connect to LIRC. Giving up.
14:41:20 T:139884199143168   DEBUG: Thread RemoteControl 139884199143168 terminating
14:41:20 T:139884857350528    INFO: LIRC SetEnabled: disabled
14:41:20 T:139884857350528   DEBUG: CApplication::CloseNetworkShares: Closing all network shares
14:41:20 T:139884857350528   DEBUG: LogindUPowerSyscall - delay lock released
14:41:20 T:139884857350528   DEBUG: CSettingsManager: requested setting (pvrmanager.enabled) was not found.
14:41:48 T:139884375877376   DEBUG: Previous line repeats 2 times.
14:41:48 T:139884375877376   DEBUG: CALSAHControlMonitor - Monitored ALSA hctl value changed
14:41:48 T:139881674155776   DEBUG: Thread CECAdapterUpdate 139881674155776 terminating
14:41:48 T:139884342068992   ERROR: CAESinkALSA - snd_pcm_writei(-86) Streams pipe error - trying to recover
14:41:48 T:139883385448192   DEBUG: Process - sending standby commands

I suspend kodi at 14:41:20 and wake at 14:41:48.

My logs :

-Syslog
-Kodi.log
-CEC config
Reply
#11
Sorry for bumping this thread, but i'm experiencing this exact same issue. If I suspend my system, my AVR and TV stay on. As soon as I wake my PC from sleep, it first turns off the TV and AVR, and next turns them on again.

I upgraded from Libreelec 7 to 8.0.1, so moved from Kodi 16.1 to 17.
On Kodi 16 this was working flawless.

Did someone find a fix ?
Reply
#12
(2017-04-15, 20:10)jammiejammie Wrote: Sorry for bumping this thread, but i'm experiencing this exact same issue. If I suspend my system, my AVR and TV stay on. As soon as I wake my PC from sleep, it first turns off the TV and AVR, and next turns them on again.

I upgraded from Libreelec 7 to 8.0.1, so moved from Kodi 16.1 to 17.
On Kodi 16 this was working flawless.

Did someone find a fix ?
I have the same issue. More or less. In my case suspended cec devices keep sleeping. But as you all describe, only on next wake up, not on kodi suspend. This means also in my case kodi does not suspend cec devices when going into standby even configured in cec settings.

I am using x86 with pulse eight. In kodi 16 everything worked like a charm. I thought this issue should have been solved with https://github.com/xbmc/xbmc/pull/10512. Don't you think so?
Reply

Logout Mark Read Team Forum Stats Members Help
Suspend kicks in before CEC standby0