Xfce , no sound

Hi
I’m trying to get around with xfce , but I get no sound in the system.
If I go to Yast , I have two sound cards, on HDMI

 FCH Azalia Controller
 



  - Configured as sound card number 0
  - Driver snd-hda-intel


** **
Wrestler HDMI Audio
 


  - Configured as sound card number 1
  - Driver snd-hda-intel



If I make a test sound, only the second one gives a sound.
If I change the order, I can only listen to the second one.

I’ve done a alsa-info :

http://www.alsa-project.org/db/?f=ee689061e94459101d45cddc291652db988869da

In the system, I have no sound, nor in YouTube, music, whatever… just that yast test sound.
Also, the my volume laptop keys, dont’ work, and neither that volume icon in the xfce panel. It just has a crux .

Do I have to install pulse audio ?

In 13.2, but in kde, pulse audio, was not god when plugging or unplugging headphones.

Thanks

I’ve installed pulseaudio, but still no luck.

I’ve follow this helper : https://en.opensuse.org/SDB:Intel-HDA_sound_problems
but doing a search in /usr/src/linux-4.1.13-5/Documentation/sound/alsa/ALSA-Configuration.txt , I don’t find any string with ALC269VB

And also, I have nothing in /proc/asound/card0/codec* as mentioned in that page :

Note: 
If for some reason you don't have a /proc/asound directory, then you are either not using ALSA, or your ALSA config is corrupt.  
Possibly restoring **/etc/modprobe.d/sound** (openSUSE <= 11.1) or **/etc/modprobe.d/50-sound.conf** (openSUSE >= 11.2) described below to its original condition may at least get ALSA starting again.

Looking at /etc/modprobe.d/50-sound.conf , I see no backup file…

But why is this happening in opensuse, if I have sound in kde ?
This should be a system stuff… not a desktop manager issue.

Kde5 it’s a mess, xfce no sound…what’s next , gnome ?

DId you go to yast-sound to configure?

Since your system seem to have two sound cards maybe change the order.

Also it says that you are using ESD as sound server and it is not running. Yast may correct but it does not appear you are using pulse just installing is not enough but pules audio is normally installed by default. But not sure about XFCE

Thanks

I think I got around it.

Not sure about yast , and not sure what I’ve done to manage it.
But today, when I started the system , I had /proc/asound again, but no sound.

Then looking in the kernel documentation, the codec info is on a file called HD-audio-models.txt , and not in ALSA-Configuration.txt
So I’ve place the model in the 50-sound.conf

But , meanwhile , I did install alsa-firmware … so I don’t know what did it

As for the volume icon , there is another one , called pulse-audio volume for xfce , and that one works.

About the laptop keys… they don’t. Just the mute icon, that comes out… but doesn’t do anything…

Glad to read you have sound working.

For further aspects wrt your system, note from the alsa-info.txt file (diagnostic script) that to support the sound on your computer, your computer has two instances of the same sound driver loaded, one to support HDMI and one to support your analogue sound:


!!Loaded ALSA modules
!!-------------------

snd_hda_intel
snd_hda_intel

This can can cause complications wrt sound, where sometimes sound will go to the wrong sound device.

and look at aplay output:


!!Aplay/Arecord output
!!--------------------

APLAY

