Re: Muting internal speakers

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



On Mon, Jun 18, 2012 at 10:24 AM, Stephen E. Baker
<baker.stephen.e@xxxxxxxxx> wrote:
> On 18/06/2012 9:48 AM, Ralf Mardorf wrote:
>>
>> On Mon, 2012-06-18 at 15:41 +0200, Ralf Mardorf wrote:
>>>
>>> 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@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@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@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
>>
>> Resp. in /sys/"whatever"
>>
> /sys/block/ is block devices (i.e. hard drives, potential ram drives, loop
> back devices), so it wouldn't be in there.   I'm not sure where in /sys it
> would be, but if you check the last few lines dmesg after plugging it in it
> should tell you.

Try /sys/class/sound/card0 (or card1, or whatever number).


[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux