First Last Prev Next    No search results available      Search page      Enter new bug
Bug#: 84431
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: Mobile Herd <mobile@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Bash <bash83@mail.ru>
Add CC:
CC:
Remove selected CCs
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
bluetooth.agent Should resides in /etc/hotplug/ directory text/plain Bash 2005-03-07 13:19 0000 593 bytes Details
net.agent.patch Hintful for gentoo net.agent patch patch Bash 2005-03-07 14:26 0000 643 bytes Details | Diff
bluetooth.hotplug /etc/hotplug.d/bluetooth/bluetooth text/plain Henrik Brix Andersen 2005-10-23 04:14 0000 799 bytes Details
70-bluetooth.rules Proposed /etc/udev/rules.d/70-bluetooth.rules text/plain Henrik Brix Andersen 2005-11-03 04:30 0000 84 bytes Details
bluetooth.sh Proposed /etc/udev/scripts/bluetooth.sh text/plain Henrik Brix Andersen 2005-11-03 04:31 0000 485 bytes Details
70-bluetooth.rules Proposed /etc/udev/rules.d/70-bluetooth.rules text/plain Henrik Brix Andersen 2005-11-11 05:54 0000 82 bytes Details
bluetooth.sh Proposed /etc/udev/scripts/bluetooth.sh text/plain Henrik Brix Andersen 2005-11-11 05:55 0000 567 bytes Details
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 84431 depends on: Show dependency tree
Show dependency graph
Bug 84431 blocks:
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)







View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2005-03-07 13:17 0000
I have USB bluetooth dongle adapter (I believe Im not alone :])
and I use hotplug package for auto modules loading and starting bluetooth related services (like hcid, sdpd, etc). But there is no default bluetooth agent in hotplug package, so I'v made it by myself (it's very simple):)) I offer it for yours examination and  propose to include this one in sys-app/hotplug package.

------- Comment #1 From Bash 2005-03-07 13:19:00 0000 -------
Created an attachment (id=52866) [edit]
Should resides in /etc/hotplug/ directory

------- Comment #2 From Bash 2005-03-07 14:26:43 0000 -------
Created an attachment (id=52868) [edit]
Hintful for gentoo net.agent patch

With this patch net.agent produce clever hint for gentoo distribution.

Example: I plug in USB cable from my Zaurus PDA and look at /var/log/messages:

Mar  7 21:06:55 blackhole ohci_hcd 0000:00:02.3: wakeup
Mar  7 21:06:55 blackhole usb 2-1: new full speed USB device using address 28
Mar  7 21:06:55 blackhole usb0: register usbnet at usb-0000:00:02.3-1, Sharp
Zaurus, PXA-2xx based
Mar  7 21:06:55 blackhole net.agent[28204]: Please create /etc/init.d/net.usb0
for your usb0 interface
Mar  7 21:06:55 blackhole net.agent[28204]: *HINT* just run this command: ln
-sf /etc/init.d/net.eth0 /etc/init.d/net .usb0
Mar  7 21:06:55 blackhole net.agent[28204]: and add new config line to
/etc/conf.d/net like this:
Mar  7 21:06:55 blackhole net.agent[28204]: iface_usb0="192.168.50.1 broadcast
192.168.50.255 netmask 255.255.255.0"
Mar  7 21:06:55 blackhole net.agent[28204]: add event not handled

I'm using this methodology (symlink from net.eth0  to net.IFACE and config in
/etc/conf.d/net) for my usb0 iface (for Zaurus) and bnep0 (for bluetooth
network). And all works very well.

------- Comment #3 From Henrik Brix Andersen 2005-04-26 10:19:42 0000 -------
Adding base-system to CC: since they mainaint sys-apps/hotplug.

------- Comment #4 From Greg Kroah-Hartman 2005-04-26 14:17:38 0000 -------
No, I maintain hotplug.

------- Comment #5 From Greg Kroah-Hartman 2005-04-26 14:18:34 0000 -------
The net.agent patch isn't acceptable.  We don't spam people in the syslog.

------- Comment #6 From Greg Kroah-Hartman 2005-04-26 14:19:15 0000 -------
The bluetooth hotplug agent will not handle multiple devices, right?

You should use the /etc/dev.d inteface instead, the /etc/hotplug one is 
depreciated.

------- Comment #7 From Henrik Brix Andersen 2005-06-10 07:23:34 0000 -------
Greg: So an /etc/dev.d/ script for adding this functionality would be the
correct thing - and likely to be accepted?

------- Comment #8 From Bash 2005-06-10 08:33:29 0000 -------
Meybe it's depricated, but this forks fine for me.
Ok, let's closing...

------- Comment #9 From Henrik Brix Andersen 2005-06-10 08:44:36 0000 -------
Re-opening to get an answer to comment #7 - please don't close bug reports with
unanswered questions, especially when the question is from a developer ;)

------- Comment #10 From Henrik Brix Andersen 2005-06-11 03:41:26 0000 -------
I can't see how an /etc/dev.d/ script can do this - no udev event is generated
when I insert my USB bluetooth adaptor...

