Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #163418

Re: ?? user in group audio -- but only root can play sound

From Jude DaShiell <jdashiel@panix.com>
Newsgroups linux.debian.user
Subject Re: ?? user in group audio -- but only root can play sound
Date 2016-01-22 00:20 +0100
Message-ID <qTwGe-3KM-15@gated-at.bofh.it> (permalink)
References (2 earlier) <qTpOq-7iT-29@gated-at.bofh.it> <qTqUa-8kQ-3@gated-at.bofh.it> <qTtfl-1mO-29@gated-at.bofh.it> <qTul4-23q-19@gated-at.bofh.it> <qTwwA-3Hx-47@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


udev may be having adverse impacts on abilities to play sounds from 
certain cards after reboot.  Anyone interested may find sound devices in 
black listed category they don't want to have black listed.  Correcting 
such black listing for now is beyond my capability since I haven't done 
enough with udev to be safe working with ityet.

On Fri, 22 Jan 2016, Gregor Zattler wrote:

> Date: Thu, 21 Jan 2016 18:03:52
> From: Gregor Zattler <telegraph@gmx.net>
> To: debian-user <debian-user@lists.debian.org>
> Subject: Re: ?? user in group audio -- but only root can play sound
> Resent-Date: Thu, 21 Jan 2016 23:04:43 +0000 (UTC)
> Resent-From: debian-user@lists.debian.org
> 
> Hi Floris, debian users,
> * Floris <jkfloris@dds.nl> [21. Jan. 2016]:
>> Op Thu, 21 Jan 2016 20:32:21 +0100 schreef Gregor Zattler
>> <telegraph@gmx.net>:
>>
>>>>>>> since a few days my normal user, which is in group sound, cannot
>>>>>>> play sound (aplay works but no sound) while root can.
>>>>>>>
> [...]
>>>> You are right, the right permissions are set.
>>>>
>>>> Do you have an .asoundrc file in your home directory?
>>>>
>>>> If you have one remove it.
>>>> and try aplay again
>>>>
>>>> If you doesn't have one create one with:
>>>>
>>>> pcm.pulse {
>>>>    type pulse
>>>> }
>>>>
>>>> ctl.pulse {
>>>>    type pulse
>>>> }
>>>>
>>>> and try
>>>> aplay -Dpulse foo.wav
>>>
>>> There was no ~/.asoundrc.  I filled one with your example and
>>> tried aplay -D pulse ...  --> no sound
>>>
>>>> success,
>>>
>>> this would be fine :-)
>>>
>>
>> Sorry, now I see you have multiple sound cards.
>
> My fault I should have mentioned it, sorry:  That's it!
>
>> use aplay -l to show all your cards
>
> mine is
>
> $ aplay -l
> **** List of PLAYBACK Hardware Devices ****
> card 0: PCH [HDA Intel PCH], device 0: ALC3232 Analog [ALC3232 Analog]
>  Subdevices: 1/1
>  Subdevice #0: subdevice #0
> card 1: HDMI [HDA Intel HDMI], device 3: HDMI 0 [HDMI 0]
>  Subdevices: 1/1
>  Subdevice #0: subdevice #0
> card 1: HDMI [HDA Intel HDMI], device 7: HDMI 1 [HDMI 1]
>  Subdevices: 1/1
>  Subdevice #0: subdevice #0
> card 1: HDMI [HDA Intel HDMI], device 8: HDMI 2 [HDMI 2]
>  Subdevices: 1/1
>  Subdevice #0: subdevice #0
>
>> Then test them with:
>> $ mplayer -ao alsa:device=hw=0.0 some-music-file
>> and change 0.0 to your cards. The first 0 is the card number, the second the
>> device number.
>> So I can test 0.0, 0.2, 0.3 and 3.0 and replace some-music-file with your
>> own music.
>>  / and * controls the volume
>>
>> Is there sound on any of the devices?
>
> The analog device is the very first.
>
> mplayer  -ao alsa:device=hw=0.0 <file>
>
> plays sound and I hear it.
>
> I know there are several soundcards.  Therefore I had played with
> aplay-l and aplay -D but did not manage to select the device with
> aplay -D 0.0.
>
> Since 2015-12-11 my /etc/modprobe/alsa-base.conf ist:
> # PCH
> options snd-hda-intel index=0 model=auto vid=8086 pid=9c20
> # HDMI
> options snd-hda-intel index=1 model=auto vid=8086 pid=0a0c
>
> this is (if I remember correctly) from Arch wiki and should
> provide a numbering of sound devices such that the analog device
> becomes default (first one).  Since then I could hear music, hear
> sound from movies but only till a week ago.
>
>
> If I delete this file and reboot, the numbering of devices is:
>
> **** List of PLAYBACK Hardware Devices ****
> card 0: HDMI [HDA Intel HDMI], device 3: HDMI 0 [HDMI 0]
>  Subdevices: 1/1
>  Subdevice #0: subdevice #0
> card 0: HDMI [HDA Intel HDMI], device 7: HDMI 1 [HDMI 1]
>  Subdevices: 1/1
>  Subdevice #0: subdevice #0
> card 0: HDMI [HDA Intel HDMI], device 8: HDMI 2 [HDMI 2]
>  Subdevices: 1/1
>  Subdevice #0: subdevice #0
> card 1: PCH [HDA Intel PCH], device 0: ALC3232 Analog [ALC3232 Analog]
>  Subdevices: 1/1
>  Subdevice #0: subdevice #0
>
> Now mplayer -ao alsa:device=hw=1.0 works but aplay wav still does
> not, mplayer does not without the command line switch and
> interestingly mpd still works.
>
> How to tell linux that the analog device is the default device?
> (I'll come back to this mailing list when I actually want to hear
> sound through the HDMI device).
>
>
>
> Thanks a lot!  This at least gives an explanation!
>
> Ciao; Gregor
>
>

-- 

Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

?? user in group audio -- but only root can play sound Gregor Zattler <telegraph@gmx.net> - 2016-01-16 20:10 +0100
  Re: ?? user in group audio -- but only root can play sound Ric Moore <wayward4now@gmail.com> - 2016-01-18 21:10 +0100
    Re: ?? user in group audio -- but only root can play sound Gregor Zattler <telegraph@gmx.net> - 2016-01-18 22:30 +0100
      Re: ?? user in group audio -- but only root can play sound Jude DaShiell <jdashiel@panix.com> - 2016-01-19 04:30 +0100
        Re: ?? user in group audio -- but only root can play sound Gregor Zattler <telegraph@gmx.net> - 2016-01-19 12:50 +0100
          Re: ?? user in group audio -- but only root can play sound Alexis <flexibeast@gmail.com> - 2016-01-19 13:10 +0100
            Re: ?? user in group audio -- but only root can play sound Gregor Zattler <telegraph@gmx.net> - 2016-01-19 18:30 +0100
              Re: ?? user in group audio -- but only root can play sound Chris Bannister <cbannister@slingshot.co.nz> - 2016-01-20 07:10 +0100
                Re: ?? user in group audio -- but only root can play sound Gregor Zattler <telegraph@gmx.net> - 2016-01-21 17:00 +0100
                Re: ?? user in group audio -- but only root can play sound <tomas@tuxteam.de> - 2016-01-21 21:50 +0100
  Re: ?? user in group audio -- but only root can play sound Floris <jkfloris@dds.nl> - 2016-01-21 11:30 +0100
    Re: ?? user in group audio -- but only root can play sound Jude DaShiell <jdashiel@panix.com> - 2016-01-21 12:40 +0100
      Re: ?? user in group audio -- but only root can play sound Floris <jkfloris@dds.nl> - 2016-01-21 16:10 +0100
    Re: ?? user in group audio -- but only root can play sound Gregor Zattler <telegraph@gmx.net> - 2016-01-21 17:00 +0100
      Re: ?? user in group audio -- but only root can play sound Floris <jkfloris@dds.nl> - 2016-01-21 18:10 +0100
        Re: ?? user in group audio -- but only root can play sound Gregor Zattler <telegraph@gmx.net> - 2016-01-21 20:40 +0100
          Re: ?? user in group audio -- but only root can play sound Floris <jkfloris@dds.nl> - 2016-01-21 21:50 +0100
            Re: ?? user in group audio -- but only root can play sound Floris <jkfloris@dds.nl> - 2016-01-21 22:00 +0100
            Re: ?? user in group audio -- but only root can play sound Gregor Zattler <telegraph@gmx.net> - 2016-01-22 00:10 +0100
              Re: ?? user in group audio -- but only root can play sound Jude DaShiell <jdashiel@panix.com> - 2016-01-22 00:20 +0100
                Re: ?? user in group audio -- but only root can play sound Floris <jkfloris@dds.nl> - 2016-01-22 10:30 +0100
                Re: ?? user in group audio -- but only root can play sound Jude DaShiell <jdashiel@panix.com> - 2016-01-22 13:50 +0100
                Re: ?? user in group audio -- but only root can play sound <tomas@tuxteam.de> - 2016-01-22 15:50 +0100
                Re: ?? user in group audio -- but only root can play sound Jude DaShiell <jdashiel@panix.com> - 2016-01-22 17:20 +0100
                Re: ?? user in group audio -- but only root can play sound Ric Moore <wayward4now@gmail.com> - 2016-01-22 19:40 +0100
                Re: ?? user in group audio -- but only root can play sound Gene Heskett <gheskett@shentel.net> - 2016-01-22 15:50 +0100
                Re: ?? user in group audio -- but only root can play sound Gene Heskett <gheskett@shentel.net> - 2016-01-22 15:50 +0100
                Re: ?? user in group audio -- but only root can play sound Floris <jkfloris@dds.nl> - 2016-01-22 21:00 +0100
                Re: ?? user in group audio -- but only root can play sound Gene Heskett <gheskett@shentel.net> - 2016-01-22 23:20 +0100
                SOLVED ?? user in group audio -- but only root can play sound Gregor Zattler <telegraph@gmx.net> - 2016-01-22 21:50 +0100
                Re: SOLVED ?? user in group audio -- but only root can play sound Ric Moore <wayward4now@gmail.com> - 2016-01-23 04:30 +0100

csiph-web