Microphone not working in Linux Mint Cinnamon18 [SOLVED]

Questions about codecs, DVD playback, web plugins...
Forum rules
Before you post please read how to get help
MenthaSuaveolens
Level 1
Level 1
Posts: 46
Joined: Wed Apr 25, 2012 3:43 pm
Location: Belgium

Microphone not working in Linux Mint Cinnamon18 [SOLVED]

Postby MenthaSuaveolens » Sat Nov 05, 2016 10:14 am

I did a clean install with Linux Mint Cinnamon 18. Everything is working fine, except the microphone isn't working. This microphone was working with Linux Mint 17.3. I removed the file .config/pulse, but that didn't help.

If I boot from a live-usb with Ubuntu 16.4 or with Linux Mate 18, then the microphone is working! If you boot from a live-usb with Cinnamon 18, then the microphone isn't working.

Can you please give me any hints how to fix this problem? (Installing Mate 18, Ciannamon 17.3 or Ubuntu 16.4 is an option, but I would like to keep my Cinnamon-desktop).

Computer : Sable all-in-one PC (System76)

MicrophoneNotWorking.png
Last edited by MenthaSuaveolens on Mon Nov 07, 2016 12:48 pm, edited 1 time in total.

yaye
Level 4
Level 4
Posts: 235
Joined: Sat Feb 26, 2011 6:38 pm
Location: Dallas, Texas

Re: Microphone not working in Linux Mint Cinnamon18

Postby yaye » Sun Nov 06, 2016 10:17 am

Hello,

What does the Output Tab look like?
Unregistered Desktop Linux User since 1998 (Redhat 5.0 "Hurricane").

MenthaSuaveolens
Level 1
Level 1
Posts: 46
Joined: Wed Apr 25, 2012 3:43 pm
Location: Belgium

Re: Microphone not working in Linux Mint Cinnamon18

Postby MenthaSuaveolens » Sun Nov 06, 2016 12:01 pm

I have a screen-shot with the sound-dialogs Linux Mint Cinnamon 17.3 and 18. It looks that one sound-system isn't detected in Cinnamon 18, namely Analog Output. I don't know if that has a relationship with the microphone on the usb-camera. If I plug an external headset in, then the output towards this headset isn't working, however the microphone is working. The weird thing is, that the microphone input-level is also shown on the usb-camera-microphone-field? (May be once you plug an external headset in, the internal audio-system gets inhibitted - which makes sense).

yaye
Level 4
Level 4
Posts: 235
Joined: Sat Feb 26, 2011 6:38 pm
Location: Dallas, Texas

Re: Microphone not working in Linux Mint Cinnamon18

Postby yaye » Sun Nov 06, 2016 12:37 pm

I don't have Linux Mint 18 Cinnamon installed, but I ran it from a DVD and these are the settings I used in the Sound Applet (Right Click Speaker Icon) to get Audacity to record from the Front Mic. I don't have a USB Mic on this computer. At first, Audacity would not record. I found that the Mute Input slider was turned on in the Sound Applet. After I turned Mute Input off, Audacity started recording.
Unregistered Desktop Linux User since 1998 (Redhat 5.0 "Hurricane").

User avatar
phd21
Level 14
Level 14
Posts: 5180
Joined: Thu Jan 09, 2014 9:42 pm
Location: Florida

Re: Microphone not working in Linux Mint Cinnamon18

Postby phd21 » Sun Nov 06, 2016 3:59 pm

Hi "MenthaSuaveolens",

Install the Pulse Audio Volume control (pavucontrol) from the Software Manager or Synaptic Package Manager (SPM) and check its settings.

There are some really nice graphical (GUI) programs for sound that start with "Qas", like the fantastic "Qasmixer", in the Software Manager or Synaptic Package Manager (SPM) that you can install and use. Sound "Mixers" can be a little confusing if you are not familiar with them. If you bring up "Qasmixer" make it full screen, on the right side you will have mixer devices where you can control your system sound devices. If you do not see the mixer devices on the upper right, then hit "F6". The item "sysdefault" will show all installed sound card devices and you will have various options to adjust various volume controls using "sliders" which you can turn off and on using the "dot" below the volume slider, a solid dot means that it is on (enabled). You may also have to check the other mixer devices and or sound cards listed below the mixer devices (if there are any), then re-check the mixer devices for that sound device. If you have volume sliders that are maxed out at the highest volume, you will get distortion, just lower the volume. There are also various other check boxes below that you can use. You may have to do a little experimenting to see which settings and options work best for your hardware. For Microphones, make sure capture and mic options are enabled and that their volume sliders are at least at half way.


