OpenSuse 11.2 : Sound not works

fresh install OpenSuse 11.2 + kde4.
all updates from updates: repo. Only official.

under user:

> alsamixer
cannot open mixer: Permission denied

Critical: Cannot open ALSA driver for PCM playback: Permission denied

run sip client :
Critical: Cannot open ALSA driver for PCM playback: Permission denied
Critical: Cannot open ALSA driver for PCM playback: Permission denied
Twinkle 1.4.2, 25 February 2009

But under root mixer works :
sudo alsamixer

I reconfigure sound card by YaST, but problem still have.

What I can do for repair sound ?
What right add to my user (non-root) ?
(Hardware is working)

less /tmp/alsa-info.txt.nXMrU93Uap

!!################################
!!ALSA Information Script v 0.4.58
!!################################

!!Script ran on: Mon Apr 5 12:33:35 UTC 2010

!!Linux Distribution
!!------------------

Welcome to openSUSE 11.2 “Emerald” - Kernel \r (\l). openSUSE 11.2 (x86_64)

!!DMI Information
!!---------------

Manufacturer:
Product Name:

!!Kernel Information
!!------------------

Kernel release: 2.6.31.12-0.2-desktop
Operating System: GNU/Linux
Architecture: x86_64
Processor: x86_64
SMP Enabled: Yes

0 [Intel ]: HDA-Intel - HDA Intel
HDA Intel at 0xe8220000 irq 22

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

00:1b.0 Audio device: Intel Corporation 82801I (ICH9 Family) HD Audio Controller (rev 02)

!!Advanced information - PCI Vendor/Device/Susbsystem ID’s
!!--------------------------------------------------------

00:1b.0 0403: 8086:293e (rev 02)
Subsystem: 8086:3001

!!Loaded sound module options
!!--------------------------

!!Module: snd_hda_intel
bdl_pos_adj : 1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1
,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1
enable : Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y
enable_msi : 0
id : <NULL>,<NULL>,<NULL>,<NULL>,<NULL>,<NULL>,<NULL>,<NULL>,<NULL>,<NUL
L>,<NULL>,<NULL>,<NULL>,<NULL>,<NULL>,<NULL>,<NULL>,<NULL>,<NULL>,<NULL>,<NULL>,
<NULL>,<NULL>,<NULL>,<NULL>,<NULL>,<NULL>,<NULL>,<NULL>,<NULL>,<NULL>,<NULL>
index : -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-
1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1
model : <NULL>,<NULL>,<NULL>,<NULL>,<NULL>,<NULL>,<NULL>,<NULL>,<NULL>,<
NULL>,<NULL>,<NULL>,<NULL>,<NULL>,<NULL>,<NULL>,<NULL>,<NULL>,<NULL>,<NULL>,<NUL
L>,<NULL>,<NULL>,<NULL>,<NULL>,<NULL>,<NULL>,<NULL>,<NULL>,<NULL>,<NULL>,<NULL>
patch : <NULL>,<NULL>,<NULL>,<NULL>,<NULL>,<NULL>,<NULL>,<NULL>,<NULL>,<
NULL>,<NULL>,<NULL>,<NULL>,<NULL>,<NULL>,<NULL>,<NULL>,<NULL>,<NULL>,<NULL>,<NUL
L>,<NULL>,<NULL>,<NULL>,<NULL>,<NULL>,<NULL>,<NULL>,<NULL>,<NULL>,<NULL>,<NULL>
position_fix : 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
power_save : 0
power_save_controller : Y
probe_mask : -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1
probe_only : N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N
single_cmd : N

!!HDA-Intel Codec information
!!---------------------------
–startcollapse–

Codec: SigmaTel STAC9271D
Address: 2
Function Id: 0x1
Vendor Id: 0x83847627
Subsystem Id: 0x80863001
Revision Id: 0x100201
No Modem Function Group found
Default PCM:
rates [0x7e0]: 44100 48000 88200 96000 176400 192000
bits [0xe]: 16 20 24
formats [0x1]: PCM


~> zypper lr -d

| Alias | Name | Enabled | Refresh | Priority | Type | URI | Service

–±------------------------------------±----------------------------±--------±--------±---------±-------±----------------------------------------------------------------±-------
1 | http-download.opensuse.org-33242215 | Updates for openSUSE 11.2-0 | Yes | Yes | 99 | rpm-md | Index of /update/11.2 |
2 | openSUSE 11.2-0 | openSUSE 11.2-0 | Yes | No | 99 | yast2 | cd:/// |
3 | repo-debug | openSUSE-11.2-Debug | No | Yes | 99 | NONE | Index of /debug/distribution/11.2/repo/oss |
4 | repo-non-oss | openSUSE-11.2-Non-Oss | Yes | Yes | 99 | yast2 | Index of /distribution/11.2/repo/non-oss |
5 | repo-oss | openSUSE-11.2-Oss | Yes | Yes | 99 | yast2 | Index of /distribution/11.2/repo/oss |
6 | repo-source | openSUSE-11.2-Source | No | Yes | 99 | NONE | Index of /source/distribution/11.2/repo/oss |

evgeniy_10, I can’t help you with the truncated in incomplete information provided. But thanks for making the effort as that is more than what most users with a sound problem provide.

Please provide the information recommended to be provided in the second half of the multimedia stickie, … and I quote the second half: Welcome to multimedia sub-area - openSUSE Forums

please post … the following information:

  • provide the URLs (of a summary webpage) that are created by running the diagnostic script noted here:
    SDB:AudioTroubleshooting - openSUSE - Script to run to obtain detailed information. On openSUSE-11.1 and newer that will ask you to run the script /usr/sbin/alsa-info.sh and after the script finishes it will give you a URL to pass to the support personnel. Please post here the output URL. Just the URL. You may need to run that script twice (the first time with root permissions to update in the /usr/sbin directory, and the second time to get the URL).
  • in a terminal, or xterm, or konsole, type: rpm -qa ‘alsa#and post output here
  • in a terminal, or xterm, or konsole, type: rpm -qa ‘pulse#and post output here
  • in a terminal, or xterm, or konsole, type: rpm -q libasound2 #and post output here
  • in a terminal, or xterm, or konsole, type: uname -a #and post output here
  • for openSUSE-11.2 or later, in a terminal, or xterm, or konsole, type: cat /etc/modprobe.d/50-sound.conf #and post output here

Note if you do not get a URL from running /usr/sbin/alsa-info.sh, then instead running it like this:

/usr/sbin/alsa-info.sh --no-upload

and then open up the file /tmp/alsa-info.txt with a text editor and copy and paste it to this web site PasteBin.be and press ‘dump’ on that site and post here the URL it provides. Just the URL.

Please do NOT clutter up this thread with excessive posts of script outputs.

Thanks and good luck.

solution is simple:

add user to “audio” group and re-login && restart services.

Why install scripts don’t add user to “audio” group ?

evgeniy not every (in fact most) hardware needs the user added to group ‘audio’. However alsa is developed in the open Source community, and a small number of developers wrote the code in the driver for their hardware requiring the user be part of group “audio”. Unfortunately there was not consistency between the many contributers to the driver.

Hence the problem you encountered.

At least that is my assessment.

Thank you guys!

Adding user to ‘audio’ group worked for me too.:slight_smile:

I am having trouble on my Dell Laptop D630 ever since I upgraded to 2.6.31 kernel.

I can set my sound card - play a test sound and then when i save it, I lose sound.

The last line of output from dmesg :

HDA Intel 0000:00:1b.0: PCI INT A disabled

I’ve seen a lot of conflicting stuff out there and most of it predates the switch from alsaconf to udev… Maybe I need straigtened out here ?

Any help appreciated.

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

knix-laptop:/var/log # cat /etc/modprobe.d/50-sound.conf

options snd slots=snd-hda-intel

u1Nb.0CMh_00Dca3:Dell Latitude D630

alias snd-card-0 snd-hda-intel
knix-laptop:/var/log # rpm -qa ‘alsa
alsa-tools-1.0.21-2.5.x86_64
alsamixergui-0.9.0rc1-743.1.x86_64
alsa-plugins-pulse-32bit-1.0.21-3.3.x86_64
alsa-plugins-1.0.21-3.3.x86_64
alsa-utils-1.0.21-3.1.x86_64
alsa-plugins-pulse-1.0.21-3.3.x86_64
alsa-oss-32bit-1.0.17-25.2.x86_64
alsa-docs-1.0.21-3.2.noarch
alsa-tools-gui-1.0.21-2.5.x86_64
alsa-plugins-32bit-1.0.21-3.3.x86_64
alsa-oss-1.0.17-25.2.x86_64
alsaplayer-0.99.80-1.pm.1.1.x86_64
kalsatools-1.5.0-598.1.x86_64
alsa-1.0.21-3.2.x86_64
alsa-firmware-1.0.20-3.2.noarch
knix-laptop:/var/log # rpm -qa ‘pulse
libpulse-browse0-0.9.21-1.2.1.x86_64
alsa-plugins-pulse-32bit-1.0.21-3.3.x86_64
pulseaudio-module-bluetooth-0.9.21-1.2.1.x86_64
pulseaudio-0.9.21-1.2.1.x86_64
pulseaudio-lang-0.9.21-1.2.1.noarch
alsa-plugins-pulse-1.0.21-3.3.x86_64
libpulse-mainloop-glib0-0.9.21-1.2.1.x86_64
pulseaudio-esound-compat-0.9.21-1.2.1.x86_64
libpulse0-0.9.21-1.2.1.x86_64
pulseaudio-module-zeroconf-0.9.21-1.2.1.x86_64
libxine1-pulse-1.1.17-1.pm.26.2.x86_64
pulseaudio-module-lirc-0.9.21-1.2.1.x86_64
pulseaudio-utils-0.9.21-1.2.1.x86_64
libpulse0-32bit-0.9.21-1.2.1.x86_64
pulseaudio-module-x11-0.9.21-1.2.1.x86_64
pulseaudio-module-gconf-0.9.21-1.2.1.x86_64
pulseaudio-module-jack-0.9.21-1.2.1.x86_64
knix-laptop:/var/log # rpm -q libasound2
libasound2-1.0.21-3.2.x86_64
knix-laptop:/var/log # uname -a
Linux knix-laptop 2.6.31.12-0.2-desktop #1 SMP PREEMPT 2010-03-16 21:25:39 +0100 x86_64 x86_64 x86_64 GNU/Linux

According to that your sound card is not even detected.

Do you even get any sound in the yast > hardware > sound configuration ?

Do you see any error indication in the dmesg of your sound device not being detected ? Do NOT post the dmesg output here. If necessary post it on a pastebin site such as PasteBin.be.

If you need help doing any of the above please advise.

Yes I do get sound when I configure it in YAST and choose the “Play test sound” but as soon as I say OK to save it …it breaks again.

Add your regular user to group audio , restart your computer, and try again.

Do you need help in figuring out how to add a user to a group ?

what is your criteria for saying it is broken ? ie. what application ? what speaker-test ?

I had it working but broke again on reboot. I can’t seem to re-create the scenario either. It was some combination of removing the soundcard with yast…rebooting…adding a new card… but I missing something.

to answer your question…

knix-laptop:~ # aplay -l
aplay: device_list:223: no soundcards found…
knix-laptop:~ #

but if i open YAST and configure a card…

knix-laptop:~ # aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: Intel [HDA Intel], device 0: STAC92xx Analog [STAC92xx Analog]
Subdevices: 0/1
Subdevice #0: subdevice #0
card 0: Intel [HDA Intel], device 1: STAC92xx Digital [STAC92xx Digital]
Subdevices: 1/1
Subdevice #0: subdevice #0

test sound works and everything

as soon as I save it…(in YAST that is)

knix-laptop:~ # aplay -l
aplay: device_list:223: no soundcards found…
knix-laptop:~ #

here is the last few lines of dmesg if it helps…
2936.540954] HDA Intel 0000:00:1b.0: PCI INT A → GSI 21 (level, low) → IRQ 21
2936.540993] HDA Intel 0000:00:1b.0: setting latency timer to 64
2936.587798] ALSA /usr/src/packages/BUILD/kernel-desktop-2.6.31.12/linux-2.6.31/sound/pci/hda/hda_codec.c:3881: autoconfig: line_outs=1 (0xd/0x0/0x0/0x0/0x0)
2936.587804] ALSA /usr/src/packages/BUILD/kernel-desktop-2.6.31.12/linux-2.6.31/sound/pci/hda/hda_codec.c:3885: speaker_outs=0 (0x0/0x0/0x0/0x0/0x0)
2936.587815] ALSA /usr/src/packages/BUILD/kernel-desktop-2.6.31.12/linux-2.6.31/sound/pci/hda/hda_codec.c:3889: hp_outs=1 (0xa/0x0/0x0/0x0/0x0)
2936.587819] ALSA /usr/src/packages/BUILD/kernel-desktop-2.6.31.12/linux-2.6.31/sound/pci/hda/hda_codec.c:3890: mono: mono_out=0x0
2936.587822] ALSA /usr/src/packages/BUILD/kernel-desktop-2.6.31.12/linux-2.6.31/sound/pci/hda/hda_codec.c:3893: dig-out=0x21/0x0
2936.587825] ALSA /usr/src/packages/BUILD/kernel-desktop-2.6.31.12/linux-2.6.31/sound/pci/hda/hda_codec.c:3901: inputs: mic=0xb, fmic=0xc, line=0x0, fline=0x0, cd=0x0, aux=0x0
2936.589117] ALSA /usr/src/packages/BUILD/kernel-desktop-2.6.31.12/linux-2.6.31/sound/pci/hda/patch_sigmatel.c:2974: stac92xx: dac_nids=1 (0x10/0x0/0x0/0x0/0x0)
2936.589413] input: HDA Digital PCBeep as /devices/pci0000:00/0000:00:1b.0/input/input27
2936.598973] input: HDA Intel Mic at Ext Left Jack as /devices/pci0000:00/0000:00:1b.0/sound/card0/input28
2936.599098] input: HDA Intel HP Out at Ext Left Jack as /devices/pci0000:00/0000:00:1b.0/sound/card0/input29
2937.637021] ALSA /usr/src/packages/BUILD/kernel-desktop-2.6.31.12/linux-2.6.31/sound/pci/hda/hda_intel.c:698: azx_get_response timeout, switching to polling mode: last cmd=0x00bf0700
3011.459466] HDA Intel 0000:00:1b.0: PCI INT A disabled
3011.640161] HDA Intel 0000:00:1b.0: PCI INT A → GSI 21 (level, low) → IRQ 21
3011.640207] HDA Intel 0000:00:1b.0: setting latency timer to 64
3011.648202] ALSA /usr/src/packages/BUILD/kernel-desktop-2.6.31.12/linux-2.6.31/sound/pci/hda/hda_intel.c:757: get_response timeout: IRS=0x1
3011.648212] ALSA /usr/src/packages/BUILD/kernel-desktop-2.6.31.12/linux-2.6.31/sound/pci/hda/hda_intel.c:1381: Codec #0 probe error; disabling it…
3011.656146] ALSA /usr/src/packages/BUILD/kernel-desktop-2.6.31.12/linux-2.6.31/sound/pci/hda/hda_intel.c:757: get_response timeout: IRS=0x1
3011.656268] ALSA /usr/src/packages/BUILD/kernel-desktop-2.6.31.12/linux-2.6.31/sound/pci/hda/hda_intel.c:785: send_cmd timeout: IRS=0x1, val=0xf0000
3011.656388] ALSA /usr/src/packages/BUILD/kernel-desktop-2.6.31.12/linux-2.6.31/sound/pci/hda/hda_intel.c:785: send_cmd timeout: IRS=0x1, val=0xf0001
3011.656516] ALSA /usr/src/packages/BUILD/kernel-desktop-2.6.31.12/linux-2.6.31/sound/pci/hda/hda_intel.c:785: send_cmd timeout: IRS=0x1, val=0xf0002
3011.656635] ALSA /usr/src/packages/BUILD/kernel-desktop-2.6.31.12/linux-2.6.31/sound/pci/hda/hda_intel.c:785: send_cmd timeout: IRS=0x1, val=0xf0004
3011.656640] ALSA /usr/src/packages/BUILD/kernel-desktop-2.6.31.12/linux-2.6.31/sound/pci/hda/hda_intel.c:1407: no codecs initialized
3011.656738] HDA Intel 0000:00:1b.0: PCI INT A disabled

