Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

关于睡眠后的蓝牙崩溃问题解决方案 #2

Open
koli998 opened this issue Apr 15, 2023 · 17 comments
Open

关于睡眠后的蓝牙崩溃问题解决方案 #2

koli998 opened this issue Apr 15, 2023 · 17 comments

Comments

@koli998
Copy link

koli998 commented Apr 15, 2023

关于睡眠后的蓝牙崩溃问题解决方案,可以尝试在 bios 里关闭 xmp。

同时我这也有一个问题一直没解决,就是键盘鼠标突然失灵,实际是所有 usb 都失灵了,重新插拔也没用,只能重启电脑。频率差不多是一天一次。

在 usb 失灵的时候,会有不少 bluetoothd 的 crash 日志

我的主板是 技嘉 B660m AORUS RPO D4,网卡 943602cs 和 fenvi-t919 都试过了

还有我看你用的是免驱的 fenvi-t919,但是 kext 里还是有 BlueToolFixup、BrcmFirmwareData 和 BrcmPatchRAM3 ,不过 config 里都没有 enable

@lyq1996
Copy link
Owner

lyq1996 commented Apr 16, 2023

我这里测试的现象是,如果按电源键唤醒,bluetoothd进入死循环;如果按键盘或鼠标唤醒,bluetoothd crash。所以我目前睡眠前关闭蓝牙,跟xmp应该无关,big sur是没有问题的,逆向了很久驱动,无解。

usb失灵我也遇到过,插在显示器hub上的时候鼠标有时候开机或者睡眠唤醒会没反应,鼠标灯也不亮,必须重插,后来我插在主板usb2.0 hub就没遇到过了。

@lyq1996
Copy link
Owner

lyq1996 commented Apr 16, 2023

你说的失灵是什么场景才会出现,正常使用时突然失灵,还是开机,或是睡眠唤醒时出现?

@koli998
Copy link
Author

koli998 commented Apr 16, 2023

正常使用的过程中,就突然失灵了,我就插了三个 usb,键盘鼠标在 hs06 的 usb2.0 上,蓝牙 usb 是 在 hs05 上,设置为了 internal

@koli998
Copy link
Author

koli998 commented Apr 16, 2023

bluetoothd crash log

Crashed Thread: 1
Exception Type: EXC_GUARD
Exception Codes: GUARD_TYPE_USER
Exception Codes: 0x6000000000000012, 0x0000000000000002
Termination Reason: Namespace LIBSYSTEM, Code 2 Application Triggered Fault

@koli998
Copy link
Author

koli998 commented Apr 16, 2023

09:01:20.737073+0800 0x6053     Default     0x11927              199    0    runningboardd: (RunningBoard) [com.apple.runningboard:process] com.apple.IOUserBluetoothSerialDriver-0x1000009b0: RunningBoard doesn't recognize submitted process - treating as a anonymous process
09:01:20.737082+0800 0x6053     Default     0x11927              199    0    runningboardd: (RunningBoard) [com.apple.runningboard:process] _resolveProcessWithIdentifier pid 843 euid 270 auid 270
09:01:20.737082+0800 0x6053     Default     0x11927              199    0    runningboardd: (RunningBoard) [com.apple.runningboard:process] Unable to obtain process properties from launchd for pid=843
09:01:20.737098+0800 0x6053     Default     0x11927              199    0    runningboardd: (RunningBoard) [com.apple.runningboard:process] Resolved pid 843 to [anon<IOUserBluetoothSerialDriver>(270):843]
09:01:20.737106+0800 0x6053     Error       0x11927              199    0    runningboardd: (RunningBoard) [com.apple.runningboard:jetsam] memorystatus_control error: MEMORYSTATUS_CMD_CONVERT_MEMLIMIT_MB(-1) returned -1 22 (Invalid argument)
09:01:20.737110+0800 0x6053     Default     0x11927              199    0    runningboardd: (RunningBoardServices) [com.apple.runningboard:general] Full encoding handle <private>, with data 4b08e5540000034b, and pid 843
09:01:20.737160+0800 0x6053     Default     0x11927              199    0    runningboardd: (RunningBoard) [com.apple.runningboard:process] [anon<IOUserBluetoothSerialDriver>(270):843] Memory Limits: active 0 inactive 0
 <private>
09:01:20.737161+0800 0x6053     Default     0x11927              199    0    runningboardd: (RunningBoard) [com.apple.runningboard:process] [anon<IOUserBluetoothSerialDriver>(270):843] This process will not be managed.


09:01:30.978319+0800 0x1b2a     Default     0x0                  767    0    heard: (HearingUtilities) [com.apple.Hearing:HearingAids] -[AXHeardController shutdownIfPossible]:337 BT not yet ready, delaying shutdown check
09:01:31.983678+0800 0x1b2a     Default     0x0                  767    0    heard: (HearingUtilities) [com.apple.Hearing:HearingAids] -[AXHeardController shutdownIfPossible]:337 BT not yet ready, delaying shutdown check
09:01:32.681370+0800 0x8b8      Error       0x0                  142    0    bluetoothd: [com.apple.bluetooth:Stack.HCI] HCI expected event 14 with opcode OI_DHCI_CMD_ID_LE_SET_SCAN_ENABLE_OPCODE (0x0000200C) timedout, reason is  STATUS 621
09:01:32.681420+0800 0x8b8      Fault       0x117c3              142    14   bluetoothd: [com.apple.bluetooth:Stack.HCI] Bluetooth error - simulated { build=release, reason=621, context="14" }
09:01:32.681422+0800 0x8b8      Activity    0x117c3              142    0    bluetoothd: (libsystem_trace.dylib) Activity for state dumps
09:01:32.681599+0800 0x5fb0     Default     0x117c3              142    0    bluetoothd: (WPDaemon) [com.apple.bluetooth:WirelessProximity] WIPROX received OS_STATE_API_FAULT, triggering statedump.
09:01:32.681608+0800 0x5fb0     Default     0x117c3              142    0    bluetoothd: (WPDaemon) [com.apple.bluetooth:WirelessProximity] Statedump disabled on non-internal builds.
09:01:32.681609+0800 0x5fb0     Default     0x117c3              142    0    bluetoothd: (WPDaemon) [com.apple.bluetooth:WirelessProximity] WIPROX completed statedump.
09:01:32.681700+0800 0x5fb0     Default     0x117c3              142    0    bluetoothd: (CoreUtils) [com.apple.bluetooth:CBDaemonServer] State dump: CBDaemon
09:01:32.681925+0800 0x5fb0     Default     0x117c3              142    0    bluetoothd: [com.apple.bluetooth:Server.Core] PowerManager power state is 1
09:01:32.681927+0800 0x603a     Default     0x0                  142    0    bluetoothd: [com.apple.bluetooth:Server.LE.Scan] Scanning stopped successfully.  2 Advertising Events, 0 dropped pkts
09:01:32.681929+0800 0x603a     Default     0x0                  142    0    bluetoothd: [com.apple.bluetooth:Server.LE.Scan] Trying to remove scan filters with forceRemove=NO fHaveZoneFilters:NO fZoneScansHaveChanged:NO fHaveUUIDFilters:YES fHaveRuleFilters:YES
09:01:32.682965+0800 0x5fb0     Activity    0x117c4              142    0    bluetoothd: (CoreFoundation) Loading Preferences From System CFPrefsD
09:01:32.683754+0800 0x0        State       0x117c3              142    14   bluetoothd: CBDaemon State

09:01:33.704073+0800 0x1403     Error       0x0                  0      0    kernel: (AppleUSBXHCI) AppleUSBXHCICommandRing: AppleUSBXHCICommandRing::executeCommand: command[115] 0x0000000000000000 00000000 0c013c01 got result 0x00000001ba536730 01000000 0c008400 after 103ms (enqueued 0ms)
09:01:33.704110+0800 0x1403     Error       0x0                  0      0    kernel: (AppleUSBXHCI) AppleUSBXHCIRequest: AppleUSBXHCIRequest::finish: transfer completed with status 0xe00002d6
09:01:33.989515+0800 0x1b2a     Default     0x0                  767    0    heard: (HearingUtilities) [com.apple.Hearing:HearingAids] -[AXHeardController shutdownIfPossible]:337 BT not yet ready, delaying shutdown check
09:01:34.992277+0800 0x1b2a     Default     0x0                  767    0    heard: (HearingUtilities) [com.apple.Hearing:HearingAids] -[AXHeardController shutdownIfPossible]:337 BT not yet ready, delaying shutdown check
09:01:35.797842+0800 0x60b8     Activity    0x10a5b              401    0    cloudd: (C2) c2-session-pool-cleanup
09:01:35.918027+0800 0x5fb0     Default     0x0                  142    0    bluetoothd: [com.apple.bluetooth:Server.MacCoex] Adding LE Connection <private>
09:01:35.918033+0800 0x5fb0     Default     0x0                  142    0    bluetoothd: [com.apple.bluetooth:Server.Core] PowerManager power state is 1
09:01:35.918034+0800 0x5fb0     Default     0x0                  142    0    bluetoothd: [com.apple.bluetooth:Server.Core] PowerManager power state is 1
09:01:35.918228+0800 0x5fb0     Default     0x0                  142    0    bluetoothd: [com.apple.bluetooth:Server.MacCoex] Posting Bluetooth Status Notification <private>

09:01:36.445655+0800 0x5ff5     Default     0x11853              142    0    bluetoothd: (WPDaemon) [com.apple.bluetooth:WirelessProximity] Start advertising for process identityservicesd (400) of type 12 with advertising interval 48 (30.00 ms)
09:01:36.445660+0800 0x5ff5     Default     0x11853              142    0    bluetoothd: (WPDaemon) [com.apple.bluetooth:WirelessProximity] Setting advert timer for client 12 with time 2.00
09:01:36.445680+0800 0x5ff5     Default     0x11853              142    0    bluetoothd: (WPDaemon) [com.apple.bluetooth:WirelessProximity] [Privacy] removeAdvertisingRequest: 12, <private>
09:01:36.445704+0800 0x5ff5     Default     0x11853              142    0    bluetoothd: (WPDaemon) [com.apple.bluetooth:WirelessProximity] Adding data of type: 9, advData: {length = 6, bytes = 0x0304c0a80065} advInterval: 290


09:01:36.782810+0800 0x8b8      Error       0x0                  142    0    bluetoothd: [com.apple.bluetooth:Stack.HCI] HCI expected event 14 with opcode OI_DHCI_VENDOR_OPCODE (0x0000FCE9) timedout, reason is  STATUS 621
09:01:36.782863+0800 0x8b8      Error       0x0                  142    0    bluetoothd: [com.apple.bluetooth:Stack.VSC] status 621, hlCb 0x0365BA62
09:01:36.782881+0800 0x8b8      Error       0x0                  142    0    bluetoothd: [com.apple.bluetooth:Server.Core] BD_VSC_LE_META_ADV_PCF_FEATURE_SEL completed with status 621
09:01:36.782951+0800 0x5ff5     Default     0x0                  142    0    bluetoothd: [com.apple.bluetooth:Server.Core] Sending FWError to CoreAnalytics Type : ExpectedEventTimeout , ErrorCode: 64745
09:01:36.783055+0800 0x5ff5     Default     0x0                  142    0    bluetoothd: [com.apple.bluetooth:Server.Core] BT Stats for metric '<private>' sent to CoreAnalytics with result 0
09:01:36.783156+0800 0x5ff5     Default     0x0                  142    0    bluetoothd: [com.apple.bluetooth:Server.Core] FW PCIe core dumps disabled or not supported
09:01:36.783156+0800 0x5ff5     Default     0x0                  142    0    bluetoothd: [com.apple.bluetooth:Server.Core] FW log streaming disabled, skipping BTDebug log dump
09:01:36.783230+0800 0x5ff5     Default     0x0                  142    0    bluetoothd: [com.apple.bluetooth:Stack.UNKNOWN] Bluetooth error - restarting { build=release, reason=621, context="OI_DHCI_VENDOR_OPCODE" }
09:01:36.783232+0800 0x5ff5     Default     0x0                  142    0    bluetoothd: [com.apple.bluetooth:PacketLogger.HCI] Terminate sniff
09:01:36.783376+0800 0x5ff5     Default     0x0                  142    0    bluetoothd: [com.apple.bluetooth:PacketLogger.HCI] Sniff terminated
09:01:36.783769+0800 0x5f2b     Default     0x0                  421    3    WirelessRadioManagerd: [com.apple.WirelessRadioManager.Coex:Warning] <private>
09:01:36.783781+0800 0x5f2b     Default     0x0                  421    3    WirelessRadioManagerd: [com.apple.WirelessRadioManager.Coex:Info] <private>
09:01:36.783794+0800 0x5f2b     Default     0x0                  421    3    WirelessRadioManagerd: [com.apple.WirelessRadioManager.Coex:Info] <private>
09:01:36.783809+0800 0x5ff5     Default     0x0                  0      0    kernel: (IOBluetoothFamily) **** [IOBluetoothFamily][RemoveHCIEventNotification] -- Removed notification port for HIDShim
09:01:36.783821+0800 0x5ff5     Default     0x0                  0      0    kernel: (IOBluetoothFamily) **** [IOBluetoothFamily][RemoveHIDShimSharedMemoryRingBuffers] -- Removed input shared memory for HIDShim
09:01:36.783825+0800 0x5ff5     Default     0x0                  0      0    kernel: (IOBluetoothFamily) **** [IOBluetoothFamily][RemoveHIDShimSharedMemoryRingBuffers] -- Removed output shared memory for HIDShim
09:01:36.783843+0800 0x5f2b     Default     0x0                  421    3    WirelessRadioManagerd: [com.apple.WirelessRadioManager.Coex:Info] <private>
09:01:36.783894+0800 0x5f2b     Default     0x0                  421    3    WirelessRadioManagerd: [com.apple.WirelessRadioManager.Coex:Info] <private>
09:01:36.783905+0800 0x5f2b     Default     0x0                  421    3    WirelessRadioManagerd: [com.apple.WirelessRadioManager.Coex:Info] <private>
09:01:36.783915+0800 0x5f2b     Default     0x0                  421    3    WirelessRadioManagerd: [com.apple.WirelessRadioManager.Coex:Info] <private>
09:01:36.783917+0800 0x604e     Error       0x0                  135    0    PerfPowerServices: (CoreBluetooth) [com.apple.bluetooth:CoreBluetooth] XPC connection interrupted, resetting
09:01:36.783919+0800 0x5ff5     Default     0x0                  0      0    kernel: (IOBluetoothFamily) **** [IOBluetoothFamily][DetachUserClients] -- HIDShim userclient has been terminated
09:01:36.783922+0800 0x5f2b     Default     0x0                  421    3    WirelessRadioManagerd: [com.apple.WirelessRadioManager.Coex:Info] <private>
09:01:36.783928+0800 0x5ff5     Default     0x0                  0      0    kernel: (IOBluetoothFamily) **** [IOBluetoothFamily][RemoveDevice] -- Device removed successfully -- Updated device list: ****
09:01:36.783932+0800 0x5ff5     Default     0x0                  0      0    kernel: (IOBluetoothFamily) **** [IOBluetoothFamily][RemoveDevice] -- Device removed successfully -- Updated device list: ****
09:01:36.783936+0800 0x5ff5     Default     0x0                  0      0    kernel: (IOBluetoothFamily) **** [IOBluetoothFamily][PrintDeviceList] -- Device list is empty
09:01:36.783948+0800 0xbd5      Default     0x0                  400    0    identityservicesd: (WirelessProximity) [com.apple.bluetooth:WirelessProximity] WPClient ( - WPContinuity) XPC Connection interrupted
09:01:36.783953+0800 0xbd5      Default     0x0                  400    0    identityservicesd: (WirelessProximity) [com.apple.bluetooth:WirelessProximity] State changed to 1 from 3
09:01:36.783956+0800 0xbd5      Default     0x0                  400    0    identityservicesd: (WirelessProximity) [com.apple.bluetooth:WirelessProximity] Advertiser state changed to 1 from 3
09:01:36.783958+0800 0xbd5      Default     0x0                  400    0    identityservicesd: (WirelessProximity) [com.apple.bluetooth:WirelessProximity] State is resetting, need to re-add services when asked to re-advertise
09:01:36.783959+0800 0xbd5      Default     0x0                  400    0    identityservicesd: (WirelessProximity) [com.apple.bluetooth:WirelessProximity] Scanner state changed to 1 from 3
09:01:36.783960+0800 0xbd5      Default     0x0                  400    0    identityservicesd: (WirelessProximity) [com.apple.bluetooth:WirelessProximity] Continuity stateDidChange: 1, old 3, pipe state 1

09:01:36.784253+0800 0x6071     Default     0x0                  400    0    identityservicesd: (WirelessProximity) [com.apple.bluetooth:WirelessProximity] WPClient ( - WPContinuity) establishing new XPC Connection for process <private>

09:01:36.784675+0800 0x1e4e     Default     0x0                  0      0    kernel: (IOUserBluetoothSerialDriver.dext) IOUserBluetoothSerialDriver Stopping bluetooth nub
09:01:36.784678+0800 0x5f73     Default     0x0                  199    0    runningboardd: (RunningBoard) [com.apple.runningboard:process] XPC connection invalidated: [osservice<com.apple.bluetoothd>:142]
09:01:36.784687+0800 0x1e4e     Default     0x0                  0      0    kernel: (IOUserBluetoothSerialDriver.dext) IOUserBluetoothSerialDriver terminating pseudo nub

09:01:36.785433+0800 0x2adf     Error       0x0                  220    0    coreaudiod: (BTAudioHALPlugin) [com.apple.bluetooth:BTAudio] XPC server error: Connection interrupted
09:01:36.785484+0800 0x2adf     Default     0x0                  220    0    coreaudiod: (BTAudioHALPlugin) [com.apple.bluetooth:BTAudio] Invalidating all (0) audio devices
09:01:36.785564+0800 0x2adf     Default     0x0                  220    0    coreaudiod: (BTAudioHALPlugin) [com.apple.bluetooth:BTAudio] Starting BTAudioPlugin for <private>
09:01:36.785823+0800 0x2adf     Default     0x0                  220    0    coreaudiod: (BTAudioHALPlugin) [com.apple.bluetooth:BTAudio] Register audio plugin connection with bluetoothd
09:01:36.786245+0800 0x5fa2     Default     0x0                  1      0    launchd: [system/com.apple.IOUserBluetoothSerialDriver-0x1000009b0 [843]:] exited due to exit(0)
09:01:36.786289+0800 0x5fa2     Default     0x0                  1      0    launchd: [system/com.apple.IOUserBluetoothSerialDriver-0x1000009b0 [843]:] service only configured to run once, removing
09:01:36.786293+0800 0x5fa2     Default     0x0                  1      0    launchd: [system/com.apple.IOUserBluetoothSerialDriver-0x1000009b0 [843]:] service state: exited
09:01:36.786304+0800 0x5fa2     Default     0x0                  1      0    launchd: [system/com.apple.IOUserBluetoothSerialDriver-0x1000009b0 [843]:] internal event: EXITED, code = 0
09:01:36.786307+0800 0x5fa2     Default     0x0                  1      0    launchd: [system/com.apple.IOUserBluetoothSerialDriver-0x1000009b0 [843]:] job state = exited
09:01:36.786310+0800 0x5fa2     Default     0x0                  1      0    launchd: [system:] service inactive: com.apple.IOUserBluetoothSerialDriver-0x1000009b0
09:01:36.786313+0800 0x5fa2     Default     0x0                  1      0    launchd: [system:] removing service: com.apple.IOUserBluetoothSerialDriver-0x1000009b0
09:01:36.786331+0800 0x5fa2     Default     0x0                  1      0    launchd: [system/com.apple.IOUserBluetoothSerialDriver-0x1000009b0 [843]:] internal event: PETRIFIED, code = 0
09:01:36.786334+0800 0x5fa2     Default     0x0                  1      0    launchd: [system/com.apple.IOUserBluetoothSerialDriver-0x1000009b0 [843]:] job state = removed
09:01:36.786343+0800 0x5fa2     Default     0x0                  1      0    launchd: [system/com.apple.IOUserBluetoothSerialDriver-0x1000009b0 [843]:] service state: not running


09:01:37.225829+0800 0x5ff7     Error       0x0                  149    0    WindowServer: (MobileBluetooth) [com.apple.bluetooth:MobileBluetoothFramework] WARNING: accessoryManagerXpcDisconnectedHandler Disconnected from bluetoothd serviceName:<private> sessionName:<private>
09:01:37.225834+0800 0x5ff7     Error       0x0                  149    0    WindowServer: (MobileBluetooth) [com.apple.bluetooth:MobileBluetoothFramework] WARNING: deviceServiceXpcDisconnectedHandler Disconnected from bluetoothd serviceName:<private> sessionName:<private>
09:01:37.225852+0800 0x6122     Error       0x0                  393    0    ContextStoreAgent: (MobileBluetooth) [com.apple.bluetooth:MobileBluetoothFramework] WARNING: deviceServiceXpcDisconnectedHandler Disconnected from bluetoothd serviceName:<private> sessionName:<private>
09:01:37.225855+0800 0x603c     Default     0x0                  438    0    nearbyd: (CoreUtils) [com.apple.bluetooth:CBSpatial] Re-activate: XPC, CBSpatialInteractionSession, CID, CF 0x19 < Initiator NoBLEAdvertise NoBLEScan >, AAdr 2E:65:61:75:52:34, TD H<00c13f>, UTF 0x1
09:01:37.225857+0800 0x6122     Error       0x0                  393    0    ContextStoreAgent: (MobileBluetooth) [com.apple.bluetooth:MobileBluetoothFramework] WARNING: localDeviceXpcDisconnectedHandler Disconnected from bluetoothd serviceName:<private> sessionName:<private>
09:01:37.225859+0800 0x6122     Error       0x0                  393    0    ContextStoreAgent: (MobileBluetooth) [com.apple.bluetooth:MobileBluetoothFramework] WARNING: accessoryManagerXpcDisconnectedHandler Disconnected from bluetoothd serviceName:<private> sessionName:<private>
09:01:37.225875+0800 0x611e     Error       0x0                  661    0    searchpartyuseragent: (CoreBluetooth) [com.apple.bluetooth:CoreBluetooth] XPC connection interrupted, resetting
09:01:37.225938+0800 0x1ecc     Default     0x0                  849    0    BTLEServerAgent: [com.apple.bluetooth:BTLEServerAgent] ScalablePipeManager state is now resetting
09:01:37.225946+0800 0x611c     Error       0x0                  661    0    searchpartyuseragent: (CoreBluetooth) [com.apple.bluetooth:CoreBluetooth] XPC connection interrupted, resetting
09:01:37.225976+0800 0x605f     Error       0x0                  661    0    searchpartyuseragent: (MobileBluetooth) [com.apple.bluetooth:MobileBluetoothFramework] WARNING: localDeviceXpcDisconnectedHandler Disconnected from bluetoothd serviceName:<private> sessionName:<private>
09:01:37.225981+0800 0x605f     Error       0x0                  661    0    searchpartyuseragent: (MobileBluetooth) [com.apple.bluetooth:MobileBluetoothFramework] WARNING: accessoryManagerXpcDisconnectedHandler Disconnected from bluetoothd serviceName:<private> sessionName:<private>


09:01:37.226273+0800 0x60e9     Error       0x0                  487    0    useractivityd: [com.apple.useractivity:main] BLUETOOTH: Error 3 removing device callbacks, device=0x79bd0001


09:01:37.240847+0800 0x6133     Default     0x0                  1173   0    bluetoothd: [com.apple.bluetooth:Server.Core] com.apple.server.bluetooth: Bluetooth Super Server Robot Destroyer
09:01:37.241812+0800 0x6133     Default     0x0                  1173   0    bluetoothd: [com.apple.bluetooth:Server.Core] could not find BT_DEVICE_ADDRESS env variable
09:01:37.241853+0800 0x6133     Default     0x0                  1173   0    bluetoothd: [com.apple.bluetooth:Server.Core] main -- calling xpc_transactions_enable() -- SIGTERM
09:01:37.241862+0800 0x6133     Default     0x0                  1173   0    bluetoothd: [com.apple.bluetooth:Server.Core] Waiting for IOKitWaitQuiet()
09:01:37.241871+0800 0x6133     Default     0x0                  1173   0    bluetoothd: [com.apple.bluetooth:Server.Core] Done waiting for IOKitWaitQuiet()
09:01:37.241994+0800 0x6133     Default     0x0                  1173   0    bluetoothd: [com.apple.bluetooth:Stack.UNKNOWN] BT_HCI_TRANSPORT not set - Attempting to read from plist.
09:01:37.242298+0800 0x6133     Default     0x0                  1173   0    bluetoothd: [com.apple.bluetooth:Stack.UNKNOWN] [GetExternalDongleSwitchBehavior] Unable to get bluetoothHostControllerSwitchBehavior from nvram
09:01:37.242714+0800 0x6133     Default     0x0                  1173   0    bluetoothd: [com.apple.bluetooth:Stack.UNKNOWN] [bm3_usb][Found_USB_Dongle] -- Found USB Device :
09:01:37.242714+0800 0x6133     Default     0x0                  1173   0    bluetoothd: [com.apple.bluetooth:Stack.UNKNOWN]     USB Product Name = Bluetooth USB Host Controller
09:01:37.242715+0800 0x6133     Default     0x0                  1173   0    bluetoothd: [com.apple.bluetooth:Stack.UNKNOWN]      USB Vendor Name = Apple Inc.
09:01:37.242716+0800 0x6133     Default     0x0                  1173   0    bluetoothd: [com.apple.bluetooth:Stack.UNKNOWN]             idVendor = 0x05AC
09:01:37.242716+0800 0x6133     Default     0x0                  1173   0    bluetoothd: [com.apple.bluetooth:Stack.UNKNOWN]            idProduct = 0x8289
09:01:37.242716+0800 0x6133     Default     0x0                  1173   0    bluetoothd: [com.apple.bluetooth:Stack.UNKNOWN]          deviceClass = 0xFF (255)
09:01:37.242717+0800 0x6133     Default     0x0                  1173   0    bluetoothd: [com.apple.bluetooth:Stack.UNKNOWN]           locationID = 0x14233000
09:01:37.242723+0800 0x6133     Default     0x0                  1173   0    bluetoothd: [com.apple.bluetooth:Stack.UNKNOWN] [bm3_usb][Found_USB_Dongle] -- setting gUseInternalController to TRUE
09:01:37.242724+0800 0x6133     Default     0x0                  1173   0    bluetoothd: [com.apple.bluetooth:Stack.UNKNOWN] [bm3_usb][Found_USB_Dongle] -- returned FALSE
09:01:37.242725+0800 0x6133     Default     0x0                  1173   0    bluetoothd: [com.apple.bluetooth:Stack.UNKNOWN] Did not find external Bluetooth dongle -- setting chipset to default BCM_4350C2
09:01:37.242725+0800 0x6133     Default     0x0                  1173   0    bluetoothd: [com.apple.bluetooth:Stack.UNKNOWN] HCI Transport is set to USB

@koli998
Copy link
Author

koli998 commented Apr 16, 2023

还有次就是在蓝牙关闭的时候,我发现网卡 Hub 下突然多了两个 composite device,然后没过多久又消失了,所以我在想是不是系统在更新些什么,导致蓝牙在打开状态下,发生了问题。当然这个是我自己随便猜测的。
bluetooth usb

@lyq1996
Copy link
Owner

lyq1996 commented Apr 16, 2023

我没有遇到过突然失灵,你可以试试去掉蓝牙usb定制用一段时间看会不会失灵,排除usb蓝牙的问题。

@koli998
Copy link
Author

koli998 commented Apr 16, 2023

我试过直接拔掉蓝牙 usb(4天) 或者关闭蓝牙功能(2天),期间没失灵过。

@lyq1996
Copy link
Owner

lyq1996 commented Apr 16, 2023

windows有问题吗?

我之前被这个东西搞的有点烦了,600系主板s3睡眠主usb控制器会断电,跟白果行为不一致,唤醒时usb hub要重新枚举设备,导致bluetoothd崩溃。

你这个看起来原因跟usb控制器也有关,失灵时有没有这种log?

2023-01-02 11:50:59.018150+0800 0x140cf    Default     0x0                  0      0    kernel: (IOUSBHostFamily) 005213.600052 HS12@14800000: AppleUSBHostPort::terminateDevice: destroying 0x05e3/0608/6090 (USB2.0 Hub): port is powering off

@koli998
Copy link
Author

koli998 commented Apr 16, 2023

