Karabiner-Elements icon indicating copy to clipboard operation
Karabiner-Elements copied to clipboard

Macbook not sleeping under Big Sur

Open Deftknot opened this issue 4 years ago • 55 comments

Dear all,

I am using Karabiner since long time. As I made a fresh install for Big Sur I recognzized that after installing Karabiner it seems like the deep sleep is not working anymore. I trigger the sleep function, Macbook want's to go to sleep but something is blocking the process and it immediately wakes up again. Anybody else has the same problem?

Using a Macbook Pro (Early 2015) with Big Sur and Razer Ornata Chroma keyboard.

Thanks for your support!

Deftknot avatar Nov 26 '20 09:11 Deftknot

Am I the only one having this issue?

Edit: I made some tests. Once I quit Karabiner in the app, my Macbook falls asleep once i click the function. After I restart Karabiner and do the same action, Macbook wants to go to sleep but get's interupted somehow. From my point of view it is obvious that Karabiner is the reason for this behaviour. How to fix it?

Deftknot avatar Nov 29 '20 16:11 Deftknot

I have the same thing

pycckuu avatar Dec 16 '20 20:12 pycckuu

I have the same thing

Sory to hear :(

I'm sad that the Dev of Karabiner is not replying to this. As stated in my last post, since I uninstalled Karabiner, deep sleep is working fine again.

Deftknot avatar Dec 17 '20 10:12 Deftknot

same issue Mac mini (M1, 2020) big sur 11.1 Karabiner-Elements 13.1.4

jeffoio avatar Dec 25 '20 12:12 jeffoio

can confirm on Karabiner-Elements 13.1.5 Mac mini M1, Big Sur 11.1 If I quit Karabiner-Elements, sleep works as intended.

shartf avatar Jan 24 '21 11:01 shartf

Similar (same?) issue. Using an active corner putting the display to sleep, it wakes up almost exactly 10 minutes after. Every time. When I put it to sleep once more it sticks, strangely. Quitting KE resolves the issue.

Karabiner-Elements 13.1.0 iMac 2020, Big Sur 11.1

bastiman85 avatar Jan 27 '21 11:01 bastiman85

Same issue here: triggering sleep via a keyboard shortcut or Alfred will blank the display momentarily, but the computer will wake up a second later.

  • M1 Macbook Air
  • Big Sur 11.2
  • Karabiner 13.3.0.
  • pmset -g log: gist.

Workarounds I've discovered:

  • Quitting Karabiner from the Misc tab of the preferences app.
  • Choosing Sleep from the Apple menu works much more effectively than me. I'm not sure how this is different to other modes of sleeping.
  • Turning off the display physically.

Thanks for a great utility and let me know how else I can help!

jeffomatic avatar Feb 04 '21 08:02 jeffomatic

I have same issue with Big Sur since 11.0

crawfyp1 avatar Feb 07 '21 10:02 crawfyp1

I'm glad I found this thread. I've been having this issue for at least a month now, going all the way back to Catalina. When I put my laptop to sleep, it'll turn on again about a second later. When I press escape the screen will turn off but it'll turn back on a second later.

Karabiner Elements 13.3.0 macOS Big Sur 11.2

oakif avatar Feb 09 '21 01:02 oakif

@jeffomatic Selecting "Sleep" from the Apple menu unfortunately doesn't work for me—the same issue occurs. My external display (connected through a TB3 dock) also occasionally disconnects and reconnects after I log in, but I'm unsure if that's related to Karabiner.

oakif avatar Feb 09 '21 01:02 oakif

Same thing for me. I've started to notice it on version 13.1 when I moved from Intel MBP to M1 MBP. When I get it to sleep or shutdown, it starts immediately again and wakes up with error report (I was told that Karabiner causes Kernel panic). After Karabiner uninstall, problems dissappeared. Now I've tried to install back 13.3.0 version but still not fixed - kernel panic is back.

macOS version: macOS 11.2.1 Karabiner version: Karabiner-Elements 13.3.0 Your Mac hardware: MacBook Pro Your keyboard hardware: Realforce R2 Limited

Surus-sk avatar Feb 10 '21 20:02 Surus-sk

@Surus-sk Can you provide a bit more information about the kernel panics you are seeing? I experience them sometimes but I'm unsure if it's because of Karabiner. Since it's one of the first apps I install determining it to be the root cause of anything issue is quite difficult. I am on an Intel Mac.

oakif avatar Feb 10 '21 20:02 oakif

Unfortunately, I havent made a printscreen, but it looked something like this (textwise): (https://i.stack.imgur.com/Q6k38.png) Typical not very informative error report. It appeared after every shutdown. Mac immediately turned back on and after log in, this appeared.

I've googled a bit and found on some forums, that Karabiner might be the cause. So I've unistalled it and problem was gone (I havent tried anything else until that, so it had to be Karabiner)

And today, when I found out that there is new version of Karabiner out, I've installed it and problem was back. Uninstall and no errors.

Surus-sk avatar Feb 10 '21 21:02 Surus-sk

I opened this bug like nearly 3 months ago and many people reported the same issue. Still no update, not even feedback from the dev that they look up this issue. Sad as this tool is very cool and helpful.

As others already mentioned: uninstalling karabiner instantly solves the problem, therefore the problem must be within karabiner.

Deftknot avatar Feb 10 '21 21:02 Deftknot

True. I've just briefly searched active issues and from open ones, I've found at least two, which most likely referre to same problem. In one was offered an answer:

"In that situation, the kernel panic is most likely caused by a bug in the macOS DriverKit or HID driver. There is no workaround on Karabiner-Elements, we need to work on getting macOS fixed by reporting the issue to Apple."

So if fix is required on Apple side, there is little hope. Pity, also liked the app.

Surus-sk avatar Feb 10 '21 22:02 Surus-sk

That's disappointing if true! I wonder if the same can be said for the sleep issue on Big Sur.

oakif avatar Feb 10 '21 22:02 oakif

same macbook m1 air base model big sur 11.2

rublev avatar Feb 16 '21 00:02 rublev

hm, I think I have this one too but weird thing is that I'm quite sure it was definitely fine month ago.

  cztomsik$ pmset -g assertions .
2021-03-06 00:42:57 +0100 
Assertion status system-wide:
   BackgroundTask                 0
   ApplePushServiceTask           0
   UserIsActive                   1
   PreventUserIdleDisplaySleep    0
   PreventSystemSleep             0
   ExternalMedia                  0
   InternalPreventDisplaySleep    1
   PreventUserIdleSystemSleep     1
   NetworkClientActive            0
Listed by owning process:
   pid 351(WindowServer): [0x00059a6500099b5d] 00:00:00 UserIsActive named: "com.apple.iohideventsystem.queue.tickle serviceID:100000c23 name:AppleUserHIDEventSe product:Karabiner DriverKit eventType:3"  
	Timeout will fire in 1800 secs Action=TimeoutActionRelease
   pid 295(powerd): [0x0006851b00018e1c] 24:42:39 PreventUserIdleSystemSleep named: "Powerd - Prevent sleep while display is on"  
   pid 295(powerd): [0x00059a6400099b59] 00:00:00 UserIsActive named: "com.apple.powermanagement.kernel.useractive AppleHIDTransportHIDDevice:kIOHIDSystemActivityTickle nxEvent: 0"  
	Timeout will fire in 1800 secs Action=TimeoutActionRelease
   pid 295(powerd): [0x0006858d0010823b] 00:04:12 InternalPreventDisplaySleep named: "com.apple.powermanagement.delayDisplayOff"  
	Timeout will fire in 47 secs Action=TimeoutActionTurnOff
No kernel assertions.

  cztomsik$ 

cztomsik avatar Mar 05 '21 23:03 cztomsik

I thing it only affects bluetooth devices. I have the same problem with mx keys with bluetooth connection but it works good with dongle.

mkaflowski avatar Apr 23 '21 12:04 mkaflowski

~My issues appear to be fixed as of Big Sur 11.3.0 and Karabiner 13.4.0. I'm guessing root cause was the same as #2517.~

After reading @kakaum's message below, I realized I was mistaken.

  • cmd-shift-eject works
  • apple menu -> sleep works
  • alfred sleep doesn't work

jeffomatic avatar Apr 28 '21 00:04 jeffomatic

I'm still having this issue with my dongle, as well as bluetooth, on my M1 MBA with Big Sur 11.3 and Karabiner 13.4.0, when I use Alfred's sleep command. Selecting sleep from Apple menu doesn't show the issue.

kakaum avatar Apr 29 '21 07:04 kakaum

As I opened this issue, please let me comment that I am using no bluetooth devices on my Mac, therefore a bluetooth connection cannot be the issue. At least not for my problem.

Deftknot avatar Apr 30 '21 10:04 Deftknot

Maybe I was not making myself clear with what I said above. I tried to say that I was experiencing the issue with both dongle and bluetooth. Sorry for any inconvenience I might have brought to you, especially @Deftknot.

kakaum avatar Apr 30 '21 15:04 kakaum

same for me without bluetooth devices. Big Sur 11.4 KE version 13.5.0

hd-deman avatar Jul 16 '21 10:07 hd-deman

This seems to be an Alfred problem

Big Sur 11.4 Karabiner Elements: 13.5.0

Computer directly wakes up again after going to sleep when using the Alfred sleep command but it goes to sleep (and doesn't properly wake up for me?!) when using Apple menu -> sleep.

bergmul avatar Sep 02 '21 10:09 bergmul

I don't know what it was, but the problem solved after creating a new default profile

hd-deman avatar Sep 02 '21 10:09 hd-deman

I don't know what it was, but the problem solved after creating a new default profile

Creating a new profile does not solve the problem for me?

gitityhead avatar Oct 09 '21 00:10 gitityhead

I deleted my original comment because I don't think Karabiner is the issue.

My setup is 2021 MacBook Pro M1 Pro with an LG 27UK850-W external monitor.

After plenty of configuration testing, I determined that my "not sleeping" issue was because of using a USB-C external monitor at least, and even if I switch to HDMI for the external monitor, I had to turn off "wake for network access".

rmustard avatar Dec 04 '21 01:12 rmustard

I started noticing this issue when I upgraded to the new M1 MacBook Pros. I use Raycast and if I run the sleep command from the inbuilt keyboard, it says asleep. But running the same command from the bluetooth keyboard immediately wakes up the Mac. If I quit Karabiner, and then run the command from the bluetooth keyboard, then the Mac stays asleep.

Monterey 12.0.1 Karabiner 14.0.3

anirudhsama avatar Dec 06 '21 14:12 anirudhsama

Hello, Karabiner also prevents me from putting my display to sleep. Specifically, if my screen is locked and I want to press esc to turn it off, it always turns itself back on after less than a second.

Interestingly, this only affects the esc key on the built-in keyboard. Clicking esc on an external keyboard works fine, just as clicking the on-screen "cancel" button with a mouse or trackpad.

I'm positive it's Karabiner causing this. Creating a new profile doesn't help.

MacBook Air (M1 2020) Built-in display – no external monitors Karabiner 14.3.0 Monterey 12.1

isametry avatar Jan 10 '22 11:01 isametry