From owner-freebsd-bluetooth@FreeBSD.ORG Tue Nov 8 20:15:34 2005 Return-Path: X-Original-To: freebsd-bluetooth@freebsd.org Delivered-To: freebsd-bluetooth@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C98D616A41F for ; Tue, 8 Nov 2005 20:15:34 +0000 (GMT) (envelope-from vova@vbook.fbsd.ru) Received: from vbook.fbsd.ru (swsoft-mipt-nat.sw.ru [195.214.233.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id B9E5E43D49 for ; Tue, 8 Nov 2005 20:15:28 +0000 (GMT) (envelope-from vova@vbook.fbsd.ru) Received: from vova by vbook.fbsd.ru with local (Exim 4.54 (FreeBSD)) id 1EZZsH-0000NL-UO; Tue, 08 Nov 2005 23:15:21 +0300 From: Vladimir Grebenschikov To: Maksim Yevmenkin In-Reply-To: <1131477683.1231.12.camel@localhost> References: <43519460.1090605@ebs.gr> <1129491219.1616.18.camel@localhost> <4353DBBC.2000508@savvis.net> <1131433259.1164.7.camel@localhost> <4370E826.7090007@savvis.net> <1131477683.1231.12.camel@localhost> Content-Type: text/plain; charset=KOI8-R Content-Transfer-Encoding: quoted-printable Organization: SWsoft Date: Tue, 08 Nov 2005 23:15:21 +0300 Message-Id: <1131480921.1155.5.camel@localhost> Mime-Version: 1.0 X-Mailer: Evolution 2.4.1 FreeBSD GNOME Team Port Sender: Vladimir Grebenschikov Cc: freebsd-bluetooth@freebsd.org Subject: Re: [RFC] rc.d integration for the bluetooth subsystem X-BeenThere: freebsd-bluetooth@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Using Bluetooth in FreeBSD environments List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 08 Nov 2005 20:15:34 -0000 =F7 =D7=D4, 08/11/2005 =D7 22:21 +0300, Vladimir Grebenschikov =D0=C9=DB=C5= =D4: > =F7 =D7=D4, 08/11/2005 =D7 10:02 -0800, Maksim Yevmenkin =D0=C9=DB=C5=D4: > > Vladimir, > >=20 > > [...] > >=20 > > > After recent upgrade of 7-CURRENT I have do not working bthidd. > > >=20 > > > Something bad on boot here. bthidd just not started or failed on boot= . > > > If I just turn off and then turn on USB bt dongle - it starts work. > > >=20 > > > No any related messages in /var/log/messages. > >=20 > > _nothing_ has changed in bluetooth code and i have _not_ committed any=20 > > rc.d bluetooth scripts, so it must be something wrong with your setup.=20 > > which bluetooth rc.d scripts are you using? original (posted by=20 > > Panagiotis) or mine? >=20 > Original. > Nothing changed in my setup except=20 > make world && mergemaster I have found the reason, it was really after make world After turning off console pixel-mode I've see: ... Starting devd. WARNING: attempt to net_add_domain(bluetooth) after domainfinalize() bthidd not running? WARNING: attempt to net_add_domain(netgraph) after domainfinalize() BD_ADDR: 08:00:46:ca:e2:7a Features: 0xff 0xff 0xf 00 00 00 00 00 <3-Slot> <5-Slot> Max. ACL packet size: 192 bytes Number of ACL packets: 8 Max. SCO packet size: 64 bytes Number of SCO packets: 8 Starting bthidd. /libexec/ld-elf.so.1: Shared object "libbluetooth.so.1" not found, required= by " bthidd" ... After rebuilding bthidd and bthidcontrol it start work. But, I still does understand why it starts ok with manual start after boot. > Probably something wrong with drivers, I've notice that ng bluetooth > mice is disconnected without any notice. >=20 > Reconnecting usb bluetooth device lead to following error: > ubt0: ALPS UGX, rev 1.10/7.81, addr 2 > ubt0: ALPS UGX, rev 1.10/7.81, addr 2 > ubt0: Interface 0 endpoints: interrupt=3D0x81, bulk-in=3D0x82, bulk-out= =3D0x2 > ubt0: Interface 1 (alt.config 5) endpoints: isoc-in=3D0x83, isoc-out=3D0x= 3; > wMaxPacketSize=3D49; nframes=3D6, buffer size=3D294 > ng_ubt_connect: ubt0 - Could not start interrupt transfer. NOMEM (5) >=20 > And after that error bt stack does not work until reboot, reconnecting > dongle does not helps. >=20 > Boot scenario was: > booting > ... > ubt0: ALPS UGX, rev 1.10/7.81, addr 2 > ubt0: ALPS UGX, rev 1.10/7.81, addr 2 > ubt0: Interface 0 endpoints: interrupt=3D0x81, bulk-in=3D0x82, bulk-out= =3D0x2 > ubt0: Interface 1 (alt.config 5) endpoints: isoc-in=3D0x83, isoc-out=3D0x= 3; > wMaxPacketSize=3D49; nframes=3D6, buffer size=3D294 > Timecounter "TSC" frequency 1686969804 Hz quality 800 > ... > Trying to mount root from ufs:/dev/ad0s4a > WARNING: attempt to net_add_domain(bluetooth) after domainfinalize() > WARNING: attempt to net_add_domain(netgraph) after domainfinalize() > ... > there bthidd started but does not connect mice. >=20 > I have turned on-board bt off, then on by notebook switch. > kernel printed: > ubt_bulk_in_complete2: ubt0 - Bulk-in xfer failed, IOERROR (13). No new x= fer will be submitted! > ubt_intr_complete2: ubt0 - Interrupt xfer failed, IOERROR (13). No new xf= er will be submitted! > ubt0: at uhub2 port 2 (addr 2) disconnected > ubt0: detached > ubt0: ALPS UGX, rev 1.10/7.81, addr 2 > ubt0: ALPS UGX, rev 1.10/7.81, addr 2 > ubt0: Interface 0 endpoints: interrupt=3D0x81, bulk-in=3D0x82, bulk-out= =3D0x2 > ubt0: Interface 1 (alt.config 5) endpoints: isoc-in=3D0x83, isoc-out=3D0x= 3; wMaxPacketSize=3D49; nframes=3D6, buffer size=3D294 > kbd2 at vkbd0 >=20 > BT mice start work here. > after some hours of work it stop moving and l2pings also. >=20 > Trying restart BT stack lead to error:=20 > ubt0: ALPS UGX, rev 1.10/7.81, addr 2 > ubt0: ALPS UGX, rev 1.10/7.81, addr 2 > ubt0: Interface 0 endpoints: interrupt=3D0x81, bulk-in=3D0x82, bulk-out= =3D0x2 > ubt0: Interface 1 (alt.config 5) endpoints: isoc-in=3D0x83, isoc-out=3D0x= 3; > wMaxPacketSize=3D49; nframes=3D6, buffer size=3D294 > ng_ubt_connect: ubt0 - Could not start interrupt transfer. NOMEM (5) >=20 > as all following tries >=20 > It was much better before. (I am using this mice for long time). >=20 >=20 > > [...] > >=20 > > > Does anybody has working on boot bthidd with recent scripts ?=20 > >=20 > > once more bthidd(8) is _not_ connected to the build and _not_ installed= =20 > > by default. this is still work in progress. once bthid(8) is finished i= t=20 > > will be connected to the build and installed by default. at this point=20 > > we will integrate it into rc.d. >=20 > Ok, so we are talking only about posted here scripts. >=20 > > thanks, > > max --=20 Vladimir B. Grebenschikov SWsoft Inc. vova@swsoft.com