------- Comment #11 From Henrik Brix Andersen 2005-10-23 04:14:15 0000 -------
Created an attachment (id=71270) [edit]
/etc/hotplug.d/bluetooth/bluetooth

Greg, how about this one?

------- Comment #12 From Greg Kroah-Hartman 2005-10-25 15:06:02 0000 -------
How about a udev rule instead?  We are slowly moving away from the hotplug
agent
scripts.

------- Comment #13 From Henrik Brix Andersen 2005-10-26 01:13:16 0000 -------
(In reply to comment #12)
> How about a udev rule instead?  We are slowly moving away from the hotplug agent
> scripts.

As noted in comment #10, no udev event was generated when I inserted my
bluetooth adapter back then. I'll recheck with latest udev release when I get
back home later today - if we can use udev, I would prefer that as well.


------- Comment #14 From Greg Kroah-Hartman 2005-10-31 23:16:58 0000 -------
I don't believe you, you should get a udev event :)

------- Comment #15 From Henrik Brix Andersen 2005-11-03 04:29:42 0000 -------
(In reply to comment #14)
> I don't believe you, you should get a udev event :)

I do now (the comment in udev.conf about how to enable debug is outdated, it seems).

To make the udev bluetooth rules work with multiple bluetooth adapters, we need
to check if any hciX devices are still present before stopping the init script.
I have not found a way to do this from a simple udev rule, so I suggest using a
script.

------- Comment #16 From Henrik Brix Andersen 2005-11-03 04:30:35 0000 -------
Created an attachment (id=72005) [edit]
Proposed /etc/udev/rules.d/70-bluetooth.rules

------- Comment #17 From Henrik Brix Andersen 2005-11-03 04:31:21 0000 -------
Created an attachment (id=72006) [edit]
Proposed /etc/udev/scripts/bluetooth.sh

Greg, please review :)

------- Comment #18 From Greg Kroah-Hartman 2005-11-04 21:06:26 0000 -------
Do you really want to run "start" on every bluetooth device that is added?

Or should it only startup for the first one?

------- Comment #19 From Henrik Brix Andersen 2005-11-11 05:54:16 0000 -------
Created an attachment (id=72641) [edit]
Proposed /etc/udev/rules.d/70-bluetooth.rules

I've finally had the chance to test with multiple bluetooth devices, and I've
changed the script + rules slightly.

If there are no objections, I will add these to net-wireless/bluez-utils.

------- Comment #20 From Henrik Brix Andersen 2005-11-11 05:55:08 0000 -------
Created an attachment (id=72642) [edit]
Proposed /etc/udev/scripts/bluetooth.sh

------- Comment #21 From Greg Kroah-Hartman 2005-11-12 16:51:56 0000 -------
Put udev scripts in /lib/udev, not under /etc please.  No other scripts should
be in /etc/udev/scripts/ right now.

Other than that, it looks fine to me.

------- Comment #22 From Henrik Brix Andersen 2005-12-17 07:16:27 0000 -------
(In reply to comment #21)
> Put udev scripts in /lib/udev, not under /etc please.  No other scripts should
> be in /etc/udev/scripts/ right now.

Should I put it in as /lib/udev/bluetooth.sh or /lib/udev/scripts/bluetooth.sh
?

> Other than that, it looks fine to me.

Ok, thank you for looking it over.

------- Comment #23 From Henrik Brix Andersen 2006-01-17 10:16:35 0000 -------
Fixed in net-wireless/bluez-utils-2.24.

------- Comment #24 From Mark Barrett 2006-04-15 06:25:32 0000 -------
Hi, I stumbled on this bug from the udev-event error:
run_program: exec of program '/lib/udev/bluetooth.sh' failed in my boot
messages.

I understand this is because /lib/udev/bluetooth.sh has been removed from
bluez-utils and orphaned /etc/udev/rules.d/70-bluetooth.rules on my system.

Why has this been taken out?
I have a problem with my dongle adapter where it never gets detected on boot
and I have to unplug it/plug it back for it to be detected and have my
bluetooth mouse usable. Is this anything to do with this bug?

------- Comment #25 From Henrik Brix Andersen 2006-04-15 11:01:12 0000 -------
(In reply to comment #24)
> I understand this is because /lib/udev/bluetooth.sh has been removed from
> bluez-utils and orphaned /etc/udev/rules.d/70-bluetooth.rules on my system.

What makes you think it has been taken out? Do you have USE="udev"?

------- Comment #26 From Mark Barrett 2006-04-15 12:45:58 0000 -------
(In reply to comment #25)
> (In reply to comment #24)
> > I understand this is because /lib/udev/bluetooth.sh has been removed from
> > bluez-utils and orphaned /etc/udev/rules.d/70-bluetooth.rules on my system.
> 
> What makes you think it has been taken out? Do you have USE="udev"?
> 
That's what I was missing - thanks :)

First Last Prev Next    No search results available      Search page      Enter new bug