On Wed, Nov 09, 2016 at 09:39:44PM +0100, Michal Zimen wrote:
> Hi,
>
> try to run this:
>
> systemctl --user start obex
>
> systemctl enable --user obex.service
>
> and then you should see the process /usr/lib/bluetooth/obexd running
Hi Michal,
Thanks for this advice (and it would be good to put this in some
README file). I now have obexd running both as root and as my user.
However, while I can now transfer files to the device from my Linux
machine, I still cannot receive files as a regular user.
Here's the /var/log/daemon.log output when receiving a file
(successfully) as root. It starts from when I ran blueman-manager as
root (with only /usr/lib/bluetooth/bluetoothd and
/usr/lib/bluetooth/obexd running, the former as root, the latter as
both root and myself (jdg)):
Nov 11 12:14:02 erdos dbus[733]: [system] Activating service
name='org.blueman.Mechanism' (using servicehelper)
Nov 11 12:14:02 erdos blueman-mechanism: Starting blueman-mechanism
Nov 11 12:14:02 erdos dbus[733]: [system] Successfully activated service
'org.blueman.Mechanism'
Nov 11 12:14:02 erdos blueman-mechanism: loading RfKill
Nov 11 12:14:02 erdos blueman-mechanism: loading Ppp
Nov 11 12:14:02 erdos blueman-mechanism: loading Rfcomm
Nov 11 12:14:02 erdos blueman-mechanism: loading Network
Nov 11 12:14:32 erdos blueman-mechanism: Exiting
Nov 11 12:14:44 erdos obexd[29973]: CONNECT(0x0), (null)(0x)
Nov 11 12:14:44 erdos obexd[29973]: CONNECT(0x0), (null)(0x0)
Nov 11 12:14:45 erdos obexd[29973]: PUT(0x2), (null)(0x)
Nov 11 12:14:54 erdos obexd[29973]: PUT(0x2), CONTINUE(0x10)
Nov 11 12:15:51 erdos obexd[29973]: DISCONNECT(0x1), (null)(0x)
Nov 11 12:15:51 erdos obexd[29973]: DISCONNECT(0x1), SUCCESS(0x20)
Nov 11 12:15:51 erdos obexd[29973]: disconnected: Transport got disconnected
Nov 11 12:15:51 erdos bluetoothd[24349]: Unable to get io data for Object Push:
getpeername: Transport endpoint is not connected (107)
(I tried sending a file twice, the first time unsuccessfully, the
second time successfully.)
In addition, here is the console output:
erdos:~ # blueman-manager
_
Load (/usr/lib/python3/dist-packages/blueman/main/PluginManager.py:60)
['PulseAudioProfile', 'Services']
_
__load_plugin (/usr/lib/python3/dist-packages/blueman/main/PluginManager.py:133)
loading
_
__load_plugin (/usr/lib/python3/dist-packages/blueman/main/PluginManager.py:133)
loading
_
pa_context_event
(/usr/lib/python3/dist-packages/blueman/main/PulseAudioUtils.py:341)
1
blueman-manager version 2.0.4 starting
Stale PID, overwriting
_
pa_context_event
(/usr/lib/python3/dist-packages/blueman/main/PulseAudioUtils.py:341)
2
_
on_bluez_name_owner_changed (/usr/bin/blueman-manager:96)
org.bluez owner changed to :1.11707
_
get_interface_version
(/usr/lib/python3/dist-packages/blueman/bluez/BlueZInterface.py:13)
Detected BlueZ 5
_
SetAdapter (/usr/lib/python3/dist-packages/blueman/gui/DeviceList.py:271)
_
on_adapter_changed
(/usr/lib/python3/dist-packages/blueman/gui/manager/ManagerToolbar.py:83)
toolbar adapter /org/bluez/hci0
_
__init__ (/usr/lib/python3/dist-packages/blueman/main/Device.py:26)
caching initial properties
_
add_device (/usr/lib/python3/dist-packages/blueman/gui/DeviceList.py:317)
adding new device
_
do_cache (/usr/lib/python3/dist-packages/blueman/gui/DeviceList.py:496)
Caching new device BC:79:AD:D8:35:88
_
row_update_event
(/usr/lib/python3/dist-packages/blueman/gui/manager/ManagerDeviceList.py:264)
row update event Fake False
_
row_update_event
(/usr/lib/python3/dist-packages/blueman/gui/manager/ManagerDeviceList.py:264)
row update event Trusted 0
_
row_update_event
(/usr/lib/python3/dist-packages/blueman/gui/manager/ManagerDeviceList.py:264)
row update event Paired 1
_
__init__ (/usr/lib/python3/dist-packages/blueman/main/Device.py:26)
caching initial properties
_
add_device (/usr/lib/python3/dist-packages/blueman/gui/DeviceList.py:317)
adding new device
_
do_cache (/usr/lib/python3/dist-packages/blueman/gui/DeviceList.py:496)
Caching new device 0C:14:20:99:F1:D0
_
row_update_event
(/usr/lib/python3/dist-packages/blueman/gui/manager/ManagerDeviceList.py:264)
row update event Fake False
_
row_update_event
(/usr/lib/python3/dist-packages/blueman/gui/manager/ManagerDeviceList.py:264)
row update event Trusted 0
_
row_update_event
(/usr/lib/python3/dist-packages/blueman/gui/manager/ManagerDeviceList.py:264)
row update event Paired 1
_
__init__ (/usr/lib/python3/dist-packages/blueman/main/Device.py:26)
caching initial properties
_
add_device (/usr/lib/python3/dist-packages/blueman/gui/DeviceList.py:317)
adding new device
_
do_cache (/usr/lib/python3/dist-packages/blueman/gui/DeviceList.py:496)
Caching new device 00:1E:A3:24:AD:EE
_
row_update_event