You are not logged in.

#1 2012-02-25 20:58:07

Axalon
Member
Registered: 2012-01-22
Posts: 27

Kmix and headphones

I've been using KDE a bit and everything works how I want it to for the most part. However KMix seems to hate headphones. The headphones I use are Clearchat Comfort USB headphones by Logitech. First, a channel for them didn't appear until I logged back in with them plugged in, now I can go ahead and manipulate the volume level of that channel, however nothing I do will direct output to my headphones. I've looked around I think every single KMix menu, perhaps there is something I missed but what I have seen hasn't helped. In my Phonon settings I set my headphones as my preferred device but it still continues to use my PC speakers. I know that the problem isn't with my headphones, they work perfectly in Windows and Cinnamon, it's just KMix that seems to have a grudge against them. So any advice or magical incantations would be appreciated.

Offline

#2 2012-02-25 21:28:20

Xabre
Member
From: Serbia
Registered: 2009-03-19
Posts: 755

Re: Kmix and headphones

Pulseaudio or plain alsa?

Offline

#3 2012-02-25 23:22:22

Axalon
Member
Registered: 2012-01-22
Posts: 27

Re: Kmix and headphones

Pulseaudio, I believe.

Alright, I've made some progress. Using pavucontrol I was able to set my headphones as the preferred output device for Amarok, so it uses them when they're plugged in. However, everything else, system sounds, my browser, etc. still only uses my speakers, I see no option to set all that to my headphones in pavucontrol. There are only two things in the playback tab, System sounds and Amarok, and only Amarok has any output options.

Last edited by Axalon (2012-02-26 03:20:39)

Offline

#4 2012-02-26 08:47:39

Maki
Member
From: Skopje, Macedonia
Registered: 2007-10-16
Posts: 353
Website

Re: Kmix and headphones

try changing the Profile in Configuration section in pulseaudio volume control. See if it works and if it works check the failback mode, disconnect your headphones and see if everything returns to default.


If it ain't broke, broke it then fix it.

Offline

#5 2012-02-26 11:48:19

viperpaulo
Member
Registered: 2012-02-09
Posts: 8

Re: Kmix and headphones

I gess you do not use pulseaudio if you are using KDE, pulseaudio is for gnome.

I also have Logitech USB headphones and I'm using alsa to switch from usb to speakers, Kmix to set volume level.
First you have to find which cards are used for your headphones and for the speakers :

cat /proc/asound/cards

then edit your /etc/asound.conf, i consider card 0 as the speakers and card 1 as the USB one :

pcm.card0 {
    type hw
    card 0
# mmap_emulation true
}
pcm.dmix0 {
    type dmix
    ipc_key 34521
    slave {
        pcm "card0"
    }
}
pcm.dsnoop0 {
    type dsnoop
    ipc_key 34523
    slave {
        pcm "card0"
    }
}
pcm.asym0 {
    type asym
    playback.pcm "dmix0"
    capture.pcm "dsnoop0"
}
pcm.pasym0 {
    type plug
    slave.pcm "asym0"
}
# 'dsp0' is espected by OSS emulation etc.
pcm.dsp0 {
    type plug
    slave.pcm "asym0"
}
ctl.dsp0 {
    type hw
    card 0
}
pcm.card1 {
    type hw
    card 1
# mmap_emulation true
}
pcm.dmix1 {
    type dmix
    ipc_key 34521
    slave {
        pcm "card1"
    }
}
pcm.dsnoop1 {
    type dsnoop
    ipc_key 34523
    slave {
        pcm "card1"
    }
}

pcm.asym1 {
    type asym
    playback.pcm "dmix1"
    capture.pcm "dsnoop1"
}
pcm.pasym1 {
    type plug
    slave.pcm "asym1"
}
# 'dsp1' is espected by OSS emulation etc.
pcm.dsp1 {
    type plug
    slave.pcm "asym1"
}
ctl.dsp1 {
    type hw
    card 1
}
pcm.!default {
    type plug
    slave.pcm "asym0"
}
ctl.!default {
    type hw
    card 0
}

And finally in your ~/.asoundrc you put this code :

pcm.!default {
    type plug
    slave.pcm "asym0" # or asym1
}

At this step you can force your system to load speakers as card 0 and USB as card 1 by editing /etc/modprobe.d/modprobe.conf :

options snd-your-speakers-card index=0
options snd-your-usb-card index=1

I made a script to switch from asym0 (speakers) to asym1 (USB) in the ~/.asoundrc and associate it to a shortcut. Then if you want to use your USB headphones you should have asym1 defined before launching the application, and asym0 if you want to use speakers. Make shure that default is defined as default output in Phonon. I did not manage to automatically define the master pcm in Kmix, I switch manually the pcm in Kmix to use fn+f10/f11 to set the volume of the desired card.

Hope this helped and sorry for my poor english !

Last edited by viperpaulo (2012-02-26 11:52:26)

Offline

#6 2012-02-26 11:55:23

will.price94
Member
From: UK
Registered: 2011-11-09
Posts: 63
Website

Re: Kmix and headphones

viperpaulo wrote:

I gess you do not use pulseaudio if you are using KDE, pulseaudio is for gnome.
...
I made a script to switch from asym0 (speakers) to asym1 (USB) in the ~/.asoundrc and associate it to a shortcut. Then if you want to use your USB headphones you should have asym1 defined before launching the application, and asym0 if you want to use speakers. Make shure that default is defined as default output in Phonon. I did not manage to automatically define the master pcm in Kmix, I switch manually the pcm in Kmix to use fn+f10/f11 to set the volume of the desired card.

Hope this helped and sorry for my poor english !

Using pavucontrol I was able to set my headphones as the preferred output device for Amarok

Sounds like he's using Pulseaudio and not ALSA, though I don't know whether that renders your solution invalid or not, I'm not familiar with how ALSA interacts with pulse.

Last edited by will.price94 (2012-02-26 11:55:46)

Offline

#7 2012-02-26 12:00:32

viperpaulo
Member
Registered: 2012-02-09
Posts: 8

Re: Kmix and headphones

I thought puleaudio was made for gnome desktop not for KDE, personnaly i recommand to use standard kde configuration : alsa+kmix+phonon.

Offline

#8 2012-02-26 12:13:35

will.price94
Member
From: UK
Registered: 2011-11-09
Posts: 63
Website

Re: Kmix and headphones

viperpaulo wrote:

I thought puleaudio was made for gnome desktop not for KDE, personnaly i recommand to use standard kde configuration : alsa+kmix+phonon.

Fairly certain its desktop independent, can't see any mention of gnome branding on http://pulseaudio.org/

Offline

#9 2012-02-26 12:29:06

viperpaulo
Member
Registered: 2012-02-09
Posts: 8

Re: Kmix and headphones

Ok ! My bad !

Offline

#10 2012-02-26 12:29:20

Xabre
Member
From: Serbia
Registered: 2009-03-19
Posts: 755

Re: Kmix and headphones

Made for Gnome!?!?!? A friend of mine used to think that Gentoo is a Gnome distribution simply because of that „G“ at the beggining.
I guess the same can be applied to Pulseaudio. Please.

@Axalon

Try using Veromix (kde mixer for pulseaudio) instead of KMix.

Last edited by Xabre (2012-02-26 12:30:07)

Offline

Board footer

Powered by FluxBB