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

Mint 18 Sound Settings won't switch audio inputs to different device [video included] #5472

Closed
jessedubord opened this issue Jul 20, 2016 · 29 comments
Labels
BUG

Comments

@jessedubord
Copy link

@jessedubord jessedubord commented Jul 20, 2016

See video for example and details: CLICK HERE TO WATCH

When I try to switch audio input devices of the Sound Settings in System Settings, it won't switch; it stays on the default build-in device. This is the same whether I use a wireless bluetooth microphone, webcam, USB microphone, etc.

Bug reported using Mint 18 (Ubuntu base) x64, Cinnamon 3.0.7 desktop environment.

Cheers

@jessedubord jessedubord changed the title Mint 18 Sound Settings won't switch audio inputs to divverent device [video included] Mint 18 Sound Settings won't switch audio inputs to different device [video included] Jul 20, 2016
@SDodding

This comment has been minimized.

Copy link

@SDodding SDodding commented Jul 22, 2016

Experiencing this also with a fresh install of Mint 18 x64 / Cinnamon 3.0.7 - No matter which input is selected the actual input is always from the default internal laptop mic

@artscoop

This comment has been minimized.

Copy link

@artscoop artscoop commented Jul 24, 2016

I was just about to open a ticket for this. Indeed, when you switch the audio input in the cinnamon applet, it does nothing, volume values and actual pulseaudio input remain unchanged.
Using the pulseaudio applet (pasystray) to change the audio source works however, so this is a problem with the cinnamon applet only.

@haljhon

This comment has been minimized.

Copy link

@haljhon haljhon commented Aug 1, 2016

I can confirm that I see this issue on Fedora 24 (x64) running Cinnamon 3.0.6.

@rhollencamp

This comment has been minimized.

Copy link

@rhollencamp rhollencamp commented Aug 2, 2016

right-clicking on the audio panel applet allows you to change the default input device the same way you can change the output device; this only shows up if something is using an input device however.

@IHaveThatPower

This comment has been minimized.

Copy link
Contributor

@IHaveThatPower IHaveThatPower commented Aug 9, 2016

I ran into this same problem and identified the cause.

In /usr/share/cinnamon/cinnamon-settings/modules/cs_sound.py, under the Module class's buildLayout method, in the ## Input page section, there is this line (ca. line 609):

self.inputSelector = self.buildDeviceSelect("output", self.inputDeviceList)

Change "output" to "input", save the file (you'll need sudo permission to do so), and then it will start working. This is almost certainly the result of a copy/paste without updating the reference to which section of the device selector was being used.

@KonanBZH

This comment has been minimized.

Copy link

@KonanBZH KonanBZH commented Aug 18, 2016

Thank's a lot @IHaveThatPower ;o)), that was that. And now, it's working after a reboot ! Sound inputs can be choosen.

@jessedubord

This comment has been minimized.

Copy link
Author

@jessedubord jessedubord commented Aug 18, 2016

That's great, @IHaveThatPower , thanks for that solution. Now that a fix has been identified, can we request a commit for this issue?

@IHaveThatPower

This comment has been minimized.

Copy link
Contributor

@IHaveThatPower IHaveThatPower commented Aug 18, 2016

Fix has already been committed. :) #5533 (comment)

@jessedubord

This comment has been minimized.

Copy link
Author

@jessedubord jessedubord commented Aug 18, 2016

You guys rock.

@JosephMcc

This comment has been minimized.

Copy link
Contributor

@JosephMcc JosephMcc commented Aug 19, 2016

If your original issue has been fixed could please close this?

@Enelar

This comment has been minimized.

Copy link

@Enelar Enelar commented Nov 27, 2016

Guys, i experiencing same issue, and willing to participate.
Its Fedora spin btw

@JosephMcc JosephMcc added BUG and removed CLOSE IF NO RESPONSE labels Nov 27, 2016
@JosephMcc JosephMcc reopened this Nov 27, 2016
@leigh123linux

This comment has been minimized.

Copy link
Member

@leigh123linux leigh123linux commented Nov 27, 2016

