[GH-ISSUE #48] Listening for volume doesn't work with non monitor output #48

Closed
opened 2026-05-05 04:50:51 -06:00 by gitea-mirror · 9 comments
Owner

Originally created by @renox92 on GitHub (Sep 3, 2018).
Original GitHub issue: https://github.com/MonitorControl/MonitorControl/issues/48

Originally assigned to: @the0neyouseek on GitHub.

If I have "listen for volume" activated I can't use media keys to adjust volume of laptop's internal speakers or wireless headphones. I can still use default macos volume slider to do that. Would be great if for audio the app could check which output device is selected and then decide whether to override volume commands or not.

Originally created by @renox92 on GitHub (Sep 3, 2018). Original GitHub issue: https://github.com/MonitorControl/MonitorControl/issues/48 Originally assigned to: @the0neyouseek on GitHub. If I have "listen for volume" activated I can't use media keys to adjust volume of laptop's internal speakers or wireless headphones. I can still use default macos volume slider to do that. Would be great if for audio the app could check which output device is selected and then decide whether to override volume commands or not.
Author
Owner

@gxfxyz commented on GitHub (Oct 7, 2018):

+1. It would be really helpful.

<!-- gh-comment-id:427695469 --> @gxfxyz commented on GitHub (Oct 7, 2018): +1. It would be really helpful.
Author
Owner

@the0neyouseek commented on GitHub (Jan 10, 2019):

Hi. Sorry I haven't been able to maintain this as much as I wanted to with work getting in the way.

Anyway, I was planning on adding support for this but if @JoniVR got it working, maybe you can make a pull request ?

I'll work on this project this week-end and probably publish a new version.

<!-- gh-comment-id:453243832 --> @the0neyouseek commented on GitHub (Jan 10, 2019): Hi. Sorry I haven't been able to maintain this as much as I wanted to with work getting in the way. Anyway, I was planning on adding support for this but if @JoniVR got it working, maybe you can make a pull request ? I'll work on this project this week-end and probably publish a new version.
Author
Owner

@JoniVR commented on GitHub (Jan 10, 2019):

I can do a separate PR for that if you want to, however, there were some compiling errors that require updates to those third party frameworks (was either MediaKeyTap or MASPreferences).

Anyways, I implemented it on my fork by using the AMCoreAudio framework, if you can update the dependencies some time soonish I'll do a PR and implement this feature for you. Also, don't update the ddcctl dependency as it's current version causes a kernel freeze on macs with integrated graphics chips. I think they're working on a fix but might be useful to know not to update that dependency. (see discussion: https://github.com/kfix/ddcctl/pull/42)

<!-- gh-comment-id:453245685 --> @JoniVR commented on GitHub (Jan 10, 2019): I can do a separate PR for that if you want to, however, there were some compiling errors that require updates to those third party frameworks (was either MediaKeyTap or MASPreferences). Anyways, I implemented it on my fork by using the `AMCoreAudio` framework, if you can update the dependencies some time soonish I'll do a PR and implement this feature for you. Also, don't update the ddcctl dependency as it's current version causes a kernel freeze on macs with integrated graphics chips. I think they're working on a fix but might be useful to know not to update that dependency. (see discussion: https://github.com/kfix/ddcctl/pull/42)
Author
Owner

@JoniVR commented on GitHub (Jan 10, 2019):

Also, now that I have your attention, my guess is that #37 is related to #21, in commit 9f4e5fb an (in my opinion) unnecessary loop was introduced which slows the program down a lot (especially since ddcctl internally loops over that part of the code 10 times already), I managed to speed everything up and make it stable in my fork by simply removing that loop. The application was pretty unusable for me with it.

<!-- gh-comment-id:453248922 --> @JoniVR commented on GitHub (Jan 10, 2019): Also, now that I have your attention, my guess is that #37 is related to #21, in commit 9f4e5fb an (in my opinion) unnecessary loop was introduced which slows the program down a lot (especially since ddcctl internally loops over that part of the code 10 times already), I managed to speed everything up and make it stable in my fork by simply removing that loop. The application was pretty unusable for me with it.
Author
Owner

@the0neyouseek commented on GitHub (Jan 10, 2019):

Hi @JoniVR and thanks for all the great work and infos.

Yeah I'm pretty sure that's where the problem's coming from too. I thought being in a background thread it wouldn't be that bad when I merged it but I'll reverse it this week-end.

<!-- gh-comment-id:453250539 --> @the0neyouseek commented on GitHub (Jan 10, 2019): Hi @JoniVR and thanks for all the great work and infos. Yeah I'm pretty sure that's where the problem's coming from too. I thought being in a background thread it wouldn't be that bad when I merged it but I'll reverse it this week-end.
Author
Owner

@JoniVR commented on GitHub (Jan 10, 2019):

Yeah, or if you could just update those peer dependencies (except for ddcctl) you forked (MAS and MediaKeyTap), that would be fine by me too, I'll do a PR with some other stuff I improved on my fork including an updated README with more screenshots (if you're up for that). It will probably also be for the weekend or afterwards as I'm currently studying for exams.

<!-- gh-comment-id:453251304 --> @JoniVR commented on GitHub (Jan 10, 2019): Yeah, or if you could just update those peer dependencies (except for ddcctl) you forked (MAS and MediaKeyTap), that would be fine by me too, I'll do a PR with some other stuff I improved on my fork including an updated README with more screenshots (if you're up for that). It will probably also be for the weekend or afterwards as I'm currently studying for exams.
Author
Owner

@the0neyouseek commented on GitHub (Jan 10, 2019):

I'll do just that then, thanks @JoniVR . I'll be waiting for your PR then.

Good luck with your exams 💪

<!-- gh-comment-id:453252219 --> @the0neyouseek commented on GitHub (Jan 10, 2019): I'll do just that then, thanks @JoniVR . I'll be waiting for your PR then. Good luck with your exams 💪
Author
Owner

@JoniVR commented on GitHub (Jan 10, 2019):

Thanks! I've written it down but please do remind me if I haven't submitted a PR by the end of next week because I might forget 😄.

<!-- gh-comment-id:453252721 --> @JoniVR commented on GitHub (Jan 10, 2019): Thanks! I've written it down but please do remind me if I haven't submitted a PR by the end of next week because I might forget 😄.
Author
Owner

@reitermarkus commented on GitHub (May 7, 2019):

This should be fixed now.

<!-- gh-comment-id:490266232 --> @reitermarkus commented on GitHub (May 7, 2019): This should be fixed now.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github-starred/MonitorControl#48
No description provided.