public inbox for linux-bluetooth@vger.kernel.org
 help / color / mirror / Atom feed
* [Bluez-users] Can only start Bluetooth once on my Sony Picturebook
@ 2004-05-10 12:25 Timothy Murphy
  2004-05-10 12:57 ` Marcel Holtmann
  0 siblings, 1 reply; 5+ messages in thread
From: Timothy Murphy @ 2004-05-10 12:25 UTC (permalink / raw)
  To: BlueZ Mailing List

A little query which does not really matter,
but which leaves me slightly puzzled.

I'm running linux-2.6.6-rc2 under Fedora-1
on my Sony C1VFK Picturebook.
This has in-built Bluetooth.
To start this running, I say "spicctrl -l1"
(when the blue Bluetooth light on my laptop comes on)
followed by "service bluetooth restart".

All this works perfectly.
But if I give the command "spicctrl -l0"
to stop the inbuilt Bluetooth
I am never able to restart it,
except by re-booting.

I couldn't see from a very brief (and ignorant) look at the source
why the sonypi_ioctl() call couldn't be reversed.

Perhaps there is some command I could give
to restart Bluetooth, short of re-booting?

[IIRC, I could start and stop Bluetooth like this
in older kernels.]



-- 
Timothy Murphy  
e-mail (<80k only): tim /at/ birdsnest.maths.tcd.ie
tel: +353-86-2336090, +353-1-2842366
s-mail: School of Mathematics, Trinity College, Dublin 2, Ireland


-------------------------------------------------------
This SF.Net email is sponsored by Sleepycat Software
Learn developer strategies Cisco, Motorola, Ericsson & Lucent use to deliver
higher performing products faster, at low TCO.
http://www.sleepycat.com/telcomwpreg.php?From=osdnemail3
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [Bluez-users] Can only start Bluetooth once on my Sony Picturebook
  2004-05-10 12:25 [Bluez-users] Can only start Bluetooth once on my Sony Picturebook Timothy Murphy
@ 2004-05-10 12:57 ` Marcel Holtmann
  2004-05-10 20:38   ` Timothy Murphy
  2004-05-10 20:57   ` Michal Semler
  0 siblings, 2 replies; 5+ messages in thread
From: Marcel Holtmann @ 2004-05-10 12:57 UTC (permalink / raw)
  To: tim; +Cc: BlueZ Mailing List

