Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No shutdown via LibCEC #14883

Open
1 of 7 tasks
mrblond18 opened this issue Nov 15, 2018 · 8 comments
Open
1 of 7 tasks

No shutdown via LibCEC #14883

mrblond18 opened this issue Nov 15, 2018 · 8 comments
Assignees

Comments

@mrblond18
Copy link

mrblond18 commented Nov 15, 2018

Bug report

Describe the bug

I use a USB-cec adapter. When the TV is switched off I want the htpc (nuc8i3) to turn off as well. Therefore I configered "When the TV is switched off: Shutdown" in the Settings-System->Input->Peripherals-CEC adapter config.

However the htpc does not shutdown when I turn the TV off, but the Kodi application stops and the HTPC stays on (shows the ubuntu desktop). This is the same behaviour as when I choose "quit" in the "When the TV is switched off: " config of the CEC adapter.

When I choose "Power off system" from the "Power Options" menu it does shut down.
When I choose either hibernate or sleep from the "When the TV is switched off: " config it does actually hibernate or sleep.

I use Ubuntu 18.04 with Kodi 18 beta 5.
In Kodi 17.5 Libreelec it was working fine.

Expected Behavior

Here is a clear and concise description of what was expected to happen:
The pc should shutdown when I power off the TV as set in the configuration.

Actual Behavior

Kodi quits, but PC stays on.

Possible Fix

?

To Reproduce

Steps to reproduce the behavior:

  1. Turn on Kodi
  2. Turn off TV

Debuglog

The debuglog can be found here:
https://pastebin.com/9fc0W80L

Screenshots

Additional context or screenshots (if appropriate)

Your Environment

Used Operating system:

  • Android

  • iOS

  • Linux

  • OSX

  • Raspberri-Pi

  • Windows

  • Windows UWP

  • Operating system version/name: Ubuntu 18.04

  • Kodi version: 18 beta 5

note: Once the issue is made we require you to update it with new information or Kodi versions should that be required.
Team Kodi will consider your problem report however, we will not make any promises the problem will be solved.

@lrusak
Copy link
Contributor

lrusak commented Nov 15, 2018

Thanks for the report, I'll have a look into it.

@lrusak lrusak self-assigned this Nov 15, 2018
@mrblond18
Copy link
Author

I actually found the bug/a workaround. When I go to settings->system->power saving and set "shutdown function" to shutdown it actually works. So it seems the cec adapter settings "listen" to this setting instead of what is explicitly configured there.

@lrusak
Copy link
Contributor

lrusak commented Nov 16, 2018

I'm not sure if there is much we can do about that or if it would be ok to override the shutdown function setting.

@mrblond18
Copy link
Author

I understand, but the way the CEC adapter settings are presented now are misleading. It suggest you can choose between quit and shutdown there, when in reality it depends on another setting.

@tudstudent
Copy link

tudstudent commented Dec 10, 2018

Could this issue be related to:
#10512
AND
https://trac.kodi.tv/ticket/16842#ticket

@yol
Copy link
Member

yol commented Dec 20, 2018

@lrusak I guess you'd have to rewire the shutdown logic such that it actually uses the CEC configuration value when receiving the CEC event.

@cornim
Copy link

cornim commented Sep 16, 2021

I ran into the same issue. I believe just rephrasing the related item in the CEC adapter config, e.g.
When TV is switched of: Shutdown (as configured in Power Savings)
would go a long way to mediate this issue.

@thrakkath
Copy link

Hi everybody,

Tested on nexus 20.2 on windows and 20.3 on librelec(linux based) and the issue stills the same.

But I found a workaround... On the menu port saving, add a timer for shutting down at 5 minutes on the function "shutdown function timer "

And then power the TV.
The first time, you'll need to wait the timer of 5 minutes and the Kofi will shutdown ( quite normal)
Then next shutting down, without modifying anything, will occur immediately after power of the TV.🙄
It's strange but I'll stay with that 😜

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants