You are not logged in.
I'm reading http://wiki.archlinux.org/index.php/Bluetooth
The goal is to pair my phone (sony ericsson k810i) with my PC (which has a broadcom dongle)
I got the dongle working by doing 'sudo hcitool hci0 up' and 'hcitool scan' shows my phone.
But now the main problem is, I cannot pair my phone with my pc:
dieter@dieter-ws-a7n8x-arch ~ hcitool dev
Devices:
hci0 00:02:72:C4:7C:06
dieter@dieter-ws-a7n8x-arch ~ bluez-simple-agent --help
Traceback (most recent call last):
File "/usr/bin/bluez-simple-agent", line 80, in <module>
manager = dbus.Interface(bus.get_object("org.bluez", "/"),
File "/usr/lib/python2.6/site-packages/dbus/bus.py", line 244, in get_object
follow_name_owner_changes=follow_name_owner_changes)
File "/usr/lib/python2.6/site-packages/dbus/proxies.py", line 241, in __init__
self._named_service = conn.activate_name_owner(bus_name)
File "/usr/lib/python2.6/site-packages/dbus/bus.py", line 183, in activate_name_owner
self.start_service_by_name(bus_name)
File "/usr/lib/python2.6/site-packages/dbus/bus.py", line 281, in start_service_by_name
'su', (bus_name, flags)))
File "/usr/lib/python2.6/site-packages/dbus/connection.py", line 622, in call_blocking
message, timeout)
dbus.exceptions.DBusException: org.freedesktop.DBus.Error.ServiceUnknown: The name org.bluez was not provided by any .service files
http://www.adamish.com/blog/ suggests that bluetoothd is probably not running, and this is correct.
However, i fail to make it run:
dieter@dieter-ws-a7n8x-arch ~ ps aux | grep blue
root 8973 0.0 0.0 0 0 ? S< 15:52 0:00 [bluetooth]
dieter 12048 0.0 0.0 3616 808 pts/1 R+ 16:37 0:00 grep blue
dieter@dieter-ws-a7n8x-arch ~ sudo /etc/rc.d/bluetooth start
:: Starting bluetooth subsystem: bluetoothd [DONE]
dieter@dieter-ws-a7n8x-arch ~ ps aux | grep blue
root 8973 0.0 0.0 0 0 ? S< 15:52 0:00 [bluetooth]
dieter 12203 0.0 0.0 3472 640 pts/1 R+ 16:38 0:00 grep blue
dieter@dieter-ws-a7n8x-arch ~ sudo /etc/rc.d/bluetooth start
:: Starting bluetooth subsystem: bluetoothd [DONE]
dieter@dieter-ws-a7n8x-arch ~ ps aux | grep blue
root 8973 0.0 0.0 0 0 ? S< 15:52 0:00 [bluetooth]
dieter 12284 0.0 0.0 3616 804 pts/1 R+ 16:38 0:00 grep blue
dieter@dieter-ws-a7n8x-arch ~ sudo bluetoothd
dieter@dieter-ws-a7n8x-arch ~ ps aux | grep blue
root 8973 0.0 0.0 0 0 ? S< 15:52 0:00 [bluetooth]
dieter 16299 0.0 0.0 3616 800 pts/1 R+ 16:43 0:00 grep blue
To try to find out why it starts, but exits again, I tried strace but I don't really see what's up:
dieter@dieter-ws-a7n8x-arch ~ sudo strace -f bluetoothd
execve("/usr/sbin/bluetoothd", ["bluetoothd"], [/* 17 vars */]) = 0
(....)
[pid 12594] read(4, "OK 77725070b80e0f842860b99f4a9253"..., 2048) = 37
[pid 12594] poll([{fd=4, events=POLLOUT}], 1, -1) = 1 ([{fd=4, revents=POLLOUT}])
[pid 12594] write(4, "BEGIN\r\n"..., 7) = 7
[pid 12594] poll([{fd=4, events=POLLIN|POLLOUT}], 1, -1) = 1 ([{fd=4, revents=POLLOUT}])
[pid 12594] writev(4, [{"l\1\0\1\0\0\0\0\1\0\0\0n\0\0\0\1\1o\0\25\0\0\0/org/free"..., 128}, {""..., 0}], 2) = 128
[pid 12594] gettimeofday({1251124716, 555954}, NULL) = 0
[pid 12594] poll([{fd=4, events=POLLIN}], 1, 25000) = 1 ([{fd=4, revents=POLLIN}])
[pid 12594] read(4, "l\2\1\1\n\0\0\0\1\0\0\0=\0\0\0\6\1s\0\5\0\0\0:1.33\0\0\0\5"..., 2048) = 260
[pid 12594] read(4, 0xb934cdb8, 2048) = -1 EAGAIN (Resource temporarily unavailable)
[pid 12594] writev(4, [{"l\1\0\1\24\0\0\0\2\0\0\0\200\0\0\0\1\1o\0\25\0\0\0/org/free"..., 144}, {"\t\0\0\0org.bluez\0\0\0\4\0\0\0"..., 20}], 2) = 164
[pid 12594] gettimeofday({1251124716, 556638}, NULL) = 0
[pid 12594] poll([{fd=4, events=POLLIN}], 1, 25000) = 1 ([{fd=4, revents=POLLIN}])
[pid 12594] read(4, "l\3\1\1x\0\0\0\3\0\0\0m\0\0\0\6\1s\0\5\0\0\0:1.33\0\0\0\4"..., 2048) = 248
[pid 12594] read(4, 0xb934cdb8, 2048) = -1 EAGAIN (Resource temporarily unavailable)
[pid 12594] time(NULL) = 1251124716
[pid 12594] writev(2, [{"bluetoothd[12594]: Unable to get "..., 41}, {"\n"..., 1}], 2) = 42
[pid 12594] send(3, "<27>Aug 24 16:38:36 bluetoothd[12"..., 62, MSG_NOSIGNAL) = 62
[pid 12594] exit_group(1) = ?
Process 12594 detached
--- SIGCHLD (Child exited) @ 0 (0) ---
exit_group(0) = ?
In daemon.log I only see:
Aug 24 16:38:36 dieter-ws-a7n8x-arch bluetoothd[12594]: Bluetooth daemon 4.39
Aug 24 16:38:36 dieter-ws-a7n8x-arch bluetoothd[12594]: Unable to get on D-Bus
< Daenyth> and he works prolifically
4 8 15 16 23 42
Offline
Dumb question, but is dbus running? I always have it running on my system, so I have no idea if its required. If you don't mind a bit of 'bloat', I'd recommend blueman for managing your bluetooth, got mine working that way.
Allan-Volunteer on the (topic being discussed) mailn lists. You never get the people who matters attention on the forums.
jasonwryan-Installing Arch is a measure of your literacy. Maintaining Arch is a measure of your diligence. Contributing to Arch is a measure of your competence.
Griemak-Bleeding edge, not bleeding flat. Edge denotes falls will occur from time to time. Bring your own parachute.
Offline
Aha I'm a step further. As per http://bbs.archlinux.org/viewtopic.php?id=65935, I needed to HID2HCI_ENABLE="true" and restart the bluetooth daemon. Weird..
Now "sudo bluez-simple-agent" registers the agent and "listens". But when I make my phone search for new devices, it doesn't find my pc.
< Daenyth> and he works prolifically
4 8 15 16 23 42
Offline
I kinda sortof succeeded.. I guess http://www.archlinux.org/pipermail/arch … 07077.html
< Daenyth> and he works prolifically
4 8 15 16 23 42
Offline