Can't pair PC with mobile using bluetooth, suspecting dbus problem.
Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
try clear all the files in /var/lib/bluetooth, then restart dbus and hcid.
as far as i can tell, the /etc/bluetooth/hcid.conf becomes useless after the first run, as all persistent settings are stored under /var/lib/blueooth/[btaddr]
I've tried
Code:
hcid -f /etc/bluetooth/hcid.conf
which should force these settings to be used. I'll still try it regarding to dbus.
edit: No files in /var/lib/bluetooth
edit2: Today is probably the last day I'll be able to work with this problem. I'm going to reinstall Slackware on the box and when installing bluetooth I'll be using a different version of d-bus. Let's see if that'll work.
After slackware came dbus. This time I used options
Code:
--localstatedir=/var
--sysconfdir=/etc
when configuring. Before that was /usr/local/var and /usr/local/etc or something. Then I installed bluez-libs and bluez-utils. Dbus works now. Hcid doesn't give any more message bus errors but I still can't pair. First of all hcid gives syntax error to pin_helper in hcid.conf and doesn't read that. Then I still couldn't install passkey-agent to use that as a pin changer. It still sits in <bluez-utils src dir>/daemon uncompiled.
Is there a way to make it work without passkey-agent, if no how do I compile it (didn't find any settings in bluez-utils config)? What is wrong with pin_helper? If I can get answers to these questions It'll probably finally work.
Allright thanks, will try.
edit: Damn, just remembered that the computer that I'm trying to use bluetooth on doesn't have KDE : D. Is there really no other way?
there is no other way that I'm aware of, sorry. Also kdebluetooth seems to be the only package which contains passkey-agent (at least in debian packages, see below).
I might have been too fast. I went to the /usr/share/doc/bluez-utils/examples/ directory of my bluez-utils package, where the code of passkey agent is, and it also contains a Makefile to compile that code.
Look if you find a separate Makefile for the passkey-agent in your bluez-utils source directory. The .c-file is there for a reason.
That might be a little silly but I can't use the ./configure in that folder so I don't know how I'm supposed to compile it. As much as I understand configuring in the main source folder makes a makefile to ./daemon too. Make alone doesn't work.
Code:
root@SERVER:/usr/src/bluez-utils-3.9/daemon# make
make: Nothing to be done for `all'.
Also if it should prove neccesary, the Makefile in daemon
Code:
root@SERVER:/usr/src/bluez-utils-3.9/daemon# cat Makefile
# Makefile.in generated by automake 1.9.6 from Makefile.am.
# daemon/Makefile. Generated from Makefile.in by configure.
# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
# 2003, 2004, 2005 Free Software Foundation, Inc.
# This Makefile.in is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
# with or without modifications, as long as this notice is preserved.
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
# PARTICULAR PURPOSE.
srcdir = .
top_srcdir = ..
pkgdatadir = $(datadir)/bluez-utils
pkglibdir = $(libdir)/bluez-utils
pkgincludedir = $(includedir)/bluez-utils
top_builddir = ..
am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
INSTALL = /usr/bin/ginstall -c
install_sh_DATA = $(install_sh) -c -m 644
install_sh_PROGRAM = $(install_sh) -c
install_sh_SCRIPT = $(install_sh) -c
INSTALL_HEADER = $(INSTALL_DATA)
transform = $(program_transform_name)
NORMAL_INSTALL = :
PRE_INSTALL = :
POST_INSTALL = :
NORMAL_UNINSTALL = :
PRE_UNINSTALL = :
POST_UNINSTALL = :
build_triplet = i686-pc-linux-gnu
host_triplet = i686-pc-linux-gnu
#service_PROGRAMS = bluetoothd-service-echo$(EXEEXT)
noinst_PROGRAMS = bluetoothd$(EXEEXT) passkey-agent$(EXEEXT) \
auth-agent$(EXEEXT)
am__append_1 = -lexpat
subdir = daemon
DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
am__aclocal_m4_deps = $(top_srcdir)/acinclude.m4 \
$(top_srcdir)/configure.in
am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
$(ACLOCAL_M4)
mkinstalldirs = $(install_sh) -d
CONFIG_HEADER = $(top_builddir)/config.h
CONFIG_CLEAN_FILES =
am__installdirs = "$(DESTDIR)$(servicedir)" "$(DESTDIR)$(confdir)" \
"$(DESTDIR)$(dbusdir)"
servicePROGRAMS_INSTALL = $(INSTALL_PROGRAM)
PROGRAMS = $(noinst_PROGRAMS) $(service_PROGRAMS)
am_auth_agent_OBJECTS = auth-agent.$(OBJEXT)
auth_agent_OBJECTS = $(am_auth_agent_OBJECTS)
auth_agent_DEPENDENCIES =
am_bluetoothd_OBJECTS = main.$(OBJEXT) manager.$(OBJEXT) \
database.$(OBJEXT) adapter.$(OBJEXT) service.$(OBJEXT)
bluetoothd_OBJECTS = $(am_bluetoothd_OBJECTS)
am__DEPENDENCIES_1 =
bluetoothd_DEPENDENCIES = $(top_builddir)/common/libhelper.a \
$(top_builddir)/sdpd/libsdpserver.a $(am__DEPENDENCIES_1)
am__bluetoothd_service_echo_SOURCES_DIST = echo.c
#am_bluetoothd_service_echo_OBJECTS = echo.$(OBJEXT)
bluetoothd_service_echo_OBJECTS = \
$(am_bluetoothd_service_echo_OBJECTS)
#bluetoothd_service_echo_DEPENDENCIES = \
# $(top_builddir)/common/libhelper.a
am_passkey_agent_OBJECTS = passkey-agent.$(OBJEXT)
passkey_agent_OBJECTS = $(am_passkey_agent_OBJECTS)
passkey_agent_DEPENDENCIES =
DEFAULT_INCLUDES = -I. -I$(srcdir) -I$(top_builddir)
depcomp = $(SHELL) $(top_srcdir)/depcomp
am__depfiles_maybe = depfiles
COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
$(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
LTCOMPILE = $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) \
$(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \
$(AM_CFLAGS) $(CFLAGS)
CCLD = $(CC)
LINK = $(LIBTOOL) --tag=CC --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
$(AM_LDFLAGS) $(LDFLAGS) -o $@
SOURCES = $(auth_agent_SOURCES) $(bluetoothd_SOURCES) \
$(bluetoothd_service_echo_SOURCES) $(passkey_agent_SOURCES)
DIST_SOURCES = $(auth_agent_SOURCES) $(bluetoothd_SOURCES) \
$(am__bluetoothd_service_echo_SOURCES_DIST) \
$(passkey_agent_SOURCES)
am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
am__vpath_adj = case $$p in \
$(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
*) f=$$p;; \
esac;
am__strip_dir = `echo $$p | sed -e 's|^.*/||'`;
confDATA_INSTALL = $(INSTALL_DATA)
dbusDATA_INSTALL = $(INSTALL_DATA)
DATA = $(conf_DATA) $(dbus_DATA)
ETAGS = etags
CTAGS = ctags
DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
ACLOCAL = ${SHELL} /usr/src/bluez-utils-3.9/missing --run aclocal-1.9
AMDEP_FALSE = #
AMDEP_TRUE =
AMTAR = ${SHELL} /usr/src/bluez-utils-3.9/missing --run tar
AR = ar
AUTOCONF = ${SHELL} /usr/src/bluez-utils-3.9/missing --run autoconf
AUTOHEADER = ${SHELL} /usr/src/bluez-utils-3.9/missing --run autoheader
AUTOMAKE = ${SHELL} /usr/src/bluez-utils-3.9/missing --run automake-1.9
AVCTRL_FALSE =
AVCTRL_TRUE = #
AWK = gawk
BCCMD_FALSE =
BCCMD_TRUE = #
BLUEZ_CFLAGS = -I/usr/local/include
BLUEZ_LIBS = -L/usr/local/lib -lbluetooth
CC = gcc
CCDEPMODE = depmode=gcc3
CFLAGS = -Wall -O2 -D_FORTIFY_SOURCE=2
CONFIGFILES_FALSE = #
CONFIGFILES_TRUE =
CPP = gcc -E
CPPFLAGS =
CUPS_FALSE =
CUPS_TRUE = #
CYGPATH_W = echo
DBUS_CFLAGS = -I/usr/local/include/dbus-1.0 -I/usr/local/lib/dbus-1.0/include
DBUS_GLIB_CFLAGS =
DBUS_GLIB_LIBS =
DBUS_LIBS = -L/usr/local/lib -ldbus-1
DEFS = -DHAVE_CONFIG_H
DEPDIR = .deps
DFUTOOL_FALSE =
DFUTOOL_TRUE = #
ECHO = echo
ECHOSERVICE_FALSE =
ECHOSERVICE_TRUE = #
ECHO_C =
ECHO_N = -n
ECHO_T =
EGREP = grep -E
EXEEXT =
EXPAT_FALSE = #
EXPAT_TRUE =
GLIB_CFLAGS = -I$(top_srcdir)/eglib
GLIB_FALSE =
GLIB_LIBS = $(top_builddir)/eglib/libeglib.la
GLIB_TRUE = #
HCID_FALSE = #
HCID_TRUE =
HID2HCI_FALSE = #
HID2HCI_TRUE =
HIDD_FALSE = #
HIDD_TRUE =
INITSCRIPTS_FALSE =
INITSCRIPTS_TRUE = #
INOTIFY_FALSE =
INOTIFY_TRUE = #
INPUTSERVICE_FALSE =
INPUTSERVICE_TRUE = #
INSTALL_DATA = ${INSTALL} -m 644
INSTALL_PROGRAM = ${INSTALL}
INSTALL_SCRIPT = ${INSTALL}
INSTALL_STRIP_PROGRAM = ${SHELL} $(install_sh) -c -s
LDFLAGS =
LEX = flex
LEXLIB = -lfl
LEX_OUTPUT_ROOT = lex.yy
LIBOBJS =
LIBS =
LIBTOOL = $(SHELL) $(top_builddir)/libtool
LN_S = ln -s
LTLIBOBJS =
MAINT = #
MAINTAINER_MODE_FALSE =
MAINTAINER_MODE_TRUE = #
MAKEINFO = ${SHELL} /usr/src/bluez-utils-3.9/missing --run makeinfo
OBEX_FALSE =
OBEX_TRUE = #
OBJEXT = o
OPENOBEX_CFLAGS =
OPENOBEX_LIBS =
OPENSYNC_CFLAGS =
OPENSYNC_LIBS =
PACKAGE = bluez-utils
PACKAGE_BUGREPORT =
PACKAGE_NAME =
PACKAGE_STRING =
PACKAGE_TARNAME =
PACKAGE_VERSION =
PATH_SEPARATOR = :
PCMCIARULES_FALSE =
PCMCIARULES_TRUE = #
PKG_CONFIG = /usr/bin/pkg-config
RANLIB = ranlib
SDPD_FALSE = #
SDPD_TRUE =
SED = /usr/bin/sed
SET_MAKE =
SHELL = /bin/sh
STRIP = strip
SYNCSERVICE_FALSE =
SYNCSERVICE_TRUE = #
TEST_FALSE =
TEST_TRUE = #
USB_CFLAGS =
USB_FALSE = #
USB_LIBS = -lusb
USB_TRUE =
VERSION = 3.9
YACC = bison -y
ac_ct_AR = ar
ac_ct_CC = gcc
ac_ct_RANLIB = ranlib
ac_ct_STRIP = strip
ac_pt_PKG_CONFIG = /usr/bin/pkg-config
am__fastdepCC_FALSE = #
am__fastdepCC_TRUE =
am__include = include
am__leading_dot = .
am__quote =
am__tar = ${AMTAR} chof - "$$tardir"
am__untar = ${AMTAR} xf -
bindir = ${exec_prefix}/bin
build = i686-pc-linux-gnu
build_alias =
build_cpu = i686
build_os = linux-gnu
build_vendor = pc
datadir = ${prefix}/share
exec_prefix = ${prefix}
host = i686-pc-linux-gnu
host_alias =
host_cpu = i686
host_os = linux-gnu
host_vendor = pc
includedir = ${prefix}/include
infodir = ${prefix}/info
install_sh = /usr/src/bluez-utils-3.9/install-sh
libdir = /usr/local/lib
libexecdir = /lib
localstatedir = /var
mandir = ${prefix}/share/man
mkdir_p = mkdir -p --
oldincludedir = /usr/include
prefix = /usr/local
program_transform_name = s,x,x,
sbindir = ${exec_prefix}/sbin
sharedstatedir = ${prefix}/com
sysconfdir = /etc
target_alias =
#confdir = $(sysconfdir)/bluetooth
#conf_DATA = echo.service
#servicedir = $(libdir)/bluetooth
#bluetoothd_service_echo_SOURCES = echo.c
#bluetoothd_service_echo_LDADD = \
# $(top_builddir)/common/libhelper.a \
# $(top_builddir)/eglib/libeglib.la -L/usr/local/lib -ldbus-1 -L/usr/local/lib -lbluetooth
dbusdir = $(sysconfdir)/dbus-1/system.d
dbus_DATA = bluetooth.conf
bluetoothd_SOURCES = main.c system.h \
manager.h manager.c database.h database.c \
adapter.h adapter.c service.h service.c
bluetoothd_LDADD = $(top_builddir)/common/libhelper.a \
$(top_builddir)/sdpd/libsdpserver.a $(top_builddir)/eglib/libeglib.la -L/usr/local/lib -ldbus-1 \
-L/usr/local/lib -lbluetooth $(am__append_1)
passkey_agent_SOURCES = passkey-agent.c
passkey_agent_LDADD = -L/usr/local/lib -ldbus-1
auth_agent_SOURCES = auth-agent.c
auth_agent_LDADD = -L/usr/local/lib -ldbus-1
AM_CFLAGS = -I/usr/local/include -I/usr/local/include/dbus-1.0 -I/usr/local/lib/dbus-1.0/include -I$(top_srcdir)/eglib
INCLUDES = -I$(top_srcdir)/common -I$(top_srcdir)/sdpd
EXTRA_DIST = bluetooth.conf echo.service
MAINTAINERCLEANFILES = Makefile.in
all: all-am
.SUFFIXES:
.SUFFIXES: .c .lo .o .obj
$(srcdir)/Makefile.in: # $(srcdir)/Makefile.am $(am__configure_deps)
@for dep in $?; do \
case '$(am__configure_deps)' in \
*$$dep*) \
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
&& exit 0; \
exit 1;; \
esac; \
done; \
echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu daemon/Makefile'; \
cd $(top_srcdir) && \
$(AUTOMAKE) --gnu daemon/Makefile
.PRECIOUS: Makefile
Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
@case '$?' in \
*config.status*) \
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
*) \
echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
esac;
$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
$(top_srcdir)/configure: # $(am__configure_deps)
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
$(ACLOCAL_M4): # $(am__aclocal_m4_deps)
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
clean-noinstPROGRAMS:
@list='$(noinst_PROGRAMS)'; for p in $$list; do \
f=`echo $$p|sed 's/$(EXEEXT)$$//'`; \
echo " rm -f $$p $$f"; \
rm -f $$p $$f ; \
done
install-servicePROGRAMS: $(service_PROGRAMS)
@$(NORMAL_INSTALL)
test -z "$(servicedir)" || $(mkdir_p) "$(DESTDIR)$(servicedir)"
@list='$(service_PROGRAMS)'; for p in $$list; do \
p1=`echo $$p|sed 's/$(EXEEXT)$$//'`; \
if test -f $$p \
|| test -f $$p1 \
; then \
f=`echo "$$p1" | sed 's,^.*/,,;$(transform);s/$$/$(EXEEXT)/'`; \
echo " $(INSTALL_PROGRAM_ENV) $(LIBTOOL) --mode=install $(servicePROGRAMS_INSTALL) '$$p' '$(DESTDIR)$(servicedir)/$$f'"; \
$(INSTALL_PROGRAM_ENV) $(LIBTOOL) --mode=install $(servicePROGRAMS_INSTALL) "$$p" "$(DESTDIR)$(servicedir)/$$f" || exit 1; \
else :; fi; \
done
uninstall-servicePROGRAMS:
@$(NORMAL_UNINSTALL)
@list='$(service_PROGRAMS)'; for p in $$list; do \
f=`echo "$$p" | sed 's,^.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/'`; \
echo " rm -f '$(DESTDIR)$(servicedir)/$$f'"; \
rm -f "$(DESTDIR)$(servicedir)/$$f"; \
done
clean-servicePROGRAMS:
@list='$(service_PROGRAMS)'; for p in $$list; do \
f=`echo $$p|sed 's/$(EXEEXT)$$//'`; \
echo " rm -f $$p $$f"; \
rm -f $$p $$f ; \
done
auth-agent$(EXEEXT): $(auth_agent_OBJECTS) $(auth_agent_DEPENDENCIES)
@rm -f auth-agent$(EXEEXT)
$(LINK) $(auth_agent_LDFLAGS) $(auth_agent_OBJECTS) $(auth_agent_LDADD) $(LIBS)
bluetoothd$(EXEEXT): $(bluetoothd_OBJECTS) $(bluetoothd_DEPENDENCIES)
@rm -f bluetoothd$(EXEEXT)
$(LINK) $(bluetoothd_LDFLAGS) $(bluetoothd_OBJECTS) $(bluetoothd_LDADD) $(LIBS)
bluetoothd-service-echo$(EXEEXT): $(bluetoothd_service_echo_OBJECTS) $(bluetoothd_service_echo_DEPENDENCIES)
@rm -f bluetoothd-service-echo$(EXEEXT)
$(LINK) $(bluetoothd_service_echo_LDFLAGS) $(bluetoothd_service_echo_OBJECTS) $(bluetoothd_service_echo_LDADD) $(LIBS)
passkey-agent$(EXEEXT): $(passkey_agent_OBJECTS) $(passkey_agent_DEPENDENCIES)
@rm -f passkey-agent$(EXEEXT)
$(LINK) $(passkey_agent_LDFLAGS) $(passkey_agent_OBJECTS) $(passkey_agent_LDADD) $(LIBS)
mostlyclean-compile:
-rm -f *.$(OBJEXT)
distclean-compile:
-rm -f *.tab.c
include ./$(DEPDIR)/adapter.Po
include ./$(DEPDIR)/auth-agent.Po
include ./$(DEPDIR)/database.Po
include ./$(DEPDIR)/echo.Po
include ./$(DEPDIR)/main.Po
include ./$(DEPDIR)/manager.Po
include ./$(DEPDIR)/passkey-agent.Po
include ./$(DEPDIR)/service.Po
.c.o:
if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \
then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi
# source='$<' object='$@' libtool=no \
# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
# $(COMPILE) -c $<
.c.obj:
if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ `$(CYGPATH_W) '$<'`; \
then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi
# source='$<' object='$@' libtool=no \
# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
# $(COMPILE) -c `$(CYGPATH_W) '$<'`
.c.lo:
if $(LTCOMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \
then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Plo"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi
# source='$<' object='$@' libtool=yes \
# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
# $(LTCOMPILE) -c -o $@ $<
mostlyclean-libtool:
-rm -f *.lo
clean-libtool:
-rm -rf .libs _libs
distclean-libtool:
-rm -f libtool
uninstall-info-am:
install-confDATA: $(conf_DATA)
@$(NORMAL_INSTALL)
test -z "$(confdir)" || $(mkdir_p) "$(DESTDIR)$(confdir)"
@list='$(conf_DATA)'; for p in $$list; do \
if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
f=$(am__strip_dir) \
echo " $(confDATA_INSTALL) '$$d$$p' '$(DESTDIR)$(confdir)/$$f'"; \
$(confDATA_INSTALL) "$$d$$p" "$(DESTDIR)$(confdir)/$$f"; \
done
uninstall-confDATA:
@$(NORMAL_UNINSTALL)
@list='$(conf_DATA)'; for p in $$list; do \
f=$(am__strip_dir) \
echo " rm -f '$(DESTDIR)$(confdir)/$$f'"; \
rm -f "$(DESTDIR)$(confdir)/$$f"; \
done
install-dbusDATA: $(dbus_DATA)
@$(NORMAL_INSTALL)
test -z "$(dbusdir)" || $(mkdir_p) "$(DESTDIR)$(dbusdir)"
@list='$(dbus_DATA)'; for p in $$list; do \
if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
f=$(am__strip_dir) \
echo " $(dbusDATA_INSTALL) '$$d$$p' '$(DESTDIR)$(dbusdir)/$$f'"; \
$(dbusDATA_INSTALL) "$$d$$p" "$(DESTDIR)$(dbusdir)/$$f"; \
done
uninstall-dbusDATA:
@$(NORMAL_UNINSTALL)
@list='$(dbus_DATA)'; for p in $$list; do \
f=$(am__strip_dir) \
echo " rm -f '$(DESTDIR)$(dbusdir)/$$f'"; \
rm -f "$(DESTDIR)$(dbusdir)/$$f"; \
done
ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
unique=`for i in $$list; do \
if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
done | \
$(AWK) ' { files[$$0] = 1; } \
END { for (i in files) print i; }'`; \
mkid -fID $$unique
tags: TAGS
TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
$(TAGS_FILES) $(LISP)
tags=; \
here=`pwd`; \
list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
unique=`for i in $$list; do \
if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
done | \
$(AWK) ' { files[$$0] = 1; } \
END { for (i in files) print i; }'`; \
if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
test -n "$$unique" || unique=$$empty_fix; \
$(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
$$tags $$unique; \
fi
ctags: CTAGS
CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
$(TAGS_FILES) $(LISP)
tags=; \
here=`pwd`; \
list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
unique=`for i in $$list; do \
if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
done | \
$(AWK) ' { files[$$0] = 1; } \
END { for (i in files) print i; }'`; \
test -z "$(CTAGS_ARGS)$$tags$$unique" \
|| $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
$$tags $$unique
GTAGS:
here=`$(am__cd) $(top_builddir) && pwd` \
&& cd $(top_srcdir) \
&& gtags -i $(GTAGS_ARGS) $$here
distclean-tags:
-rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
distdir: $(DISTFILES)
@srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
list='$(DISTFILES)'; for file in $$list; do \
case $$file in \
$(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
$(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
esac; \
if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
if test "$$dir" != "$$file" && test "$$dir" != "."; then \
dir="/$$dir"; \
$(mkdir_p) "$(distdir)$$dir"; \
else \
dir=''; \
fi; \
if test -d $$d/$$file; then \
if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
fi; \
cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
else \
test -f $(distdir)/$$file \
|| cp -p $$d/$$file $(distdir)/$$file \
|| exit 1; \
fi; \
done
check-am: all-am
check: check-am
all-am: Makefile $(PROGRAMS) $(DATA)
installdirs:
for dir in "$(DESTDIR)$(servicedir)" "$(DESTDIR)$(confdir)" "$(DESTDIR)$(dbusdir)"; do \
test -z "$$dir" || $(mkdir_p) "$$dir"; \
done
install: install-am
install-exec: install-exec-am
install-data: install-data-am
uninstall: uninstall-am
install-am: all-am
@$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
installcheck: installcheck-am
install-strip:
$(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
`test -z '$(STRIP)' || \
echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
mostlyclean-generic:
clean-generic:
distclean-generic:
-test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
maintainer-clean-generic:
@echo "This command is intended for maintainers to use"
@echo "it deletes files that may require special tools to rebuild."
-test -z "$(MAINTAINERCLEANFILES)" || rm -f $(MAINTAINERCLEANFILES)
clean: clean-am
clean-am: clean-generic clean-libtool clean-noinstPROGRAMS \
clean-servicePROGRAMS mostlyclean-am
distclean: distclean-am
-rm -rf ./$(DEPDIR)
-rm -f Makefile
distclean-am: clean-am distclean-compile distclean-generic \
distclean-libtool distclean-tags
dvi: dvi-am
dvi-am:
html: html-am
info: info-am
info-am:
install-data-am: install-confDATA install-dbusDATA \
install-servicePROGRAMS
install-exec-am:
install-info: install-info-am
install-man:
installcheck-am:
maintainer-clean: maintainer-clean-am
-rm -rf ./$(DEPDIR)
-rm -f Makefile
maintainer-clean-am: distclean-am maintainer-clean-generic
mostlyclean: mostlyclean-am
mostlyclean-am: mostlyclean-compile mostlyclean-generic \
mostlyclean-libtool
pdf: pdf-am
pdf-am:
ps: ps-am
ps-am:
uninstall-am: uninstall-confDATA uninstall-dbusDATA uninstall-info-am \
uninstall-servicePROGRAMS
.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
clean-libtool clean-noinstPROGRAMS clean-servicePROGRAMS ctags \
distclean distclean-compile distclean-generic \
distclean-libtool distclean-tags distdir dvi dvi-am html \
html-am info info-am install install-am install-confDATA \
install-data install-data-am install-dbusDATA install-exec \
install-exec-am install-info install-info-am install-man \
install-servicePROGRAMS install-strip installcheck \
installcheck-am installdirs maintainer-clean \
maintainer-clean-generic mostlyclean mostlyclean-compile \
mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
tags uninstall uninstall-am uninstall-confDATA \
uninstall-dbusDATA uninstall-info-am uninstall-servicePROGRAMS
# Tell versions [3.59,3.63) of GNU make to not export all variables.
# Otherwise a system limit (for SysV at least) may be exceeded.
.NOEXPORT:
Yeah, I tried it earlier, but that one gave error as before:
Code:
root@SERVER:/usr/src/bluez-utils-3.9# /usr/src/bluez-utils-3.9/daemon/passkey-agent --default 0000
Can't register passkey agent
The name org.bluez was not provided by any .service files
Figured it was because it was uncompiled.
Should copying it to /usr/bin change anything? It basically just makes it a shortcut then, doesn't it?
Well trying anyway...
edit: And didn't change anything.
no, it compiled correctly, this is the right file. I don't think this error has something to do with the passkey-agent file.
I suppose that it either needs some service, which is not installed (kdebluetoothd ?) or it's (again) a dbus problem.
I don't know it though ...
there is a file 'bluetoothd' in the same directory. Can you try to start thtat service and then again register the passkey agent. I cannot try because I don't seem to have bluetoothd ...
make sure that bluetoothd can parse its config-file (bluetooth.conf). Look if bluetoothd -h (or --help) gives you info, or look for a manpage for bluetoothd. Also take a look at bluetooth.conf. If you cannot find any info on bluetoothd, just try something like this:
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.