enen92 / screensaver.atv4

Apple aerial screensavers (apple tv 4) for Kodi
GNU General Public License v2.0
52 stars 10 forks source link

Issues CEC Activate command when starting #24

Open noctividus opened 7 years ago

noctividus commented 7 years ago

The screen saver will activate my TV if it is turned off. I usually leave my osmc box running and just turn off the TV. It would be nice if the screensaver didn't wake up the TV every time a video starts.

enen92 commented 7 years ago

I guess this is not really a plugin issue but a configuration on your device. If it is a raspberry pi you can try to add the following to your /boot/config.txt hdmi_ignore_cec_init=1

With this option your rpi will stop sending wake up signals to your tv Let me know if this solves the issue for you

noctividus commented 7 years ago

According to http://elinux.org/RPiconfig "Doesn't sent initial active source message. Avoids bringing (CEC enabled) TV out of standby and channel switch when rebooting."

That option only disables sending a CEC activate command when the device boots.

Furthermore, I believe it's desirable to leave the CEC activate function in place for other things. For instance, if my TV is off and I push a video via Yaste, start a movie in the same way, or if one of my IP cameras triggers playback.

What I don't want to happen (and probably some other people too) is to have my screensaver wake up my TV that's already off. It kinda defeats the purpose. Basically, when this plugin starts a video, the CEC activate should be suppressed.

ExTechOp commented 5 years ago

This issue still seems to be here with the latest version (I'm running CoreELEC 9.0.3 and Kodi 18.3 on Minix NEO U1): when the screen saver video playback is activated, the CEC command to switch to that input also gets sent. As @noctividus noted, this is somewhat inconvenient. Could the activation of the screen saver somehow completely be precluded if the output is not being viewed, or is there any way to know this?

ExTechOp commented 5 years ago

I really can't see any situation where CEC activation should happen from a screen saver. Aerial is probably currently the only one that ends up doing this (since it plays back videos) but it seems quite plausible that some other screen saver might end up doing it. Can the whole screen saver system be precluded from using CEC activate?

Suffice commented 3 years ago

Experiencing the same frustration here as well. It makes no sense that the TV should turn on again after turning it off just to show the screensaver.

I think the problem is that Kodi is not suspending like it's supposed to when the TV enters standby mode (from the power button). i.e. if you left a video playing and hit the power button the video would still be going in the background. Edit: Turns out you can't hibernate or suspend Raspberry Pi hardware. Suspend will put the device in a low power state, that's it.

Temporary solution is to go to: Settings > System > Input > Peripherals > CEC Adapter Then disable "Switch source to this device on startup"

This will have the side effect of making it so Kodi can't turn on the TV. If you're used to pressing up or back on the remote to turn on the tv (because it's closer than the power button), it won't work. Might have to disable other settings too like disabling screensaver turning on the TV.

You can also set it to pause video when the TV turns off, which will pause the screensaver if you turn off your TV while the screensaver is running. If you set it to stop it will just skip to the next screensaver video (useful if you don't care if the background is always running but want to have redundancy in case you or somebody accidentally leaves a movie / show running). Leaving the screensaver always running will not raise your energy bill much. It won't even get hot. Makes it took more natural when you turn the TV back on and it's not paused on a single frame of the screensaver video. Might run into the problem of getting stuck in the video player with no way to close it.

Now running into another problem where some of the videos don't load and am left with a blank screen until the next one starts or the system crashes. Also the system crashes when trying to download videos again. Ended redownloading the videos from my desktop.

Found out that the 4k videos will play at 1080p unless I set the user interface resolution to 4k.