Soundblaster G6 Microphone input doesn't work

5,250

I found a simple solution. Tested on Ubuntu 20.04.1 (and Fedora 31).

1. Open alsamixer

alsamixer

2. Choose your soundcard

F6

Sound BlasterX G6
Hit Enter to select the card

3. Activate 'Capture' for 'Line In' and 'External Mic'

F4
Use left-right arrows to navigate to the 'Line In'.
Use Space to activate the 'Capture'
Use left-right arrows to navigate to 'External Mic'
Use Space to activate the 'Capture'

4. Configure PCM Capture Source

F3
Use left-right arrows to navigate to 'PCM Capture Source'
Use up-down arrows to select 'External Mic'
Press ESC to save

5. Record a WAV to test the microphone

arecord -f dat -d 2 /tmp/test-mic.wav -vvv

6. Playback the WAV

aplay /tmp/test-mic.wav

7. Make the change persistent (fail)

After a reboot, The 'PCM Capture Source' keept going back to 'Line In'. I tried a systemd unit file (After=sound.target dbus.service) or a startup script in .zprofile... nothing worked. I think this is because the card takes some time to startup. So I came up with this workaround :

vim ~/bin/setmic

And add this:

#!/usr/bin/env bash

cardNumber=$(aplay -l|grep 'Sound BlasterX G6'|cut -d' ' -f 2 |tr -d ':')
amixer -c "$cardNumber" -q set "PCM Capture Source" "External Mic"

if [ $? -eq 0 ]; then
  echo "PCM Capture Source successfully changed to 'External Mic'"
else
  echo "Failed to configure PCM Capture source for Sound BlasterX G6"
fi

amixer -c "$cardNumber" -q sset 'Input Gain Control' 3

if [ $? -eq 0 ]; then
  echo "Input Gain Control set to 3"
else
  echo "Failed to activate mic Boost for Sound BlasterX G6"
fi

~/bin beeing in my PATH:

chmod u+x ~/bin/setmic    
setmic

> PCM Capture Source successfully changed to 'External Mic'
> Input Gain Control set to 3
Share:
5,250

Related videos on Youtube

Cerebrix
Author by

Cerebrix

By day: IT guy doing the devils work By night: Tech and sci-fi geek

Updated on September 18, 2022

Comments

  • Cerebrix
    Cerebrix over 1 year

    I was hoping someone could possibly help me out with my sound card. I have a Soundblaster G6 running in 18.10. Everything seems to work except the microphone input. I realize Creative Labs doesn't officially support Linux, but since everything else is working. I was wondering if perhaps there was something I could do so that I could use my headset microphone while using it.

    Can anyone point me in the right direction?

  • Cerebrix
    Cerebrix about 5 years
    I did also get Skype working. It seems Skype was by default changing the capture device in ALSA to line in. So I had to go back in there, change it to "External Mic" and then reselect it in both pavucontrol and pulseaudio. Somehow, running Skype for Web in Chrome let meu se it with "default device" selected. Once I did that, the skype desktop app could be used with default device without any issues.
  • Zanna
    Zanna almost 4 years
    Could you expand this to include the steps here, in case the link changes in the future?
  • Eliah Kagan
    Eliah Kagan almost 4 years
    @Nmath Although input to confirm that this works, either by the OP or by anyone else, would be valuable, please note that What topics can I ask about here?, which is the page you linked to, is about what topics people can ask about here, and it does not say anything about answers.
  • Honiix
    Honiix over 3 years
    Sorry for the Fedora thing. Tested on Ubuntu 20.04.1, it works!
  • Honiix
    Honiix over 3 years
    Edited 'setmic' to also increase the Microphone Boost to +30dB
  • AlexP11223
    AlexP11223 over 3 years
    So how do you run setmic? Manually on each startup? Maybe you can add somesleep and add it to startup scripts?
  • Honiix
    Honiix over 3 years
    Manually each time I need the Mic. It was almost impossible to know when the mic is ready. It could be minutes after the boot.
  • Elfie
    Elfie about 3 years
    Thank you for this nice post. I finally got my mic working on a G5. But unfortunately pavctl still doesnt seem to find the correct input device, as there is no input beeing shown even thou I can hear myselft which brings me to my second problem. The mic is working but I hear everything it records. Can you help me with that?
  • Elfie
    Elfie about 3 years
    can you please tell me what entry you added to pulseaudio? The link isn't there anymore...