38 minutes ago · Tech · hide

In my home office I have a "Late 2012" Mac Mini that serves to display my surveillance cameras, a live view of my webserver logs, and of course Dali Clock. Because it is a passive display, I have all the power saving stuff and display lock turned off. I sometimes remember to turn the monitor off when I leave... sometimes. While pmset(1) lets you schedule sleep and wake events, it seems janky from the documentation, specifically it seems the wake part may not be wildly reliable. Thankfully, you can sleep and wake the display from the command line, so a small shell script to the rescue. display-sleep The script is pretty simple, it checks to make sure someone is logged in to the console and then it simply toggles the state of the display — sleeping it if it is awake and waking if it is asleep. #!/bin/sh # display-sleep (c) 2026 Matthew J. Ernisse <matt@going-flying.com> # All Rights Reserved. # # Redistribution and use in source and binary forms, # with or without modification, are…

Commenting on Bubbles has been removed. Why? If you want to talk about this post, write to the author, use the comments on their blog if it has them, or reply with a "RE:" post on your own blog. Suggestions? feedback@bubbles.town