Coder Social home page Coder Social logo

asavah / script.pidisplaypower Goto Github PK

View Code? Open in Web Editor NEW
13.0 3.0 9.0 26 KB

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

Python 100.00%

script.pidisplaypower's Introduction

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 .

script.pidisplaypower's People

Contributors

asavah avatar milhousevh avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

script.pidisplaypower's Issues

Need vcgencmd full path to work...

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.

Doesn't seem to actually turn off power

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

Proposal: Option to turn bluetooth off

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.