Kodi Community Forum
Disable monitor when kodi idle - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: General Support (https://forum.kodi.tv/forumdisplay.php?fid=111)
+---- Forum: Raspberry Pi (https://forum.kodi.tv/forumdisplay.php?fid=166)
+---- Thread: Disable monitor when kodi idle (/showthread.php?tid=332785)

Pages: 1 2


Disable monitor when kodi idle - chemax - 2018-06-13

Hi. I have kodi on the rbp2 and the monitor is connected to it.
How i can setup for disable monitor when nothing play on kodi? aka sleep mod for kodi.


RE: Disable monitor when kodi idle - popcornmix - 2018-06-13

Maybe try: https://github.com/asavah/script.pidisplaypower


RE: Disable monitor when kodi idle - chemax - 2018-06-13

To my great regret, it did not work. Only black screen. But the monitor did not fall asleep.


RE: Disable monitor when kodi idle - asavah - 2018-06-13

What's your os?
Blackscreen is probably because vcgencmd is not on path.
Provide a debug log.

I has been working fine here since I wrote it.


RE: Disable monitor when kodi idle - chemax - 2018-06-14

My OS is standalon kodi image based on raspbian.


RE: Disable monitor when kodi idle - rascas - 2018-06-14

Raspbian has vcgencmd in /usr/bin/vcgencmd, and is part of the package libraspberrypi-bin, check if you have it installed, not sure if it is on Raspbian Lite.


RE: Disable monitor when kodi idle - chemax - 2018-06-14

I can not find vcgencmd in the repositories. It is also impossible to compile from the sources. https://github.com/raspberrypi/userland


RE: Disable monitor when kodi idle - rascas - 2018-06-14

vcgencmd is on the package "libraspberrypi-bin" in the Raspbian repositories.


RE: Disable monitor when kodi idle - chemax - 2018-06-14

bash:
The libraspberrypi-bin package is not available, but is mentioned in the dependency list of another package.
This can mean that the package is missing, obsolete, or available from sources not mentioned in the sources.list
However, the following packages can replace it:
  xbian-update xbian-package-firmware

E: The candidate for installation was not found for the "libraspberrypi-bin" package
Sorry, this is translate, i have ru_RU system locale.
bash:
Linux xbian 4.9.80+ #1 SMP PREEMPT Fri Feb 9 17:55:54 CET 2018 armv7l
-------------------------------------------------------------------
      Y88b d88P  888888b.   8888888        d8888 888b    888
       Y88o88P   888  .88P    888        d88P888 88888b  888
        Y888P    8888888K.    888       d88P 888 888Y88b 888
        d888b    888  "Y88b   888      d88P  888 888 Y88b888
      d88P Y88b  888   d88P   888    d8888888888 888   Y8888
     d88P   Y88b 8888888P"  8888888 d88P     888 888    Y888 
-------------------------------------------------------------------
           XBian 20180206-0 - Bleeding Edge, 2012 - 2018
Find us at: http://www.xbian.org http://github.com/xbianonpi/xbian


https://i.imgur.com/gRHkLOX.png

It seems I have confused the OS. I downloaded the ready image for rbp with kodi.


RE: Disable monitor when kodi idle - rascas - 2018-06-14

Yeah, that is Xbian, not Raspbian. Better ask in their forums.


RE: Disable monitor when kodi idle - asavah - 2018-06-14

provide output of these commands in terminal
Code:
which vcgencmd
ls -alh /opt/vc/bin/vc*



RE: Disable monitor when kodi idle - chemax - 2018-06-14

bash:
root@xbian /home/xbian # which vcgencmd
root@xbian /home/xbian # ls -alh /opt/vc/bin/vc*
-rwxr-xr-x 1 root root 244K Сен 13  2017 /opt/vc/bin/vcdbg
-rwxr-xr-x 1 root root  15K Фев 23  2017 /opt/vc/bin/vcgencmd
-rwxr-xr-x 1 root root  68K Сен 13  2017 /opt/vc/bin/vchiq_test
-rwxr-xr-x 1 root root 7,7K Фев 23  2017 /opt/vc/bin/vcmailbox
-rwxr-xr-x 1 root root  15K Фев 23  2017 /opt/vc/bin/vcsmem
hmm. looks like this already installed, but BIN PATH not configured.


RE: Disable monitor when kodi idle - chemax - 2018-06-14

export PATH=$PATH:/opt/vc/bin/
this resolved problem with vcgencmd, but screen still not fall to offline


RE: Disable monitor when kodi idle - asavah - 2018-06-14

export PATH=$PATH:/opt/vc/bin/
Where did you put this?

This may solve the path issue for your user, but not for kodi,
it depends on how kodi is launched, if it's systemd unit it probably won't help as is.
I'm not familiar with xbian.

I've already asked you for a debug log.
Depending on what's on the log I may provide a 100% working workaround.


RE: Disable monitor when kodi idle - asavah - 2018-06-14

I've updated the addon.
The addon now searches for vcgencmd binary automatically even on handicapped distros, should work now.
Also tweaked a few minors and fixed a typo in addon id.

You can get it from https://github.com/asavah/script.pidisplaypower/releases 

Do note that due to addon id change you may need to remove the old one (pydisplaypower) completely, install the new one (pidisplaypower), enable it, and set it as your screensaver in Kodi options menu.