Bug#521675: Only root can play sound in pulseaudio

2014-04-08 Thread Felipe Sateler
Control: found -1 2.0-6.1
Hi,

On Mon, Apr 7, 2014 at 6:52 PM, Dr. Robin Haunschild h...@unschild.de wrote:
 Hi,

 yes, I still experience this in the pulseaudio version of Debian/stable. I 
 didn't test newer versions. My workaround is to kill all pulseaudio processes 
 as root and restart audio play back.

If you could test the version from testing it would be great to
confirm, but lets try to debug the problem.

Could you please post the output of the following commands?

pulseaudio -v -v -v
groups (this is to see if you are in the audio group)
ls -l /dev/snd
cat /etc/default/pulseaudio

Also, does that system have multiple users?

-- 

Saludos,
Felipe Sateler


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#521675: Only root can play sound in pulseaudio

2014-04-08 Thread Dr. Robin Haunschild
Hi,

on Tue, 08 04 14 14:50:06 Felipe Sateler wrote:
 Control: found -1 2.0-6.1
 Hi,
 
 On Mon, Apr 7, 2014 at 6:52 PM, Dr. Robin Haunschild h...@unschild.de wrote:
  Hi,
  
  yes, I still experience this in the pulseaudio version of Debian/stable.
  I didn't test newer versions. My workaround is to kill all pulseaudio
  processes as root and restart audio play back.
 
 If you could test the version from testing it would be great to
 confirm, but lets try to debug the problem.

Aren't there too many dependencies that I have to make some kind of a half or 
even full upgrade to testing? E.g.: I have libc6 in version 2.13-38+deb7u1 but 
pulseaudio from testing requires a libc6 version = 2.15.

 Could you please post the output of the following commands?

Sure.

 pulseaudio -v -v -v

$ pulseaudio -v -v -v
I: [pulseaudio] main.c: setrlimit(RLIMIT_NICE, (31, 31)) failed: Operation not 
permitted
D: [pulseaudio] core-rtclock.c: Timer slack is set to 50 us.
I: [pulseaudio] core-util.c: Failed to acquire high-priority scheduling: 
Permission denied
I: [pulseaudio] main.c: This is PulseAudio 2.0
D: [pulseaudio] main.c: Compilation host: x86_64-pc-linux-gnu
D: [pulseaudio] main.c: Compilation CFLAGS: -g -O2 -fstack-protector --
param=ssp-buffer-size=4 -Wformat -Werror=format-security -Wall -W -Wextra -pipe 
-Wno-long-long -Wvla -Wno-overlength-strings -Wunsafe-loop-optimizations -
Wundef -Wformat=2 -Wlogical-op -Wsign-compare -Wformat-security -Wmissing-
include-dirs -Wformat-nonliteral -Wpointer-arith -Winit-self -Wdeclaration-
after-statement -Wfloat-equal -Wmissing-prototypes -Wredundant-decls -Wmissing-
declarations -Wmissing-noreturn -Wshadow -Wendif-labels -Wcast-align -Wstrict-
aliasing -Wwrite-strings -Wno-unused-parameter -ffast-math -Wp,-
D_FORTIFY_SOURCE=2 -fno-common -fdiagnostics-show-option
D: [pulseaudio] main.c: Running on host: Linux x86_64 3.2.0-4-amd64 #1 SMP 
Debian 3.2.54-2
D: [pulseaudio] main.c: Found 2 CPUs.
I: [pulseaudio] main.c: Page size is 4096 bytes
D: [pulseaudio] main.c: Compiled with Valgrind support: no
D: [pulseaudio] main.c: Running in valgrind mode: no
D: [pulseaudio] main.c: Running in VM: no
D: [pulseaudio] main.c: Optimized build: yes
D: [pulseaudio] main.c: FASTPATH defined, only fast path asserts disabled.
I: [pulseaudio] main.c: Machine ID is 1255fd68d056555ca29812ab4b119d93.
I: [pulseaudio] main.c: Session ID is 
1255fd68d056555ca29812ab4b119d93-1396941267.271260-609221226.
I: [pulseaudio] main.c: Using runtime directory 
/home/robin/.pulse/1255fd68d056555ca29812ab4b119d93-runtime.
I: [pulseaudio] main.c: Using state directory /home/robin/.pulse.
I: [pulseaudio] main.c: Using modules directory /usr/lib/pulse-2.0/modules.
I: [pulseaudio] main.c: Running in system mode: no
E: [pulseaudio] pid.c: Daemon already running.
E: [pulseaudio] main.c: pa_pid_file_create() failed.