**** List of PLAYBACK Hardware Devices ****
card 0: Generic [HD-Audio Generic], device 3: HDMI 0 [HDMI 0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: Generic_1 [HD-Audio Generic], device 0: ALC269VB Analog [ALC269VB Analog]
  Subdevices: 0/1
  Subdevice #0: subdevice #0

where your card-0 is HDMI (hw:0,3) and your analog sound is card-1 (hw:1,0). By default applications will send sound to card-0 and not send sound to card-1. Normally in a case such as that, one can swap card-0 and card-1 around, but when one has the same sound driver for both HDMI and for Analogue sound, YaST controls for switching the order of sound devices does not work too well.

Fortunately with pulse audio enabled and with pavucontrol one can redirect sound to the appropriate sound device on a per application basis. But if you end up having HDMI as card-0 and the pavucontrol switching becomes unbearable, there is a way to configure the 50-sound.conf to ensure it has the correct order of sound devices. Its been over a year since I helped someone with this, but if necessary, I can dig out an old post and find the right settings for your 50-sound.conf to put analogue as card-0 and HDMI as card-1.

However if your sound is working fine now, then I say don’t mess with it and leave it working.

Good luck and best wishes.
.

Thanks for your reply
I’m not sure about the system in xfce… In kde I didn’t need to install anything. But with this kde5 , I had to run to xfce … but it’s so minimalistic, that I don’t know if the applications dont’s have sounds, or this is the way it goes, primitive and silence.
I got some beeps :slight_smile:

For now, I have sound in youtube, etc… and music, so , i’ll enjoy it for a while :slight_smile:

Thanks

In xfce panel right click the xfce audio mixer and choose run audio mixer, you will see lots of configuration
that you can do.

There are two sound panel widgets.
The “default” ( I guess ) , doesn’t work for me , because the order of the sound cards are not ok.
So, only card1 gives sound.
But with the other widget (the pulse-audio one ), I can increase , decrease the volume.

The laptop keys for sound: I’ve seen some tips in the xfce site , about how to configure this keys… but I’m afraid to mess things .

Sorry to reopen this thread, but I see now that I need to dig into the right configuration of the sound .
Oldcpu, can you give me some directions where and how to change those files, to have the correct audio card order.

I came across a issue, regarding my laptop sound keys, and after some digging, I found that I can map them in xfce, but it will never work proprerly , because, applications are expecting the primary card, and not the secondary one.

So , I can map the keys, but I also have to change de active card in xfce mixer settings.
The result, it’s the notify and pulse-audio volume widget icon, they do not get sync.

I was hopping, with the right sound config, the system would work as it should.

Thakns

Ok - I can try. This would have been easier for me if you had posted the content of the /etc/modprobe.d/50-sound.conf file, which will need to be edited with root permissions.

I note this script output that you provided earlier: http://www.alsa-project.org/db/?f=ee689061e94459101d45cddc291652db988869da

From that I note:



!!Soundcards recognised by ALSA
!!-----------------------------

 0 [Generic        ]: HDA-Intel - HD-Audio Generic
                      HD-Audio Generic at 0xf0444000 irq 29
 1 [Generic_1      ]: HDA-Intel - HD-Audio Generic
                      HD-Audio Generic at 0xf0440000 irq 30


!!PCI Soundcards installed in the system
!!--------------------------------------

00:01.1 Audio device: Advanced Micro Devices, Inc. [AMD/ATI] Wrestler HDMI Audio
00:14.2 Audio device: Advanced Micro Devices, Inc. [AMD] FCH Azalia Controller (rev 01)


!!Advanced information - PCI Vendor/Device/Subsystem ID's
!!-------------------------------------------------------

**00:01.1** 0403: **1002:1314**
	Subsystem: 1025:0690
--
**00:14.2** 0403: **1022:780d **(rev 01)
	Subsystem: 1025:0690

...
!!PCI Soundcards installed in the system
!!--------------------------------------

**00:01.1** Audio device: Advanced Micro Devices, Inc. [AMD/ATI] Wrestler** HDMI Audio**
**00:14.2** Audio device: Advanced Micro Devices, Inc. [AMD] **FCH Azalia Controller **(rev 01)

ie one card is 1002:1314 and the other is 1022:780d. Further the HDMI appars to be 1002:1314 and the Analogue audio (which I think the FCH Azalia Controller) 1022:780d.

Try adding these two lines to the front of the /etc/modprobe.d/50-sound.conf file, then reboot, and configure your audio.


options snd_hda_intel index=0 model=auto vid=1022 pid=780d
options snd_hda_intel index=1 model=auto vid=1002 pid=1314

Where index-0 should then be card-0 (the default sound) and index-1 should then be card-01 the HDMI sound. Its possible “model=auto” is inappropriate and should be removed. ie;


options snd_hda_intel index=0 vid=1022 pid=780d
options snd_hda_intel index=1 vid=1002 pid=1314

Try one of the above two examples. Note that possibly this could even be done on one line instead with the following (BUT do not use this - as I am really speculating in this later example) :


options snd-hda-intel index=0,1 vid=0x1022,0x1002 pid=0x780d,0x1314

Not knowing what else is in the 50-sound.conf file could mean that there will be problems that I can not predict (as I do not know what you have in that file currently). Again reboot and test. You will need to run pavucontrol again to re-assign devices (assuming you did such earlier).

Good luck and let us know how it turns out.

Hi
Thanks for the help oldcpu !
Before I do that, here’s my 50-sound.config. You’ll see that I’ve try to follow the opensuse wiki on the hda-intel.


options snd-hda-intel model=laptop-amic
options snd slots=snd-hda-intel,snd-hda-intel
# mnDB.N2cENQ8rs23:Wrestler HDMI Audio
alias snd-card-1 snd-hda-intel id=HDMI index=1
# 5Dex.UMaa7P4jT14:FCH Azalia Controller
alias snd-card-0 snd-hda-intel id=ALC269VB index=0

But, I still get confuse with alsa and pulse and the yast sound config. Not sure what is reading and controlling what…

Should I remove pulse audio and pavucontrol before this changes ? To see if this works with just the alsa config ? Or it doesn’t matter ?

Thanks

IMO no in essence all these sound things alre4 layered like a birthday cake you should keep all the layers

Do not remove pulse audio, nor remove pavucontrol. Not yet. Do not change too much at a time.

Your 50-sound.conf file is not straight forward. I am VERY surprised to see such a custom configuration. Is the options model=laptop-amic necessary ?

Try this first replacing all the content with only these two lines


options snd_hda_intel index=0 vid=1022 pid=780d
options snd_hda_intel index=1 vid=1002 pid=1314 

reboot and test.

If that fails, then try this and


options snd_hda_intel index=0 model=laptop-amic vid=1022 pid=780d
options snd_hda_intel index=1 vid=1002 pid=1314 
alias snd-card-0 snd-hda-intel id=ALC269VB index=0
alias snd-card-1 snd-hda-intel id=HDMI index=1

lol!ahaha
That did the trick!
Now my laptop keys are working, in sync with the pulse-audio volume, and the notify popup !
I even removed the desktop-shortcuts keys for volume.
Only one small issue… I can mute. I can’t un-mute (?) :slight_smile:

So , my 50-sound.conf is as such


options snd_hda_intel index=0 model=laptop-amic vid=1022 pid=780d
options snd_hda_intel index=1 model=laptop-amic vid=1002 pid=1314
# 5Dex.UMaa7P4jT14:FCH Azalia Controller
alias snd-card-0 snd-hda-intel id=ALC269VB index=0
# mnDB.N2cENQ8rs23:Wrestler HDMI Audio
alias snd-card-1 snd-hda-intel id=HDMI index=1

One thing that I don’t get it, is that in the 50-sound , I’ve placed the id given aplay -l

daniel@linux-7ya6:~> aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: Generic_1 [HD-Audio Generic], device 0: ALC269VB Analog [ALC269VB Analog]
  Subdevices: 0/1
  Subdevice #0: subdevice #0
card 1: Generic [HD-Audio Generic], device 3: HDMI 0 [HDMI 0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

I thought that the ID would be the HDMI and ALC269VB
But doing a

daniel@linux-7ya6:~> cat /proc/asound/card0/id
Generic_1
daniel@linux-7ya6:~> cat /proc/asound/card1/id
Generic

So I guess the ID is generic and generic_1
Perhaps it’s better to change the ID’s to generic in 50-sound ?

Anyway, it’s looks and works much better now.

Thanks ! Really appreciated!

[QUOTE=oldcpu;2746473

I am VERY surprised to see such a custom configuration. Is the options model=laptop-amic necessary ?

[/QUOTE]

Following the wiki , I've search in the alsa HD-models , and that was the model for this codec (or the other way around) ..... so I've placed there.

Not sure if it's necessary. I mean, in fact, if I use a installation with KDE, the sound works out of the box... 

Thanks

That’s good news !

I recommend you do NOT use YaST > Hardware > Sound now, as that will wipe out this custom configuration. The YaST sound configuration module is not setup to deal with this level of customisation.

I do not believe I can help with this mute/un-mute key functionality.

I recommend you remove the “model=laptop-amic” for the HDMI device, and consider removing it for the analog audio also … i.e. as a minimum try


options snd_hda_intel index=0 model=laptop-amic vid=1022 pid=780d
options snd_hda_intel index=1 vid=1002 pid=1314
# 5Dex.UMaa7P4jT14:FCH Azalia Controller
alias snd-card-0 snd-hda-intel id=ALC269VB index=0
# mnDB.N2cENQ8rs23:Wrestler HDMI Audio
alias snd-card-1 snd-hda-intel id=HDMI index=1

I do not know the relevance of this “ID” that you refer to.

I do note your devices now are :

  • analog audio is: hw:0,0
  • HDMI audio is: hw:1,3

Thanks
I’ve become aware, that the un-mute it’s a bug in xfce volumed : https://bugs.launchpad.net/xfce4-volumed/+bug/883485

Trying to search and find a solution for that.

I’ll be removing the model and id from the 50-sound.

Thanks a lot for the help !