[arch-general] Muting internal speakers

Ralf Mardorf ralf.mardorf at alice-dsl.net
Mon Jun 18 09:41:57 EDT 2012


On Mon, 2012-06-18 at 08:34 -0400, Stephen E. Baker wrote:
> it involves being able to identify which device your usb sound 
> device is.

"So run:
udevinfo -a -p /sys/block/sda
(replace sda with you device)" -
http://www.banquise.org/hardware/how-to-automatically-run-a-script-after-inserting-a-usb-device-on-ubuntu/

What is the name for the sound device?

FWIW, you get unique device name listed in /proc/asound/

A Swissonic device
spinymouse at precise:~$ ls -hAl /proc/asound/ | grep card3
dr-xr-xr-x 2 root root 0 Jun 18 15:14 card3
lrwxrwxrwx 1 root root 5 Jun 18 15:14 U0x170b0x11 -> card3
A Korg device
spinymouse at precise:~$ ls -hAl /proc/asound/ | grep card3
dr-xr-xr-x 2 root root 0 Jun 18 15:14 card3
lrwxrwxrwx 1 root root 5 Jun 18 15:14 nanoKONTROL -> card3

but what names are used for "udevinfo -a -p /sys/block/[...]"?

spinymouse at precise:~$ ls /sys/block/
loop0  loop2  loop4  loop6  ram0  ram10  ram12  ram14  ram2  ram4  ram6
ram8  sda  sr0
loop1  loop3  loop5  loop7  ram1  ram11  ram13  ram15  ram3  ram5  ram7
ram9  sdb



More information about the arch-general mailing list