site_archiver@lists.apple.com Delivered-To: bluetooth-dev@lists.apple.com
From console.log > 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 (Bluetooth-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/bluetooth-dev/site_archiver%40lists.a... 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? 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] This email sent to site_archiver@lists.apple.com
participants (1)
-
Z Rosen