macosx-nosleep-extension icon indicating copy to clipboard operation
macosx-nosleep-extension copied to clipboard

Oops! NoSleep kernel extension is not loaded.

Open GoogleCodeExporter opened this issue 9 years ago • 30 comments

What steps will reproduce the problem?
Seen reproducibly - i.e. both after an update from 1.3.3 to 1.4.0 and after a 
clean re-install of 1.4

What is the expected output? What do you see instead?
App seems to install normally (finder, launchpad, preferences) but cannot be 
launched --> "Oops! NoSleep kernel extension is not loaded." error message :-(

What version of the product are you using? On what operating system?
OS X 10.8.5
Version 1.3.3 worked flawlessly
Version 1.4.0 shows the aforementioned problem

Original issue reported on code.google.com by [email protected] on 16 Nov 2014 at 11:18

GoogleCodeExporter avatar Apr 04 '15 20:04 GoogleCodeExporter

I have the same issue and I am also using OS X 10.8.5. I had to downgrade from 
1.4.0 to 1.3.3 to get NoSleep working again.

Original comment by [email protected] on 17 Nov 2014 at 5:41

GoogleCodeExporter avatar Apr 04 '15 20:04 GoogleCodeExporter

Hi everyone. This issue is because kext signature verification mechanism is 
different on OSX 10.8 and 10.9+. I don't have an access to system other then 
10.10, so If you will be so kind, could you check this attached version before 
it become available through autoupdate. Thanks! --Pavel

Original comment by [email protected] on 17 Nov 2014 at 7:04

  • Changed state: Accepted

Attachments:

GoogleCodeExporter avatar Apr 04 '15 20:04 GoogleCodeExporter

Tried this on 10.7.5. Same error occurs.

Original comment by [email protected] on 24 Nov 2014 at 3:44

GoogleCodeExporter avatar Apr 04 '15 20:04 GoogleCodeExporter

Here are the kernel.log messages. 

Nov 24 07:32:03 m kernel[0]: kxld[com.protech.NoSleep]: The Mach-O file is 
malformed: Invalid segment type in MH_KEXT_BUNDLE kext: 29.
Nov 24 07:32:03 m kernel[0]: Can't load kext com.protech.NoSleep - link failed.
Nov 24 07:32:03 m kernel[0]: Failed to load executable for kext 
com.protech.NoSleep.
Nov 24 07:32:03 m kernel[0]: Kext com.protech.NoSleep failed to load 
(0xdc008016).
Nov 24 07:32:03 m kernel[0]: Failed to load kext com.protech.NoSleep (error 
0xdc008016).
Nov 24 07:32:03 m kernel[0]: kxld[com.protech.NoSleep]: The super class vtable 
'__ZTV9IOService' for vtable '__ZTV28com_protech_nosleepextension' is out of 
date. Make sure your kext has been built against the correct headers.
Nov 24 07:32:03 m kernel[0]: kxld[com.protech.NoSleep]: The super class vtable 
'__ZTV12IOUserClient' for vtable '__ZTV30com_protech_nosleepclientclass' is out 
of date. Make sure your kext has been built against the correct headers.
Nov 24 07:32:03 m kernel[0]: Can't load kext com.protech.NoSleep - link failed.
Nov 24 07:32:03 m kernel[0]: Failed to load executable for kext 
com.protech.NoSleep.
Nov 24 07:32:03 m kernel[0]: Kext com.protech.NoSleep failed to load 
(0xdc008016).
Nov 24 07:32:03 m kernel[0]: Failed to load kext com.protech.NoSleep (error 
0xdc008016).
Nov 24 07:51:02 m kernel[0]: kxld[com.protech.NoSleep]: The super class vtable 
'__ZTV9IOService' for vtable '__ZTV28com_protech_nosleepextension' is out of 
date. Make sure your kext has been built against the correct headers.
Nov 24 07:51:02 m kernel[0]: kxld[com.protech.NoSleep]: The super class vtable 
'__ZTV12IOUserClient' for vtable '__ZTV30com_protech_nosleepclientclass' is out 
of date. Make sure your kext has been built against the correct headers.
Nov 24 07:51:02 m kernel[0]: Can't load kext com.protech.NoSleep - link failed.
Nov 24 07:51:02 m kernel[0]: Failed to load executable for kext 
com.protech.NoSleep.
Nov 24 07:51:02 m kernel[0]: Kext com.protech.NoSleep failed to load 
(0xdc008016).
Nov 24 07:51:02 m kernel[0]: Failed to load kext com.protech.NoSleep (error 
0xdc008016).

Original comment by [email protected] on 24 Nov 2014 at 4:01

GoogleCodeExporter avatar Apr 04 '15 20:04 GoogleCodeExporter

Same error on 10.8.5 with 1.4.0 and with the test version attached to comment 
#2.

Original comment by [email protected] on 1 Dec 2014 at 3:55

GoogleCodeExporter avatar Apr 04 '15 20:04 GoogleCodeExporter

Same error, I have done the upgrate and now doesnt work

Original comment by [email protected] on 4 Dec 2014 at 10:53

GoogleCodeExporter avatar Apr 04 '15 20:04 GoogleCodeExporter

same error on 10.7.5 version 1.4.0

Original comment by [email protected] on 20 Jan 2015 at 10:02

GoogleCodeExporter avatar Apr 04 '15 20:04 GoogleCodeExporter

10.8.5 with clean install of 1.4.0

$ sudo kextutil /System/Library/Extensions/NoSleep.kext
Password:
No kernel file specified, using '/mach_kernel' 
(kernel) kxld[com.protech.NoSleep]: The super class vtable '__ZTV9IOService' 
for vtable '__ZTV28com_protech_nosleepextension' is out of date. Make sure your 
kext has been built against the correct headers.
(kernel) kxld[com.protech.NoSleep]: The super class vtable 
'__ZTV12IOUserClient' for vtable '__ZTV30com_protech_nosleepclientclass' is out 
of date. Make sure your kext has been built against the correct headers.
(kernel) Can't load kext com.protech.NoSleep - link failed.
(kernel) Failed to load executable for kext com.protech.NoSleep.
(kernel) Kext com.protech.NoSleep failed to load (0xdc008016).
(kernel) Failed to load kext com.protech.NoSleep (error 0xdc008016).
Failed to load /System/Library/Extensions/NoSleep.kext - (libkern/kext) link 
error.
Check library declarations for your kext with kextlibs(8).

From dmesg:

kxld[com.protech.NoSleep]: The super class vtable '__ZTV9IOService' for vtable 
'__ZTV28com_protech_nosleepextension' is out of date. Make sure your kext has 
been built against the correct headers.
kxld[com.protech.NoSleep]: The super class vtable '__ZTV12IOUserClient' for 
vtable '__ZTV30com_protech_nosleepclientclass' is out of date. Make sure your 
kext has been built against the correct headers.
Can't load kext com.protech.NoSleep - link failed.
Failed to load executable for kext com.protech.NoSleep.
Kext com.protech.NoSleep failed to load (0xdc008016).


Original comment by [email protected] on 2 Feb 2015 at 3:03

GoogleCodeExporter avatar Apr 04 '15 20:04 GoogleCodeExporter

10.8.3 Macbook Pro
Chrome Version 40.0.2214.94 (64-bit)

Same errors as above trying with
v 1.4.0
v 1.3.3
v 1.1

Has a fix or workaround been found yet?
Thank you

Original comment by [email protected] on 2 Feb 2015 at 8:34

GoogleCodeExporter avatar Apr 04 '15 20:04 GoogleCodeExporter

hello.i have the same problem and i,that error.
i version 10.7.5 .
NoSleep kernel extension is not loaded

what can i do about it?
is there a solution.

Original comment by [email protected] on 9 Feb 2015 at 11:14

GoogleCodeExporter avatar Apr 04 '15 20:04 GoogleCodeExporter

Hi am getting this since upgrading to 1.4 on 10.8.5

Original comment by [email protected] on 19 Feb 2015 at 9:22

GoogleCodeExporter avatar Apr 04 '15 20:04 GoogleCodeExporter

Hello

I've gotten this same error message on 1.4, 1.33, 1.31, 1.1.

Using 10.6.8


Original comment by [email protected] on 19 Feb 2015 at 4:23

GoogleCodeExporter avatar Apr 04 '15 20:04 GoogleCodeExporter

I have the same issue, I believe it was one of the recent security updates OS X 
had that is causing this.

Original comment by [email protected] on 21 Mar 2015 at 4:58

GoogleCodeExporter avatar Apr 04 '15 20:04 GoogleCodeExporter

Any idea when this can be fixed? I am still running 1.33. When will it be safe 
to update?

Original comment by [email protected] on 25 Mar 2015 at 3:01

GoogleCodeExporter avatar Apr 04 '15 20:04 GoogleCodeExporter

This is still an issue. I cannot get 1.3.3 to work :( OS X 10.11.5

gsallman avatar Jun 28 '16 15:06 gsallman

Update. I loaded 1.3.3 as that was the latest version available to download here: https://code.google.com/archive/p/macosx-nosleep-extension/ (Link via LifeHacker) Re-reading the above comments I searched and found a copy of 1.4 here: https://www.macupdate.com/app/mac/37991/nosleep

1.4.4 successfully installed.

gsallman avatar Jun 28 '16 16:06 gsallman

Easy fix! Run the program (install the version above - https://www.macupdate.com/app/mac/37991/nosleep). Run the program (Applications > Utilities > NoSleep) and check on the status bar, next to WiFi / VPN / Bluetooth. You'll see 'Zz' Icon in bold text. click and hit enable and BOOM done!

ghost avatar Jul 25 '16 03:07 ghost

Same problem on 10.13.1 High Sierra!

jjunot avatar Nov 19 '17 17:11 jjunot

MacOsHighSierra this would solve your issues.

sudo kextload -v /Library/StagedExtensions/System/Library/Extensions/NoSleep.kext

ashut0shk avatar Nov 25 '17 04:11 ashut0shk

I was somehow missing the kernel extension, after reinstalling i found it under /Library/StagedExtensions/System/Library/Extensions/

Now it works.

frostyandy2k avatar Feb 21 '18 20:02 frostyandy2k

for me it was a permissions issue:

$ sudo kextutil /System/Library/Extensions/NoSleep.kext/
Password:
Diagnostics for /System/Library/Extensions/NoSleep.kext:
Authentication Failures: 
    File owner/permissions are incorrect (must be root:wheel, nonwritable by group/other): 
        /System/Library/Extensions/NoSleep.kext
        Contents
        _CodeSignature
        CodeResources
        Info.plist
        MacOS
        NoSleep

sure enough it is not root:

$ ls -al | grep NoSleep
drwxr-xr-x@   3 admin  wheel   102 Apr 20 02:06 NoSleep.kext

update permission:

$ sudo chown -R root:wheel NoSleep.kext

and reattempt load of extension:

$ sudo kextutil /System/Library/Extensions/NoSleep.kext

thanks everyone for the kextutil commands above to help troubleshoot what was going on!

chinarut avatar Apr 29 '20 04:04 chinarut

macOS Big Sur

Running this solved the issue: sudo kextload -v /Library/StagedExtensions/Applications/NoSleep.app/Contents/Resources/NoSleep.kext

iamsudip avatar Feb 07 '21 18:02 iamsudip

facing the same issue in Catalina

anshupitlia avatar Dec 14 '21 15:12 anshupitlia

I'm facing the same issue in MacOS Monterey 12.3.1.

I've tried running sudo kextload -v /Library/StagedExtensions/Applications/NoSleep.app/Contents/Resources/NoSleep.kext and then allowing the kernel extension in System Preference, finally restarting my system, but it opens up with the same error.

chadify avatar Apr 12 '22 11:04 chadify

macOS Big Sur

Running this solved the issue: sudo kextload -v /Library/StagedExtensions/Applications/NoSleep.app/Contents/Resources/NoSleep.kext

Solved for me in macOS Monterey. Thanks!

caiolv avatar Apr 18 '22 17:04 caiolv

Hey there , after running this ::: sudo kextload -v /Library/StagedExtensions/Applications/NoSleep.app/Contents/Resources/NoSleep.kext

i have an this error ! Error Domain=KMErrorDomain Code=71 "Incompatible architecture: Binary is for x86_64, but needed arch arm64e" UserInfo={NSLocalizedDescription=Incompatible architecture: Binary is for x86_64, but needed arch arm64e}

djsf222 avatar Jun 20 '22 15:06 djsf222

sudo kextload -v /Library/StagedExtensions/Applications/Utilities/NoSleep.app/Contents/Resources/NoSleep.kext

r8kbg avatar Apr 19 '23 10:04 r8kbg

sudo kextload -v /Library/StagedExtensions/Applications/Utilities/NoSleep.app/Contents/Resources/NoSleep.kext

This worked for me on macOS Big Sur 11.7.9 Thanks

jcnovoa avatar Sep 13 '23 16:09 jcnovoa

On Ventura, I installed 1.5.2 and I still get kernel not loaded error.

When I try this command: sudo kextload -v /Library/StagedExtensions/Applications/Utilities/NoSleep.app/Contents/Resources/NoSleep.kext It says no such file is found but I know the file is there.

I copied the NoSleep.kext to another folder and run the same command with the new file path.

This time it says this: Error Domain=KMErrorDomain Code=27 "Extension with identifiers com.apple.nke.rvi,com.protech.NoSleep not approved to load. Please approve using System Preferences." UserInfo={NSLocalizedDescription=Extension with identifiers com.apple.nke.rvi,com.protech.NoSleep not approved to load. Please approve using System Preferences.}

I have no idea what this is. And in Ventura, the system preferences window is a whole new mess. I can't find anything related to NoSleep in it to be able to approve anything.

Please help me guys.

XtroTheArctic avatar Nov 03 '23 17:11 XtroTheArctic

After many months, today I was able to make it work so I am sharing my solution here too. https://github.com/integralpro/nosleep/issues/54#issuecomment-2179454800

XtroTheArctic avatar Jun 19 '24 21:06 XtroTheArctic