Fixing Logitech G35 USB headset on Debian Linux

Hello,

I was trying to get sound working for my Logitech G35 USB headset.
Firstly I changed the audio priority in /etc/modprobe.d/alsa-base.conf by changing the following:

options snd-usb-audio index=-1

After that I reloaded ALSA and the USB headset is now the primary audio output.

sudo /etc/init.d/alsa-utils stop
sudo alsa reload
sudo /etc/init.d/alsa-utils start
cat /proc/asound/cards
<code class="language-bash"> 0 [Headset        ]: USB-Audio - Logitech G35 Headset
                      Logitech Logitech G35 Headset at usb-0000:00:14.0-3.4, full speed
 1 [PCH            ]: HDA-Intel - HDA Intel PCH
                      HDA Intel PCH at 0xf5130000 irq 47
 2 [NVidia         ]: HDA-Intel - HDA NVidia
                      HDA NVidia at 0xf7080000 irq 17
 3 [NVidia_1       ]: HDA-Intel - HDA NVidia
                      HDA NVidia at 0xf5080000 irq 18</code>

The audio should now be working for your headset.
Make sure you restart any application that you have running in order for it to initialize the new audio output source.

You will notice one problem, you can’t play multiple sound sources at once, there is not mixing 🙁
This one took me a while to figure out, after a lot of reading I managed to get it working by having the following in ~/.asoundrc

pcm.!default {
        type plug
        slave.pcm "dmixer"
}

pcm.dmixer  {
        type dmix
        ipc_key 1024
        slave {
                pcm "hw:0,0"
                period_time 0
                period_size 1024
                buffer_size 4096
                rate 44100
        }
        bindings {
                0 0
                1 1
        }
}

ctl.dmixer {
        type hw
        card 0
}

Reload ALSA and restart any applications that is trying to use the audio output.

sudo /etc/init.d/alsa-utils stop
sudo alsa reload
sudo /etc/init.d/alsa-utils start

It should now be working with playing multiple sound sources at once. Once problem still remains, after a reboot the sound stops working. The solution I did for this was to add the following into /etc/init.d/fix-audio

#! /bin/sh

### BEGIN INIT INFO
# Provides:             fix-audio
# Required-Start:       $remote_fs $syslog
# Required-Stop:        $remote_fs $syslog
# Default-Start:        2 3 4 5
# Default-Stop:         
# Short-Description:    Fix audio
### END INIT INFO

sudo /etc/init.d/alsa-utils stop
sudo alsa reload
sudo /etc/init.d/alsa-utils start

exit 0

I then add so that it runs when your computer starts.

sudo update-rc.d fix-audio defaults

Quite a lot of ugly fixes, but it works 🙂
I hope this helps you out.

/Trigger

0 Comments

Leave a Reply

Your email address will not be published.