<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugs.gentoo.org/bugzilla.dtd">

<bugzilla version="2.22.7"
          urlbase="http://bugs.gentoo.org/"
          maintainer="bugzilla@gentoo.org"
>

    <bug>
          <bug_id>75255</bug_id>
          
          <creation_ts>2004-12-21 16:15 0000</creation_ts>
          <short_desc>net-wireless/bluez-utils : hid2hci needs to be run first with a delay</short_desc>
          <delta_ts>2005-04-27 05:36:26 0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Gentoo Linux</product>
          <component>Applications</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>swanson@ukfsn.org</reporter>
          <assigned_to>mobile@gentoo.org</assigned_to>
          

      

      
          <long_desc isprivate="0">
            <who>swanson@ukfsn.org</who>
            <bug_when>2004-12-21 16:15:42 0000</bug_when>
            <thetext>In the bluetooth initscript hid2hci needs to be run first, followed by a short delay before running the chosen bluetooth daemons.

It needs to be run first otherwise there will be no bluetooth device/drivers for daemons as the device would currently be a HID device only.

There also needs to be a short delay to allow hotplugging time to detect the &quot;new&quot; HCI device and load the bluetooth modules. Otherwise there will still be no device/drivers for the daemons that are run immediately after hid2hci. A one second delay is sufficient.

Although sleeps are not nice in initscripts, this only affects people using hid2hci. For example, my Logitech receiver that came with my MX900 mouse.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>swanson@ukfsn.org</who>
            <bug_when>2004-12-21 16:17:29 0000</bug_when>
            <thetext>Created an attachment (id=46591)
bluetooth-init.patch

Make hid2hci first in start() function and add an one second delay</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>liquidx@gentoo.org</who>
            <bug_when>2005-04-26 06:13:52 0000</bug_when>
            <thetext>added to 2.16&apos;s init script.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>swanson@ukfsn.org</who>
            <bug_when>2005-04-26 16:15:46 0000</bug_when>
            <thetext>Patch not applied correctly, the only change made was to add the sleep.

It is perhaps not clear if only reading the patch and not actually applying, but the bug was that the HID2HCI_ENABLE section needs to the be the first to be run in the start() function.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>liquidx@gentoo.org</who>
            <bug_when>2005-04-27 05:36:26 0000</bug_when>
            <thetext>yes, you&apos;re correct. i overlooked the fact that you shifted the block to before the hcid. the problem is i don&apos;t have any bluetooth hid equipment, so i can&apos;t test this out for sure.

anyway, i&apos;ve fixed the init script and bumped the version. hopefully this will work better for you now.</thetext>
          </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>46591</attachid>
            <date>2004-12-21 16:17 0000</date>
            <desc>bluetooth-init.patch</desc>
            <filename>bluetooth-init.patch</filename>
            <type>text/plain</type>
            <data encoding="base64">LS0tIGJsdWV0b290aC5yYwkyMDA0LTEwLTIyIDA5OjA3OjIwLjAwMDAwMDAwMCArMDEwMAorKysg
L2V0Yy9pbml0LmQvYmx1ZXRvb3RoCTIwMDQtMTItMTkgMjE6MTA6MTYuMDAwMDAwMDAwICswMDAw
CkBAIC0yMyw2ICsyMywxMyBAQAogc3RhcnQoKSB7CiAgICAJZWJlZ2luICJTdGFydGluZyBCbHVl
dG9vdGgiCiAKKyAgICAgICAgaWYgWyAiJHtISUQySENJX0VOQUJMRX0iID0gInRydWUiIC1hIC14
IC91c3Ivc2Jpbi9oaWQyaGNpIF07IHRoZW4KKyAgICAgICAgICAgICAgICBlYmVnaW4gIiAgICBS
dW5uaW5nIGhpZDJoY2kiCisgICAgICAgICAgICAgICAgL3Vzci9zYmluL2hpZDJoY2kgLTAgLXEg
ICAgI2JlIHF1aWV0CisJCS9i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