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

Disable shutdown countdown, shut down unconditionally #1

Closed
Ra72xx opened this issue Mar 15, 2018 · 5 comments
Closed

Disable shutdown countdown, shut down unconditionally #1

Ra72xx opened this issue Mar 15, 2018 · 5 comments

Comments

@Ra72xx
Copy link

Ra72xx commented Mar 15, 2018

I'd like to be able to disable the shutdown timer. The powermanager service should offer the option to shut down Kodi unconditionally.

Reason:
I control my HTPC setup with a Harmony universal remote, and if I turn off everything with the remote, everything is supposed to shut down in accordance with Harmony's "activities" principle. Interfering by hand e.g. by cancelling the shutdown mixes this system up.

To make things worse, the Harmony seems to send additional IR signals to my HTPC, which are usually not interpreted by Kodi, but seem nevertheless to be interpreted by the PVR-Powermanager service as user activity. So every second or so shutdown is cancelled immediately without apparent reason (only unassigned keypresses in Kodi's log).

Alternatively it would help to assign a certain key (and not any activity) for the cancellation of the scheduled shutdown.

@b-jesch
Copy link
Owner

b-jesch commented Mar 18, 2018

Alternatively it would help to assign a certain key (and not any activity) for the cancellation of the scheduled shutdown.

I'll try to implement this in this way.

@Ra72xx
Copy link
Author

Ra72xx commented Mar 19, 2018

Thanks! I currently just have somehow commented out the timeout part in the code.

@b-jesch
Copy link
Owner

b-jesch commented Mar 19, 2018

Is it ok to use the select button (OK) for aborting the shutdown progress?

@Ra72xx
Copy link
Author

Ra72xx commented Mar 19, 2018

Yes. The Harmony Hub seems to send signals interpreted as meaningless special key combinations (e.g. ctrl-shift) in addition to the poweroff, which nevertheless are interpreted as user activity by Kodi. So almost any real key should work :-) .
Thanks for the support!

@b-jesch
Copy link
Owner

b-jesch commented Mar 19, 2018

Done. If you want to stay up to date, install my repository: https://github.com/b-jesch/SaXBMC/raw/master/zip/repository.saxbmc/repository.saxbmc-1.0.1.zip

@b-jesch b-jesch closed this as completed Mar 19, 2018
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

2 participants