Disable monitor when kodi idle
#1
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.
Reply
#2
Maybe try: https://github.com/asavah/script.pidisplaypower
Reply
#3
To my great regret, it did not work. Only black screen. But the monitor did not fall asleep.
Reply
#4
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.
Reply
#5
My OS is standalon kodi image based on raspbian.
Reply
#6
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.
Reply
#7
I can not find vcgencmd in the repositories. It is also impossible to compile from the sources. https://github.com/raspberrypi/userland
Reply
#8
vcgencmd is on the package "libraspberrypi-bin" in the Raspbian repositories.
Reply
#9
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.
Reply
#10
Yeah, that is Xbian, not Raspbian. Better ask in their forums.
Reply
#11
provide output of these commands in terminal
Code:
which vcgencmd
ls -alh /opt/vc/bin/vc*
Reply
#12
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.
Reply
#13
export PATH=$PATH:/opt/vc/bin/
this resolved problem with vcgencmd, but screen still not fall to offline
Reply
#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.
Reply
#15
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.pidispl...r/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.
Reply

Logout Mark Read Team Forum Stats Members Help
Disable monitor when kodi idle0