All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] pulseaudio isn't work on buildroot-2017.02.5
@ 2017-08-24 10:42 Jonas
  2017-08-24 17:26 ` Thomas Petazzoni
  0 siblings, 1 reply; 6+ messages in thread
From: Jonas @ 2017-08-24 10:42 UTC (permalink / raw)
  To: buildroot

Hi,

I'm useing RPi and buildroot-2017.02.5.tar.gz.
linux is work but pulseaudio is not work.

The following is my config:

System configuration  --->
/dev management (Dynamic using devtmpfs + mdev)  --->
Dynamic using devtmpfs + mdev

Toolchain  --->
Enable WCHAR support 

Target packages  --->
Audio and video applications  ---> 
pulseaudio

Target packages  --->
Audio and video applications  ---> 
alsa-utils


The following is error message:

#
# modprobe snd_bcm2835
#
# ls /dev/snd/
controlC0  pcmC0D0p   pcmC0D1p   timer
#
# aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: ALSA [bcm2835 ALSA], device 0: bcm2835 ALSA [bcm2835 ALSA]
  Subdevices: 8/8
  Subdevice #0: subdevice #0
  Subdevice #1: subdevice #1
  Subdevice #2: subdevice #2
  Subdevice #3: subdevice #3
  Subdevice #4: subdevice #4
  Subdevice #5: subdevice #5
  Subdevice #6: subdevice #6
  Subdevice #7: subdevice #7
card 0: ALSA [bcm2835 ALSA], device 1: bcm2835 ALSA [bcm2835 IEC958/HDMI]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
#
#
# pulseaudio --verbose
W: [pulseaudio] main.c: This program is not intended to be run as root
(unless --system is specified).
I: [pulseaudio] core-util.c: Successfully gained nice level -11.
I: [pulseaudio] main.c: This is PulseAudio 9.0
I: [pulseaudio] main.c: Page size is 4096 bytes
I: [pulseaudio] main.c: Machine ID is buildroot.
I: [pulseaudio] main.c: Using runtime directory
/root/.config/pulse/buildroot-runtime.
I: [pulseaudio] main.c: Using state directory /root/.config/pulse.
I: [pulseaudio] main.c: Using modules directory /usr/lib/pulse-9.0/modules.
I: [pulseaudio] main.c: Running in system mode: no
I: [pulseaudio] main.c: System supports high resolution timers
I: [pulseaudio] cpu-arm.c: CPU flags: V6 V7 VFP EDSP NEON VFPV3
I: [pulseaudio] svolume_arm.c: Initialising ARM optimized volume functions.
I: [pulseaudio] sconv_neon.c: Initialising ARM NEON optimized conversions.
I: [pulseaudio] mix_neon.c: Initialising ARM NEON optimized mixing
functions.
I: [pulseaudio] remap_neon.c: Initialising ARM NEON optimized remappers.
I: [pulseaudio] module-device-restore.c: Successfully opened database file
'/root/.config/pulse/buildroot-device-volumes'.
I: [pulseaudio] module.c: Loaded "module-device-restore" (index: #0;
argument: "").
I: [pulseaudio] module-stream-restore.c: Successfully opened database file
'/root/.config/pulse/buildroot-stream-volumes'.
I: [pulseaudio] module.c: Loaded "module-stream-restore" (index: #1;
argument: "").
I: [pulseaudio] module-card-restore.c: Successfully opened database file
'/root/.config/pulse/buildroot-card-database'.
I: [pulseaudio] module.c: Loaded "module-card-restore" (index: #2; argument:
"").
I: [pulseaudio] module.c: Loaded "module-augment-properties" (index: #3;
argument: "").
I: [pulseaudio] module.c: Loaded "module-switch-on-port-available" (index:
#4; argument: "").
W: [pulseaudio] module.c: module-detect is deprecated: Please use
module-udev-detect instead of module-detect!
I: [pulseaudio] (alsa-lib)conf.c: Unknown parameters 0
I: [pulseaudio] (alsa-lib)pcm.c: Unknown PCM front:0
I: [pulseaudio] alsa-util.c: Error opening PCM device front:0: Invalid
argument
I: [pulseaudio] alsa-util.c: Cannot disable ALSA period wakeups
I: [pulseaudio] alsa-util.c: ALSA period wakeups were not disabled
I: [pulseaudio] alsa-sink.c: Successfully opened device hw:0.
I: [pulseaudio] alsa-sink.c: Selected mapping 'Analog Stereo'
(analog-stereo).
I: [pulseaudio] alsa-sink.c: Successfully enabled mmap() mode.
I: [pulseaudio] alsa-sink.c: Successfully enabled timer-based scheduling
mode.
I: [pulseaudio] alsa-util.c: Successfully attached to mixer 'hw:0'

# 
# pulseaudio --verbose --system
W: [pulseaudio] main.c: Running in system mode, but --disallow-exit not set.
W: [pulseaudio] main.c: Running in system mode, but
--disallow-module-loading not set.
N: [pulseaudio] main.c: Running in system mode, forcibly disabling SHM mode.
N: [pulseaudio] main.c: Running in system mode, forcibly disabling exit idle
time.
I: [pulseaudio] core-util.c: Successfully gained nice level -11.
E: [pulseaudio] main.c: Failed to find user 'pulse'.
#

I don't know how to solve this issue
how to let pulseaudio process work.

Thanks,
Jonas.



--
View this message in context: http://buildroot-busybox.2317881.n4.nabble.com/pulseaudio-isn-t-work-on-buildroot-2017-02-5-tp173857.html
Sent from the Buildroot (busybox) mailing list archive at Nabble.com.

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Buildroot] pulseaudio isn't work on buildroot-2017.02.5
  2017-08-24 10:42 [Buildroot] pulseaudio isn't work on buildroot-2017.02.5 Jonas
@ 2017-08-24 17:26 ` Thomas Petazzoni
  2017-08-25  5:48   ` Jonas
  0 siblings, 1 reply; 6+ messages in thread
From: Thomas Petazzoni @ 2017-08-24 17:26 UTC (permalink / raw)
  To: buildroot

Hello,

Thanks for your report!

On Thu, 24 Aug 2017 03:42:05 -0700 (MST), Jonas wrote:
> E: [pulseaudio] main.c: Failed to find user 'pulse'.

So it complains that there is no user called "pulse". This is weird,
because in package/pulseaudio/pulseaudio.mk, we have:

ifeq ($(BR2_PACKAGE_PULSEAUDIO_DAEMON),y)
define PULSEAUDIO_USERS
        pulse -1 pulse -1 * /var/run/pulse - audio,pulse-access
endef

So, the pulse user should exist. Could you:

 - Check output/target/etc/passwd and see if a "pulse" user exists.

 - Make sure that this issue can be reproduced after doing a complete
   rebuild, i.e "make clean all".

Thanks!

Thomas
-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Buildroot] pulseaudio isn't work on buildroot-2017.02.5
  2017-08-24 17:26 ` Thomas Petazzoni
@ 2017-08-25  5:48   ` Jonas
  2018-03-01 14:12     ` Jörg Krause
  0 siblings, 1 reply; 6+ messages in thread
From: Jonas @ 2017-08-25  5:48 UTC (permalink / raw)
  To: buildroot

Hi Thomas,

thank you for your reply.

I try to set "BR2_PACKAGE_PULSEAUDIO_DAEMON".

# ps
...
  223 root     -sh
  224 root     /sbin/getty -L tty1 0 vt100
  256 pulse    pulseaudio --system --daemonize
  260 root     ps

it seen works in system mode, but I want to use "pactl" command.
I need set source and sink.

I get this error message:
# pactl stat
Connection failure: Access denied

#pactl list sources short
Connection failure: Access denied

#pactl list sink short
Connection failure: Access denied

Could you help me again.
Thank you very much.

Thanks, 
Jonas.



--
View this message in context: http://buildroot-busybox.2317881.n4.nabble.com/pulseaudio-isn-t-work-on-buildroot-2017-02-5-tp173857p173903.html
Sent from the Buildroot (busybox) mailing list archive at Nabble.com.

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Buildroot] pulseaudio isn't work on buildroot-2017.02.5
  2017-08-25  5:48   ` Jonas
@ 2018-03-01 14:12     ` Jörg Krause
  2018-03-01 22:07       ` Baruch Siach
  0 siblings, 1 reply; 6+ messages in thread
From: Jörg Krause @ 2018-03-01 14:12 UTC (permalink / raw)
  To: buildroot

Hi Jonas, Thomas,

On Thu, 2017-08-24 at 22:48 -0700, Jonas wrote:
> Hi Thomas,
> 
> thank you for your reply.
> 
> I try to set "BR2_PACKAGE_PULSEAUDIO_DAEMON".
> 
> # ps
> ...
>   223 root     -sh
>   224 root     /sbin/getty -L tty1 0 vt100
>   256 pulse    pulseaudio --system --daemonize
>   260 root     ps
> 
> it seen works in system mode, but I want to use "pactl" command.
> I need set source and sink.
> 
> I get this error message:
> # pactl stat
> Connection failure: Access denied
> 
> #pactl list sources short
> Connection failure: Access denied
> 
> #pactl list sink short
> Connection failure: Access denied
> 
> Could you help me again.
> Thank you very much.

In case someone has the same issue. I got it working adding the root
user to the pulse-access group:

# grep pulse-access /etc/group
pulse-access:x:1006:pulse,root

@Thomas: Is this something we need to address if
BR2_PACKAGE_PULSEAUDIO_DAEMON is selected?

Best regards,
J?rg Krause

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Buildroot] pulseaudio isn't work on buildroot-2017.02.5
  2018-03-01 14:12     ` Jörg Krause
@ 2018-03-01 22:07       ` Baruch Siach
  2018-03-04  9:18         ` Jörg Krause
  0 siblings, 1 reply; 6+ messages in thread
From: Baruch Siach @ 2018-03-01 22:07 UTC (permalink / raw)
  To: buildroot

Hi J?rg,

On Thu, Mar 01, 2018 at 03:12:19PM +0100, J?rg Krause wrote:
> On Thu, 2017-08-24 at 22:48 -0700, Jonas wrote:
> > thank you for your reply.
> > 
> > I try to set "BR2_PACKAGE_PULSEAUDIO_DAEMON".
> > 
> > # ps
> > ...
> >   223 root     -sh
> >   224 root     /sbin/getty -L tty1 0 vt100
> >   256 pulse    pulseaudio --system --daemonize
> >   260 root     ps
> > 
> > it seen works in system mode, but I want to use "pactl" command.
> > I need set source and sink.
> > 
> > I get this error message:
> > # pactl stat
> > Connection failure: Access denied
> > 
> > #pactl list sources short
> > Connection failure: Access denied
> > 
> > #pactl list sink short
> > Connection failure: Access denied
> > 
> > Could you help me again.
> > Thank you very much.
> 
> In case someone has the same issue. I got it working adding the root
> user to the pulse-access group:
> 
> # grep pulse-access /etc/group
> pulse-access:x:1006:pulse,root

Do you have any idea how this solves the permission issue?

> @Thomas: Is this something we need to address if
> BR2_PACKAGE_PULSEAUDIO_DAEMON is selected?

barauch

-- 
     http://baruch.siach.name/blog/                  ~. .~   Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
   - baruch at tkos.co.il - tel: +972.52.368.4656, http://www.tkos.co.il -

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Buildroot] pulseaudio isn't work on buildroot-2017.02.5
  2018-03-01 22:07       ` Baruch Siach
@ 2018-03-04  9:18         ` Jörg Krause
  0 siblings, 0 replies; 6+ messages in thread
From: Jörg Krause @ 2018-03-04  9:18 UTC (permalink / raw)
  To: buildroot

Hi Baruch,

On Fri, 2018-03-02 at 00:07 +0200, Baruch Siach wrote:
> Hi J?rg,
> 
> On Thu, Mar 01, 2018 at 03:12:19PM +0100, J?rg Krause wrote:
> > On Thu, 2017-08-24 at 22:48 -0700, Jonas wrote:
> > > thank you for your reply.
> > > 
> > > I try to set "BR2_PACKAGE_PULSEAUDIO_DAEMON".
> > > 
> > > # ps
> > > ...
> > >   223 root     -sh
> > >   224 root     /sbin/getty -L tty1 0 vt100
> > >   256 pulse    pulseaudio --system --daemonize
> > >   260 root     ps
> > > 
> > > it seen works in system mode, but I want to use "pactl" command.
> > > I need set source and sink.
> > > 
> > > I get this error message:
> > > # pactl stat
> > > Connection failure: Access denied
> > > 
> > > #pactl list sources short
> > > Connection failure: Access denied
> > > 
> > > #pactl list sink short
> > > Connection failure: Access denied
> > > 
> > > Could you help me again.
> > > Thank you very much.
> > 
> > In case someone has the same issue. I got it working adding the root
> > user to the pulse-access group:
> > 
> > # grep pulse-access /etc/group
> > pulse-access:x:1006:pulse,root
> 
> Do you have any idea how this solves the permission issue?

Not really. To be honest, I didn't really try to find a better
solution.

J?rg

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2018-03-04  9:18 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-08-24 10:42 [Buildroot] pulseaudio isn't work on buildroot-2017.02.5 Jonas
2017-08-24 17:26 ` Thomas Petazzoni
2017-08-25  5:48   ` Jonas
2018-03-01 14:12     ` Jörg Krause
2018-03-01 22:07       ` Baruch Siach
2018-03-04  9:18         ` Jörg Krause

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.