Giter Site home page Giter Site logo

Comments (3)

franc-carter avatar franc-carter commented on June 21, 2024

Yes, I'm curious to see what you have done it sound sinteresting

cheers

On Mon, Apr 6, 2015 at 9:55 PM, lunnonco [email protected] wrote:

Franc, I have adapted your code and wondered if you would like it. What I
have done is integrate the switching code with DPMS so that when the screen
blanks the switch turns off and when it unblanks the switch turns on. This
allows me to power down all my peripherals automatically. This is also
useful in a home theatre situation where you may want to power down the
audio system and other components, projectors or even say a TV signal
amplifier when the computer goes to sleep in order to save energy.

There are a few bugs to work out but they are minor (what to do if the
switch doesn't respond and at startup). I think a script call-out might be
nice too (for plugin actions)

Let me know.


Reply to this email directly or view it on GitHub
#2.

Franc

from bauhn-wifi.

lunnonco avatar lunnonco commented on June 21, 2024

It's pretty ugly right now, but it works. Originally I switched on DPMS state transitions but I have added some status checks to switch only if the devices are in the wrong state compared to the screen saver. The code has been simplified just to compare the DPMS state with the switch state. This works better because the switch is attempted at every polling interval and not just at DPMS state transitions

Have you got an email I can forward it to?

from bauhn-wifi.

franc-carter avatar franc-carter commented on June 21, 2024

I'm curious to see how it works, I don;t understand DPMS and I would like
to.

My email is [email protected]

cheers

On Mon, Apr 13, 2015 at 8:58 PM, lunnonco [email protected] wrote:

It's pretty ugly right now, but it works. Originally I switched on DPMS
state transitions but I have added some status checks to switch only if the
devices are in the wrong state compared to the screen saver. The code has
been simplified just to compare the DPMS state with the switch state. This
works better because the switch is attempted at every polling interval and
not just at DPMS state transitions

Have you got an email I can forward it to?


Reply to this email directly or view it on GitHub
#2 (comment)
.

Franc

from bauhn-wifi.

Related Issues (3)

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.