I have a Stream Deck device that seems to turn on randomly during the night, emitting bright light and causing a significant disturbance to my Sleep and daily routine. (I tried the Sleep After feature, but it still randomly lights up the stream deck)
I have a few potential solutions to address this issue, but I'm unsure how to implement them.
Whether through keyboard shortcuts or an Apple script, I'm open to any method that can execute the solution.
What I want is straightforward—I’d like to trigger the sleep function on the Stream Deck automatically at midnight each day before I go to Sleep. This way, when I wake up and press a button, the Stream Deck will light up.
The Stream Deck already has a sleep button that I can manually press, but I want to automate this process. Whether it's having a keyboard shortcut trigger it automatically at a specific time of day using keyboard Maestro, using a script to lower the brightness of the Stream Deck, or somehow disconnecting all USBs from the Mac to prevent it from lighting up at night, any of these solutions would restore my peace of mind.
Do you have any suggestions?
P.S. Could my USB hub cause the random brightness, and is it better to connect it directly to my Mac and omit the hub?
I have two questions, but I might not have any answers. (I don't own Stream Deck hardware, just the mobile software version.)
Is this a USB-A Stream Deck version or a USB-C Stream Deck version? If "A", then is the hub connected to a USB-C port or a USB-A port on your Mac?
If the Stream Deck is turning on at night randomly, then how would turning it off at midnight solve the problem? It would still turn on randomly. Even if you sent it a shut down command every 60 seconds, it might still come on randomly between those 60 seconds.
I have the USB-A Stream Deck version connected to my Mac via a USB A to C hub. When I press the Sleep button on the Stream Deck, it puts it to sleep. The only way to wake it up is by pressing the buttons on the device itself. This is the perfect scenario for me because the device won’t turn on randomly anymore. I'm trying to figure out how to automate this process so that the Sleep button is triggered every night at midnight. Thank you.
This is probably because your Mac is waking up -- have you tried turning off Power Nap (System Settings->Battery->Options… and set "Wake for network access" to "Never").
That could, at least, be a stop-gap so you get a good night's sleep while working on a "proper" solution!
At times, I'm a very low-tech guy. I'd "solve" this one with a thick black cloth that "worked" when I tossed it over the device at night, and stopped working when I removed it from the device in the morning :).
(In all seriousness, @Nige_S is on the same track I'd go down: The StreamDeck is waking up because your Mac is waking up to check for and download updates, etc. But if that turns out not to help, a thick cloth might be the simplest and fastest solution, though it's clearly not automated ).
Perhaps a powered dock/hub might not be subject to the "power problem" you are having. That would be an interesting test. But I realize you might not have one.
I tried connecting it directly to my Mac and even put it in sleep mode, but it's still the same. I'm reaching out for Stream Deck support directly.
Please let me know if anyone knows how to trigger Stream Deck buttons using Keyboard Maestro. I need to press the sleep button on the Stream Deck itself, but I want to automate this process.
I am not certain, but I spent 20 minutes googling it online and I think I found some open source software called Bitfocus Companion which seems to have a mechanism for doing what you want. And if you can get Companion to press the button, then no doubt you can indirectly get KM to tell Companion to do it.
I'm only 50% sure that I'm correct in my conclusion here.
Check your Mac's logs with Console for around the time the wake-up happens -- the web is littered with posts from people whose Macs wake up randomly even though everything is set to not allow that. The logs may help you find, and remove, the cause.
I don't think you can, short of getting yourself a robot button-pusher -- you can set button images, text, etc from "outside", but not tell the SD that a button has been pressed.
You could always use a macro to set the SD's Preference's "Brightness" to zero -- your Mac would need to be awake and the screen on, but you could have it as part of your end-of-day routine (and an "un-dim" version for the morning):
Thank you for your post; it inspired me. I have modified it to suit my needs. When "Logic" is open, I ensure the macro doesn’t run. If it doesn’t run, the other macro doesn’t need to run anymore. It’s not an ideal fix, but it’s automatic and works. Cheers!