$ ps aux | grep pulseaudio
119   4253  0.6  0.0 237188  5864 ?Sl   09:13   2:13 
/usr/bin/pulseaudio --start --log-target=syslog
119   4481  0.0  0.0 116492  3188 ?S09:14   0:00 
/usr/lib/pulseaudio/pulse/gconf-helper
robin 5622  0.0  0.0 323700  7484 ?Sl   09:15   0:01 
/usr/bin/pulseaudio --start --log-target=syslog
robin 5623  0.0  0.0 116464  3196 ?S09:15   0:00 
/usr/lib/pulseaudio/pulse/gconf-helper
robin12021  0.0  0.0   7836   872 pts/7S+   15:01   0:00 grep 
pulseaudio

$ grep 119 /etc/passwd
speech-dispatcher:x:119:29:Speech Dispatcher,,,:/var/run/speech-
dispatcher:/bin/sh
$ grep 119 /etc/group
pulse-access:x:119:robin

I'm not aware that I am using speech-dispatcher. Maybe I just uninstall the 
package speech-dispatcher and hope the problem will be gone. Or is speech-
dispatcher some system package needed by other applications?

 groups (this is to see if you are in the audio group)

$ groups
robin dialout cdrom floppy sudo audio dip src video plugdev scanner netdev 
bluetooth pulse pulse-access vboxusers fuse

 ls -l /dev/snd

$  ls -l /dev/snd
total 0
drwxr-xr-x 2 root root   60 Apr  8 09:13 by-path
crw-rw---T 1 root audio 116,  9 Apr  8 09:13 controlC0
crw-rw---T 1 root audio 116,  8 Apr  8 09:13 hwC0D0
crw-rw---T 1 root audio 116,  7 Apr  8 09:13 hwC0D1
crw-rw---T 1 root audio 116,  6 Apr  8 09:13 hwC0D3
crw-rw---T 1 root audio 116,  5 Apr  8 15:01 pcmC0D0c
crw-rw---T 1 root audio 116,  4 Apr  8 15:01 pcmC0D0p
crw-rw---T 1 root audio 116,  3 Apr  8 15:01 pcmC0D1p
crw-rw---T 1 root audio 116,  2 Apr  8 15:01 pcmC0D3p
crw--T 1 root root  116,  1 Apr  8 11:13 seq
crw-rw---T 1 root audio 116, 33 Apr  8 11:13 timer

 cat /etc/default/pulseaudio

$ cat /etc/default/pulseaudio
# Start the PulseAudio sound server in system mode.
# (enables the pulseaudio init script - requires that users be in the
# pulse-access group)
# System mode is not the recommended way to run PulseAudio as it has some
# limitations (such as no shared memory access) and could potentially allow
# users to disconnect or redirect each others' audio streams. 

Bug#521675: Only root can play sound in pulseaudio

2014-04-08 Thread Felipe Sateler
Hi,

On Tue, Apr 8, 2014 at 10:23 AM, Dr. Robin Haunschild h...@unschild.de wrote:
 on Tue, 08 04 14 14:50:06 Felipe Sateler wrote:
 On Mon, Apr 7, 2014 at 6:52 PM, Dr. Robin Haunschild h...@unschild.de 
 wrote:
  yes, I still experience this in the pulseaudio version of Debian/stable.
  I didn't test newer versions. My workaround is to kill all pulseaudio
  processes as root and restart audio play back.

 If you could test the version from testing it would be great to
 confirm, but lets try to debug the problem.

 Aren't there too many dependencies that I have to make some kind of a half or
 even full upgrade to testing? E.g.: I have libc6 in version 2.13-38+deb7u1 but
 pulseaudio from testing requires a libc6 version = 2.15.

Yes, possibly, if it is too much of a hassle nevermind.


 Could you please post the output of the following commands?

 Sure.

 pulseaudio -v -v -v

 $ pulseaudio -v -v -v
 I: [pulseaudio] main.c: setrlimit(RLIMIT_NICE, (31, 31)) failed: Operation not
 permitted
 D: [pulseaudio] core-rtclock.c: Timer slack is set to 50 us.
 I: [pulseaudio] core-util.c: Failed to acquire high-priority scheduling:
 Permission denied
 I: [pulseaudio] main.c: This is PulseAudio 2.0
 D: [pulseaudio] main.c: Compilation host: x86_64-pc-linux-gnu
 D: [pulseaudio] main.c: Compilation CFLAGS: -g -O2 -fstack-protector --
 param=ssp-buffer-size=4 -Wformat -Werror=format-security -Wall -W -Wextra 
 -pipe
 -Wno-long-long -Wvla -Wno-overlength-strings -Wunsafe-loop-optimizations -
 Wundef -Wformat=2 -Wlogical-op -Wsign-compare -Wformat-security -Wmissing-
 include-dirs -Wformat-nonliteral -Wpointer-arith -Winit-self -Wdeclaration-
 after-statement -Wfloat-equal -Wmissing-prototypes -Wredundant-decls 
 -Wmissing-
 declarations -Wmissing-noreturn -Wshadow -Wendif-labels -Wcast-align -Wstrict-
 aliasing -Wwrite-strings -Wno-unused-parameter -ffast-math -Wp,-
 D_FORTIFY_SOURCE=2 -fno-common -fdiagnostics-show-option
 D: [pulseaudio] main.c: Running on host: Linux x86_64 3.2.0-4-amd64 #1 SMP
 Debian 3.2.54-2
 D: [pulseaudio] main.c: Found 2 CPUs.
 I: [pulseaudio] main.c: Page size is 4096 bytes
 D: [pulseaudio] main.c: Compiled with Valgrind support: no
 D: [pulseaudio] main.c: Running in valgrind mode: no
 D: [pulseaudio] main.c: Running in VM: no
 D: [pulseaudio] main.c: Optimized build: yes
 D: [pulseaudio] main.c: FASTPATH defined, only fast path asserts disabled.
 I: [pulseaudio] main.c: Machine ID is 1255fd68d056555ca29812ab4b119d93.
 I: [pulseaudio] main.c: Session ID is
 1255fd68d056555ca29812ab4b119d93-1396941267.271260-609221226.
 I: [pulseaudio] main.c: Using runtime directory
 /home/robin/.pulse/1255fd68d056555ca29812ab4b119d93-runtime.
 I: [pulseaudio] main.c: Using state directory /home/robin/.pulse.
 I: [pulseaudio] main.c: Using modules directory /usr/lib/pulse-2.0/modules.
 I: [pulseaudio] main.c: Running in system mode: no
 E: [pulseaudio] pid.c: Daemon already running.
 E: [pulseaudio] main.c: pa_pid_file_create() failed.

Pulseaudio was already running so we can't say what is the problem,
however there are hints below:


 $ ps aux | grep pulseaudio
 119   4253  0.6  0.0 237188  5864 ?Sl   09:13   2:13
 /usr/bin/pulseaudio --start --log-target=syslog
 119   4481  0.0  0.0 116492  3188 ?S09:14   0:00
 /usr/lib/pulseaudio/pulse/gconf-helper
 robin 5622  0.0  0.0 323700  7484 ?Sl   09:15   0:01
 /usr/bin/pulseaudio --start --log-target=syslog
 robin 5623  0.0  0.0 116464  3196 ?S09:15   0:00
 /usr/lib/pulseaudio/pulse/gconf-helper
 robin12021  0.0  0.0   7836   872 pts/7S+   15:01   0:00 grep
 pulseaudio

 $ grep 119 /etc/passwd
 speech-dispatcher:x:119:29:Speech Dispatcher,,,:/var/run/speech-
 dispatcher:/bin/sh
 $ grep 119 /etc/group
 pulse-access:x:119:robin

 I'm not aware that I am using speech-dispatcher. Maybe I just uninstall the
 package speech-dispatcher and hope the problem will be gone. Or is speech-
 dispatcher some system package needed by other applications?

This may be the problem. Does /etc/default/speech-dispatcher enable
the speech dispatcher? I have RUN=no in that file. Please try
disabling the speech dispatcher. Uninstalling might be more difficult
given gnome metapackage Depends on gnome-orca which in turn depends on
speech-dispatcher.

As noted earlier in this bug, the previous time you posted the
pulseaudio output there was this message:

D: module-udev-detect.c: /devices/pci:00/:00:1b.0/sound/card0
is busy: yes

This may mean that the real bug is that pulseaudio cannot negotiate
the card with itself (the pulseaudio started by speech-dispatcher vs
the pulseaudio by your own user).


 groups (this is to see if you are in the audio group)

 $ groups
 robin dialout cdrom floppy sudo audio dip src video plugdev scanner netdev
 bluetooth pulse pulse-access vboxusers fuse

 ls -l /dev/snd

 $  ls -l /dev/snd
 total 0
 drwxr-xr-x 2 root root   60 Apr  8 09:13 by-path
 crw-rw---T 1 root audio 116,  9 Apr  8 

Bug#521675: Only root can play sound in pulseaudio

2014-04-08 Thread Dr. Robin Haunschild
Hi,

on Tue, 08 04 14 15:54:27 Felipe Sateler wrote:

[...]

  $ grep 119 /etc/passwd
  speech-dispatcher:x:119:29:Speech Dispatcher,,,:/var/run/speech-
  dispatcher:/bin/sh
  $ grep 119 /etc/group
  pulse-access:x:119:robin
  
  I'm not aware that I am using speech-dispatcher. Maybe I just uninstall
  the package speech-dispatcher and hope the problem will be gone. Or is
  speech- dispatcher some system package needed by other applications?
 
 This may be the problem. Does /etc/default/speech-dispatcher enable
 the speech dispatcher? I have RUN=no in that file. Please try
 disabling the speech dispatcher. Uninstalling might be more difficult

Right, I had RUN=yes, changed it into RUN=no, and restarted the system.

Now the pulseaudio process from speech-dispatcher has not been started. Also, 
I can play sound as expected. I tried a regular mp3 and ogg file as well as 
playing youtube and some local video, works fine. Thanks so much. Please feel 
free to close this bug.

However, I'd like to note that I did not set RUN=yes. Do I have to expect some 
disadvantage setting RUN=no? Is it possible to include in the post-install-
script of pulseaudio that RUN=no is set in  /etc/default/speech-dispatcher in 
case there is no general disadvantage?


Best regards,

Robin
-- 
Dr. Robin Haunschild
h...@unschild.de


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#521675: Only root can play sound in pulseaudio

2014-04-08 Thread Felipe Sateler
On Tue, Apr 8, 2014 at 11:41 AM, Dr. Robin Haunschild h...@unschild.de wrote:
 Hi,

 on Tue, 08 04 14 15:54:27 Felipe Sateler wrote:

 [...]

  $ grep 119 /etc/passwd
  speech-dispatcher:x:119:29:Speech Dispatcher,,,:/var/run/speech-
  dispatcher:/bin/sh
  $ grep 119 /etc/group
  pulse-access:x:119:robin
 
  I'm not aware that I am using speech-dispatcher. Maybe I just uninstall
  the package speech-dispatcher and hope the problem will be gone. Or is
  speech- dispatcher some system package needed by other applications?

 This may be the problem. Does /etc/default/speech-dispatcher enable
 the speech dispatcher? I have RUN=no in that file. Please try
 disabling the speech dispatcher. Uninstalling might be more difficult

 Right, I had RUN=yes, changed it into RUN=no, and restarted the system.

 Now the pulseaudio process from speech-dispatcher has not been started. Also,
 I can play sound as expected. I tried a regular mp3 and ogg file as well as
 playing youtube and some local video, works fine. Thanks so much. Please feel
 free to close this bug.

 However, I'd like to note that I did not set RUN=yes. Do I have to expect some
 disadvantage setting RUN=no? Is it possible to include in the post-install-
 script of pulseaudio that RUN=no is set in  /etc/default/speech-dispatcher in
 case there is no general disadvantage?

The default is to set RUN=no, both in the version in wheezy and the
version in testing. Possibly speech-dispatcher defaulted to yes on
earlier versions and it didn't migrate.

There is a bug about this in speech-dispatcher which I just noticed
(#625235). I can reproduce the problem in current sid by enabling
speech-dispatcher and rebooting. I would think this is a bug in
pulseaudio, as it should be capable of talking to itself to negotiate
the card.

Strangely enough, if I start another user session I can play sound
with pulseaudio just fine. I need to do some research.

-- 

Saludos,
Felipe Sateler


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#521675: Only root can play sound in pulseaudio

2014-04-07 Thread Felipe Sateler
Hi all,

 Since then, all sounds which depend on pulseaudio can be played only as root.

Do you still experience this issue? This bug was filed against a very
old version of pulseaudio and could have been fixed in the meantime.
If you still experience this, please reply so that we can debug this.
Otherwise, I'd like to close this bug.

Thanks

-- 

Saludos,
Felipe Sateler


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#521675: Only root can play sound in pulseaudio

2014-04-07 Thread Dr. Robin Haunschild
Hi,

yes, I still experience this in the pulseaudio version of Debian/stable. I 
didn't test newer versions. My workaround is to kill all pulseaudio processes 
as root and restart audio play back.

Best, Robin

On 7. April 2014 22:40:06 MESZ, Felipe Sateler fsate...@debian.org wrote:
Hi all,

 Since then, all sounds which depend on pulseaudio can be played only
as root.

Do you still experience this issue? This bug was filed against a very
old version of pulseaudio and could have been fixed in the meantime.
If you still experience this, please reply so that we can debug this.
Otherwise, I'd like to close this bug.

Thanks

-- 
 Sent from my Xperia Tablet Z


--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#521675: Only root can play sound in pulseaudio

2009-05-24 Thread Sjoerd Simons
On Sun, Apr 12, 2009 at 05:06:51PM +0200, giacomo wrote:
 found 521675 0.9.15~test5-1
 thanks

 I think I experienced the same bug, pulseaudio works just if started by  
 root; it doesn't work if started from /etc/init.d/pulseaudio either  
 (started as pulse user)...
 Tried both 0.9.14 and the version in experimental.

Odd, is your normal user part of the audio group? Can you send the output of
running pulseaudio -v -v -v as a user ?

  Sjoerd
-- 
The clash of ideas is the sound of freedom.



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#521675: Only root can play sound in pulseaudio

2009-04-12 Thread giacomo

found 521675 0.9.15~test5-1
thanks

I think I experienced the same bug, pulseaudio works just if started by 
root; it doesn't work if started from /etc/init.d/pulseaudio either 
(started as pulse user)...

Tried both 0.9.14 and the version in experimental.
Cheers,

Giacomo




--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#521675: Only root can play sound in pulseaudio

2009-03-29 Thread Lancelot du Lac
Package: pulseaudio
Version: 0.9.14-2
Severity: important

Yesterday I did a full-upgrade and there was an update of pulseaudio. Since 
then, all sounds which depend on pulseaudio can be played only as root.
For example, kaffeine only has sound as root when the xine engine plays through 
pulseaudio, but it works just fine as a user when the xine engine plays through 
alsa.

I tried to add my user to each of the 3 pulse groups, no effect. 
I tried to disactivate high priority in daemon.conf, no effect.

Starting the pulse server as root seems to solve the issue.
Now I'm going to try to start it as a daemon at boot-time.
Yet it seems to create security issues.



-- System Information:
Debian Release: squeeze/sid
  APT prefers testing
  APT policy: (990, 'testing'), (50, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.26-lancelot-005-amd64 (SMP w/2 CPU cores; PREEMPT)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages pulseaudio depends on:
ii  adduser   3.110  add and remove users and groups
ii  consolekit0.3.0-2framework for defining and trackin
ii  libasound21.0.19-1   shared library for ALSA applicatio
ii  libasyncns0   0.3-1  Asyncronous name service query lib
ii  libc6 2.9-4  GNU C Library: Shared libraries
ii  libcap2   2.16-2 support for getting/setting POSIX.
ii  libdbus-1-3   1.2.12-1   simple interprocess messaging syst
ii  libgdbm3  1.8.3-4GNU dbm database routines (runtime
ii  libltdl3  1.5.26-4   A system independent dlopen wrappe
ii  liboil0.3 0.3.15-1   Library of Optimized Inner Loops
ii  libpolkit-dbus2   0.9-3  library for accessing PolicyKit vi
ii  libpolkit20.9-3  library for accessing PolicyKit
ii  libpulsecore9 0.9.14-2   PulseAudio sound server core
ii  libsamplerate00.1.7-2audio rate conversion library
ii  libsndfile1   1.0.18-2   Library for reading/writing audio 
ii  libspeexdsp1  1.2~rc1-1  The Speex extended runtime library
ii  libwrap0  7.6.q-16   Wietse Venema's TCP wrappers libra
ii  lsb-base  3.2-20 Linux Standard Base 3.2 init scrip

Versions of packages pulseaudio recommends:
ii  gstreamer0.10-pulseaudio  0.9.7-2GStreamer plugin for PulseAudio
ii  libasound2-plugins1.0.19-2   ALSA library additional plugins
ii  padevchooser  0.9.3-2PulseAudio Device Chooser
ii  paprefs   0.9.6-2PulseAudio Preferences
ii  pulseaudio-esound-compat  0.9.14-2   PulseAudio ESD compatibility layer
ii  pulseaudio-module-hal 0.9.14-2   HAL device detection module for Pu
ii  pulseaudio-module-x11 0.9.14-2   X11 module for PulseAudio sound se

Versions of packages pulseaudio suggests:
ii  paman0.9.4-1 PulseAudio Manager
ii  pavucontrol  0.9.6+svn20080426-1 PulseAudio Volume Control
ii  pavumeter0.9.3-1 PulseAudio Volume Meter
ii  pulseaudio-utils 0.9.14-2Command line tools for the PulseAu

-- no debconf information




-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org