Skip to content
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

Volume hotkeys target wrong device #141

Closed
knochenhans opened this issue Jul 28, 2019 · 8 comments · Fixed by #142
Closed

Volume hotkeys target wrong device #141

knochenhans opened this issue Jul 28, 2019 · 8 comments · Fixed by #142

Comments

@knochenhans
Copy link

Expected behaviour

After attaching a usb soundcard the volume hotkeys should point to the attached soundcard if it set as the default audio output device.

Actual behaviour

After attaching a usb soundcard the volume hotkeys change the internal soundcard’s volume, not the usb soundcard’s volume (which is set as the default audio output device).

Steps to reproduce the behaviour

Attach a usb soundcard, try changing the output volume via volume up/down hotkeys. This problem only occurs from time to time.

MATE general version

1.22.1

Package version

1.22.1-1

Linux Distribution

Arch Linux

Is there any way to manually change what device the volume hotkeys target? That would be a big help already :)

@lukefromdc
Copy link
Member

That sounds like an issue with pulseaudio not always detecting that the default audio device has changed rather than with anything that is maintained by MATE.

@knochenhans
Copy link
Author

Audio output works fine though, sound is correctly routed to the newly attached sound device by pulseaudio, but the hotkeys don’t affect it. For example, in mate-volume-control the new device is selected as the current output device under the “Output” tab but the Output volume slider (at the top) doesn’t move when I press the volume hotkeys. It does move though when I choose the internal audio device.

@lukefromdc
Copy link
Member

lukefromdc commented Jul 29, 2019 via email

@vkareh
Copy link
Member

vkareh commented Aug 11, 2019

@knochenhans - is it possible for you to test the changes in #142 to see if they fix the issue for you? I don't have a secondary output device to test this with, so I just coded it blindly...

@raveit65
Copy link
Member

raveit65 commented Aug 19, 2019

I think i can reproduce the issue when i plugin my usb-headset (soundcard) in a running MATE session.
Then both soundcards are activated in mate-volume-control (GUI). but mixer in panel use my main soundblaster soundcard.
When i start my box and the headset is plugged in, than the volume-slider in panel use the headset.
Plug in/out the headset at this point in the running mate session will change the device for the volume-slider in panel immediately.
For some reasons the headset is always the first one in the list of the device- and output-tab of mate-volume-control, and it seems that the volume-slider in panel use always the first one in the list when both are activated.
But we don't have an option here to say that one from 2 or 3 cards is the default.
Why do you think your usb device is the default?

Now testing PR......

@raveit65
Copy link
Member

Hmm,
now i know what you mean with default, which is that one which is selected in the output tab.
But mate-volume-control recognised this setting for me, when i plug in my usb headset.
And the volume-slider use my headset after it is plugged in.
So, i can't reproduce your problem with fedora 30 + MATE 1.23.x + pulseaudio-12.2-6.fc30.x86_64

@lukefromdc
Copy link
Member

I've never once seen something like this happen on say, setting up HDMI sound and then setting back to my normal soundcard. Similarly, the laptop has no working internal sound, can use a USB soundcard or external HDMI sound, and whichever one is in use the volume control controlled the last time I had to play with that. Thus, I have never been able to duplicate this

@lukefromdc
Copy link
Member

lukefromdc commented Aug 20, 2019

I just tested this with the desktop, toggling between the HDMI and soundcard outputs with the applet in the panel (not the older volume control tray icon) , and finally DID get this issue. Turned out though that what it took to get the new sound device recognized by the hotkeys was to restart mate-settings-daemon, both with and without #142 EDIT: with #142 installed I was from then on able to switch sound devices freely with the hotkeys keeping up, just had to restart m-s-d after installing to have a valid test it seemed due to the hotkeys being provided by the media-keys plugin there.

This was a bit complex to figure out but I think I got it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants