solid-bluetooth listadapters do not print adapters list while hcitool dev does Reproducible: Always Steps to Reproduce: 1. install bluez (version 3 or 4) 2. install solid with USE=bluetooth 3. login to KDE 4. execute solid-bluetooth listadapters Actual Results: solid-bluetooth(3722) Solid::Control::ManagerBasePrivate::loadBackend: Backend loaded: "BlueZ" solid-bluetooth(3722) Solid::Control::BluetoothManager::buildDeviceList: UBI List () Expected Results: actual list of adapters eugene@cat ~ $ emerge --info Portage 2.2_rc23 (default/linux/amd64/2008.0/desktop, gcc-4.3.3, glibc-2.9_p20081201-r1, 2.6.28-tuxonice-r1 x86_64) ================================================================= System uname: Linux-2.6.28-tuxonice-r1-x86_64-Intel-R-_Core-TM-2_Duo_CPU_T5550_@_1.83GHz-with-glibc2.2.5 Timestamp of tree: Fri, 30 Jan 2009 23:45:02 +0000 app-shells/bash: 3.2_p48 dev-java/java-config: 1.3.7-r1, 2.1.7 dev-lang/python: 2.5.4-r2 dev-util/cmake: 2.6.2-r1 sys-apps/baselayout: 2.0.0 sys-apps/openrc: 0.4.2 sys-apps/sandbox: 1.3.3 sys-devel/autoconf: 2.13, 2.63 sys-devel/automake: 1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2 sys-devel/binutils: 2.19 sys-devel/gcc-config: 1.4.1 sys-devel/libtool: 2.2.6a virtual/os-headers: 2.6.28-r1 ACCEPT_KEYWORDS="amd64 ~amd64" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-O2 -march=native -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config /var/lib/hsqldb" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/eselect/postgresql /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c /etc/udev/rules.d" CXXFLAGS="-O2 -march=native -pipe" DISTDIR="/var/portage/distfiles" FEATURES="distlocks fixpackages parallel-fetch preserve-libs protect-owned sandbox sfperms strict unmerge-orphans userfetch" GENTOO_MIRRORS="http://gentoo.cs.nctu.edu.tw/gentoo/ http://files.gentoo.gr http://gentoo.tiscali.nl/ http://gentoo.osuosl.org/ http://cdot.senecac.on.ca/software/gentoo/" LANG="ru_RU.UTF-8" LC_ALL="" LDFLAGS="-Wl,-O1,--hash-style=both" LINGUAS="ru uk eo en" MAKEOPTS="-j2" PKGDIR="/var/portage/packages" PORTAGE_COMPRESS="lzma" PORTAGE_COMPRESS_FLAGS="--best" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/var/repositories/sunrise /var/repositories/berkano /var/repositories/mpd /var/repositories/jokey /var/repositories/devnull /var/repositories/kde-testing /var/repositories/qting-edge /usr/local/portage/my /usr/local/portage/my-kde-crazy" SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" USE="X aac acl acpi alsa amd64 apache2 avahi bash-completion berkdb bluetooth branding bzip2 cairo cdr cli cracklib crypt cups dbus djvu dri dv dvd dvdr dvdread emacs emboss encode evo exif exiv2 fam ffmpeg firefox firefox3 flac fontconfig fortran fuse gdbm gif gimp gphoto2 gpm gstreamer gtk hal iconv inotify ipw3945 isdnlog java java5 java6 joystick jpeg kde kde4 kdeenablefinal kdehiddenvisibility kerberos kipi kpathsea laptop latex ldap libnotify lm_sensors lmsensors lzma mad matroska midi mikmod mmap mmx moznopango mp3 mpeg mudflap multilib musicbrainz ncurses newspr nls nptl nptlonly ogg openexr opengl openmp paludis pam pch pcre pdf perl plasma png ppds pppd python qt3 qt3support qt4 quicktime readline reflection samba sdl semantic-desktop session spell spl sse sse2 ssl ssse3 startup-notification svg symlink sysfs tcpd tetex threads tiff tk truetype unicode usb utemper v4l v4l2 vhosts vorbis webkit wmf x264 xattr xcb xcomposite xine xinetd xml xorg xulrunner xv xvid xvmc zlib" ALSA_CARDS="intel-hda" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_aliasauthn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache davdav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CAMERAS="canon sony fuji" ELIBC="glibc" INPUT_DEVICES="evdev joystick keyboard mouse synaptics wacom" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="ru uk eo en" USERLAND="GNU" VIDEO_CARDS="v4l vesa nvidia nv" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, PORTAGE_RSYNC_EXTRA_OPTS eugene@cat ~ $ hcitool dev Devices: hci0 00:1E:4C:D3:24:05 eugene@cat ~ $ lshal | grep hci0 -A12 -B48 usb.device_protocol = 1 (0x1) (int) usb.device_revision_bcd = 256 (0x100) (int) usb.device_subclass = 1 (0x1) (int) usb.interface.class = 224 (0xe0) (int) usb.interface.number = 0 (0x0) (int) usb.interface.protocol = 1 (0x1) (int) usb.interface.subclass = 1 (0x1) (int) usb.is_self_powered = true (bool) usb.linux.device_number = 2 (0x2) (int) usb.linux.sysfs_path = '/sys/devices/pci0000:00/0000:00:1d.2/usb7/7-1/7-1:1.0' (string) usb.max_power = 0 (0x0) (int) usb.num_configurations = 1 (0x1) (int) usb.num_interfaces = 4 (0x4) (int) usb.num_ports = 0 (0x0) (int) usb.product = 'USB Wireless Interface' (string) usb.product_id = 8449 (0x2101) (int) usb.speed = 12.0 (12) (double) usb.vendor = 'Broadcom Corp.' (string) usb.vendor_id = 2652 (0xa5c) (int) usb.version = 2.0 (2) (double) udi = '/org/freedesktop/Hal/devices/usb_device_a5c_2101_noserial_if0_logicaldev_input' info.capabilities = {'input', 'input.mouse'} (string list) info.category = 'input' (string) info.parent = '/org/freedesktop/Hal/devices/usb_device_a5c_2101_noserial_if0' (string) info.product = 'Bluetooth Laser Travel Mouse' (string) info.subsystem = 'input' (string) info.udi = '/org/freedesktop/Hal/devices/usb_device_a5c_2101_noserial_if0_logicaldev_input' (string) input.device = '/dev/input/event8' (string) input.originating_device = '/org/freedesktop/Hal/devices/usb_device_a5c_2101_noserial_if0' (string) input.product = 'Bluetooth Laser Travel Mouse' (string) input.x11_driver = 'evdev' (string) linux.device_file = '/dev/input/event8' (string) linux.hotplug_type = 2 (0x2) (int) linux.subsystem = 'input' (string) linux.sysfs_path = '/sys/class/input/input11/event8' (string) udi = '/org/freedesktop/Hal/devices/usb_device_a5c_2101_noserial_if0_bluetooth_hci_1e4cd32405' bluetooth_hci.address = 130137924613 (0x1e4cd32405) (uint64) bluetooth_hci.originating_device = '/org/freedesktop/Hal/devices/usb_device_a5c_2101_noserial_if0' (string) info.capabilities = {'bluetooth_hci'} (string list) info.category = 'bluetooth_hci' (string) info.parent = '/org/freedesktop/Hal/devices/usb_device_a5c_2101_noserial_if0' (string) info.product = 'Bluetooth Host Controller Interface' (string) info.subsystem = 'bluetooth' (string) info.udi = '/org/freedesktop/Hal/devices/usb_device_a5c_2101_noserial_if0_bluetooth_hci_1e4cd32405' (string) linux.hotplug_type = 2 (0x2) (int) linux.subsystem = 'bluetooth' (string) linux.sysfs_path = '/sys/class/bluetooth/hci0' (string) udi = '/org/freedesktop/Hal/devices/bluetooth_acl_761cf9446' bluetooth_acl.address = 31705764934 (0x761cf9446) (uint64) bluetooth_acl.originating_device = '/org/freedesktop/Hal/devices/usb_device_a5c_2101_noserial_if0_bluetooth_hci_1e4cd32405' (string) info.capabilities = {'bluetooth_acl'} (string list) info.category = 'bluetooth_acl' (string) info.parent = '/org/freedesktop/Hal/devices/usb_device_a5c_2101_noserial_if0_bluetooth_hci_1e4cd32405' (string) info.product = 'Bluetooth Asynchronous Connection-oriented Link' (string) info.subsystem = 'bluetooth' (string) info.udi = '/org/freedesktop/Hal/devices/bluetooth_acl_761cf9446' (string) linux.hotplug_type = 2 (0x2) (int) linux.subsystem = 'bluetooth' (string) linux.sysfs_path = '/sys/class/bluetooth/hci0/hci0:11' (string)
have tried 4.2 and live versions from kde-testing overlay
$ dbus-send --system --print-reply --dest=org.bluez /org/bluez org.bluez.Manager.ListAdapters prints floowing: method return sender=:1.10 -> dest=:1.54 reply_serial=2 array [ string "/org/bluez/hci0" ]
Seems like this is KDE/Qt 4.5 issue
solid, compiled against bluez-4.26 with following modification: --- /etc/dbus-1/system.d/bluetooth.conf 2009-02-08 02:26:46.397350678 +0200 +++ /etc/dbus-1/system.d/bluetooth.conf.orig 2009-02-08 02:26:32.690331471 +0200 @@ -18,7 +18,7 @@ </policy> <policy context="default"> - <allow send_destination="org.bluez"/> + <deny send_destination="org.bluez"/> </policy> </busconfig> works fine
sorry, right diff: --- /etc/dbus-1/system.d/bluetooth.conf.orig 2009-02-08 02:26:32.690331471 +0200 +++ /etc/dbus-1/system.d/bluetooth.conf 2009-02-08 02:26:46.397350678 +0200 @@ -18,7 +18,7 @@ </policy> <policy context="default"> - <deny send_destination="org.bluez"/> + <allow send_destination="org.bluez"/> </policy> </busconfig>
I suggest that instead of allowing sending to org.bluez by default, it is better to only allow the "plugdev" group, as follows: <policy group="plugdev"> <allow send_destination="org.bluez"/> </policy> This works for me as well (my user is in the plugdev group) and seems to be more appropriate.
recent ebuilds that depends on consolekit solves the problem