Bug 462667

Summary: yast2 sound test disfunctional
Product: [openSUSE] openSUSE 11.1 Reporter: Dieter Jurzitza <dieter.jurzitza>
Component: YaST2Assignee: Takashi Iwai <tiwai>
Status: RESOLVED FIXED QA Contact: Jiri Srain <jsrain>
Severity: Major    
Priority: P3 - Medium CC: f.alabas, forgotten_7Vd19u3Vod, forgotten_m1ELUxQFxN, forgotten_N1m2whZ-xl, grey-olli, lslezak, michel.munnix, tiwai
Version: Final   
Target Milestone: ---   
Hardware: i586   
OS: openSUSE 11.1   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Attachments: hwinfo
Yast logs
dmesg
/etc/modprobe.d/sound
y2log

Description Dieter Jurzitza 2008-12-28 12:46:42 UTC
When installing a sound card within yast2 there is an option to perform a volume test (the menu on the right lower side of the panel) when configuring the sound card.

Unfortunately (testing with 3 different sound cards) there was never audible sound when entering the corresponding menu and pressing the test button though the sound works correctly apart from this effect. So, at first I thought there was something going wrong and reconfigured many times, however, it seems to be a yast2-issue here.

The volume settings were at 100%, from _this_ point I am sure it was not an user error.

Thank you for looking into this,
take care




Dieter Jurzitza
Comment 1 Fatih Alabas 2008-12-29 20:17:25 UTC
I exactly have the same issue. Yast2 seems to have a problem with sound test functionality for already working soundcard.
Comment 2 Forgotten User 7Vd19u3Vod 2008-12-30 20:41:11 UTC
Created attachment 262808 [details]
hwinfo
Comment 3 Forgotten User 7Vd19u3Vod 2008-12-30 20:41:54 UTC
I have exactly the same problem on three different systems:

- 64-bit system with mainboard Gigabyte GA-MA770-DS3, 
  onboard sound device Realtec ALC888
  upgraded from openSUSE 11.0 to 11.1, KDE4
  (see hwinfo, yst-logs and dmesg)
- 32-bit systems with mainboard ASRock K7S41GX, onboard sound device AC'97
  upgraded from openSUSE 10.3

A few more observations:
When loging in as a user to KDE (KDE3 or KDE4 on all systems) directly after after boot, the startup sound is not played. When I log out and login again, start and logout sounds are played. 
On the KDE4 system I get a message at login: "HDA ATI SB (ALC888 analog) is not working, falling back to Esound (ESD)". On KDE4 I can get the KDE startup sound to work (and the message to disappear) by giving Esound (ESD) a higher priority than HDA ATI SB (ALC888 analog) in the KDE desktop configuration tool.
kmix controls are working on all three systems, sound works for all applications I tested. The test sound in the YaST configuration tool works nowhere.
Comment 4 Forgotten User 7Vd19u3Vod 2008-12-30 20:44:27 UTC
Created attachment 262809 [details]
Yast logs
Comment 5 Forgotten User 7Vd19u3Vod 2008-12-30 20:45:14 UTC
Created attachment 262810 [details]
dmesg
Comment 6 Forgotten User 7Vd19u3Vod 2008-12-30 20:47:11 UTC
Created attachment 262811 [details]
/etc/modprobe.d/sound

