No sound :(

Hi, I’m using openSUSE 13.1, I have onboard sound but I also have a Soundbalster Z (I don’t use the onboard sound).

Anyway there’s no sound in Suse, maybe it’s set to use my onboard sound? Possibly but I’m such a linux noob I have no idea how to check and change it :slight_smile:

Type this in terminal and post the output in code.

aplay -l

the ‘l’ is small letter L

aplay -L

There might be someone who can help you.

Here is the output:

calvin@linux-kmee:~> aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: PCH [HDA Intel PCH], device 0: ALC1150 Analog [ALC1150 Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 1: ALC1150 Digital [ALC1150 Digital]
  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
card 2: Creative [HDA Creative], device 0: CA0132 Analog [CA0132 Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 2: Creative [HDA Creative], device 1: CA0132 Digital [CA0132 Digital]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
calvin@linux-kmee:~> 


Post also the output of

aplay -L

OK.

calvin@linux-kmee:~> aplay -L null     Discard all samples (playback) or generate zero samples (capture) default     Default ALSA Output (currently PulseAudio Sound Server) sysdefault:CARD=PCH     HDA Intel PCH, ALC1150 Analog     Default Audio Device front:CARD=PCH,DEV=0     HDA Intel PCH, ALC1150 Analog     Front speakers surround40:CARD=PCH,DEV=0     HDA Intel PCH, ALC1150 Analog     4.0 Surround output to Front and Rear speakers surround41:CARD=PCH,DEV=0     HDA Intel PCH, ALC1150 Analog     4.1 Surround output to Front, Rear and Subwoofer speakers surround50:CARD=PCH,DEV=0     HDA Intel PCH, ALC1150 Analog     5.0 Surround output to Front, Center and Rear speakers surround51:CARD=PCH,DEV=0     HDA Intel PCH, ALC1150 Analog     5.1 Surround output to Front, Center, Rear and Subwoofer speakers surround71:CARD=PCH,DEV=0     HDA Intel PCH, ALC1150 Analog     7.1 Surround output to Front, Center, Side, Rear and Woofer speakers iec958:CARD=PCH,DEV=0     HDA Intel PCH, ALC1150 Digital     IEC958 (S/PDIF) Digital Audio Output hdmi:CARD=NVidia,DEV=0     HDA NVidia, HDMI 0     HDMI Audio Output hdmi:CARD=NVidia,DEV=1     HDA NVidia, HDMI 1     HDMI Audio Output hdmi:CARD=NVidia,DEV=2     HDA NVidia, HDMI 2     HDMI Audio Output hdmi:CARD=NVidia,DEV=3     HDA NVidia, HDMI 3     HDMI Audio Output sysdefault:CARD=Creative     HDA Creative, CA0132 Analog     Default Audio Device front:CARD=Creative,DEV=0     HDA Creative, CA0132 Analog     Front speakers surround40:CARD=Creative,DEV=0     HDA Creative, CA0132 Analog     4.0 Surround output to Front and Rear speakers surround41:CARD=Creative,DEV=0     HDA Creative, CA0132 Analog     4.1 Surround output to Front, Rear and Subwoofer speakers surround50:CARD=Creative,DEV=0     HDA Creative, CA0132 Analog     5.0 Surround output to Front, Center and Rear speakers surround51:CARD=Creative,DEV=0     HDA Creative, CA0132 Analog     5.1 Surround output to Front, Center, Rear and Subwoofer speakers surround71:CARD=Creative,DEV=0     HDA Creative, CA0132 Analog     7.1 Surround output to Front, Center, Side, Rear and Woofer speakers iec958:CARD=Creative,DEV=0     HDA Creative, CA0132 Digital     IEC958 (S/PDIF) Digital Audio Output calvin@linux-kmee:~>  


I don’t know why the formatting is messed up :confused:

Yes it is unreadable.

Can you please post the output again of

aplay -L

Be sure to make it good like when you post the output of aplay -l

There might be a chance an expert in this area will be able to help you.

I copied and pasted them both in exactly the same way, I understand why the formatting went bad. I’ll try again in a minute.

The formatting won’t display properly so I took a screenshot of the output instead.

Hi there,

To set your default audio card to use do the following:

  1. Open YAST (need root password). Go to Hardware -> Sound.
  2. Select the card you want from the list to be primary, go to Other (on the lower right), select the Set as Primary card option.
  3. Select other card (onboard) click delete to disable it. Won’t show in your audio devices anymore. A better option would be to go to your BIOS settings and disable the onboard soundcard from there.
  4. Install pavucontrol (search for it in Yast -> Software Management). This will allow you to better control your audio setup, changing default profiles, outputs and inputs of cards, volume levels etc. It’s a must if using Pulseaudio (default on OpenSUSE).
  5. Optional: As per https://features.opensuse.org/310668 (please vote), changing the /etc/pulse/daemon.conf line ; flat-volumes = yes to flat-volumes = no (mind the ; missing from the begging of the line), will make you master audio level not get changed by changing another app’s volume level. Makes for a better audio session than the current default.
  6. Reboot so the changes take effect.
  7. Enjoy.

I’ve done that but, I still have no sound. :frowning:

Review the following

http://en.opensuse.org/SDB:Audio_troubleshooting#STEP-1:_How_to_test_your_sound

Execute the ‘speaker-test’ commands suggested there, or try

speaker-test -D default -c 6 -t wav

If you cannot get sound with the ‘speaker-test’ commands, then move on to diagnostics section: STEP-3: Checking your audio setup for detailed information. In particular, you should run the diagnostic script (as root)

/usr/sbin/alsa-info.sh

Often the first time you run this script, it will note there is an update available, and ask if you wish to update. Select YES. If you are running this in a terminal/konsole with root permissions, the script will update. Then run the script a second time. When it is complete, it will pass you a URL. Take a look at the contents of the URL, as it passes to you useful information. Also keep a record of the URL provided by the script as it can come in useful for passing to others who are trying to assist you (on one of the forums, or on an IRC channel). Then go to the next step of this guide.

You can share the link here.

In addition to following deano_ferrari’s recommendation, please also look at these two blog entries, which give an explanation how to handle two audio devices with pulse audio:

It is possible your PC is sending audio to an unused audio device.

In Phonon my card wasn’t at the top, and use pulseaudio support was not checked. After correcting them, I still have no sound :confused:

Here’s the link you wanted.

I’ve looked through all the links posted and followed along but my sound still doesn’t work.

I note the following on your 64-bit openSUSE-13.1 on an MSI PC … where I note:


Realtek ALC1150
Codec: Nvidia GPU 40 HDMI/DP
Codec: Creative CA0132

which corresponds to your MSI PC’s onboard sound, the onboard HDMI sound, and the creative sound device (sound blaster Z).

Further I note the following:


APLAY

**** List of PLAYBACK Hardware Devices ****
**card 0**: PCH [HDA Intel PCH], **device 0**: ALC1150 Analog [ALC1150 Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
**card 0**: PCH [HDA Intel PCH], **device 1:** ALC1150 Digital [ALC1150 Digital]
  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
**card 2**: Creative [HDA Creative], **device 0**: CA0132 Analog [CA0132 Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
**card 2:** Creative [HDA Creative], **device 1:** CA0132 Digital [CA0132 Digital]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

From which we can see that:

  • hw0:0 and hw0:1 correspond to your onboard sound device (analog and digital)
  • hw1,3 and hw1,7 and hw1,8 and hw1,9 correspond to your HDMI 0, 1, 2, 3
  • hw2,0 and hw2,1 correspond to your Creative sound blaster analog and digital audio

So lets try this in a konsole to push sound through your Creative sound blaster , with a direct alsa utility app, which will bypass pulse audio (note I don’t recommend bypassing pulse audio nominally - I am just trying to locate the problem area):


speaker-test -c2 -D hw:2,0  -l1 -twav

and if that gives no sound try this:


speaker-test -c2 -D hw:2,1  -l1 -twav

try both as a regular user, and also try with root permissions.

Do either of those yield any sound ?

Be 100% certain you have your speaker cables plugged in to the correct output slot.

Here’s the output:

calvin@linux-kmee:~> speaker-test -c2 -D hw:2,0  -l1 -twav

speaker-test 1.0.27.2

Playback device is hw:2,0
Stream parameters are 48000Hz, S16_LE, 2 channels
WAV file(s)
ALSA lib pcm_hw.c:1667:(_snd_pcm_hw_open) Invalid value for card
Playback open error: -2,No such file or directory


calvin@linux-kmee:~> speaker-test -c2 -D hw:2,1  -l1 -twav

speaker-test 1.0.27.2

Playback device is hw:2,1
Stream parameters are 48000Hz, S16_LE, 2 channels
WAV file(s)
ALSA lib pcm_hw.c:1667:(_snd_pcm_hw_open) Invalid value for card
Playback open error: -2,No such file or directory

There was no sound though. I tried as root too, same output.

Could it be you changed the order of your sound devices prior to sending that command ? It should work. aplay clearly indicated hw:2,0 and hw:2,1 as your sound blaster.

Another possibility is that you do not have alsa-utils installed.

Please force a re-install of alsa-utils .

and then try the following commands (as both a regular user, and also as root) :


speaker-test -c2 -D hw:0,0  -l1 -twav
speaker-test -c2 -D hw:0,1  -l1 -twav
speaker-test -c2 -D hw:1,0  -l1 -twav
speaker-test -c2 -D hw:1,1  -l1 -twav
speaker-test -c2 -D hw:2,0  -l1 -twav
speaker-test -c2 -D hw:2,1  -l1 -twav 

where you need alsa-utils installed for the -twav to work .

Another possibility is a permissions issue, but trying with root permissions has likely eliminated that possibility.

That’s very possible but I don’t remember, sorry. In yast it seems to be set as device 0.

I’m afraid I don’t know how to do that :shame:

I’m afraid I don’t know how to do that :shame:

In a terminal window, do

sudo zypper in --force alsa-utils

I forced the reinstall, it was already installed.

Thankyou. The idea behind forcing was to address the possibility of a bad install. So now then reboot and send the command in a terminal:


aplay -l

(thats a lower case ‘L’ ) and post here the output.

and then assuming your creative card is card2 (c2) send the command to test the mixer settings:


amixer -c2

and post here the output

and assuming your creative card devices are hw:2,0 and hw:2,1 please again send the command (as both a regular user and as user root) where I have a 2-channel setting :


speaker-test -c2 -D hw:2,0  -l1 -twav
speaker-test -c2 -D hw:2,1  -l1 -twav

posting here the output (so we can confirm same error as before) and also advise if you hear the test sound

Thankyou.