-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Additional functionality #2
Comments
Yes, I'm curious to see what you have done it sound sinteresting cheers On Mon, Apr 6, 2015 at 9:55 PM, lunnonco notifications@github.com wrote:
Franc |
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? |
I'm curious to see how it works, I don;t understand DPMS and I would like My email is franc@darthcarter.com cheers On Mon, Apr 13, 2015 at 8:58 PM, lunnonco notifications@github.com wrote:
Franc |
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.
The text was updated successfully, but these errors were encountered: