You are not logged in.

#1 2015-04-13 15:53:36

jfarthing84
Member
From: Daytona Beach, FL
Registered: 2015-04-13
Posts: 17
Website

[SOLVED] No sound in KDE

I've installed KDE Plasma and I have no sound via HDMI. I am using a NVIDIA card. For the record, sound works out of the box with GNOME.

Output of aplay -l:

card 0: MID [HDA Intel MID], device 0: ALC262 Analog [ALC262 Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: NVidia [HDA NVidia], device 3: HDMI 0 [HDMI 0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: NVidia [HDA NVidia], device 7: HDMI 1 [HDMI 1]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: NVidia [HDA NVidia], device 8: HDMI 2 [HDMI 2]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: NVidia [HDA NVidia], device 9: HDMI 3 [HDMI 3]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

GNOME lists HDMI 2 as the proper device. However, using aplay to any of these devices yields no sound. Any ideas? Thanks in advance.

Edit
Using speaker-test -c 2 -D hw:1,7 does give me sound.

Last edited by jfarthing84 (2015-04-19 22:42:18)

Offline

#2 2015-04-13 16:49:10

firekage
Member
From: Eastern Europe, Poland
Registered: 2013-06-30
Posts: 624

Re: [SOLVED] No sound in KDE

Have you unmunted hdmi outs in alsamixer?

Offline

#3 2015-04-13 16:50:49

jfarthing84
Member
From: Daytona Beach, FL
Registered: 2015-04-13
Posts: 17
Website

Re: [SOLVED] No sound in KDE

Yessir. As mentioned, I get sound while specifying the device with speaker-test.

Offline

#4 2015-04-13 17:21:32

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,076

Re: [SOLVED] No sound in KDE

Are you using plain ALSA? Try configuring the  correct device in Phonon (Systemsettings --> Multimedia) or better yet if you intend to use it as your primary device set it as default: https://wiki.archlinux.org/index.php/Ad … sound_card

Offline

#5 2015-04-13 17:25:14

jfarthing84
Member
From: Daytona Beach, FL
Registered: 2015-04-13
Posts: 17
Website

Re: [SOLVED] No sound in KDE

Plain ALSA at the moment. Just wanted to get that working before introducing other layers, like Pulseaudio.

Multimedia settings only has "Default" as a selection.

I've actually configured it as the default device just after posting the OP. However, no difference.

aplay -l:

card 0: NVidia [HDA NVidia], device 3: HDMI 0 [HDMI 0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: NVidia [HDA NVidia], device 7: HDMI 1 [HDMI 1]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: NVidia [HDA NVidia], device 8: HDMI 2 [HDMI 2]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: NVidia [HDA NVidia], device 9: HDMI 3 [HDMI 3]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: MID [HDA Intel MID], device 0: ALC262 Analog [ALC262 Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

Offline

#6 2015-04-13 21:42:01

firekage
Member
From: Eastern Europe, Poland
Registered: 2013-06-30
Posts: 624

Re: [SOLVED] No sound in KDE

I think that during boot order of sound cards are being changed from HDMI to MID ALC 262 Analog. You could specify order of the sound cards in /etc/modprobe.d/alsa-base.conf but i'm not sure what options should be there (there should be

 
options snd_hda_intel index=0 
options snd_midi_sound_driver* index=1 or -2

for sure) because hdmi from nvidia uses snd_hda_intel driver and maybe the same driver works for MID ALC262. You could check it with lspci -v.  If this midi uses different driver, than in my opinion you are good to go.


*only an example for a driver, check it

Last edited by firekage (2015-04-13 21:43:56)

Offline

#7 2015-04-16 15:29:21

jfarthing84
Member
From: Daytona Beach, FL
Registered: 2015-04-13
Posts: 17
Website

Re: [SOLVED] No sound in KDE

I was able to get plain ALSA sound by using this in .asoundrc:

pcm.!default {
    type hw
    card 0
    device 7
}

ctl.!default {
    type hw
    card 0
    device 7
}

Then I installed Pulseaudio and couldn't get any sound until I deleted .asoundrc. I had to use pavucontrol to select the proper device for Pulse, because KDE doesn't show all of the profiles for the card - I guess I should file that bug.

Offline

#8 2015-04-16 16:07:30

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,076

Re: [SOLVED] No sound in KDE

That isn't a bug, you can switch profiles in the middle tab in phonon, but yeah it's cumbersome and slated to be fixed somewhere down the Plasma 5 line, so doing it with pavucontrol is easier, you generally have to do it only once.

And this is the reason I asked if you intend to use plain ALSA because with pulseaudio this becomes obsolete because it can handle this itself

Offline

#9 2015-04-16 21:42:08

firekage
Member
From: Eastern Europe, Poland
Registered: 2013-06-30
Posts: 624

Re: [SOLVED] No sound in KDE

V1del wrote:

That isn't a bug, you can switch profiles in the middle tab in phonon, but yeah it's cumbersome and slated to be fixed somewhere down the Plasma 5 line, so doing it with pavucontrol is easier, you generally have to do it only once.

And this is the reason I asked if you intend to use plain ALSA because with pulseaudio this becomes obsolete because it can handle this itself

I don't think that switching it in phonon works. I had 3 cards without rder index...and after each boot sound could pop up or not, could hear it, or not...even when i choose card with middle phonon tab. I had to gave order and index in /etc/modprobe.d/alsa-base.conf.

IMHO soud in kde, is something that should be rewrited or fixed...

Offline

#10 2015-04-17 11:38:25

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,076

Re: [SOLVED] No sound in KDE

order and index in alsa-base.conf is something you should do anyway, completely unrelated to what you are using, as only like that you can guarantee the order of indexes. That said afaik a rewrite and tighter integration with pulseaudio are things that are planned.

Last edited by V1del (2015-04-17 11:46:42)

Offline

#11 2015-04-19 22:40:50

jfarthing84
Member
From: Daytona Beach, FL
Registered: 2015-04-13
Posts: 17
Website

Re: [SOLVED] No sound in KDE

No, Phonon only listed HDMI and HDMI 4. Missing 2 profiles, in which HDMI 2 is the one that works.

Last edited by jfarthing84 (2015-04-19 22:41:04)

Offline

Board footer

Powered by FluxBB