-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Feature Request: Hotkey to pause/stop video #1156
Comments
Hey @klamike A few things :
I do believe that Aerial gets notified if a screen gets connected/disconnected, though I haven't played much with that, there may be something I can do around that, I'll make a note to investigate.
Let me know if that clears things up. |
Thanks for the quick reply! I have it set to 4K HEVC and this is what the usage graphs look like through Activity Monitor: You can clearly see when the screensaver is on/off from the GPU graph. Looks like the CPU usage also goes up above background levels (a few apps open, not streaming any video) when Aerial is on. Unfortunate that screensavers can't intercept key presses. Maybe a triple mouse click or something can work? |
As far as I know the decoding is always done on the CPU, so that's probably what you are hearing, the GPU usage in activity monitor is not always representative of a "tough" load (it's not doing 3D rendering). What it does here is just rendering the video (with some 10 bit processing but not very hard). You can double check for yourself playing one of the videos from the cache, directly in Quicktime. Aerial uses macOS's system decoding APIs so what you get in Aerial and Quicktime should be 100% similar. I would guess CPU temperature is what makes the fan kicks in but I can be wrong. Mouse is clamped down as much as keyboard, there's really no way to interact with a running screensaver nowadays. You didn't answer my question regarding the monitor thing btw. |
Oh sorry about that - Yes it does appear that Aerial is still running since the fans don't turn down when the monitor is off. I just verified by looking at the usage graphs as well which tell the same story - turning off monitor has no affect on GPU or CPU load. Also, verified that the loads are the same between screensaver and Quicktime from cache. |
Ok then. I'll keep this open and try to have a look if I can detect a monitor off event and do something about it. In the meantime I suggest you clamp down the running time with the setting above. I'll try to have a look this week but no promise :) |
Awesome, thanks again for the help and quick response! |
Ok so, had some time this morning to look at this, and unfortunately it's not really great news :
Now I can't totally blame the project, this is a weird screen I'm using (an Asus PQ321, one of the first 4K DP display that only used one cable, doing MST). It's very likely that the firmware on this thing is borked. While it's connected straight with a mini DP to DP cable (no dongle which is the issue most of the time for that error), it still errors on me which makes it hard to even implement something like this.
I always get state 3, whether it's on or off :
Could you try the commands above (ioreg and ddcctl), with your screen on and off, and see if it reads the power state ?
So I'm very reluctant to work on something that will only work for some, and won't work going forward unless Apple reverts their decision on not implementing I2C on arm. This is not really satisfying, I would have loved to also use this to control brightness on external displays but if it doesn't work on arm, there's little point wasting efforts on it. |
Totally understand that it's not worth the time if Apple is going to make it obsolete soon anyway, especially since this is a pretty niche feature too. I tried the commands and it looks like Power on:
Power off:
My output for Do you have a link for me to buy you coffee? Really appreciate the time you've been putting in on this issue and I'm loving Aerial in general. |
Ha interesting, so The way I'm wondering though if all monitors work the same way here, of if this depends on the type of power off. It's not fully off since apparently it replies to the EDID polling, but not the DCC commands. Do you happen to have two power off buttons (like a "soft" power off that puts it on standby, and maybe another one at the back or something ? Just curious on how this is supposed to work. If you feel adventurous, maybe try powering it off with :
or maybe
Does it look "off" the same way that it does when you do it by pressing whatever button ? Still if there's a reliable way to do this in the future (and also control brightness for external monitors) I'd love to add it, as niche as it is. Aerial is already full of niche stuff ;) Regarding coffee, no need but if you really want to, there's a link in the about box of Aerial, it goes here : https://ko-fi.com/glouel |
There are two buttons - one on the back to cut power and one on the front to standby.
Over 6 does nothing. Hope this helps, I realize it's super weird behavior... |
Ok great. According to your previous test, 5 should be on, so I guess maybe your monitor doesn't handle that command in a write fashion correctly (it kinda reads in reverse, like 1 is on and it goes "more" off as you go down, but that goes against your previous test. I did try powering up my PC but there doesn't seem to be an equivalent for windows (there's softMCSS that can read things, but not raw values, and my monitor on that machine is very old and doesn't support writing to that command) and I don't have a linux box with a monitor connected at the moment so I can't double check, I'll see if I can try something else, this is mostly out of curiosity at this point. But just to confirm, when you powered it off on your test in the previous message, did you press the front button, or the back button ? I would assume that you did front ? |
Yep just the front. The back button is for the power supply, the monitor isn't seen at all when it's off via the back button. |
Description of issue / Feature request
I'm really enjoying Aerial so far - I have it set up on my Late 2013 MBPr hooked up to an external 4k monitor in clamshell mode. Unfortunately, any time Aerial is running, GPU usage goes up and so the fans spin up. As soon as I log in and start just using a browser/regular apps, the fans turn off.
The feature I'd like to request is a hotkey toggle that pauses the video on the screensaver to stop using the GPU. Or, if there is a way to detect if the monitor is off via DDC/CI (ddcctl) that would be cool to integrate too!
The text was updated successfully, but these errors were encountered: