public inbox for linux-bluetooth@vger.kernel.org
 help / color / mirror / Atom feed
From: TJ <tj.trevelyan@gmail.com>
To: BlueZ users <bluez-users@lists.sourceforge.net>
Subject: Re: [Bluez-users] A2DPD fails to init with a2dp_make_listen_socket: (errno=13:Permission denied)Cannot bind socket
Date: Wed, 25 Apr 2007 14:56:56 +0100	[thread overview]
Message-ID: <20070425135658.8296AF6020@mail1.norse.ukerna.ac.uk> (raw)
In-Reply-To: 6849c8890704240209q46c5ec3ai47241251f7142ebf@mail.gmail.com

Hi,

> 
> While I have got headsetd working fine, but I can't get a2dpd to run.
> It gives the following messages:
> 
...
> 
> This is from CVS on 2007-04-17, I did an update today (2007-04-19) but
> there doesn't seem to be any changes.
> 
> Using libsbc 0.0cvs20070327-1 (Debian testing package)
> 
> This is on Debian testing with bluez-utils 3.7-1, linux kernel 2.6.20.
> 
> I should say that I installed plugz into my home directory and I run all
> the daemons as my user not root. I have PATH, LD_*, etc setup and I
> created symlinks in /usr/lib/alsa-lib to the files in the alsa-lib under
> my home dir, since I didn't know how else to tell ALSA where to look.
> 

It appears to run OK as root (from my homedir):
~$ sudo Linux/bin/a2dpd --nofork --file .a2dprc

A2DPD[14:50:01.264]: main: Config file .a2dprc
A2DPD[14:50:01.265]: init_ipc: Selected IPC: unix, addr=127.0.0.1,
bcst=127.0.0.255, port=21453
A2DPD[14:50:01.265]: make_daemon_process: a2dpd [Apr 17 2007 09:46:05]
starting ...
A2DPD[14:50:01.265]: main: (errno=9:Bad file descriptor)Linux/bin/a2dpd
addr=00:13:17:C5:39:94 timer=4000 us [Apr 17 2007 09:46:12]
A2DPD[14:50:01.265]: a2dpd_signal_init: Getting on DBUS
A2DPD[14:50:01.266]: a2dpd_signal_init: Installing watch
A2DPD[14:50:01.266]: add_dbus_watch: Added watch 0 0x809b8e0 disabled
A2DPD[14:50:01.267]: add_dbus_watch: Added watch 1 0x809b908 enabled
A2DPD[14:50:01.267]: a2dpd_signal_init: Registering object
path: /com/access/a2dpd
A2DPD[14:50:01.267]: a2dpd_signal_init: Acquiring service: com.access.a2dpd
A2DPD[14:50:01.267]: a2dpd_signal_init: OK
A2DPD[14:50:01.267]: a2dpd_signal_init: OK
A2DPD[14:50:01.267]: a2dpd_register_sdp: OK
A2DPD[14:50:01.267]: add_avrtg:
A2DPD[14:50:01.268]: add_a2source:
A2DPD[14:50:01.268]: main_loop:
A2DPD[14:50:01.268]: make_server_socket:
A2DPD[14:50:01.268]: bta2dpdevicenew:
A2DPD[14:50:01.268]: a2dpd_signal_address_changed: 00:13:17:C5:39:94
A2DPD[14:50:01.268]: a2dpd_signal_set_socket: Signal socket set to 7
A2DPD[14:50:01.269]: a2dpd_signal_state: Disconnected
A2DPD[14:50:01.269]: a2dp_alloc:
A2DPD[14:50:01.269]: a2dp_alloc: (a2dp = 0x80a92c0)
A2DPD[14:50:01.269]: a2dp_new: 00:13:17:C5:39:94, 44100
A2DPD[14:50:01.269]: a2dp_new: State AVDTP_STATE_DISCONNECTED
A2DPD[14:50:01.269]: alsa_new:
A2DPD[14:50:01.269]: alsa_new: device=plughw:0,0, framerate=44100
A2DPD[14:50:01.269]: alsa_new: State ALSA_STATE_DISCONNECTED
A2DPD[14:50:01.269]: alsa_new: returning 0x80ab448
A2DPD[14:50:01.269]: sco_new:
A2DPD[14:50:01.269]: sco_new: State SCO_STATE_DISCONNECTED
A2DPD[14:50:01.269]: sco_state_disconnect: Filtering state : already
disconnected
A2DPD[14:50:01.269]: main_loop: Bluetooth Device Settings [44100 hz, 2
channels, 16 bits]
A2DPD[14:50:01.270]: avrcp_new: Listening for AVRCP on socket 9
A2DPD[14:50:01.270]: avrcp_new: 0x80ab558

Surely it must be possible to run as a normal users? don't the docs say
_not_ to run a2pdp as root. While running as root I can play anything from
my user, only if the playing app is running as root, which is not at all
ideal.

I would assume this is a permissions issue. Obviously my user can write
to /tmp, and headsetd runs fine as my user to bluetooth/alsa comms must be
ok?

So what is causing this?

Thorben



-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users

      parent reply	other threads:[~2007-04-25 13:56 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <6849c8890704200342k23f7e54ckaf0920197c4e5e1a@mail.gmail.com>
2007-04-24  9:09 ` [Bluez-users] A2DPD fails to init with a2dp_make_listen_socket: (errno=13:Permission denied)Cannot bind socket TJ
2007-04-24  9:53   ` Frederic Dalleau
2007-04-25  9:00     ` TJ
2007-04-25 13:56   ` TJ [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20070425135658.8296AF6020@mail1.norse.ukerna.ac.uk \
    --to=tj.trevelyan@gmail.com \
    --cc=bluez-users@lists.sourceforge.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox