[Pkg-bluetooth-maintainers] Bug#642104: Bug#642104: bluez: bluetoothd refusing input device connection
scott leggett
sml at internode.on.net
Thu Oct 6 01:50:16 UTC 2011
On Mon, 3 Oct 2011 08:09:38 Nobuhiro Iwamatsu wrote:
> Hi,
>
> 2011/9/30 scott leggett <sml at internode.on.net>:
> > I have added your repository, and upgraded to 4.96-3. However bluetooth
> > is still not working for me. When bluetoothd restarts after installing
> > the new version I get:
> >
> > 30/09/11 03:11:46 PM hpdeb dbus[1817] [system] Reloaded
> > configuration 30/09/11 03:11:46 PM hpdeb dbus[1817] [system]
> > Reloaded configuration 30/09/11 03:11:46 PM hpdeb bluetoothd[15175]
> > Stopping hci0 event socket 30/09/11 03:11:46 PM hpdeb
> > bluetoothd[15175] Stopping SDP server 30/09/11 03:11:46 PM
> > hpdeb bluetoothd[15175] Exit
> > 30/09/11 03:11:49 PM hpdeb dbus[1817] [system] Reloaded
> > configuration 30/09/11 03:11:49 PM hpdeb dbus[1817] [system]
> > Reloaded configuration 30/09/11 03:11:49 PM hpdeb bluetoothd[21500]
> > Bluetooth daemon 4.96 30/09/11 03:11:49 PM hpdeb
> > bluetoothd[21500] Starting SDP server 30/09/11 03:11:49 PM
> > hpdeb bluetoothd[21500] D-Bus failed to register
> > org.bluez.Proximity interface
> > 30/09/11 03:11:49 PM hpdeb bluetoothd[21500] Listening for HCI
> > events on hci0
> > 30/09/11 03:11:49 PM hpdeb NetworkManager[1974] <warn> bluez
> > error getting default adapter: No such adapter
> > 30/09/11 03:11:49 PM hpdeb bluetoothd[21500] HCI dev 0 up
> > 30/09/11 03:11:49 PM hpdeb bluetoothd[21500] Adapter
> > /org/bluez/21500/hci0 has been enabled
> >
> > And then when I try to connect my mouse I get:
> >
> > 30/09/11 03:12:28 PM hpdeb bluetoothd[21500] Refusing input
> > device connect: No such file or directory (2)
> > 30/09/11 03:12:32 PM hpdeb bluetoothd[21500] Refusing input
> > device connect: No such file or directory (2)
>
> Hmm, This seems to be another problem.
> I confirm that BT mouse work by the following methods
>
> $ bluez-test-device list
> 00:11:67:FF:11:C4 ELECOM Bluetooth Optical Mouse
> $ bluez-test-device remove 00:11:67:FF:11:C4
> bluez-test-device list
>
> $ bluez-simple-agent hci0 00:11:67:ff:11:c4
> $ bluez-test-device trusted 00:11:67:ff:11:c4 yes
> $ bluez-test-input connect 00:11:67:ff:11:c4
>
> and syslog of output:
>
> Oct 3 01:02:26 chimagu kernel: [520505.923214] input: ELECOM
> Bluetooth Optical Mouse as
> /devices/pci0000:00/0000:00:1d.0/usb6/6-1/6-1.1/6-1.1:1.0/bluetooth/hci0/hc
> i0:11/input27 Oct 3 01:02:26 chimagu kernel: [520505.923392]
> generic-bluetooth
> 0005:056E:005F.0011: input,hidraw4: BLUETOOTH HID v1.00 Mouse [ELECOM
> Bluetooth Optical Mouse] on 00:1E:4C:E6:07:5D
>
> my /etc/dbus-1/system.d/bluetooth.conf:
>
> $ cat /etc/dbus-1/system.d/bluetooth.conf
> <!-- This configuration file specifies the required security policies
> for Bluetooth core daemon to work. -->
>
> <!DOCTYPE busconfig PUBLIC "-//freedesktop//DTD D-BUS Bus Configuration
> 1.0//EN" "http://www.freedesktop.org/standards/dbus/1.0/busconfig.dtd">
> <busconfig>
>
> <!-- ../system.conf have denied everything, so we just punch some holes
> -->
>
> <policy user="root">
> <allow own="org.bluez"/>
> <allow send_destination="org.bluez"/>
>
> <!-- allow root to send to agents -->
> <allow send_interface="org.bluez.Agent"/>
> </policy>
>
> <!-- allow users at the console, see consolekit or libpam-foreground -->
> <policy at_console="true">
> <allow send_destination="org.bluez"/>
> </policy>
>
> <!-- allow users of bluetooth group to communicate with hcid -->
> <policy group="bluetooth">
> <allow send_destination="org.bluez"/>
> </policy>
>
> <!-- allow users of lp group (printing subsystem) to communicate with
> hcid --> <policy group="lp">
> <allow send_destination="org.bluez"/>
> </policy>
>
>
> <policy context="default">
> <deny send_destination="org.bluez"/>
> </policy>
>
> </busconfig>
>
> my user id and added gruop:
>
> $ id
> uid=1000(iwamatsu) gid=1000(iwamatsu)
> groups=1000(iwamatsu),20(dialout),29(audio),46(plugdev),104(messagebus),111
> (bluetooth),118(netdev)
>
> Best regards,
> Nobuhiro
Hi,
I'm running into an issue right at the start:
$ bluez-simple-agent hci0 00:02:76:28:93:EA
Creating device failed: org.bluez.Error.AuthenticationFailed: Authentication
Failed
Note that I got the address of my bluetooth mouse when it appears briefly in
the KDE bluetooth manager.
I tried googling that error message, but couldn't find any useful information.
My system configuration looks very similar to yours. This is a weird issue.
$ cat /etc/dbus-1/system.d/bluetooth.conf
<!-- This configuration file specifies the required security policies
for Bluetooth core daemon to work. -->
<!DOCTYPE busconfig PUBLIC "-//freedesktop//DTD D-BUS Bus Configuration
1.0//EN"
"http://www.freedesktop.org/standards/dbus/1.0/busconfig.dtd">
<busconfig>
<!-- ../system.conf have denied everything, so we just punch some holes -->
<policy user="root">
<allow own="org.bluez"/>
<allow send_destination="org.bluez"/>
<!-- allow root to send to agents -->
<allow send_interface="org.bluez.Agent"/>
</policy>
<!-- allow users at the console, see consolekit or libpam-foreground -->
<policy at_console="true">
<allow send_destination="org.bluez"/>
</policy>
<!-- allow users of bluetooth group to communicate with hcid -->
<policy group="bluetooth">
<allow send_destination="org.bluez"/>
</policy>
<!-- allow users of lp group (printing subsystem) to communicate with hcid
-->
<policy group="lp">
<allow send_destination="org.bluez"/>
</policy>
<policy context="default">
<deny send_destination="org.bluez"/>
</policy>
</busconfig>
$ id
uid=1000(scott) gid=1000(scott)
groups=1000(scott),24(cdrom),25(floppy),27(sudo),29(audio),30(dip),44(video),46(plugdev),110(netdev),111(bluetooth),114(fuse),116(powerdev),117(scanner)
Regards,
Scott.
More information about the Pkg-bluetooth-maintainers
mailing list