Closed Shoutatryan closed 5 years ago
What about using a calendar to control on off times.
I also think this would be a nice feature to have.
I use DDCUTIL on my Pi which lets me control the attached monitor over HDMI. Using a cron job (I think) or a python script that I have always running in the background I set the monitor brightness to 0% at 10PM and then off at 11:30PM and back on at 5:30AM.
You can follow Dakboard's blog with the Nest thermostat article to see how to achieve this.
Basically you write this file and save it as a .Sh file; https://gist.github.com/AGWA/9874925
Then crontab job to schedule it on/off.
This is more effective way of carrying it out as it will actually turn off/on the display and not just dim the screen.
https://www.google.co.uk/search?q=rpi-hdmi.sh+crontab
https://blog.dakboard.com/integrate-dakboard-with-your-nest-thermostat/
ddcutil can turn the monitor off too. It does it using the VCP which is like an I2C bus running over HDMI/VGA (I think that it the same bus lets your computer know what resolutions a connected monitor supports)
I have capacitive touch button that cycles between full bright, full dim, and off using these commands:
ddcutil setvcp 10 100
(100% brightness)
ddcutil setvcp 10 0
(0% brightness, still fairly bright on my monitor)
ddcutil setvcp D6 5
(monitor off)
ddcutil setvcp D6 1
(monitor on)
This would be an awesome feature, i'm going to try the above steps to get it working
Dimming the screen is not an effective way to simulate the monitor off. Especially if you don't have an OLED. You'll still get a black glow. Use the 'HDMI.sh' script I linked to above to schedule the monitor to actually switch off/enter energy saving mode.
And use https://crontab-generator.org/ for your schedule. (might need more than one line for working days/weekends.
I never suggested that lowering the brightness was an alternative to turning the monitor off. I have a schedule where the monitor is on at full brightness during the day, low brightness in the evening, and completely off at night. There is a DDC command for controlling backlight (setvcp 13
) which may work better for that purpose but my monitor does not support it.
ddcutil setvcp D6 5
(monitor off)ddcutil setvcp D6 1
(monitor on)
Issuing the above commands tells the monitor to shut on or off without having to disable/enable the PI's HDMI port the same way that your PC tells your monitor to turn off when your computer has been idle for a while. There are a lot more things you can do with DDCutil too like controlling the volume, changing inputs, color balance, etc.
While disabling HDMI will cause most monitors to go into standby, it is more like turning off your computer by flipping the breaker verses asking it to shutdown.
Hi all, thanks for the suggestions. We have added support for multiple sleep/wake times in the latest version of our OS (v2.12):
Please let us know if you have any questions. Thanks.
Good afternoon,
I received a notification about this new on/off schedule feature, however I can't find this in my account. How do I access this new feature? I can only find the one sleep schedule setting under Displays & Devices - Settings. Thanks.
Meaning, have a time for it to come on in the morning before we go to work, then off during the day while we are gone, then back on we are home at night. Then a new sleep and wake for weekends.