@Enelar Another fedora user 🆒

@Enelar

This comment has been minimized.

Copy link

@Enelar Enelar commented Nov 28, 2016

In my case, topic-starter bug reproducing. And i am also attaching new story.

When i am connecting to the Bluetooth audio device, it often (A) starts play sounds with it. But sometimes it not (B). And i should go to the sound settings, and select output device manually. (Btw no matters if i connects as A2DP, it will by default enable HSP).

And in both situations (A) / (B) i have to select input device explicitly, when connecting through HSP profile. And if i select blue-tooth input device - nothing changes.

I may ask friends for USB microphone, if it will help.

Fedora 25 x64 Cinnamon 3.0.7. (Woops, missed latest update)

Offtopic
@leigh123linux yea, i actually tried it before. But it has so many tiny annoying issues, so i returned to gnome. And after a while, i decided to give it a shot, like i did to btrfs and many other hopeful technologies.
Between lines - it a pain to decide report here, main Fedora line, or in Fedora-Cinnamon department ;)

Because i am not sure, is this bug will reproduce under Ubuntu, or it just porting issue :)

@Enelar

This comment has been minimized.

Copy link

@Enelar Enelar commented Nov 28, 2016

Bug confirmed under Cinnamon 3.2.1

It having bluetooth reconnecting issues, which already reported to the RedHat.
But once it connected, it still not changing profiles. It just playing through new device, and not changing setting. Which leads to this:

  • sound applet don't affects volume (because it changing volume of speakers, whos not playing anything right now)
  • advanced applications (such as games / or players) sending sound to current active device, which is speakers. odd.
  • system notifications still playing through speakers

And original bug still reproduces. If you feel that its Fedora only issue, i willing to commit issue, and link them together.

Hoping it will help <3

@n8nagel

This comment has been minimized.

Copy link

@n8nagel n8nagel commented Jan 29, 2017

Am experiencing the same issue on a fresh install of Mint, laptop is seeing my DAC but I can't switch over to it. Will check code mentioned above and let you know if that works.

@jessedubord

This comment has been minimized.

Copy link
Author

@jessedubord jessedubord commented Jan 31, 2017

I did some more testing, and in this case the issue was fixed; the bug was not present.
Hardware: Lenovo 80SA laptop, Logitech G930 Wireless headphones w/ built-in mic.
Software: Linux Mint 18.1 x64, Cinnamon 3.2.7, Kernel 4.4.0-59-generic .

I am able to switch from the laptop's internal webcam mic to the G930 wireless headphone mic without issue.

It's possible that this issue is related to USB audio input devices, exclusively (unless someone can report this issue with a bluetooth or other wireless mic).

@t-hofmann

This comment has been minimized.

Copy link

@t-hofmann t-hofmann commented Feb 9, 2017

I can second the identification of the problem's source as stated by "IHaveThatPower":
by changing line 600 of /usr/share/cinnamon/cinnamon-settings/modules/cs_sound.py
from
self.inputSelector = self.buildDeviceSelect("output", self.inputDeviceList)
to
self.inputSelector = self.buildDeviceSelect("input", self.inputDeviceList)
the problem/bug was fixed.

I use Linux Mint 18 cinnamon.
Checked now 18.1. where the problem is fixed.

@collinss

This comment has been minimized.

Copy link
Member

@collinss collinss commented Feb 9, 2017

@t-hofmann That line was indeed fixed in 18.1.

@bjvt

This comment has been minimized.

Copy link

@bjvt bjvt commented Mar 8, 2017

I have the same issue. The sound control panel didn't do anything. But, I'm using Google phone, and changed the output on that control panel. That worked.

@drauber

This comment has been minimized.

Copy link

@drauber drauber commented Apr 4, 2017

Hello! I changed the line as guidance, it is now possible to change the input device, but now it is mute. Anyone have any suggestions?

@ropeladder

This comment has been minimized.

Copy link

@ropeladder ropeladder commented Jul 27, 2017