When I read that, I see this:

!!Modprobe options (Sound related)
!!--------------------------------

snd-hda-intel: model=ref
snd-hda-intel: single_cmd=1
snd-hda-intel: model=ref
snd-hda-intel: single_cmd=1
That suggests a bunch of options in your 50-sound.conf file.

Yet you gave me this:

Those are inconsistent. They conflict with each other, and it suggests you ran the script, got some results, changed things, rebooted , ran some commands, and got different results, and then posted the entire mess.

If so, I can’t make sense of the mess.

You need to do this with a consistent baseline. Do NOT change things in the middle of giving me information, unless you tell me what you changed.

So please

(1) add your user to group audio (in case there is a permissions problem). That can be done via YaST > Security and Users > User and Group Management. Don’t mess around there. Just add the user to group audio. Nothing more.

(2) Delete the /etc/modprobe.d/50-sound.conf file. Then go to YaST, and configure your sound. Then exit YaST.

(3) Then test your audio. Ensure mixer volumes (if you have a mixer) are moved up.

(4) re-run the script:

/usr/sbin/alsa-info.sh

and select the SHARE/UPLOAD option and provide here the URL it gives. Just the URL

Guilty! Sorry about that I just keep trying “one more thing…”

Thanx for your help.

knix-laptop:/etc # cat group
at:!:25:
audio:x:17:knic,pulse
avahi:!:104:

knix-laptop:/etc/modprobe.d # rm 50-sound.conf
knix-laptop:/etc/modprobe.d # aplay -l
aplay: device_list:223: no soundcards found…
knix-laptop:/etc/modprobe.d #
run yast
knix-laptop:/etc/modprobe.d # aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: Intel [HDA Intel], device 0: STAC92xx Analog [STAC92xx Analog]
Subdevices: 0/1
Subdevice #0: subdevice #0
card 0: Intel [HDA Intel], device 1: STAC92xx Digital [STAC92xx Digital]
Subdevices: 1/1
Subdevice #0: subdevice #0
knix-laptop:/etc/modprobe.d #
exit yast
knix-laptop:/etc/modprobe.d # aplay -l
aplay: device_list:223: no soundcards found…
knix-laptop:/etc/modprobe.d #
http://www.alsa-project.org/db/?f=5fc1ba6439c72c924173616a4ca2bd84afebf83b

That should do it.

This has me puzzled in the script:

!!Modprobe options (Sound related)
!!--------------------------------

snd-hda-intel: model=dell-m43
snd-hda-intel: single_cmd=1

Did you add the model option “dell-m43” and “single_cmd=1” when you configured in YAST ? If you did, please do NOT in the future. It just confuses things for me.

What is the output of:

cat /etc/modprobe.d/50-sound.conf

Have you tried restarting since configuring in YaST

Looks like alsa-base.conf was left over from yesterdays debugging

knix-laptop:/etc/modprobe.d # ls
00-system.conf 50-broadcom-wl-blacklist.conf 50-sound.conf alsa-base.conf
10-unsupported-modules.conf 50-ipv6.conf 50-sound.conf.YaST2save nvidia.conf
50-blacklist.conf 50-ipw2200.conf 50-thinkpad_acpi.conf
50-blacklist.conf.rpmorig 50-nvidia.conf 50-tv.conf
50-bluetooth.conf 50-prism54.conf 99-local.conf
knix-laptop:/etc/modprobe.d # cat alsa-base.conf
options snd-hda-intel model=dell-m43
options snd-hda-intel single_cmd=1
knix-laptop:/etc/modprobe.d # cat 50-sound.conf

options snd slots=snd-hda-intel

u1Nb.0CMh_00Dca3:Dell Latitude D630

alias snd-card-0 snd-hda-intel
knix-laptop:/etc/modprobe.d #

i have just booted my laptop

here is a snippett of dmesg (related to sound)
IR/IT contexts=[8/8]
28.363744] sr 0:0:0:0: Attached scsi CD-ROM sr0
28.365303] yenta_cardbus 0000:03:01.0: CardBus bridge found [1028:01f9]
28.374112] yenta_cardbus 0000:03:01.0: O2: res at 0x94/0xD4: 00/ea
28.383143] yenta_cardbus 0000:03:01.0: O2: enabling read prefetch/write burst
28.394237] ALSA /usr/src/packages/BUILD/kernel-desktop-2.6.31.12/linux-2.6.31/sound/pci/hda/hda_intel.c:757: get_response timeout: IRS=0x1
28.394242] ALSA /usr/src/packages/BUILD/kernel-desktop-2.6.31.12/linux-2.6.31/sound/pci/hda/hda_intel.c:1381: Codec #0 probe error; disabling it…
28.420153] ALSA /usr/src/packages/BUILD/kernel-desktop-2.6.31.12/linux-2.6.31/sound/pci/hda/hda_intel.c:757: get_response timeout: IRS=0x1
28.420285] ALSA /usr/src/packages/BUILD/kernel-desktop-2.6.31.12/linux-2.6.31/sound/pci/hda/hda_intel.c:785: send_cmd timeout: IRS=0x1, val=0xf0000
28.420405] ALSA /usr/src/packages/BUILD/kernel-desktop-2.6.31.12/linux-2.6.31/sound/pci/hda/hda_intel.c:785: send_cmd timeout: IRS=0x1, val=0xf0001
28.420517] ALSA /usr/src/packages/BUILD/kernel-desktop-2.6.31.12/linux-2.6.31/sound/pci/hda/hda_intel.c:785: send_cmd timeout: IRS=0x1, val=0xf0002
28.420651] ALSA /usr/src/packages/BUILD/kernel-desktop-2.6.31.12/linux-2.6.31/sound/pci/hda/hda_intel.c:785: send_cmd timeout: IRS=0x1, val=0xf0004
28.420657] ALSA /usr/src/packages/BUILD/kernel-desktop-2.6.31.12/linux-2.6.31/sound/pci/hda/hda_intel.c:1407: no codecs initialized
28.438740] HDA Intel 0000:00:1b.0: PCI INT A disabled
28.514947] yenta_cardbus 0000:03:01.0: ISA IRQ mask 0x0cb8, PCI irq 19
28.523840] yenta_cardbus 0000:03:01.0: Socket status: 30000006
28.532752] pci_bus 0000:03: Raising subordinate bus# of parent bus (#03) from #04 to #07

Hope this helps

You should not be touching alsa-base.conf.

Please put it back to its original default “as installed” configuration.

OK I was following some other advice from the net. What is the default? empty file?

In essence, put ALL audio files back to the default “as installed” configuration. I am not aware of openSUSE using an alsa-base.conf, so that should be removed.

I hope you did not edit the alsaconf file.

After you have done this (put everything back) , reboot and again run:

/usr/sbin/alsa-info.sh

and pass here the URL.

You may need to configure in YaST > Hardware > Sound, select the edit, and simply accept the default values. Do NOT innovate.

removed alsa-base.conf

Sound works after reboot.

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

Thanks for your patience. I won’t touch it again :shame: