Turn off video output
#1
Question 
Hi all,

I've installed OpenElec on RaspberryPi and in general all is well. However I have one thing that I would like to achieve and I'm not sure how to go about it.

I would like for Kodi to disable video output, after some timeout. I don't want to turn off the Pi. I don't want a black screen. I don't want standby. I would like the Pi to stay on but for the video out to be disabled.

The reason why I want this, is so that I could force the projector to shut down on its own, when video stops playing.
So, in short, it seems to me like another setting that could be there in the screensaver settings. Any ideas?

Thanks
Reply
#2
Hi,
I use this addon which works well for me.
https://github.com/asavah/script.pidisplaypower
May be can you try it ?
Reply
#3
Hi,

Thanks a lot! This looks just what I was going for. I'll test it and let you know.
Reply
#4
Unfortunately it doesn't work, like I was hoping for.

What happens is that the projector output goes dark. But there still seems to be a video signal coming to it through HDMI. The result is that projector won't turn off.

If I turn off the Pi, then the projector says that it cannot detect any signal through HDMI and powers off after a timeout. I want the same function here.

I'll contact the creator of this addon and see if he has any ideas.

Thanks anyway.
Reply
#5
Hello!

Is there a solution now? I got the same problem. Turning off the Pi is no solution for me.
If there are functions accessible by kodi-send or OS API, I would be very satisfied.

I know the topic is very old... I didnt found anything other/better with my google skills.
Reply
#6
Hi un_skilled,

I couldn't find anything to work at that point and gave up since then, unfortunately.

Cheers,
Vlayke
Reply
#7
Maybe this works for you:
https://forum.kodi.tv/showthread.php?tid=331076
Reply
#8
Minimal script to disable(0), enable(1) or toggle(2) display.
Code:
#!/bin/bash

if [ "$1" = "2" ]
then
    #toggle mode
    if [ -e /dev/shm/moniOff ]
    then
        rm /dev/shm/moniOff
        MONI="1"
    else
        touch /dev/shm/moniOff
        MONI="0"
    fi
else
    MONI="$1"
fi


if [ "$MONI" = "0" ]
then
    /usr/bin/vcgencmd display_power 0
fi

if [ "$MONI" = "1" ]
then
    /usr/bin/vcgencmd display_power 1
    # Do not know if below lines still required
    chvt 7
    chvt 1
    $(fgconsole > /dev/shm/testFgconsole)
fi
Reply
#9
Hello!
The linked screensaver does not work. Tried this before already ;)

'/usr/bin/vcgencmd display_power X'
does work perfect - thanks a lot!

"    # Do not know if below lines still required
    chvt 7
    chvt 1
    $(fgconsole > /dev/shm/testFgconsole)"
This lines are not needed (as far as I can judge).

Thanks again :)
Reply
#10
(2015-04-19, 19:57)Vlayke Wrote: I would like for Kodi to disable video output
I think ddcutil will help you. I just started another thread about how to configure it from Kodi menus:

https://forum.kodi.tv/showthread.php?tid=338523

An answer here describes using it to control monitor power:

https://superuser.com/questions/648805/i...ter/648817
Reply
#11
Nice help there thank you.
Reply
#12
Any luck eventually?
Reply
#13
Anyone still looking for this? I wrote a screensaver called TurnOff which does just that.
It turns off the display (using one of a handful of methods) and makes a computer screen, TV or projector go into standby.
Depending on the device or device settings when the display returns a signal (or when requested) the display turns on again.

It relies on the device and chosen method whether it will work for you, so your mileage may vary.
But at least for a Raspberry Pi it works really well.

It ships with Kodi so you can search the add-ons for TurnOff.
But you can get newer versions from: https://github.com/dagwieers/screensaver.turnoff
Reply
#14
Thank you @dag-, I tried your plugin but unfortunately it doesn't work for Amlogic platform.
I had to work out workaround method relied on "pseudo"-suspend mode (true suspend doesn't work for me).
If anyone interested I could share detail how I achieved that.
Reply
#15
(2019-10-29, 19:13)bam80 Wrote: Thank you @dag-, I tried your plugin but unfortunately it doesn't work for Amlogic platform.
I had to work out workaround method relied on "pseudo"-suspend mode (true suspend doesn't work for me).
If anyone interested I could share detail how I achieved that.
@bam80 If you have a solution for your platform maybe we can generalize this and add it to Turn Off. So please share :-)
Reply

Logout Mark Read Team Forum Stats Members Help
Turn off video output0