Package: alsa-base Version: 1.0.23+dfsg-3 Followup-For: Bug #625233 Hi again. This follow-up includes the contents of /dev/snd before any attempt is made to use "alsa force-unload".
Here is the procedure I go through: root@asus:/home/tmac# fuser -v /dev/snd/* Cannot open /proc/swaps USER PID ACCESS COMMAND /dev/snd/controlC1: tmac 2905 F.... xfce4-volumed Then I do: killall xfce4-volumed Now I know that alsa force-unload will work after two attempts. First, the list of modules: tmac@asus:~$ lsmod | grep snd snd_hda_codec_realtek 276796 1 snd_hda_intel 19308 1 snd_hda_codec 61909 2 snd_hda_codec_realtek,snd_hda_intel snd_hwdep 4778 1 snd_hda_codec snd_pcm 58675 2 snd_hda_intel,snd_hda_codec snd_seq_midi 4048 0 snd_rawmidi 14532 1 snd_seq_midi snd_seq_midi_event 4620 1 snd_seq_midi snd_seq 40474 2 snd_seq_midi,snd_seq_midi_event snd_timer 15885 2 snd_pcm,snd_seq snd_seq_device 4505 3 snd_seq_midi,snd_rawmidi,snd_seq snd 40080 11 snd_hda_codec_realtek,snd_hda_intel,snd_hda_codec,snd_hwdep,snd_pcm,snd_rawmidi,snd_seq,snd_timer,snd_seq_device soundcore 864 1 snd snd_page_alloc 5931 2 snd_hda_intel,snd_pcm Then I run: root@asus:/home/tmac# alsa force-unload Unloading ALSA sound driver modules: snd-hda-codec-realtek snd-hda-intel snd-hda-codec snd-hwdep snd-pcm snd-seq-midi snd-rawmidi snd-seq-midi-event snd-seq snd-timer snd-seq-device snd-page-alloc (failed: modules still loaded: snd-hda-codec-realtek snd-hda-codec snd-hwdep snd-pcm snd-timer snd-page-alloc). Not all modules are removed, as seen here: tmac@asus:~$ lsmod | grep snd snd_hda_codec_realtek 276796 0 snd_hda_codec 61909 1 snd_hda_codec_realtek snd_hwdep 4778 1 snd_hda_codec snd_pcm 58675 1 snd_hda_codec snd_timer 15885 1 snd_pcm snd 40080 5 snd_hda_codec_realtek,snd_hda_codec,snd_hwdep,snd_pcm,snd_timer soundcore 864 1 snd snd_page_alloc 5931 1 snd_pcm Then I run again: root@asus:/home/tmac# alsa force-unload Unloading ALSA sound driver modules: snd-hda-codec-realtek snd-hda-codec snd-hwdep snd-pcm snd-timer snd-page-alloc. Now all modules are removed: tmac@asus:~$ lsmod | grep snd tmac@asus:~$ Bug #1: xfce4-volumed is not killed automatically by "alsa force-unload", since it uses /dev/snd/control*, not /dev/snd/pcm* Bug #2: Even after killing xfce4-volumed so no processes are using /dev/snd/*, I must run alsa force-unload twice to get rid of all snd* modules. Best regards Torquil Sørensen -- Package-specific info: --- Begin additional package status --- Desired=Unknown/Install/Remove/Purge/Hold | Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend |/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad) ||/ Name Version Description +++-==================================-==================================-==================================================================================== ii libasound2 1.0.23-3 shared library for ALSA applications --- End additional package status --- --- Begin /proc/asound/version --- Advanced Linux Sound Architecture Driver Version 1.0.23. --- End /proc/asound/version --- --- Begin /proc/asound/cards --- 1 [NVidia ]: HDA-Intel - HDA NVidia HDA NVidia at 0xfae78000 irq 23 2 [NVidia_1 ]: HDA-Intel - HDA NVidia HDA NVidia at 0xfaf7c000 irq 17 --- End /proc/asound/cards --- --- Begin /dev/snd/ listing --- total 0 drwxr-xr-x 2 root root 80 May 2 19:23 by-path crw-rw----+ 1 root audio 116, 5 May 2 19:23 controlC1 crw-rw----+ 1 root audio 116, 10 May 2 19:23 controlC2 crw-rw----+ 1 root audio 116, 4 May 2 19:23 hwC1D0 crw-rw----+ 1 root audio 116, 9 May 2 19:23 hwC2D0 crw-rw----+ 1 root audio 116, 8 May 2 19:23 hwC2D1 crw-rw----+ 1 root audio 116, 7 May 2 19:23 hwC2D2 crw-rw----+ 1 root audio 116, 6 May 2 19:23 hwC2D3 crw-rw----+ 1 root audio 116, 3 May 2 19:23 pcmC1D0c crw-rw----+ 1 root audio 116, 2 May 2 19:23 pcmC1D0p crw-rw----+ 1 root audio 116, 1 May 2 19:23 seq crw-rw----+ 1 root audio 116, 33 May 2 19:23 timer --- End /dev/snd/ listing --- -- System Information: Debian Release: wheezy/sid APT prefers unstable APT policy: (500, 'unstable') Architecture: amd64 (x86_64) Kernel: Linux 2.6.38.4 (SMP w/2 CPU cores; PREEMPT) Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Versions of packages alsa-base depends on: ii linux-sound-base 1.0.23+dfsg-3 base package for ALSA and OSS soun ii module-init-tools 3.12-1 tools for managing Linux kernel mo ii udev 168-1 /dev/ and hotplug management daemo Versions of packages alsa-base recommends: ii alsa-utils 1.0.23-4 Utilities for configuring and usin Versions of packages alsa-base suggests: ii alsa-oss 1.0.17-4 ALSA wrapper for OSS applications pn apmd <none> (no description available) ii oss-compat 0.0.4+nmu3 OSS compatibility package Versions of packages libasound2 depends on: ii libc6 2.13-1 Embedded GNU C Library: Shared lib Versions of packages libasound2 suggests: ii libasound2-plugins 1.0.23-2 ALSA library additional plugins -- Configuration Files: /etc/modprobe.d/alsa-base-blacklist.conf changed: blacklist snd-pcsp blacklist snd_hda_codec_hdmi /etc/modprobe.d/alsa-base.conf changed: install sound-slot-0 /sbin/modprobe snd-card-0 install sound-slot-1 /sbin/modprobe snd-card-1 install sound-slot-2 /sbin/modprobe snd-card-2 install sound-slot-3 /sbin/modprobe snd-card-3 install sound-slot-4 /sbin/modprobe snd-card-4 install sound-slot-5 /sbin/modprobe snd-card-5 install sound-slot-6 /sbin/modprobe snd-card-6 install sound-slot-7 /sbin/modprobe snd-card-7 install snd /sbin/modprobe --ignore-install snd && { /sbin/modprobe --quiet snd-ioctl32 ; /sbin/modprobe --quiet snd-seq ; } install snd-rawmidi /sbin/modprobe --ignore-install snd-rawmidi && { /sbin/modprobe --quiet snd-seq-midi ; : ; } install snd-emu10k1 /sbin/modprobe --ignore-install snd-emu10k1 && { /sbin/modprobe --quiet snd-emu10k1-synth ; : ; } options bt87x index=-2 options cx88_alsa index=-2 options snd-atiixp-modem index=-2 options snd-intel8x0m index=-2 options snd-via82xx-modem index=-2 options snd-pcsp index=-2 options snd-usb-audio nrpacks=1 options snd-hda-intel model=auto options snd slots=snd-usb-audio,snd-hda-intel -- no debconf information -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org