Another sleep/wake issue...
Another sleep/wake issue...
- Subject: Another sleep/wake issue...
- From: Z Rosen <email@hidden>
- Date: Tue, 19 Oct 2004 14:15:50 -0400
I have objects that wrap bluetooth devices. When I get a sleep
notification, I tell the objects to disconnect from their devices and
then I dealloc the objects. I init new objects when I get a wake
notification.
The problem is that the computer will wake immediately after sleeping
if an object was connected to a device when the sleep notification was
called (see log below). What can I do to keep this from happening? Is
the device trying to re-connect? Am I not waiting for an async
message?
From console.log >
Oct 19 13:58:42 MyApp[24647] MainController: willSleepNotif: begin
posting
Oct 19 13:58:42 MyApp[24647] BluetoothPhone: Disconnecting from device
Oct 19 13:58:42 MyApp[24647] MainController: willSleepNotif: done
posting
Oct 19 13:58:42 MyApp[24647] BluetoothPhone: dealloc
Oct 19 13:58:43 Doc-Holiday kernel: AppleNMI mask NMI
Oct 19 13:58:43 Doc-Holiday kernel: [HCIController][setPowerState] 0
(ignore=0)
Oct 19 13:58:43 Doc-Holiday kernel: [HCIController][setPowerStateWL] 0
Oct 19 13:58:43 Doc-Holiday kernel: [setPowerStateWL] setting up
controller for power off.
Oct 19 13:58:43 Doc-Holiday kernel:
[HCIController][PerformPowerStateChange] 1->0
Oct 19 13:58:43 Doc-Holiday kernel:
[AppleUSBHCIController][StopIsochPipeRead] - mInt1IsochInPipe = 0 -
numReadsPending = 0
Oct 19 13:58:43 Doc-Holiday kernel:
[HCIController][CompletePowerStateChange]
Oct 19 13:58:43 Doc-Holiday kernel: AirPort: Link DOWN
Oct 19 13:58:43 Doc-Holiday kernel: handleAirPortChangesChannelWL fails
because POWER IS OFF (the mask is correcty set however)
Oct 19 13:58:54 Doc-Holiday kernel: System Sleep
Oct 19 13:58:55 Doc-Holiday kernel: System Wake
Oct 19 13:58:55 Doc-Holiday kernel: Wake event 0001
Oct 19 13:58:55 Doc-Holiday kernel: AppleNMI unmask NMI
Oct 19 13:58:55 Doc-Holiday kernel: [HCIController][setPowerState] 1
(ignore=0)
Oct 19 13:58:55 Doc-Holiday kernel: [HCIController][setPowerStateWL] 1
Oct 19 13:58:55 Doc-Holiday kernel:
[HCIController][PerformPowerStateChange] 0->1
Oct 19 13:58:55 Doc-Holiday kernel:
[HCIController][CompletePowerStateChange]
Sometimes the "Wake event" is 0020
Thanks for any help you can give,
-ZR
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Bluetooth-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden