Tuesday, January 1, 2008

Logitech Headphones Don't Work (Not Default Card)

This is the solution to the problem where your computer thinks it has two sound cards and the default one is not your headphones. As a result your headphones never get the chance to play any music/whatever you want to hear.

Firstly check that the computer recognises your device by typing the following command:

$ cat /proc/asound/cards

You should receive an output like follows:

 0 [Intel          ]: HDA-Intel - HDA Intel
                     HDA Intel at 0xfebfc000 irq 16
 1 [Headset        ]: USB-Audio - Logitech USB Headset
                     Logitech Logitech USB Headset at usb-0000:00:1d.0-2, full speed

The default device is usually number 0. Notice my headset is device number 1 (not default) and therefore never gets a chance to play. Also pay attention to the name of the device in the square brackets i.e. in this case Intel and Headset. Using the name of the device you want to be default create the following file: /etc/asound.conf

# nano /etc/asound.conf

Insert the following text into the document and replace the word Headset with the name of the device you want to be default.

pcm.!default {
type hw
card Headset
}
ctl.!default {
type hw
card Headset
}

Now your headphones should be active when they are plugged in and your computers main card (in my case) when they are not.

No comments: