[Pkg-alsa-devel] Bug#670490: alsa-utils: Restore sound volume in udev

Vincent Bernat bernat at luffy.cx
Thu Apr 26 06:43:05 UTC 2012


Package: alsa-utils
Version: 1.0.25-2
Severity: wishlist

Hi!

When alsa-utils init script is run too early or when a new sound card
is plugged, the volume levels are not restored. Here is some udev rule
that could do the trick:

ACTION=="add", SUBSYSTEM=="sound", KERNEL=="controlC*", \
  RUN+="/sbin/alsactl restore /dev/$name"
ACTION=="remove", SUBSYSTEM=="sound", KERNEL=="controlC*", \
  RUN+="/sbin/alsactl store /dev/$name"

Maybe this could fix bug #539579 but I am not sure (sound levels are
not restored in my case because alsa-utils may run too soon because I
am using systemd). 

-- System Information:
Debian Release: wheezy/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: i386 (i686)

Kernel: Linux 3.2.0-2-686-pae (SMP w/4 CPU cores)
Locale: LANG=en_US.utf8, LC_CTYPE=en_US.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages alsa-utils depends on:
ii  kmod              6-2
ii  libasound2        1.0.25-2
ii  libc6             2.13-27
ii  libncursesw5      5.9-6
ii  libsamplerate0    0.1.8-4
ii  libtinfo5         5.9-6
ii  linux-sound-base  1.0.23+dfsg-4
ii  lsb-base          4.1+Debian0
ii  whiptail          0.52.14-8

Versions of packages alsa-utils recommends:
ii  alsa-base  1.0.23+dfsg-4
ii  pciutils   1:3.1.9-2

alsa-utils suggests no packages.

-- no debconf information





More information about the Pkg-alsa-devel mailing list