The applications included are:
- qasconfig - browser for the alsa configuration tree
- qashctl - mixer for alsa's high level control interface
- qasmixer - desktop mixer with features similar to alsamixer
qasmixer is a desktop mixer application for alsa's "simple mixer interface" and offers features similar to alsamixer. it also features a sytem tray icon with basic mixer functionality.

Hope this helps ...
Phd21: Mint KDE 17.3 & 18.2, 64-bit Awesome OS, Ancient Dell OptiPlex 780 Core2Duo E8400 3GHz,3gb Ram,160gb hdd, Video: Intel 4 Graphics, DVD Lightscribe. Why I use KDE?:https://opensource.com/life/15/4/9-reasons-to-use-kde

yaye
Level 4
Level 4
Posts: 235
Joined: Sat Feb 26, 2011 6:38 pm
Location: Dallas, Texas

Re: Microphone not working in Linux Mint Cinnamon18

Postby yaye » Sun Nov 06, 2016 7:59 pm

I tried using a USB webcam with Linux Mint 18 Cinnamon, and even with Pulse Audio Volume Control installed and the webcam microphone set as default, I still couldn't get the microphone to record my voice. With Linux Mint 17.3 MATE, Audacity records from the webcam microphone.
Unregistered Desktop Linux User since 1998 (Redhat 5.0 "Hurricane").

MenthaSuaveolens
Level 1
Level 1
Posts: 46
Joined: Wed Apr 25, 2012 3:43 pm
Location: Belgium

Re: Microphone not working in Linux Mint Cinnamon18

Postby MenthaSuaveolens » Mon Nov 07, 2016 12:47 pm

It's a bug in the file /usr/share/cinnamon/cinnamon-settings/modules/cs_sound.py
@line 607 : self.inputSelector = self.buildDeviceSelect("output", self.inputDeviceList) the word "output" should be replaced by "input" !

User avatar
Linux-Bill
Level 1
Level 1
Posts: 37
Joined: Mon Mar 14, 2016 4:19 pm

Re: Microphone not working in Linux Mint Cinnamon18 [SOLVED]

Postby Linux-Bill » Mon Nov 07, 2016 3:50 pm

I am new to Linux - hence need sim[ple to under instructions to edit this file. Currently, I do not have permission. How do I get permission to edit same?

User avatar
phd21
Level 14
Level 14
Posts: 5180
Joined: Thu Jan 09, 2014 9:42 pm
Location: Florida

Re: Microphone not working in Linux Mint Cinnamon18 [SOLVED]

Postby phd21 » Mon Nov 07, 2016 4:59 pm

Hi "Linux-Bill", "MenthaSuaveolens", & Anyone Else Interested in this,

The fantastic "Qasmixer" program would probably work without having to edit this file. But, if this is a bug in Cinnamon, then kudos to "MenthaSuaveolens" for locating it and providing a fix for it.

There are two ways to edit this file, from a console terminal command prompt, or using your file manager.

1.) Console Terminal prompt: Open a console terminal, and copy the command below and paste that into it, or type it in. Then, follow the instructions from "MenthaSuaveolens" last post. Do not forget to save the file, and then log out, and log back in, or restart your computer. Then, you should have regular control through normal sound applications. Note: the "gedit" in the command below is a text editor that is usually installed in most editions of Linux Mint, if not you can first install it by typing in sudo apt-get install gedit. Be careful what you type, syntax matters.

Command to edit the sound file is below.
sudo gedit /usr/share/cinnamon/cinnamon-settings/modules/cs_sound.py

Code: Select all

sudo gedit /usr/share/cinnamon/cinnamon-settings/modules/cs_sound.py


2.) Using your file manager: Bring up your file manager, browse to the root folder, then to "/usr/share/cinnamon/cinnamon-settings/modules/", right click the file "cs_sound.py", choose root actions, open as text, enter your password, make the change as was suggested, save the file, exit the text editor, logout and log back in, or restart your computer.

Note: There are a lot of changes in Linux Mint 18, one of which I do not like, is that the "root" options are not all available as before, so you may have to browse to the folder (not the file) "/usr/share/cinnamon/cinnamon-settings/" right click the "/modules" folder and select "actions", "open as root" user, enter your password, when the file manager as root user appears, browse to and right click the file "cs_sound.py", open as text, make the change, save the file, exit the text editor, logout and log back in, or restart your computer.


