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

Change of the default device not automatically detected #49

Open
kaqqao opened this issue Nov 23, 2015 · 9 comments
Open

Change of the default device not automatically detected #49

kaqqao opened this issue Nov 23, 2015 · 9 comments

Comments

@kaqqao
Copy link

kaqqao commented Nov 23, 2015

If the default device is changed (e.g. from built-in sound card to USB headset), Volumeicon does not change the volume on the new (current) device (the headset), but on the previous default (built-in card). It is enough to switch the device in preferences and switch it back to default to make it detect the change, but it would be very helpful if it could do this automatically.

@Maato
Copy link
Owner

Maato commented Nov 23, 2015

How are you changing the default card?

@kaqqao
Copy link
Author

kaqqao commented Nov 24, 2015

Currently, by using pulseaudio's module-switch-on-connect. I think the same used to happen when I was just switching by changing the .asoundrc, but I'm not 100% sure as I now use pulseaudio making it hard to test. In case pulseaudio is unsupported, sorry for the false alarm.

@yguilhem
Copy link

I second this issue.
I had to manually write a udev rule launching a script to :

  1. Switch and redirect all pulseaudio sinks/sources from/to the new soundcard (it's not related to volumeicon, I agree).
  2. Kill and restart volumeicon.
    Would be very nice to have at least the second part integrated into volumeicon.

@Zauberfisch
Copy link

I can confirm this issue as well.
Had to add a hard restart of volumeicon to my audio switch script aswell: https://gist.github.com/Zauberfisch/e4aba115053b0048bcb806fb579877d1#file-audio-switch-sh-L36

@alelondon
Copy link

I can confirm this issue as well.
Restarting volumeicon once the sound device changes fixes the issue. (not really a fix)
I guess volumeicon changes the volume of the default-device-at-start instead of determining the default device each time a volume change is invoked.

@Zauberfisch
Copy link

Just a quick update, my workaround with restarting it to detect the switch of audio output has recently stopped to work.

So, since I use pulseaudio anyway, I have switched over to using "pa-applet". It also handles volume keys and a tray icon with a volume bar plus supports switching output.
(I'm using i3 as window manager and just replaced the line that started volumeicon with pa-applet)

@alelondon
Copy link

my workaround on xfce was to switch to (http://goodies.xfce.org/projects/panel-plugins/xfce4-pulseaudio-plugin )

@nazar-pc
Copy link

nazar-pc commented May 5, 2018

One more instance in unplugging and plugging back in USB sound card (which is the only sound card in my system).
Yet another instance is changing USB sound card's output mode from 2.1/5.1 to stereo and back.
Would be really nice.
Currently it stops with

snd_mixer_handle_events: No such device

@yaeuge
Copy link

yaeuge commented Mar 25, 2019

I can suggest updating the device list on opening preferences dialog. Then it will be possible to change the device to newly inserted sound card without restarting volumeicon. Item for switching in context menu would also be handy

schspa added a commit to schspa/dotfiles that referenced this issue Sep 3, 2021
Don't use volumeicon due to bug:
Maato/volumeicon#49

Signed-off-by: schspa <schspa@gmail.com>
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

No branches or pull requests

7 participants