Bluetooth and suspend/resume

From: Cruz, Maria <maria.cruz.a.t.VITRONICS.com>
Date: Fri Sep 24 2004 - 13:13:52 EDT

Hi,

I got Bluetooth to work on model 5550 (somewhat unstable). Then I
thought, how do get it to work after a suspend then resume?

 

I have found the following to work on an iPAQ model 5550. I have a pand
-connect <mac> --persist running on my ipaq. So the script accounts
for that , but it is optional.

 

I have the following scripts:

 

/etc/suspend-scripts/S50bluetooth

 

#!/bin/sh
pand -K
killall -HUP hcid
killall -HUP hciattach
modprobe -r rfcomm l2cap hci_uart bnep bluez

 

 

/etc/resume-scripts/R50bluetooth

 

#!/bin/sh
modprobe bluez hci_uart l2cap rfcomm bnep
modprobe rfcomm

hciattach /dev/tts/1 any 921600
hcid

 

 

 

I check that Bluetooth is ok (hcitool inq). And then I suspend via
button. Wait a while (about a min) then resume via button. And

check that Bluetooth is ok (hcitool inq).

 

It seems ok.

Maria cruz

Vitronics Inc (an MTC Technologies company)

maria.cruz@vitronics.com

 
Received on Fri Sep 24 13:09:47 2004

This archive was generated by hypermail 2.1.8 : Fri Sep 24 2004 - 14:03:54 EDT