windows 没发现这个问题,我也搞了好久,试了不少方法,一直没解决。我睡眠唤醒倒是没问题。

失灵的时候没这种 log,IOUSBHostFamily、AppleUSBHostPort 这两个关键字 log 里收不到。我之前只会看 launchd.log,所以也猜测过跟供电有关。然后昨天我搜索到了你的 log,然后知道怎么看全局 log 了。

还有就是有类似 usb 失灵的问题基本都是技嘉主板,猜测可能是因为技嘉主板的 usb 基本都是 hub 有关系

@koli998
Copy link
Author

koli998 commented Apr 16, 2023

2023-04-16 13:45:37.307763+0800 0xcf17     Error       0x0                  0      0    kernel: (AppleUSBXHCI) AppleUSBXHCICommandRing: AppleUSBXHCICommandRing::executeCommand: command[142] 0x0000000000000000 00000000 0b013c01 got result 0x00000001ba53c8e0 01000000 0b008401 after 104ms (enqueued 0ms)
2023-04-16 13:45:37.307779+0800 0xcf17     Error       0x0                  0      0    kernel: (AppleUSBXHCI) AppleUSBXHCIRequest: AppleUSBXHCIRequest::finish: transfer completed with status 0xe00002eb
2023-04-16 13:45:37.414997+0800 0xa8be     Default     0x0                  1245   0    ReportCrash: ASI found [bluetoothd] (sensitive) 'HCI initialization failed'
2023-04-16 13:45:37.419766+0800 0xcf17     Error       0x0                  0      0    kernel: (AppleUSBXHCI) AppleUSBXHCICommandRing: AppleUSBXHCICommandRing::executeCommand: command[143] 0x0000000000000000 00000000 0b033c01 got result 0x00000001ba53c8f0 01000000 0b008401 after 111ms (enqueued 0ms)
2023-04-16 13:45:37.419797+0800 0xcf17     Error       0x0                  0      0    kernel: (AppleUSBXHCI) AppleUSBXHCIRequest: AppleUSBXHCIRequest::finish: transfer completed with status 0xe00002eb
2023-04-16 13:45:37.531804+0800 0xcf17     Error       0x0                  0      0    kernel: (AppleUSBXHCI) AppleUSBXHCICommandRing: AppleUSBXHCICommandRing::executeCommand: command[144] 0x0000000000000000 00000000 0b053c01 got result 0x00000001ba53c900 01000000 0b008401 after 111ms (enqueued 0ms)
2023-04-16 13:45:37.531831+0800 0xcf17     Error       0x0                  0      0    kernel: (AppleUSBXHCI) AppleUSBXHCIRequest: AppleUSBXHCIRequest::finish: transfer completed with status 0xe00002eb
2023-04-16 13:45:37.532067+0800 0xce6e     Error       0x0                  127    0    locationd: (CoreBluetooth) [com.apple.bluetooth:CoreBluetooth] XPC connection interrupted, resetting

和 usb 控制器有关的就这两句,但是我不知道这两句有什么含义。除了蓝牙日志以外,感觉能造成 usb 失灵的好像就这些日志

@lyq1996
Copy link
Owner

lyq1996 commented Apr 16, 2023

机箱的usb跟t919蓝牙的调换一下呢?机箱的usb不会引起usb失灵吗?

@koli998
Copy link
Author

koli998 commented Apr 16, 2023

机箱的 usb 是指哪,机箱前后的usb接口吗。我现在鼠标键盘是插在背后最上面四个 usb 2.0 上。蓝牙 usb 不是 9针的吗,如何和机箱 usb 调换。

@koli998
Copy link
Author

koli998 commented Apr 16, 2023

方便给个 wx 不,交流方便些

@koli998
Copy link
Author

koli998 commented Apr 16, 2023

已加

@koli998
Copy link
Author

koli998 commented Apr 16, 2023

我尝试在出问题的时候用 vnc 远程控制电脑,然后进行睡眠,关闭 vnc。电脑成功进入睡眠,用键盘鼠标唤醒成功,这个时候鼠标和键盘都能动了,蓝牙也好了

@corot2a
Copy link

corot2a commented Feb 3, 2024

你好 请问解决了吗 我也是这个问题

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants