Package: udev
Version: 0.105-4
Severity: normal

Steps to reproduce:
0) aumix -v90
1) sudo /etc/init.d/alsa-utils restart
2) aumix -v30
3) aumix -q | grep vol
4) sudo /etc/init.d/udev restart
5) sudo udevtrigger; sleep 20
6) aumix -q | grep vol

Expected results:
6) Volume level does not change in udev restart and is the same as in
   step 3

Actual results:
3) vol 30, 30, P
6) vol 90, 90, P -- Volume is apparently restored to the last saved
   ALSA volume state.

More info:
1) The problem seems to be caused by the fact that

/etc/udev/alsa-utils.rules:KERNEL=="controlC[0-7]", ACTION=="add", 
RUN+="/lib/udev/alsa-utils"

calls /lib/udev/alsa-utils which does

  exec /etc/init.d/alsa-utils start $N

Maybe udev should call "/etc/init.d/alsa-utils stop" too to store the volume 
levels?

Google finds that a similar "udev restart resets sound volume" bug was
fixed in mandriva in 2005:

http://cvs.mandriva.com/cgi-bin/viewvc.cgi/soft/sound-scripts/alsa.dev?diff_format=u&revision=1.6&view=markup

so apparently there is some ACTION=="remove" you could catch? (I don't
have much udev experience myself.)

2) As usual, please ask for more info if you can't reproduce the bug.

best regards,
Timo Lindfors


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to