I tried different configurations - no change of behaviour
Comment 7 Alexander Orlovskyy 2009-01-08 11:57:22 UTC
Reassign to yast2-maintainers.
Comment 8 Alexander Orlovskyy 2009-01-08 11:58:46 UTC
*** Bug 463419 has been marked as a duplicate of this bug. ***
Comment 9 Thomas Göttlicher 2009-01-08 12:55:30 UTC
Reassigning to yast2-sound maintainer.
Comment 14 michel munnix 2009-01-09 20:18:45 UTC
Have same issue here, from y2log debug mode:
2009-01-09 21:12:13 <0> linux-bcpx(5201) [agent-system] ../../libscr/src/include/scr/Y2AgentComponent.h(evaluate):99 Going toevaluate `Execute (.bash_background, "ALSA_CONFIG_PATH= /usr/bin/aplay -q -N -D default:0 /usr/share/sounds/alsa/test.wav > /dev/null 2>&1")

executing command from bash shows this error:

# /usr/bin/aplay -q -N -D default:0 /usr/share/sounds/alsa/test.wav
ALSA lib conf.c:3952:(snd_config_expand) Unknown parameters 0
ALSA lib pcm.c:2202:(snd_pcm_open_noupdate) Unknown PCM default:0
aplay: main:590: audio open error: Invalid argument

Comment 15 michel munnix 2009-01-09 21:46:13 UTC
# /usr/bin/aplay -q -N -D default /usr/share/sounds/alsa/test.wav

delete ":0" then sound test would work !
Comment 16 Forgotten User 7Vd19u3Vod 2009-01-10 10:33:43 UTC
I tried on bash:

alexande@asterix:~> /usr/bin/aplay -q -N -D default /usr/share/sound/alsa/test.wav

alexande@asterix:~> /usr/bin/aplay -q -N -D default:0 /usr/share/sounds/alsa/tes
t.wav

Both versions of the command execute without error message and play the sound.

Sound test from within YaST still does NOT work.

Please see attached y2log.
Comment 17 Forgotten User 7Vd19u3Vod 2009-01-10 10:35:33 UTC
Created attachment 264292 [details]
y2log
Comment 18 michel munnix 2009-01-10 12:05:39 UTC
Perhaps it's because my config is not the same, my sound card module is snd_usb_audio and my /etc/modprobe.d/sound contains :

options snd slots=snd-usb-audio
# uniq.unknown_key:USB Audio   
alias snd-card-0 snd-usb-audio

Alexander, could you try this command line "ALSA_CONFIG_PATH= /usr/bin/aplay -q -N -D
default:0 /usr/share/sounds/alsa/test.wav"
to unset ALSA_CONFIG_PATH like yast does it

otherwise I'll have to open a new bug report
Comment 19 Forgotten User 7Vd19u3Vod 2009-01-10 12:43:33 UTC
This is what I tried on a console:

asterix:~ # ALSA_CONFIG_PATH= /usr/bin/aplay -q -N -D default:0 /usr/share/sounds/alsa/test.wav
ALSA lib pcm.c:2202:(snd_pcm_open_noupdate) Unknown PCM default:0
aplay: main:590: audio open error: No such file or directory
>>> no sound <<<
asterix:~ # ALSA_CONFIG_PATH= /usr/bin/aplay -q -N -D default /usr/share/sounds/alsa/test.wav
ALSA lib pcm.c:2202:(snd_pcm_open_noupdate) Unknown PCM default
aplay: main:590: audio open error: No such file or directory
>>> no sound <<<
asterix:~ # ALSA_CONFIG_PATH= ;/usr/bin/aplay -q -N -D default:0 /usr/share/sounds/alsa/test.wav
>>> sound <<<
asterix:~ # ALSA_CONFIG_PATH= ;/usr/bin/aplay -q -N -D default /usr/share/sounds/alsa/test.wav
>>> sound <<<

Is it a scripting problem in YAST?
Comment 20 michel munnix 2009-01-10 13:50:10 UTC
I don't think so, it is there on purpose (no ";") :

/usr/share/YaST2/include/sound/volume_routines.ycp line 44:

            // unset ALSA_CONFIG_PATH (bnc#440981)
            : sformat(".bash_background, "ALSA_CONFIG_PATH= /usr/bin/aplay -v -N -D default:%1 %2", card_id, fname);

so we have basically the same problem, it's the developer's turn now
Comment 21 Takashi Iwai 2009-01-11 12:20:04 UTC
The problem is known and the fix was already on FACTORY (or the latest upstream).
Simply try the latest alsa.rpm and libasound2.rpm on FACTORY.

The fixed package was submitted to 11.1 but still pending.
Comment 22 Forgotten User m1ELUxQFxN 2009-01-11 17:58:20 UTC
Tested on the system described in duplicate bug 463419. Confirm that test sound in Yast2 is working correctly with the two updates from factory mentioned in the previous comment.
Comment 23 michel munnix 2009-01-11 19:32:40 UTC
On my system, factory updates fix also the problem
Comment 26 Forgotten User 7Vd19u3Vod 2009-01-17 14:47:48 UTC
On my system the rpm's from factory don't change the behaviour (as in comment #19). Test sound in YaST2 does NOT work.

Have I installed the correct rpm's?

asterix:~ # rpm -q alsa
alsa-1.0.18.git20090106-2.2
asterix:~ # rpm -q libasound2
libasound2-1.0.18.git20090106-2.2
Comment 27 Forgotten User m1ELUxQFxN 2009-01-17 14:53:49 UTC
Hello Alexander,

the version I have is 

mercator:~ # rpm -q alsa
alsa-1.0.18-10.3
mercator:~ # rpm -q libasound2
libasound2-1.0.18-10.3

and that works for me.

Greetings, Martin
Comment 28 Forgotten User 7Vd19u3Vod 2009-01-17 15:41:49 UTC
It works now with the above packages (version 10.4) from
http://download.opensuse.org/factory/repo/oss/suse/x86_64/


I previously fetched from 
http://download.opensuse.org/repositories/multimedia:/audio/openSUSE_Factory

Thanks for the help
Comment 29 Takashi Iwai 2009-02-02 09:40:51 UTC
*** Bug 444438 has been marked as a duplicate of this bug. ***
Comment 30 Olli Artemjev 2009-02-03 01:20:05 UTC
Same problem - yast2 does no test sound. That's really gives a lot of fun if you're trusting yast2 till you try to play somthing outside yast. :) I've digged the net, found lots of possibilities to reconfigure sound.. I've tried all possible sound model options within yast (based on alsa configuration howto found on the net).. Well then I've found that is still doesn't work, set 'auto' (which is default if empty) and still 've no sound in yast.. And only after that I had a try outside w/ simple play [path]. %)))

Below is my system details:
acer15:~ # rpm -qa | grep yast | grep sound
yast2-sound-2.17.13-1.1
acer15:~ # rpm -qa | grep alsa
alsa-utils-1.0.18-6.4
alsa-tools-1.0.18-1.13
alsa-plugins-pulse-1.0.18-6.12
alsa-firmware-1.0.17-1.42
alsa-oss-1.0.17-1.37
alsa-plugins-1.0.18-6.12
alsa-1.0.18-8.7
alsa-devel-1.0.18-8.7
alsa-tools-gui-1.0.18-1.13
bluez-alsa-4.19-1.5
acer15:~ # lspci | grep -i Audio
00:1b.0 Audio device: Intel Corporation 82801G (ICH7 Family) High Definition Audio Controller (rev 02)
acer15:~ # cat /etc/modprobe.d/sound

options snd-hda-intel model=auto
options snd slots=snd-hda-intel
# u1Nb.FPeEl_lypDB:82801G (ICH7 Family) High Definition Audio Controller
alias snd-card-0 snd-hda-intel
acer15:~ #



And below is part of my yast2 logs:

2009-02-03 04:11:59 <1> acer15(10133) [YCP] Sound.ycp:669 Driver snd-hda-intel requires packages: []
2009-02-03 04:11:59 <1> acer15(10133) [YCP] Sound.ycp:679 Required packages to install for driver snd-hda-intel: []
2009-02-03 04:11:59 <1> acer15(10133) [qt-pkg] QY2ListView.cc(saveColumnWidths):171 Saving size 69 for section 0
2009-02-03 04:11:59 <1> acer15(10133) [qt-pkg] QY2ListView.cc(saveColumnWidths):171 Saving size 304 for section 1
2009-02-03 04:11:59 <1> acer15(10133) [qt-pkg] QY2ListView.cc(saveColumnWidths):171 Saving size 69 for section 0
2009-02-03 04:11:59 <1> acer15(10133) [qt-pkg] QY2ListView.cc(saveColumnWidths):171 Saving size 73 for section 1
2009-02-03 04:11:59 <1> acer15(10133) [qt-pkg] QY2ListView.cc(saveColumnWidths):171 Saving size 69 for section 0
2009-02-03 04:11:59 <1> acer15(10133) [qt-pkg] QY2ListView.cc(saveColumnWidths):171 Saving size 304 for section 1
2009-02-03 04:12:02 <1> acer15(10133) [YCP] sound/complex.ycp:506 WaitForEvent: $["event":$["EventSerialNo":2, "EventType":"MenuEvent", "ID":`mixer], "select
ed":"u1Nb.FPeEl_lypDB"]
2009-02-03 04:12:02 <1> acer15(10133) [ui-shortcuts] YShortcutManager.cc(checkShortcuts):127 No valid shortcut for YSlider "Master" at 0x86827f4
2009-02-03 04:12:02 <1> acer15(10133) [ui-shortcuts] YShortcutManager.cc(checkShortcuts):127 No valid shortcut for YSlider "PCM" at 0x87c924c
2009-02-03 04:12:02 <1> acer15(10133) [ui-shortcuts] YShortcutManager.cc(checkShortcuts):127 No valid shortcut for YSlider "Front" at 0x8658c44
2009-02-03 04:12:02 <1> acer15(10133) [ui-shortcuts] YShortcutManager.cc(checkShortcuts):127 No valid shortcut for YSlider "Line" at 0x8672ac4
2009-02-03 04:12:02 <1> acer15(10133) [ui-shortcuts] YShortcutManager.cc(checkShortcuts):127 No valid shortcut for YSlider "Mic" at 0x867b79c
2009-02-03 04:12:02 <1> acer15(10133) [ui-shortcuts] YShortcutManager.cc(checkShortcuts):127 No valid shortcut for YSlider "Mic Boost" at 0x836bc24
2009-02-03 04:12:05 <1> acer15(10133) [YCP] sound/volume_routines.ycp:147 Executing: ALSA_CONFIG_PATH= /usr/bin/aplay -q -N -D default:0 /usr/share/sounds/al
sa/test.wav > /dev/null 2>&1
2009-02-03 04:12:21 <1> acer15(10133) [qt-pkg] QY2ListView.cc(saveColumnWidths):171 Saving size 100 for section 0
2009-02-03 04:12:21 <1> acer15(10133) [qt-pkg] QY2ListView.cc(saveColumnWidths):171 Saving size 100 for section 1
2009-02-03 04:12:21 <1> acer15(10133) [qt-pkg] QY2ListView.cc(saveColumnWidths):171 Saving size 69 for section 0
2009-02-03 04:12:21 <1> acer15(10133) [qt-pkg] QY2ListView.cc(saveColumnWidths):171 Saving size 100 for section 1
2009-02-03 04:12:21 <1> acer15(10133) [qt-pkg] QY2ListView.cc(saveColumnWidths):171 Saving size 69 for section 0
2009-02-03 04:12:21 <1> acer15(10133) [qt-pkg] QY2ListView.cc(saveColumnWidths):171 Saving size 73 for section 1
2009-02-03 04:12:21 <1> acer15(10133) [ui-shortcuts] YShortcutManager.cc(checkShortcuts):113 Shortcut conflict: 'O' used for YMenuButton "Other" at 0xb458470
4
2009-02-03 04:12:21 <1> acer15(10133) [ui-shortcuts] YShortcutManager.cc(checkShortcuts):113 Shortcut conflict: 'O' used for YQWizardButton "OK" at 0x8536384
2009-02-03 04:12:21 <1> acer15(10133) [YCP] sound/complex.ycp:48 unconfigured_cards: []
2009-02-03 04:12:21 <1> acer15(10133) [YCP] sound/complex.ycp:49 modules_conf: [$["alias":"snd-card-0", "bus":"pci", "bus_id":"0000:00:1b.0", "device_id":757
36, "model":"82801G (ICH7 Family) High Definition Audio Controller", "module":"snd-hda-intel", "options":$["index":"0", "model":"auto"], "sub_device_id":6568
0, "sub_vendor_id":69669, "unique_key":"u1Nb.FPeEl_lypDB", "vendor_id":98438]]
2009-02-03 04:12:21 <1> acer15(10133) [YCP] Sound.ycp:669 Driver snd-hda-intel requires packages: []
2009-02-03 04:12:21 <1> acer15(10133) [YCP] Sound.ycp:679 Required packages to install for driver snd-hda-intel: []
2009-02-03 04:12:21 <1> acer15(10133) [qt-pkg] QY2ListView.cc(saveColumnWidths):171 Saving size 69 for section 0
2009-02-03 04:12:21 <1> acer15(10133) [qt-pkg] QY2ListView.cc(saveColumnWidths):171 Saving size 73 for section 1

I usually trust yast2. Thus I'd like to set this as Major - I've lost about to 2 hours digging diffrent configurations within yast2 and only then found that all just works fine outside. %)
Comment 31 Olli Artemjev 2009-02-03 01:27:11 UTC
With the problem in yast the cmd from yast logs plays OK:

/usr/bin/aplay -q -N -D default:0 /usr/share/sounds/alsa/test.wav
Comment 32 Forgotten User 7Vd19u3Vod 2009-02-07 16:35:09 UTC
The patch from comments #21 and #28 resolves the problem
Comment 33 Takashi Iwai 2009-03-02 06:43:28 UTC
*** Bug 480711 has been marked as a duplicate of this bug. ***
Comment 34 Takashi Iwai 2009-07-07 12:53:08 UTC
Included in the package update.