Bug 118711

Summary: Sound works only after volume change
Product: [openSUSE] SUSE Linux 10.1 Reporter: Michael Stather <kontakt>
Component: SoundAssignee: Takashi Iwai <tiwai>
Status: RESOLVED WONTFIX QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P5 - None    
Version: RC 1   
Target Milestone: ---   
Hardware: Other   
OS: All   
Whiteboard:
Found By: Other Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Michael Stather 2005-09-24 13:40:06 UTC
I have a ES1988 Allegro-1 soundcard (reported by YaST). When I start my system
the sound doesn´t work, and the KDE soundserver fails to start. But when I
change the volume via kMix (no matter whether up or down) sound starts to work
correctly until I shutdown my system.
Comment 1 Michael Stather 2005-09-25 21:20:58 UTC
I just noticed that quake 3 (but not kmix) prints in the initialisation that the
sound is "muted" until I change the volume.
Comment 2 Takashi Iwai 2005-09-26 11:46:49 UTC
I guess you updated the system from 9.2, or 9.2->9.3->10.0.
Try to reconfigure the sound device via yast2 again.  See README.SuSE in alsa
package for details.
Comment 3 Michael Stather 2005-09-26 11:58:56 UTC
No, I did an install of RC1 on a formatted partition.
Should I reconfigure anyway?
Comment 4 Takashi Iwai 2005-09-26 12:07:27 UTC
You did not use alsaconf, right?  alsaconf has a known bug.
Anyway, it may help to reconfigure the sound in such a case.

Also, note that kmix remembers the sound setting by itself.  Even if you set up
the sound device correctly, kmix will bring back to a wrong state.  It's a known
problem also on the shared home environment over NFS.
Comment 5 Michael Stather 2005-09-26 12:33:35 UTC
OK
I´m not using RC1 for production, I just want to test it and report as many bugs
as possible for making the final as good as possible *g
So if this is a known bug and will be fixed for the final it´s not a problem for me.
I didn´t use alsaconf. I just installed RC1 and noticed this behaviour. So for
fixing this "for my computer" do you suggest that I run alsaconf or YaST2 or
just wait for the final version.
Comment 6 Takashi Iwai 2005-09-26 12:49:44 UTC
Well, it's already too late to fix for the final version (it was closed already
more than a week ago :)  So, I set this to WONTFIX, right now.
If you get exactly the same problem on the fresh installation of the final
version, please reopen this again.

Basically, this kind of problem is fixed simply by reconfiguring via yast2.
Just remove the sound device, quit yast, and start yast again to configure the
device listed in the detected list.
After that, check /etc/sysconfig/hardware/hwcfg-* file whether any of them
includes your sound driver module.
Then, login KDE, adjust/unmute the volume, and logout to store the current
setting.  At the next login, everyhing should work.
Comment 7 Michael Stather 2005-09-26 13:44:41 UTC
I tried what you said but unfortunately this doesn´t work.
It´s exactly like before, the sound is enabled when I change the volume in kmix.
Comment 8 Takashi Iwai 2005-09-26 13:47:43 UTC
Do you really have the corresponding /etc/syscofig/hardware/hwcfg-* files?
Comment 9 Michael Stather 2005-09-26 14:01:13 UTC
"/etc/sysconfig/hardware/hwcfg-bus-pci-0000:02:09.0" contains:

# YaST configured sound card snd-card-0
# t2XO.cURRVZc0Y21:ES1988 Allegro-1
MODULE='snd-maestro3'
STARTMODE='auto'
Comment 10 Takashi Iwai 2005-09-26 14:07:41 UTC
Then it must be OK.  Very likely just another problem of kmix, not the sound
system itself.
Try to login on runlevel 3, and check the mixer status.
Comment 11 Michael Stather 2005-09-26 14:10:42 UTC
How do I login with runlevel 3? And where do I get the mixer status from?
Sorry I´m not really familiar with configuring hardware on linux :(
Comment 12 Michael Stather 2005-10-03 22:41:07 UTC
I just checked with SuSE 10.0 Alpha1 (fresh install), and immediately after
YaST2 finished the sound worked, but after a restart the problem appears again.
If you explain me how to boot into runlevel 3 (as asked above) I can check if it
works or not.
Comment 13 Michael Stather 2005-10-03 22:42:07 UTC
I´ll reopen it as you said (the bug is still there)
Comment 14 Takashi Iwai 2005-10-04 09:53:41 UTC
Grrr, it's so stupid that we hide the boot options on 10.0...

On the boot menu screen, push F2 (or F3?) to enable more options, as shown in
the bottom line.  Then type '3' in the boot option, and boot.  That's all.

If you can login on console, check /proc/asound/cards.  If this shows the
correct entry, the system is OK.  If not, check /etc/sysconfig/hardware/* files
again.
Comment 15 Michael Stather 2005-10-04 15:27:46 UTC
I booted with runlevel 3 and /proc/asound/carsds contains an entry for my
allegro card. I think this has something to do with kMix or volume changing.
Strange is only that after setup finishes it works until I restart.
Comment 16 Michael Stather 2005-10-04 21:40:20 UTC
I just experimented a bit and I changed the volume a bit under the root account.
Now everything wors fine, even for normal users.
Comment 17 Michael Stather 2005-10-04 21:56:39 UTC
And what is even stranger is that after 2 reboots the bug is there again
Comment 18 Takashi Iwai 2005-10-05 10:24:41 UTC
It's likely a bug of kmix, then.  Try to remove kmix from the KDE start up, and
use another mixer, e.g. alsamixer on console.
Comment 19 Michael Stather 2005-10-05 15:35:00 UTC
I kicled kmix from my autostart but the problem is still there.
If I use alsaconf and change the volume, it´s ok on the next start but on the
second restart it doesn´t work anymore. So perhaps this is a bug with saving the
volume levels. I thought when I change the volume it´s saved so on the next
restart it is correct. But then on shutdown it get saved incorrect.
Comment 20 Takashi Iwai 2005-10-05 15:52:39 UTC
You mean alsamixer instead of alsaconf, right?
Don't run alsaconf.  It's a wrong solution, and will screw up the bug hunts.

I assume that your "don't work" means that no entry appears in
/proc/asound/cards.  If maestro3 is there and still no sounds, it's a mixer
problem.  Knowing this difference is _VERY_ important.

So, make sure the following:

- Remove kmix, don't start it
- Check /proc/asound/cards before touching anything
  Check whether maestro3 appears there.
- If maestro3 is there:
  - Run alsamixer to check the mixer status
    If it's musted or zero-volume, run "set_default_volume -f"
  If no entry
  - Check /etc/sysconfig/hardware/hwcfg-* whether the file including maestro3
exists.
    It must be a single file.  No multiple files.
  - Check kernel messages (via dmesg) to find any relevant errors/warnings
  - Run "modprobe snd-maestro3" manually.
  - Check the mixer status via alsamixer like above.
- Run "aplay something.wav" for testing sound.  Don't use any kde or other apps.

Test it on both runlevel 3 and 5.  Better to test on runlevel3 at first to check
the system consistency.

The whole test above should be done by a normal user.  Only "modprobe" requires
the root privillege.  Do other jobs on a normal user account.
Comment 21 Michael Stather 2005-10-05 22:55:07 UTC
Ok here´s what I found out:

alsamixer and kmix both behave exactly the same
There are no special kernel messages about the device, the /proc/asound/cards
entry is always present (mixer issue)
When I change the master volume it works and if I restart for the first time it
works also, but after the second restart the sound is muted again and the master
volume in alsamixer is reset to "77". When I change the master volume again the
whole thing starts over.
There´s no error when playing, the sound seems like to be muted.
In runlevel 3 there is no sound at all, not even after changing the volume (the
rest is exactly as above, e.g. when I change the volume in runlevel 3 and
restart with runlevel5 it works)
Comment 22 Takashi Iwai 2005-10-06 09:42:01 UTC
Thanks, now the situation became clear.

The symptom suggests that you hit a very old bug of maestro3 driver, which
happens only on a certain machine.  This is unsolved yet, unfortunately...
Comment 23 Michael Stather 2005-10-06 19:00:25 UTC
:(
Does this mean it will never be fixed because the driver is unmaintained. Or
does SuSE fix third-party apps with its own employees if there is no maintainer
(IMHO should be like that to guarantee the quality of SuSE linux)?
Comment 24 Takashi Iwai 2005-10-07 16:51:17 UTC
??  It has nothing to do with SUSE.  It's open-source.
I don't know what do you mean about "third-party"...

Anyway, I'd like to continue debugging this rather on ALSA bug-track system
since this is ALSA-specific thing.  If you can comple ALSA driver manually by
yourself, I'll be able to provide a test patch, for example.
Comment 25 Michael Stather 2005-10-08 12:37:18 UTC
I´m very interested in a solution for that bug and I really like to help here.
If there´s a howto or manual about compiling the driver (but I´m a programmer
myself) then it´s not a problem. Just tell me how to start (which bugtracker and
patch).
Comment 26 Takashi Iwai 2005-10-14 12:06:40 UTC
Sorry, for the delay.

It would be great that you can help.  Please create a similar bug report on ALSA
bugtracking system:
    https://bugtrack.alsa-project.org/alsa-bug/

The latest ALSA driver, lib, and others are found in download page on
www.alsa-project.org.  Basically you have to do the following:
- run "./configure --with-debug=full"
- "make"
- "make install-modules" as root user
  (Don't run "make install" for alsa-driver tree.)

alsa-lib and alsa-utils are not necessarily to be installed.  The ones on SL10.0
should be compatible with ALSA 1.0.10rc2 modules.
Comment 27 Michael Stather 2005-10-19 12:11:18 UTC
I submitted the bug to the ALSA bugtracker (after I couldn´t reach it for some days). With the newest drivers the sound doesn´t even work on restart, I´ve to change it every restart to get it to work.
Comment 28 Takashi Iwai 2005-10-20 10:31:10 UTC
Hmm, interesting.  There are no big changes regarding maestro3 driver between the SUSE kernel and 1.0.10rc2...
Comment 29 Michael Stather 2005-11-01 13:27:59 UTC
Is there anything which I should do (e.g. testing a new driver), because there doesn´t semm to be any activity with the bugreport?
Comment 30 Michael Stather 2005-12-12 10:05:38 UTC
Any progress here? I looked at the ALSA bugtracker but there wasn´t any activity one the bug. It´s now about 6 weeks ago that I submitted it.
Comment 31 Michael Stather 2005-12-22 15:29:51 UTC
Sorry, I know you have many bugs to work on, but I think this one isn´t trivial, many users are using the maestro chipset.
The other bug reports I submitted were all fixed or even worked on, but this one seems "forgotten". Was this by mistake.
I submitted a bug on the ALSA bugtracker (which I think is also read by SuSE staff since they develop ALSA) and nothing happened for over two monts now.
Any chance that this could be done before 10.1?
Comment 32 Andreas Jaeger 2008-04-28 15:21:21 UTC
If you still find this bug in openSUSE 11.0, please reopen this bugreport and change the product to "openSUSE 11.0".

We will not fix this anymore, sorry for the long time to keep this open.