[-- Attachment #1: Type: text/plain, Size: 1131 bytes --]

Hi Timothy,

> A little query which does not really matter,
> but which leaves me slightly puzzled.
> 
> I'm running linux-2.6.6-rc2 under Fedora-1
> on my Sony C1VFK Picturebook.
> This has in-built Bluetooth.
> To start this running, I say "spicctrl -l1"
> (when the blue Bluetooth light on my laptop comes on)
> followed by "service bluetooth restart".
> 
> All this works perfectly.
> But if I give the command "spicctrl -l0"
> to stop the inbuilt Bluetooth
> I am never able to restart it,
> except by re-booting.
> 
> I couldn't see from a very brief (and ignorant) look at the source
> why the sonypi_ioctl() call couldn't be reversed.
> 
> Perhaps there is some command I could give
> to restart Bluetooth, short of re-booting?

you can keep every Bluetooth daemon running even if no device is
attached. They will re-init themself if you power-up your internal
Bluetooth device. What I think that happens is that the stopping with
spicctrl is the same as a physical unplug and this causes a kernel oops.
Check if you have CONFIG_BT_HCIUSB_SCO enabled, if yes, disable for now
or apply the attached patch.

Regards

Marcel


[-- Attachment #2: patch --]
[-- Type: text/plain, Size: 530 bytes --]

===== drivers/bluetooth/hci_usb.c 1.49 vs edited =====
--- 1.49/drivers/bluetooth/hci_usb.c	Sat Apr 17 00:23:48 2004
+++ edited/drivers/bluetooth/hci_usb.c	Mon May 10 12:03:05 2004
@@ -976,11 +971,13 @@
 static void hci_usb_disconnect(struct usb_interface *intf)
 {
 	struct hci_usb *husb = usb_get_intfdata(intf);
-	struct hci_dev *hdev = husb->hdev;
+	struct hci_dev *hdev;
 
-	if (!husb)
+	if (!husb || intf == husb->isoc_iface)
 		return;
+
 	usb_set_intfdata(intf, NULL);
+	hdev = husb->hdev;
 
 	BT_DBG("%s", hdev->name);
 

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [Bluez-users] Can only start Bluetooth once on my Sony Picturebook
  2004-05-10 12:57 ` Marcel Holtmann
@ 2004-05-10 20:38   ` Timothy Murphy
  2004-05-10 20:57   ` Michal Semler
  1 sibling, 0 replies; 5+ messages in thread
From: Timothy Murphy @ 2004-05-10 20:38 UTC (permalink / raw)
  To: BlueZ Mailing List

On Monday 10 May 2004 13:57, Marcel Holtmann wrote:

> > I'm running linux-2.6.6-rc2 under Fedora-1
> > on my Sony C1VFK Picturebook.
> > This has in-built Bluetooth.
> > To start this running, I say "spicctrl -l1"
> > (when the blue Bluetooth light on my laptop comes on)
> > followed by "service bluetooth restart".
> >
> > All this works perfectly.
> > But if I give the command "spicctrl -l0"
> > to stop the inbuilt Bluetooth
> > I am never able to restart it,
> > except by re-booting.

> Check if you have CONFIG_BT_HCIUSB_SCO enabled, if yes, disable for now
> or apply the attached patch.

Thanks for the advice.
I compiled linux-2.6.6 with
# CONFIG_BT_HCIUSB_SCO is not set
and now I can start and stop Bluetooth (with spicctrl) as often as I wish.

-- 
Timothy Murphy  
e-mail (<80k only): tim /at/ birdsnest.maths.tcd.ie
tel: +353-86-2336090, +353-1-2842366
s-mail: School of Mathematics, Trinity College, Dublin 2, Ireland


-------------------------------------------------------
This SF.Net email is sponsored by Sleepycat Software
Learn developer strategies Cisco, Motorola, Ericsson & Lucent use to deliver
higher performing products faster, at low TCO.
http://www.sleepycat.com/telcomwpreg.php?From=osdnemail3
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [Bluez-users] Can only start Bluetooth once on my Sony Picturebook
  2004-05-10 12:57 ` Marcel Holtmann
  2004-05-10 20:38   ` Timothy Murphy
@ 2004-05-10 20:57   ` Michal Semler
  2004-05-10 21:14     ` Marcel Holtmann
  1 sibling, 1 reply; 5+ messages in thread
From: Michal Semler @ 2004-05-10 20:57 UTC (permalink / raw)
  To: bluez-users

Hi Marcel,

>
> you can keep every Bluetooth daemon running even if no device is
> attached. They will re-init themself if you power-up your internal
> Bluetooth device. What I think that happens is that the stopping with
> spicctrl is the same as a physical unplug and this causes a kernel oops.
> Check if you have CONFIG_BT_HCIUSB_SCO enabled, if yes, disable for now
> or apply the attached patch.
>
> Regards
>
> Marcel

Have you done some research in hcitool cc cc dc bug?

Michal


-------------------------------------------------------
This SF.Net email is sponsored by Sleepycat Software
Learn developer strategies Cisco, Motorola, Ericsson & Lucent use to deliver
higher performing products faster, at low TCO.
http://www.sleepycat.com/telcomwpreg.php?From=osdnemail3
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [Bluez-users] Can only start Bluetooth once on my Sony Picturebook
  2004-05-10 20:57   ` Michal Semler
@ 2004-05-10 21:14     ` Marcel Holtmann
  0 siblings, 0 replies; 5+ messages in thread
From: Marcel Holtmann @ 2004-05-10 21:14 UTC (permalink / raw)
  To: cijoml; +Cc: BlueZ Mailing List

Hi Michal,

> Have you done some research in hcitool cc cc dc bug?

I thought it was clear why this fails. If not, post it again with
"hcidump -x" to show what happens, but in a seperate thread. It is not
nice to ask off-topic questions in a complete independent thread.

Regards

Marcel




-------------------------------------------------------
This SF.Net email is sponsored by Sleepycat Software
Learn developer strategies Cisco, Motorola, Ericsson & Lucent use to deliver
higher performing products faster, at low TCO.
http://www.sleepycat.com/telcomwpreg.php?From=osdnemail3
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2004-05-10 21:14 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-05-10 12:25 [Bluez-users] Can only start Bluetooth once on my Sony Picturebook Timothy Murphy
2004-05-10 12:57 ` Marcel Holtmann
2004-05-10 20:38   ` Timothy Murphy
2004-05-10 20:57   ` Michal Semler
2004-05-10 21:14     ` Marcel Holtmann

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox