Когда я укладываю свой MacBook Pro в спящий режим, он сразу же снова просыпается через ~ 5 секунд, затем снова засыпает и продолжает спать и просыпаться. Это происходит независимо от того, закрываю ли я крышку или использую -> Sleep
пункт меню.
Причина пробуждения, указанная в системном журнале, XHC1
связана с Bluetooth. У меня отключен Bluetooth на моем Mac, а также отключен параметр «Разрешить подключение устройств Bluetooth к этому компьютеру», а также отключены все службы обмена в Системных настройках.
Единственное, что я физически подключил к своему Mac, — это зарядное устройство, хотя в системном журнале упоминается, что пробуждение может быть вызвано USB-устройством. Если мои разъемы USB повреждены, могу ли я отключить пробуждение для активности USB?
Вот syslog
один цикл сна/бодрствования:
Oct 21 01:18:26 Tyilos-MBP kernel[0] <Debug>: sleep
Oct 21 01:18:26 Tyilos-MBP kernel[0] <Debug>: Wake reason: XHC1
Oct 21 01:18:30 Tyilos-MBP kernel[0] <Debug>: AirPort_Brcm43xx::powerChange: System Wake - Full Wake/ Dark Wake / Maintenance wake
Oct 21 01:18:30 Tyilos-MBP kernel[0] <Debug>: Previous Sleep Cause: 5
Oct 21 01:18:30 Tyilos-MBP kernel[0] <Debug>: USB (XHCI Root Hub USB 2.0 Simulation):Port 6 on bus 0xa connected or disconnected: portSC(0xf0202e0)
Oct 21 01:18:30 Tyilos-MBP.local configd[18] <Notice>: network changed: v4(en1-:192.168.1.101) DNS- Proxy- SMB
Oct 21 01:18:30 Tyilos-MBP.local mDNSResponder[39] <Error>: DeregisterInterface: Frequent transitions for interface en1 (192.168.1.101)
Oct 21 01:18:30 Tyilos-MBP kernel[0] <Debug>: An Unknown USB Device (Port 2 of Hub at 0x15000000), may have caused a wake by being connected
Oct 21 01:18:30 Tyilos-MBP kernel[0] <Debug>: TBT W (1): 0 [x]
Oct 21 01:18:31 Tyilos-MBP kernel[0] <Debug>: MacAuthEvent en1 Auth result for: 84:1b:5e:dd:67:ec MAC AUTH succeeded
Oct 21 01:18:31 Tyilos-MBP kernel[0] <Debug>: wlEvent: en1 en1 Link UP virtIf = 0
Oct 21 01:18:31 Tyilos-MBP kernel[0] <Debug>: AirPort: Link Up on en1
Oct 21 01:18:31 Tyilos-MBP kernel[0] <Debug>: en1: BSSID changed to 84:1b:5e:dd:67:ec
Oct 21 01:18:31 Tyilos-MBP kernel[0] <Debug>: en1::IO80211Interface::postMessage bssid changed
Oct 21 01:18:31 Tyilos-MBP kernel[0] <Debug>: AirPort: RSN handshake complete on en1
Oct 21 01:18:32 Tyilos-MBP kernel[0] <Debug>: Graphics suppressed 2580 ms
Oct 21 01:18:32 Tyilos-MBP.local configd[18] <Notice>: network changed: v4(en1+:192.168.1.101) DNS+ Proxy+ SMB
Oct 21 01:18:32 Tyilos-MBP.local mDNSResponder[39] <Error>: mDNS_RegisterInterface: Frequent transitions for interface en1 (FE80:0000:0000:0000:5E96:9DFF:FE70:8BCB)
Oct 21 01:18:32 Tyilos-MBP.local mDNSResponder[39] <Error>: mDNS_RegisterInterface: Frequent transitions for interface en1 (192.168.1.101)
Oct 21 01:18:32 Tyilos-MBP.local UserEventAgent[11] <Notice>: Captive: en1: Not probing 'AAA' (protected network)
Oct 21 01:18:32 Tyilos-MBP.local configd[18] <Notice>: network changed: v4(en1!:192.168.1.101) DNS Proxy SMB
Oct 21 01:18:34 Tyilos-MBP.local airportd[19062] <Error>: _doAutoJoin: Already associated to “AAA”. Bailing on auto-join.
Oct 21 01:18:35 Tyilos-MBP kernel[0] <Debug>: HID tickle 5265 ms
Oct 21 01:18:35 Tyilos-MBP.local loginwindow[42] <Error>: ERROR | -[LWScreenLock(Private) screenIsLockedTimeExpired:] | No lock state found, use built in check
Oct 21 01:18:35 Tyilos-MBP.local WindowServer[94] <Warning>: handle_will_sleep_auth_and_shield_windows: no lock state data
Oct 21 01:18:35 Tyilos-MBP.local WindowServer[94] <Warning>: Created shield window 0x9be for display 0x003f003d
Oct 21 01:18:35 Tyilos-MBP.local WindowServer[94] <Warning>: handle_will_sleep_auth_and_shield_windows: no lock state data
Oct 21 01:18:35 Tyilos-MBP.local WindowServer[94] <Warning>: Created shield window 0x9bf for display 0x003f003e
Oct 21 01:18:35 Tyilos-MBP.local WindowServer[94] <Warning>: handle_will_sleep_auth_and_shield_windows: no lock state data
Oct 21 01:18:35 Tyilos-MBP.local KeyRemap4MacBook[371] <Warning>: observer_NSWorkspaceScreensDidWakeNotification
Oct 21 01:18:35 Tyilos-MBP.local WindowServer[94] <Warning>: Created shield window 0x9c0 for display 0x003f003f
Oct 21 01:18:35 Tyilos-MBP.local WindowServer[94] <Warning>: handle_will_sleep_auth_and_shield_windows: no lock state data
Oct 21 01:18:35 Tyilos-MBP.local WindowServer[94] <Error>: CGXGetWindowOwner: Invalid window 2494
Oct 21 01:18:35 Tyilos-MBP.local HyperDock Helper[18694] <Error>: CGSGetWindowOwner
Oct 21 01:18:35 Tyilos-MBP.local WindowServer[94] <Error>: CGXGetWindowOwner: Invalid window 2494
Oct 21 01:18:35 Tyilos-MBP.local HyperDock Helper[18694] <Error>: CGSGetWindowOwner
Oct 21 01:18:35 Tyilos-MBP.local WindowServer[94] <Error>: CGXGetWindowOwner: Invalid window 2495
Oct 21 01:18:35 Tyilos-MBP.local HyperDock Helper[18694] <Error>: CGSGetWindowOwner
Oct 21 01:18:35 Tyilos-MBP.local WindowServer[94] <Error>: CGXGetWindowOwner: Invalid window 2495
Oct 21 01:18:35 Tyilos-MBP.local HyperDock Helper[18694] <Error>: CGSGetWindowOwner
Oct 21 01:18:35 Tyilos-MBP.local WindowServer[94] <Error>: CGXGetWindowOwner: Invalid window 2496
Oct 21 01:18:35 Tyilos-MBP.local HyperDock Helper[18694] <Error>: CGSGetWindowOwner
Oct 21 01:18:35 Tyilos-MBP.local WindowServer[94] <Error>: CGXGetWindowOwner: Invalid window 2496
Oct 21 01:18:35 Tyilos-MBP.local HyperDock Helper[18694] <Error>: CGSGetWindowOwner
Oct 21 01:18:35 Tyilos-MBP.local loginwindow[42] <Error>: resume called when there was already a timer
Oct 21 01:18:35 Tyilos-MBP.local KeyRemap4MacBook[371] <Warning>: observer_NSWorkspaceDidWakeNotification
Oct 21 01:18:35 Tyilos-MBP.local airportd[19062] <Error>: _doAutoJoin: Already associated to “AAA”. Bailing on auto-join.
Oct 21 01:18:35 Tyilos-MBP kernel[0] <Debug>: en1: BSSID changed to 84:1b:5e:dd:67:ec
Oct 21 01:18:37 Tyilos-MBP.local SIMBL Enabler for Sandboxed Apps[19066] <Warning>: Will terminate until reinvoked again by launchd.
Oct 21 01:18:40 Tyilos-MBP.local SIMBL Enabler for Sandboxed Apps[19109] <Warning>: Set up watching for containers directory at URL file://localhost/Users/Tyilo/Library/Containers/
Oct 21 01:18:55 Tyilos-MBP.local SIMBL Enabler for Sandboxed Apps[19109] <Warning>: Will terminate until reinvoked again by launchd.
Oct 21 01:19:00 Tyilos-MBP.local coreaudiod[308] <Notice>: Disabled automatic stack shots because audio IO is active
Oct 21 01:19:00 Tyilos-MBP.local coreaudiod[308] <Notice>: Enabled automatic stack shots because audio IO is inactive
Oct 21 01:19:03 Tyilos-MBP.local activitymonitord[19118] <Notice>: sending signal: 9 to pid: 60
Oct 21 01:19:03 Tyilos-MBP com.apple.launchd[1] (org.macports.ddclient[60]) <Notice>: Exited: Killed: 9
Oct 21 01:19:08 Tyilos-MBP.local SIMBL Enabler for Sandboxed Apps[19126] <Warning>: Set up watching for containers directory at URL file://localhost/Users/Tyilo/Library/Containers/
Oct 21 01:19:16 Tyilos-MBP.local coreaudiod[308] <Notice>: Disabled automatic stack shots because audio IO is active
Oct 21 01:19:17 Tyilos-MBP.local coreaudiod[308] <Notice>: Enabled automatic stack shots because audio IO is inactive
Oct 21 01:19:17 Tyilos-MBP.local coreaudiod[308] <Notice>: Disabled automatic stack shots because audio IO is active
Oct 21 01:19:17 Tyilos-MBP.local coreaudiod[308] <Notice>: Enabled automatic stack shots because audio IO is inactive
Oct 21 01:19:23 Tyilos-MBP.local SIMBL Enabler for Sandboxed Apps[19126] <Warning>: Will terminate until reinvoked again by launchd.
Oct 21 01:19:25 Tyilos-MBP.local SIMBL Enabler for Sandboxed Apps[19127] <Warning>: Set up watching for containers directory at URL file://localhost/Users/Tyilo/Library/Containers/
Oct 21 01:19:35 Tyilos-MBP.local Airmail[297] <Warning>: [***ERROR***] ERROR IDLE asgerdrewsen@gmail.com Error Domain=MCOErrorDomain Code=1 "A stable connection to the server could not be established." UserInfo=0x7ff133b23e50 {NSLocalizedDescription=A stable connection to the server could not be established.}
Oct 21 01:19:40 Tyilos-MBP.local SIMBL Enabler for Sandboxed Apps[19127] <Warning>: Will terminate until reinvoked again by launchd.
Oct 21 01:20:08 Tyilos-MBP.local SIMBL Enabler for Sandboxed Apps[19131] <Warning>: Set up watching for containers directory at URL file://localhost/Users/Tyilo/Library/Containers/
Oct 21 01:20:16 Tyilos-MBP.local WindowServer[94] <Error>: CGXSetWindowBackgroundBlurRadius: Invalid window 0xffffffff
Oct 21 01:20:16 Tyilos-MBP.local loginwindow[42] <Error>: find_shared_window: WID -1
Oct 21 01:20:16 Tyilos-MBP.local loginwindow[42] <Error>: CGSGetWindowTags: Invalid window 0xffffffff
Oct 21 01:20:16 Tyilos-MBP.local loginwindow[42] <Error>: find_shared_window: WID -1
Oct 21 01:20:16 Tyilos-MBP.local loginwindow[42] <Error>: CGSSetWindowTags: Invalid window 0xffffffff
Oct 21 01:20:16 Tyilos-MBP.local WindowServer[94] <Warning>: Created shield window 0x9d5 for display 0x04273140
Oct 21 01:20:16 Tyilos-MBP.local WindowServer[94] <Warning>: device_generate_desktop_screenshot: authw 0x7ff05a470d30(2000), shield 0x7ff05b125480(2001)
Oct 21 01:20:16 Tyilos-MBP.local WindowServer[94] <Warning>: device_generate_lock_screen_screenshot: authw 0x7ff05a470d30(2000), shield 0x7ff05b125480(2001)
Oct 21 01:20:16 Tyilos-MBP kernel[0] <Debug>: hibernate image path: /var/vm/sleepimage
Oct 21 01:20:16 Tyilos-MBP kernel[0] <Debug>: AirPort_Brcm43xx::powerChange: System Sleep
Oct 21 01:20:16 Tyilos-MBP kernel[0] <Debug>: hibernate_alloc_pages act 624795, inact 515514, anon 6492, throt 0, spec 415907, wire 446254, wireinit 153624
Oct 21 01:20:16 Tyilos-MBP kernel[0] <Debug>: hibernate_setup(0) took 0 ms
Oct 21 01:20:16 Tyilos-MBP kernel[0] <Debug>: sizeof(IOHibernateImageHeader) == 512
Oct 21 01:20:16 Tyilos-MBP kernel[0] <Debug>: kern_open_file_for_direct_io(0) took 4 ms
Oct 21 01:20:16 Tyilos-MBP kernel[0] <Debug>: Opened file /var/vm/sleepimage, size 17179869184, partition base 0x0, maxio 2000000 ssd 0
Oct 21 01:20:16 Tyilos-MBP kernel[0] <Debug>: hibernate image major 1, minor 0, blocksize 512, pollers 5
Oct 21 01:20:18 Tyilos-MBP kernel[0] <Debug>: en1: BSSID changed to 84:1b:5e:dd:67:ec
Oct 21 01:20:18 Tyilos-MBP kernel[0] <Debug>: wlEvent: en1 en1 Link DOWN virtIf = 0
Oct 21 01:20:18 Tyilos-MBP kernel[0] <Debug>: AirPort: Link Down on en1. Reason 8 (Disassociated because station leaving).
Oct 21 01:20:18 Tyilos-MBP kernel[0] <Debug>: en1::IO80211Interface::postMessage bssid changed
Oct 21 01:20:18 Tyilos-MBP kernel[0] <Debug>: hibernate_page_list_setall(preflight 0) start 0xffffff820dfdd000, 0xffffff820e05d000
Oct 21 01:20:20 Tyilos-MBP kernel[0] <Debug>: hibernate_page_list_setall time: 941 ms
Oct 21 01:20:20 Tyilos-MBP kernel[0] <Debug>: pages 1975335, wire 412665, act 435370, inact 4559, cleaned 0 spec 285, zf 6424, throt 0, could discard act 176868 inact 504499 purgeable 19042 spec 415623 cleaned 0
Oct 21 01:20:20 Tyilos-MBP kernel[0] <Debug>: hibernate_page_list_setall found pageCount 859303
Oct 21 01:20:20 Tyilos-MBP kernel[0] <Debug>: IOHibernatePollerOpen, ml_get_interrupts_enabled 0
Oct 21 01:20:20 Tyilos-MBP kernel[0] <Debug>: IOHibernatePollerOpen(0)
Oct 21 01:20:20 Tyilos-MBP kernel[0] <Debug>: encryptStart 13320
Oct 21 01:20:20 Tyilos-MBP kernel[0] <Debug>: IOPolledInterface::checkForWork[5] 0xe00002eb
Oct 21 01:20:20 Tyilos-MBP kernel[0] <Debug>: PMStats: Hibernate write took 2 ms
Oct 21 01:20:20 Tyilos-MBP kernel[0] <Debug>: all time: 2 ms, comp bytes: 0 time: 0 ms 0 Mb/s, crypt bytes: 184032 time: 0 ms 405 Mb/s,
Oct 21 01:20:20 Tyilos-MBP kernel[0] <Debug>: image 0 (0%), uncompressed 0 (0), compressed 0 (0%), sum1 8c6cac84, sum2 0
Oct 21 01:20:20 Tyilos-MBP kernel[0] <Debug>: wired_pages_encrypted 0, wired_pages_clear 0, dirty_pages_encrypted 0
Oct 21 01:20:20 Tyilos-MBP kernel[0] <Debug>: hibernate_write_image done(e00002eb)
Oct 21 01:20:20 Tyilos-MBP kernel[0] <Debug>: sleep
Oct 21 01:20:20 Tyilos-MBP kernel[0] <Debug>: Wake reason: XHC1
Это также происходит при загрузке с Recovery HD и при загрузке в безопасном режиме, поэтому похоже, что это аппаратная проблема. Также не имеет значения, подключено ли к двум портам USB на моем Mac что-либо или нет.
XHC1
а порт 0xa
означает «USB 3.0 Hi-Speed/SuperSpeed Bus», как показано на снимках экрана ниже:
Это происходит только тогда, когда адаптер питания подключен, поэтому отключение адаптера перед сном работает отлично.
Похоже, это связано с подключением Bluetooth-устройства и пробуждением вашего компьютера.
Источник: https://discussions.apple.com/thread/4405043?start=0&tstart=0
Попробуйте отключить все USB и другие устройства. Также попробуйте отключить Bluetooth в строке меню. Похоже, что какое-то устройство подключается и отключается, что мешает вашему Mac оставаться в спящем режиме.
У меня была такая же проблема с Linux на Mac, оказалось, что USB будит систему. Я отключил возможность пробуждения ноутбука через USB в Linux. Это не влияет на кнопку питания или крышку, они все еще работают.
Та же проблема здесь. MBP Retina (13 дюймов, начало 2015 г.) по-прежнему использует Yosemite.
Когда я сижу за своим столом, у меня есть расширенная клавиатура Apple, подключенная к левому порту USB. Это была моя клавиатура для письма (я профессиональный писатель) в течение многих лет и много ноутбуков. У меня никогда не было этой проблемы спонтанного пробуждения из сна.
На этой неделе мне пришлось установить Microsoft Office для работы с конкретным клиентом. До сих пор я избегал установки какого-либо программного обеспечения MS.
Это ЕДИНСТВЕННОЕ изменение, которое произошло с моей машиной на этой неделе, и на этой неделе мой компьютер начал просыпаться случайным образом посреди ночи или просыпаться сразу после того, как его усыпили.
Я считаю, что MS Office может быть проблемой здесь.
Я отключил «Разрешить устройствам Bluetooth пробуждать этот компьютер» в дополнительных настройках Bluetooth.
Я отключил «Пробуждение для доступа к сети» и «Включить Power Nap» в настройках энергосбережения.
Ничего из этого не помогло проблеме. Я думаю, что MS Office проверяет USB-порт или что-то в этом роде и заставляет мою внешнюю клавиатуру реагировать. Я знаю. Звучит странно. Но больше НИЧЕГО на моем компьютере не изменилось, и эта проблема началась только после установки Office.
Джонбойлз
pmset -g log
я вижу то же самоеSleep Failure [code:XHC1(XHC1)]
, и я также вижу несколько строк, которые говорят,com.apple.bluetoothdSleepHandler timed out
что это заставляет меня думать, что проблема может быть связана с Bluetooth. Похоже, что USB-устройство в системном отчетеXHCI
(неXHC1
); Я не уверен, что это одно и то же.