[Pkg-bluetooth-maintainers] Bug#535075: bluez: Udev rules for hid2hci do not match any event

Dave Vasilevsky djvasi at gmail.com
Mon Jun 29 13:14:58 UTC 2009


Package: bluez
Version: 4.42-1
Severity: important


Subject: bluez: Udev rules for hid2hci do not match any event
Package: bluez
Version: 4.42-1
Severity: important

My MacBook4,1 has USB bluetooth with ID 05ac:1000, and requires hid2hci. The corresponding rule in /lib/udev/rules.d/62-bluez-hid2hci.rules is:

ACTION=="add", ENV{ID_VENDOR}=="05ac", ENV{ID_MODEL}=="1000" RUN+="/lib/udev/bluez --method csr -v $env{ID_VENDOR} -p $env{ID_MODEL} --mode hci"

However, EVN{ID_VENDOR} and ENV{ID_MODEL} do not seem to be set anywhere, so the rule never matches anything. This is confirmed by running 'udevadm test /sys/bus/usb/devices/3-1'. Instead, on my system there exist attributes ATTR{idVendor} and ATTR{idProduct}. The following rule does match, and allows bluetooth to work:

ACTION=="add", ATTR{idVendor}=="05ac", ATTR{idProduct}=="1000", RUN+="/lib/udev/bluez --method csr --mode hci -v $attr{idVendor} -p $attr{idProduct}"

Is it possible that we have different versions of the kernel or udev, and this is causing us to see different udev properties?


PS: Just a nitpick, but your rule is also missing a comma before "RUN". Adding the comma doesn't fix this bug.


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

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

Versions of packages bluez depends on:
ii  dbus                         1.2.14-3    simple interprocess messaging syst
ii  libbluetooth3                4.42-1      Library to use the BlueZ Linux Blu
ii  libc6                        2.9-18      GNU C Library: Shared libraries
ii  libdbus-1-3                  1.2.14-3    simple interprocess messaging syst
ii  libglib2.0-0                 2.20.4-1    The GLib library of C routines
ii  libnl1                       1.1-5       library for dealing with netlink s
ii  libusb-0.1-4                 2:0.1.12-13 userspace USB programming library
ii  lsb-base                     3.2-22      Linux Standard Base 3.2 init scrip
ii  makedev                      2.3.1-88    creates device files in /dev
ii  module-init-tools            3.9-2       tools for managing Linux kernel mo
ii  udev                         0.141-1     /dev/ and hotplug management daemo

bluez recommends no packages.

Versions of packages bluez suggests:
ii  python-dbus                   0.83.0-1   simple interprocess messaging syst
ii  python-gobject                2.16.1-1   Python bindings for the GObject li

-- no debconf information

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

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

Versions of packages bluez depends on:
ii  dbus                         1.2.14-3    simple interprocess messaging syst
ii  libbluetooth3                4.42-1      Library to use the BlueZ Linux Blu
ii  libc6                        2.9-18      GNU C Library: Shared libraries
ii  libdbus-1-3                  1.2.14-3    simple interprocess messaging syst
ii  libglib2.0-0                 2.20.4-1    The GLib library of C routines
ii  libnl1                       1.1-5       library for dealing with netlink s
ii  libusb-0.1-4                 2:0.1.12-13 userspace USB programming library
ii  lsb-base                     3.2-22      Linux Standard Base 3.2 init scrip
ii  makedev                      2.3.1-88    creates device files in /dev
ii  module-init-tools            3.9-2       tools for managing Linux kernel mo
ii  udev                         0.141-1     /dev/ and hotplug management daemo

bluez recommends no packages.

Versions of packages bluez suggests:
ii  python-dbus                   0.83.0-1   simple interprocess messaging syst
ii  python-gobject                2.16.1-1   Python bindings for the GObject li

-- no debconf information





More information about the Pkg-bluetooth-maintainers mailing list