I am having the same problem as @Enelar (#5472 (comment)), where Mint automatically connects to a bluetooth device (which is good) but the sound settings do not update, either in the applet or in the Sound settings window.

It's reproducible for me simply by turning bluetooth off manually (which automatically switches the sound output to built-in speakers and does update sound settings), and then turning it back on, which automatically switches the actual sound output to my bluetooth device after it connects without updating the Sound settings page or the sound applet to show the new device.

The problem has been around since at least 17.1 (when I started using Mint).

@mrdowden

This comment has been minimized.

Copy link

@mrdowden mrdowden commented Dec 13, 2017

I'm having the same issue on Linux Mint 17.3 Rosa 64-bit (Ubuntu 14.04, Trusty Tahr) running Cinnamon 2.8.8. Plugging in my USB Sennheiser Headset (SC60-USB-CTRL) shows both input and output options, but I'm unable to select them.

This is a very new issue for me - I just updated to Mint 17.3 / Cinnamon 2.8.8 and the issue showed up immediately.

I'm unable to use the proposed fix above because I don't have a cs_sound.py file:

$ cat /usr/share/cinnamon/cinnamon-settings/modules/cs_sound.py
cat: /usr/share/cinnamon/cinnamon-settings/modules/cs_sound.py: No such file or directory
@mrdowden

This comment has been minimized.

Copy link

@mrdowden mrdowden commented Dec 13, 2017

I was able to fix the output settings by grabbing the cs_sound.py off of Cinnamon's GitHub, but now I don't have any input settings available and my entire System Settings Control Center won't load.

Can anyone please share a working cs_sound.py file?

@t-hofmann

This comment has been minimized.

Copy link

@t-hofmann t-hofmann commented Dec 13, 2017

What about grabbing from this very same repository.
For your convenience the direct link to the file in question:
https://github.com/linuxmint/Cinnamon/blob/master/files/usr/share/cinnamon/cinnamon-settings/modules/cs_sound.py

@collinss

This comment has been minimized.

Copy link
Member

@collinss collinss commented Dec 13, 2017

@mrdowden that wont work. The cs_sound.py has dependencies that don't exist in 17.3. If you want to fix your issue, your only real option is to upgrade to a newer version (current mint version is 18.3).

@leigh123linux

This comment has been minimized.

Copy link
Member

@leigh123linux leigh123linux commented Dec 13, 2017

@mrdowden your cinnamon is to old to use cs_sound.py as your cinnamon-desktop package doesn't have CVC
Why don't you upgrade to 18.3 and a supported cinnamon version?

linuxmint/cinnamon-desktop@65e05c2#diff-aedc2821722b38165f437fa5ed2060fd

https://github.com/linuxmint/Cinnamon/blob/2.8-maintenance/files/usr/share/cinnamon/cinnamon-settings/cinnamon-settings.py#L71

the setting for 2.8 points to

cinnamon-control-center sound
@leigh123linux

This comment has been minimized.

Copy link
Member

@leigh123linux leigh123linux commented Dec 13, 2017

Can anyone reproduce the issue on a supported cinnamon version (3.6.x)?

@mrdowden

This comment has been minimized.

Copy link

@mrdowden mrdowden commented Dec 13, 2017

@leigh123linux Thanks. Hadn't noticed how far behind Mint 17.3 was on Cinnamon versions. I'm a bit surprised since Mint 17.3 is an LTS that is officially supported until April 2019.

@mlopezgva

This comment has been minimized.

Copy link

@mlopezgva mlopezgva commented Feb 15, 2018

Sorry to bother, but I have the same problem in both Cinnamon (17.1) and XFCE (Mint 18.3). I have another machine with Mint 18.3 Cinnamon, but I am guessing it will have the same issue:

  1. Cinnamon changes the streaming to the new device, XFCE is not
  2. When using external devices (in this case an USB headphone) the volume control is controlling the built-in device, and not the one used to output the sound.

With XFCE I need to open the mixer and disable the built-in device to derive the output to the USB (I think this is about XFCE applet and not directly a Mint issue), which is kind of annoying. When I unplug the USB device, I have to enable the internal device, too.

Feel free to move it no another repo if this is not the right one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
You can’t perform that action at this time.