Re: USB sound device present but visible in ‘alsamixer’

2022-02-09 Thread Pankaj Jangid
Nicholas Geovanis  writes:

>> I am trying to make it work; so here is the update.
>>
>> I tried to experiment with my machine and found that if I plug-out and
>> plug-in the USB sound card again, it is not shown by "aplay -l" command
>> as normal user. But when I do "sudo aplay -l" it lists the USB
>> device. But I am part of "audio" group. "groups" command output:
>>
>> --8<---cut here---start->8---
>> ankaj@anant:~$ groups
>> pankaj cdrom floppy sudo audio dip video plugdev netdev bluetooth scanner
>> docker
>> --8<---cut here---end--->8---
>>
>> I don’t know what other configuration is required to list my card using
>> "aplay -l" as a normal user?
>
>
> You may need to give normal users added privileges. Or it may be that you
> need to set your running group or user identity to something else in order
> to use aplay effectively. Could that be the group named audio?
>
> See help for the newgrp command. Or just as you have done, try to craft the
> right sudo command to invoke it the way you want. Then you could add a
> shorthand to it in sudoers or create a shell alias accordingly.
>
> Or, not recommended, you could change the aplay executable or front-end to
> it in order to make it a set[ug]id executable.
>

It just upgraded my kernel using "make deb-pkg" in the upstream kernel
and installed it. The sound problem is gone.




Re: USB sound device present but visible in ‘alsamixer’

2022-02-07 Thread Nicholas Geovanis
On Sun, Feb 6, 2022, 9:42 AM Pankaj Jangid  wrote:

> Pankaj Jangid  writes:
>
> > When I boot system afresh, the card is visible in the ‘alsamixer’ and in
> > Gnome settings as well. Shown as “Blue” S/PDIF input and output
> > devices. But when system wakes up from sleep (suspended), it doesn’t
> > show the devices.
> >
> > However, ‘lsusb’ shows it and ‘/proc/asound/cards’ has an entry. But
> > these devices (mic and speaker) are not taking any input or producing
> > sound. Because they are not visible to Gnome and ‘alsamixer’.
> >
> > pankaj@anant:~$ lsusb
> > ...
> > Bus 001 Device 003: ID 046d:0ab7 Logitech, Inc. Blue Microphones
> > ...
> > pankaj@anant:~$ cat /proc/asound/cards
> > ...
> >  3 [Microphones]: USB-Audio - Blue Microphones
> >   Generic Blue Microphones at usb-:2a:00.1-2,
> high speed
> > ...
>
> I am trying to make it work; so here is the update.
>
> I tried to experiment with my machine and found that if I plug-out and
> plug-in the USB sound card again, it is not shown by "aplay -l" command
> as normal user. But when I do "sudo aplay -l" it lists the USB
> device. But I am part of "audio" group. "groups" command output:
>
> --8<---cut here---start->8---
> ankaj@anant:~$ groups
> pankaj cdrom floppy sudo audio dip video plugdev netdev bluetooth scanner
> docker
> --8<---cut here---end--->8---
>
> I don’t know what other configuration is required to list my card using
> "aplay -l" as a normal user?


You may need to give normal users added privileges. Or it may be that you
need to set your running group or user identity to something else in order
to use aplay effectively. Could that be the group named audio?

See help for the newgrp command. Or just as you have done, try to craft the
right sudo command to invoke it the way you want. Then you could add a
shorthand to it in sudoers or create a shell alias accordingly.

Or, not recommended, you could change the aplay executable or front-end to
it in order to make it a set[ug]id executable.

It lists the card when I reboot the
> machine. But not when I plug-out and plug-in again. Any hints for this?
>
> This could be root cause of my original problem i.e. no sound after
> sleep and wake-up.
>
>
>


Re: USB sound device present but visible in ‘alsamixer’

2022-02-06 Thread Pankaj Jangid
Pankaj Jangid  writes:

> When I boot system afresh, the card is visible in the ‘alsamixer’ and in
> Gnome settings as well. Shown as “Blue” S/PDIF input and output
> devices. But when system wakes up from sleep (suspended), it doesn’t
> show the devices.
>
> However, ‘lsusb’ shows it and ‘/proc/asound/cards’ has an entry. But
> these devices (mic and speaker) are not taking any input or producing
> sound. Because they are not visible to Gnome and ‘alsamixer’.
>
> pankaj@anant:~$ lsusb
> ...
> Bus 001 Device 003: ID 046d:0ab7 Logitech, Inc. Blue Microphones
> ...
> pankaj@anant:~$ cat /proc/asound/cards
> ...
>  3 [Microphones]: USB-Audio - Blue Microphones
>   Generic Blue Microphones at usb-:2a:00.1-2, high 
> speed
> ...

I am trying to make it work; so here is the update.

I tried to experiment with my machine and found that if I plug-out and
plug-in the USB sound card again, it is not shown by "aplay -l" command
as normal user. But when I do "sudo aplay -l" it lists the USB
device. But I am part of "audio" group. "groups" command output:

--8<---cut here---start->8---
ankaj@anant:~$ groups
pankaj cdrom floppy sudo audio dip video plugdev netdev bluetooth scanner docker
--8<---cut here---end--->8---

I don’t know what other configuration is required to list my card using
"aplay -l" as a normal user? It lists the card when I reboot the
machine. But not when I plug-out and plug-in again. Any hints for this?

This could be root cause of my original problem i.e. no sound after
sleep and wake-up.




USB sound device present but visible in ‘alsamixer’

2022-01-28 Thread Pankaj Jangid
I have setup a new system. Apart from the display related issue, that I
had posted in another thread, I am facing an issue related to my
external ‘Yeti Blue’ sound card. I use it as Mic and Monitor audio.

--8<---cut here---start->8---
pankaj@anant:~$ lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description:Debian GNU/Linux 11 (bullseye)
Release:11
Codename:   bullseye
pankaj@anant:~$ uname -a
Linux anant 5.10.0-11-amd64 #1 SMP Debian 5.10.92-1 (2022-01-18) x86_64 
GNU/Linux
--8<---cut here---end--->8---

When I boot system afresh, the card is visible in the ‘alsamixer’ and in
Gnome settings as well. Shown as “Blue” S/PDIF input and output
devices. But when system wakes up from sleep (suspended), it doesn’t
show the devices.

However, ‘lsusb’ shows it and ‘/proc/asound/cards’ has an entry. But
these devices (mic and speaker) are not taking any input or producing
sound. Because they are not visible to Gnome and ‘alsamixer’.

--8<---cut here---start->8---
pankaj@anant:~$ lsusb
Bus 006 Device 002: ID 2109:0813 VIA Labs, Inc. VL813 Hub
Bus 006 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 005 Device 002: ID 2109:2813 VIA Labs, Inc. VL813 Hub
Bus 005 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 003: ID 05e3:0608 Genesys Logic, Inc. Hub
Bus 003 Device 002: ID 0db0:a073 Micro Star International USB Audio
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 007: ID 1462:7d54 Micro Star International MYSTIC LIGHT 
Bus 001 Device 006: ID 05e3:0608 Genesys Logic, Inc. Hub
Bus 001 Device 005: ID 1b1c:1b75 Corsair CORSAIR HARPOON RGB PRO Gaming Mouse
Bus 001 Device 015: ID 8087:0032 Intel Corp. 
Bus 001 Device 003: ID 046d:0ab7 Logitech, Inc. Blue Microphones
Bus 001 Device 002: ID 13ba:0018 PCPlay Barcode PCP-BCG4209
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
pankaj@anant:~$ cat /proc/asound/cards
 0 [HDMI_1 ]: HDA-Intel - HDA ATI HDMI
  HDA ATI HDMI at 0xfca6 irq 102
 1 [HDMI   ]: HDA-Intel - HDA ATI HDMI
  HDA ATI HDMI at 0xfce6 irq 104
 2 [Generic]: HDA-Intel - HD-Audio Generic
  HD-Audio Generic at 0xfcd0 irq 106
 3 [Microphones]: USB-Audio - Blue Microphones
  Generic Blue Microphones at usb-:2a:00.1-2, high speed
 4 [Audio  ]: USB-Audio - USB Audio
  Generic USB Audio at usb-:2a:00.3-5, high speed
--8<---cut here---end--->8---

I have tried to restart just the sound subsystem using
‘/etc/init.d/asound restart’. But it did not lead to any good
results.

Can somebody tell me what could be wrong at my end?

Regards ~Pankaj