asavah / script.pidisplaypower Goto Github PK
View Code? Open in Web Editor NEWScreensaver for Kodi running on raspberry pi that turns display power off by using vcgencmd display_power command.
License: GNU General Public License v2.0
Screensaver for Kodi running on raspberry pi that turns display power off by using vcgencmd display_power command.
License: GNU General Public License v2.0
This addon is for raspberry pi ONLY! It just runs vcgencmd from raspberry pi firmware to turn off hdmi power and force the display to go to standby mode. It was @popcornmix who inspired me to write this little script. Addon skeleton, some code and screensaver-black.png were shamelessly borrowed from https://github.com/XBMC-Addons/screensaver.picture.slideshow .
Hi,
First thank you very much for this script.
For your information, if I do not put the full vcgencmd full path in the script, it does not work on my OSMC raspberry B+ box, and throw to exception:
16:39:20 T:2837443616 NOTICE: -->Python Interpreter Initialized<--
16:39:20 T:2837443616 ERROR: script.pydisplaypower: Exception running vcgencmd
I need to replace the gui.py line:
cmd = subprocess.Popen(['vcgencmd', 'display_power', arg2], stdout=subprocess.PIPE, st
by
cmd = subprocess.Popen(['/opt/vc/bin/vcgencmd', 'display_power', arg2], stdout=subprocess.PIPE, st
After this small mod it work like a charm.
Thank you again.
vcgencmd display_power doesn't work yet on the RPI4
Hi,
I've downloaded and installed your addon on RaspberryPi, model B where I'm running OpenElec.
I went to the screensaver selection and there in the settings chose the addon and used the "preview" option.
The result was that the screen went black, but the power to the HDMI didn't actually seem to go out. This is evidenced by the fact that my projector (connected to the HDMI) didn't give notice, saying that there is a loss of signal. So it has to be receiving something.
I was hoping that the addon would turn off the HDMI signal, which would eventually cause the projector to shut down.
Please let me know if I'm expecting wrong kind of behavior or if I can provide you with some additional data to help troubleshoot this.
Thanks,
Vlayke
Just what the topic said if you feel like adding that :)
Add an option to turn bluetooth off
using this addon to turn off my ambilights best addon so far for rpi
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.