Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 137161 - udev pcmcia bluetooth initialisation rules/scripts
Summary: udev pcmcia bluetooth initialisation rules/scripts
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] baselayout (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Greg Kroah-Hartman (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-06-18 04:59 UTC by Steven Newbury
Modified: 2006-07-04 18:40 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
udev PCMCIA Bluetooth rules (40-bluetooth.rules,8.13 KB, text/plain)
2006-06-18 05:02 UTC, Steven Newbury
Details
Script to take handle PCMCIA Bluetooth devices (pcmcia.bluetooth,694 bytes, text/plain)
2006-06-18 05:05 UTC, Steven Newbury
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Steven Newbury 2006-06-18 04:59:54 UTC
I have written a udev rule and initialisation script for PCMCIA Bluetooth devices so that they automatically attach and detach to the hci device.  This enables the removal of the PCMCIA cardmgr without functionality loss.

Currently the script sits in /etc/hotplug, and utilises the hotplug.functions, it does not really depend on them though.
Comment 1 Steven Newbury 2006-06-18 05:02:47 UTC
Created attachment 89458 [details]
udev PCMCIA Bluetooth rules

Use in conjunction with the pcmcia.bluetooth script
Comment 2 Steven Newbury 2006-06-18 05:05:04 UTC
Created attachment 89459 [details]
Script to take handle PCMCIA Bluetooth devices
Comment 3 Greg Kroah-Hartman (RETIRED) gentoo-dev 2006-06-19 19:57:00 UTC
If you could rewrite this, so that this is not a hotplug script, that would
be great, as we are trying to get rid of the hotplug package entirely.

Also, your udev rules look like you will have to constantly be adding to them
as new devices are built.  Isn't there some generic way you can detect
a bluetooth device?
Comment 4 Steven Newbury 2006-06-21 10:26:16 UTC
(In reply to comment #3)
> If you could rewrite this, so that this is not a hotplug script, that would
> be great, as we are trying to get rid of the hotplug package entirely.
Sure, any suggestion for an appropriate location?
> 
> Also, your udev rules look like you will have to constantly be adding to them
> as new devices are built.  Isn't there some generic way you can detect
> a bluetooth device?
> 
Unfortunately not.  The func_id is usually 0x02 (serial device), this is fine for getting the UART going but nothing else.  There seems to be no common identifier for PCMCIA Bluetooth devices :(
Comment 5 Greg Kroah-Hartman (RETIRED) gentoo-dev 2006-06-21 12:01:06 UTC
(In reply to comment #4)
> (In reply to comment #3)
> > If you could rewrite this, so that this is not a hotplug script, that would
> > be great, as we are trying to get rid of the hotplug package entirely.
> Sure, any suggestion for an appropriate location?

/lib/udev is where udev scripts go.

> > Also, your udev rules look like you will have to constantly be adding to them
> > as new devices are built.  Isn't there some generic way you can detect
> > a bluetooth device?
> > 
> Unfortunately not.  The func_id is usually 0x02 (serial device), this is fine
> for getting the UART going but nothing else.  There seems to be no common
> identifier for PCMCIA Bluetooth devices :(

Ick.  These should probably go into the bluetooth package then, I don't think
we want them in the general udev package.
Comment 6 Steven Newbury 2006-06-22 06:11:36 UTC
(In reply to comment #5)
> (In reply to comment #4)
> > (In reply to comment #3)
> > > If you could rewrite this, so that this is not a hotplug script, that would
> > > be great, as we are trying to get rid of the hotplug package entirely.
> > Sure, any suggestion for an appropriate location?
> 
> /lib/udev is where udev scripts go.

Thought it might be..
> 
> > > Also, your udev rules look like you will have to constantly be adding to them
> > > as new devices are built.  Isn't there some generic way you can detect
> > > a bluetooth device?
> > > 
> > Unfortunately not.  The func_id is usually 0x02 (serial device), this is fine
> > for getting the UART going but nothing else.  There seems to be no common
> > identifier for PCMCIA Bluetooth devices :(
> 
> Ick.  These should probably go into the bluetooth package then, I don't think
> we want them in the general udev package.
Agreed.  They are rather dependant on having the bluetooth services up and running anyway.  Also if the bluetooth services are not running; should it soft-fail, start the bluetooth service,...?
Comment 7 Steven Newbury 2006-07-04 18:40:57 UTC
I'm afraid I haven't been able to get on-line for a couple of weeks... I've noticed bug #137590 so something has obviously gone in now.  I have changed my scripts to remove the hotplug dependency, so if they are still wanted,  I'll attach them to this bug.