Hope this helps ...
Last edited by phd21 on Mon Nov 07, 2016 5:06 pm, edited 2 times in total.
Phd21: Mint KDE 17.3 & 18.2, 64-bit Awesome OS, Ancient Dell OptiPlex 780 Core2Duo E8400 3GHz,3gb Ram,160gb hdd, Video: Intel 4 Graphics, DVD Lightscribe. Why I use KDE?:https://opensource.com/life/15/4/9-reasons-to-use-kde

MenthaSuaveolens
Level 1
Level 1
Posts: 46
Joined: Wed Apr 25, 2012 3:43 pm
Location: Belgium

Re: Microphone not working in Linux Mint Cinnamon18 [SOLVED]

Postby MenthaSuaveolens » Mon Nov 07, 2016 5:02 pm

Hi Linux-Bill,

First of all, I'am not sure that the solution before-mentioned will work in your case. The first thing that you have to do is to install gedit. You can do that either in the software-center, either via terminal command : sudo apt-get install gedit. Then enter the following line sudo gedit /usr/share/cinnamon/cinnamon-settings/modules/cs_sound.py (Editing the file as a super-user - you can copy this command here and paste it into the terminal Ctrl-Shift-v). Enable the line-numbers in the preferences. Then at line 609 you have to replace the word "output" by "input". Save the file (See the button near to the left-top). Go to the sounds-dialog. Check if your microphone is working now. I'll hope its works! Good luck.

User avatar
Linux-Bill
Level 1
Level 1
Posts: 37
Joined: Mon Mar 14, 2016 4:19 pm

Re: Microphone not working in Linux Mint Cinnamon18 [SOLVED]

Postby Linux-Bill » Tue Nov 08, 2016 8:53 am

Changed the code and all is well. Thanks for the help - I would have never found that myself.

User avatar
Prsman
Level 3
Level 3
Posts: 198
Joined: Tue Nov 17, 2015 3:15 pm

Re: Microphone not working in Linux Mint Cinnamon18 [SOLVED]

Postby Prsman » Sat Nov 12, 2016 12:34 am

Sorry late to the party. When I run the sudo gedit command I get this in terminal:

(gedit:4659): Gtk-WARNING **: Calling Inhibit failed: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.gnome.SessionManager was not provided by any .service files

** (gedit:4659): WARNING **: Set document metadata failed: Setting attribute metadata::gedit-spell-enabled not supported

** (gedit:4659): WARNING **: Set document metadata failed: Setting attribute metadata::gedit-encoding not supported

** (gedit:4659): WARNING **: Set document metadata failed: Setting attribute metadata::gedit-position not supported


Gedit opens and I seem to be able to edit the file. What does the above error message mean? Thanks

bpmint
Level 1
Level 1
Posts: 3
Joined: Mon Nov 14, 2016 3:05 am

Re: Microphone not working in Linux Mint Cinnamon18

Postby bpmint » Sun Dec 04, 2016 9:59 pm

MenthaSuaveolens wrote:It's a bug in the file /usr/share/cinnamon/cinnamon-settings/modules/cs_sound.py
@line 607 : self.inputSelector = self.buildDeviceSelect("output", self.inputDeviceList) the word "output" should be replaced by "input" !

Hi Mentha,
I had the same problem and this was also the solution for me (I thought PulseAudio was just failing to save the choice of default mic). Has this bug been reported on the tracker?

EDIT: Never mind, I found it here.

User avatar
Nic Deane
Level 1
Level 1
Posts: 10
Joined: Mon May 27, 2013 7:28 am
Location: Nottingham

Re: Microphone not working in Linux Mint Cinnamon18 [SOLVED]

Postby Nic Deane » Mon Dec 05, 2016 12:24 pm

Dear Mentha,

Thank you so much for your help. I have just bought a Logitech 920 and although I could get Pulse Audio to see the Sound Input it wasn't 'working'. Following your advice, a couple of pastes into a terminal and all was fine! Without the help of these forums I would have been quite stuck. All is great now :D

Mint forums really are SO helpful!

Nic Deane

lynxfan
Level 1
Level 1
Posts: 3
Joined: Wed Jul 13, 2016 7:25 am

Re: Microphone not working in Linux Mint Cinnamon18 [SOLVED]

Postby lynxfan » Sun Jun 18, 2017 4:44 am

Thanks to the forums.
My USB microfone working fine after the below changes to the file /usr/share/cinnamon/cinnamon-settings/modules/cs_sound.py
self.inputSelector = self.buildDeviceSelect("output", self.inputDeviceList) # the line with bug
self.inputSelector = self.buildDeviceSelect("input", self.inputDeviceList) #correct changes

Tested with Microsoft webcam & SENNHEISER headset


Return to “Sound, Multimedia, & Codecs”