squirelo / macosx-nosleep-extension

Exported from code.google.com/p/macosx-nosleep-extension
31 stars 3 forks source link

Oops! NoSleep kernel extension is not loaded. #148

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
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 thomasmo...@gmail.com on 16 Nov 2014 at 11:18

GoogleCodeExporter commented 9 years ago
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 star2...@gmail.com on 17 Nov 2014 at 5:41

GoogleCodeExporter commented 9 years ago
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 integral...@gmail.com on 17 Nov 2014 at 7:04

Attachments:

GoogleCodeExporter commented 9 years ago
Tried this on 10.7.5. Same error occurs.

Original comment by Moo...@yahoo.com on 24 Nov 2014 at 3:44

GoogleCodeExporter commented 9 years ago
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 Moo...@yahoo.com on 24 Nov 2014 at 4:01

GoogleCodeExporter commented 9 years ago
Same error on 10.8.5 with 1.4.0 and with the test version attached to comment 
#2.

Original comment by jjstic...@gmail.com on 1 Dec 2014 at 3:55

GoogleCodeExporter commented 9 years ago
Same error, I have done the upgrate and now doesnt work

Original comment by japalfa...@gmail.com on 4 Dec 2014 at 10:53

GoogleCodeExporter commented 9 years ago
same error on 10.7.5 version 1.4.0

Original comment by maximb...@gmail.com on 20 Jan 2015 at 10:02

GoogleCodeExporter commented 9 years ago
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 mfd....@gmail.com on 2 Feb 2015 at 3:03

GoogleCodeExporter commented 9 years ago
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 RPP7...@gmail.com on 2 Feb 2015 at 8:34

GoogleCodeExporter commented 9 years ago
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 durasori...@gmail.com on 9 Feb 2015 at 11:14

GoogleCodeExporter commented 9 years ago
Hi am getting this since upgrading to 1.4 on 10.8.5

Original comment by s...@caracald.com on 19 Feb 2015 at 9:22

GoogleCodeExporter commented 9 years ago
Hello

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

Using 10.6.8

Original comment by mattjbr...@gmail.com on 19 Feb 2015 at 4:23

GoogleCodeExporter commented 9 years ago
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 Ruruf...@gmail.com on 21 Mar 2015 at 4:58

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

Original comment by star2...@gmail.com on 25 Mar 2015 at 3:01

gsallman commented 8 years ago

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

gsallman commented 8 years ago

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.

ghost commented 7 years ago

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!

jjunot commented 6 years ago

Same problem on 10.13.1 High Sierra!

ashut0shk commented 6 years ago

MacOsHighSierra this would solve your issues.

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

frostyandy2k commented 6 years ago

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

Now it works.

chinarut commented 4 years ago

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!

iamsudip commented 3 years ago

macOS Big Sur

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

anshupitlia commented 2 years ago

facing the same issue in Catalina

chadify commented 2 years ago

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.

caiolv commented 2 years ago

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!

djsf222 commented 2 years ago

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}

r8kbg commented 1 year ago

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

jcnovoa commented 10 months ago

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

XtroTheArctic commented 8 months ago

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 commented 4 weeks ago

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