ã¹ãªã¼ããã«ã¼ãã«æ©è½æ¡å¼µããã³ã³ããã¼ã«ãã
insomnia=ä¸ç çãä¸ç çã¨ããã ããã£ã¦ãInsomniaXã¯MacBookã®ã¹ãªã¼ããå¼·åã«å¶éãã¦ãããã
- ãã£ã¹ãã¬ã¤ãéããæã®ã¹ãªã¼ãã
- é»æºãã¿ã³ãæ¼ãã¦ãçµäºãã¤ã¢ãã°ããã®ã¹ãªã¼ãã
- ã¢ããã«ã¡ãã¥ã¼ããã®ã¹ãªã¼ãã
- command-option-Ejectã«ããã·ã§ã¼ãã«ããã®ã¹ãªã¼ãã
- pmset sleepnowã³ãã³ãã«ããã¹ãªã¼ãã
- AppleScriptã«ããã¹ãªã¼ãã
以ä¸ãããã¨ããããã¹ãªã¼ããç¡å¹ã¨ãªãã®ã ãã¹ãªã¼ãããå¯ä¸ã®æ¹æ³ã¯ãInsomniaXã®ã¢ã¤ã³ã³ã¡ãã¥ã¼ãããSleep System ãé¸æããã®ã¿ã
ã¨ããã§ä»æã®MacBookã¯ãWake on Demandã«ããã¹ãªã¼ãä¸ã®ã¢ã¯ã»ã¹ãä¿è¨¼ããã¦ããã®ã§ãããã¦ä¸ç çã«ããçç±ã¯ã»ã¨ãã©ãªãããããããã£ãããã£ã¹ãã¬ã¤ãéãã¦ããã¨ãWake on Demandã®æ©æµã¯åããããªããªã£ã¦ãã¾ãããããªæãInsominaXãèµ·åãã¦ããã°ããã£ã¹ãã¬ã¤ãéãã¦ã¹ãªã¼ãããç¶æ ããã§ããWake on Demandã«ããã¢ã¯ã»ã¹ãå¯è½ã«ãªããããæã£ã¦ããã£ã¦ã¿ãã®ã以ä¸ã®æ¥è¨ã
ãã£ã¹ãã¬ã¤ãéãã¦ãã¾ãã¨ãç»é¢ã¯è¦ããªãããã¤ãã¼ãã¼ãããã©ãã¯ãããã使ããªããªã£ã¦ãã¾ãã®ã§ãAppleScriptã§InsomniaXã® Sleep System ãå®è¡ããããã«ãã¦ã¿ãã®ã ãã¨ããããInsomniaXã®ã¢ã¤ã³ã³ã¡ãã¥ã¼ã¯ãGUIã¹ã¯ãªããã£ã³ã°ã使ã£ã¦ãæä½ã§ããªãã£ã*1ããã®ãããcliclickã¨ãããã¦ã¹ã®ã¯ãªãã¯ãã·ãã¥ã¬ã¼ãããã³ãã³ããå©ç¨ãã¦æä½ããããã«ããã®ã ã
å½åã¯ãã¾ãåãã¦ããããæ¬ ç¹ããããcliclickã³ãã³ãã¯ããã£ã¹ãã¬ã¤å·¦ä¸ãåç¹ã¨ãã絶対座æ¨ã§ã¯ãªãã¯ä½ç½®ãæå®ããã®ã§ãã¢ã¤ã³ã³ã¡ãã¥ã¼ã®ä¸¦ã³ãå¤ããã¨ãå ¨ãç¡æå³ãªæä½ã«ãªã£ã¦ãã¾ãã®ã ãã¢ã¤ã³ã³ã¡ãã¥ã¼ã®ä¸¦ã³é ãæå®ãããã¼ã«ãããããæ°è¦ã¤ã³ã¹ãã¼ã«ãåé¤ãããã¨ãããã®ã§ãInsomniaXã®ã¢ã¤ã³ã³ä½ç½®ãåºå®ããã訳ã§ã¯ãªããä½ãããéçºãããã·ã³ç°å¢éå®ã®ã¹ã¯ãªããã¨ãªã£ã¦ãã¾ããä»ã®ç°å¢ã§ä½¿ããã¨æã£ãããcliclickã³ãã³ãã®åº§æ¨ã調æ´ããªãã¦ã¯ãªããªãä»ã¤ããªã¹ã¯ãªããã ã£ãã
ã©ãã«ããã¦ããã£ã¨ã¹ãã¼ãã«InsomniaXãã³ã³ããã¼ã«ããæ¹æ³ã¯ãªãã®ãï¼ä»¥åãã模索ãã¦ããã®ã ããä¹ ã ã«InsomniaXã®æ¬å®¶ãã¼ã¸ãé²è¦§ãã¦ããã®ãã³ãã«æ°ä»ããã
ãã³ã
ï¼ã¤ã®æ å ±ããã³ãã¨ãªã£ãã
64ããã対å¿
- Snow Leopardã®64ããã対å¿ã®ãããInsomnia_r6.kext ã¨ããã«ã¼ãã«æ©è½æ¡å¼µããã¦ã³ãã¼ããã¦ãã¢ãããã¼ããã¦ããå¿ è¦ããããããã
ã©ããã¼
- InsomniaXã¯ãInsomniaã¨ããã«ã¼ãã«æ©è½æ¡å¼µã®ã©ããã¼ã¨ãã¦åä½ãããããã
ã¤ã¾ããInsomniaX.appï¼ã¡ãã¥ã¼ãã¼ã¢ã¤ã³ã³ã¨ãã¦åä½ããã¢ããªã±ã¼ã·ã§ã³ï¼ã¯ãInsomnia.kextï¼ã«ã¼ãã«æ©è½æ¡å¼µï¼ã使ãæãè£ä½ããç«å ´ã«ãããå®éã®ä»äºï¼ã¹ãªã¼ããç¡å¹ã«ããã¨ããä»äºï¼ã¯ãInsomnia.kext ãæ
ã£ã¦ããã¨æ³åãããã ãããInsomnia.kextãã³ã³ããã¼ã«ã§ããã°ãInsomniaX.appã使ããªãã¦ãã¹ãªã¼ããç¡å¹ã«ã§ããã¯ãã
ã«ã¼ãã«æ©è½æ¡å¼µã®ã³ã³ããã¼ã«
- InsomniaX.appã«é ¼ããªãã§ãInsomnia.kextãã³ã³ããã¼ã«ããæ¹æ³ã¯ããã£ãäºã¤ãããªãã
kextloadã¨kextunloadã
- kextloadã³ãã³ãã§ãInsomnia.kextãã«ã¼ãã«ã«ãã¼ããã¦æå¹ã«ããã
- kextunloadã³ãã³ãã§ãInsomnia.kextãã«ã¼ãã«ããã¢ã³ãã¼ããã¦ç¡å¹ã«ããã
- ãªãã»ã©ï¼ãã£ãã試ãã¦ã¿ãã
$ sudo kextload /Applications/InsomniaX.app/Contents/Resources/Insomnia_r6.kext
Password:
/Applications/InsomniaX.app/Contents/Resources/Insomnia_r6.kext failed to load - (libkern/kext) authentication failure (file ownership/permissions); check the system/kernel logs for errors or try kextutil(8).
- ããããæ®å¿µãªããã¨ã©ã¼çºçï¼ã©ãããã«ã¼ãã«ã¯ã¢ã¯ã»ã¹æ¨©éã«å³æ ¼ãããã
- sudoã§å®è¡ããã®ã¯ãã¡ããã®ãã¨ããã¼ãããã«ã¼ãã«æ©è½æ¡å¼µã ææè : rootãã°ã«ã¼ã: wheel ã§ãªãã¨åãä»ãã¦ãããªããããã
- ããã§ã¯InsomniaXã¯ã©ããã£ã¦ãã¼ããã¦ããã®ã ããï¼ã¨èª¿ã¹ã¦ã¿ãã¨...
$ ls -l ~/Library/Application\ Support/InsomniaX/
total 0
drwxr----- 3 root wheel 102 5 31 19:37 Insomnia_r6.kext/
- ~/Library/Application Support/InsomniaX/ ãã©ã«ãã«ããã§ã«ã¢ã¯ã»ã¹æ¨©éãå¤æ´ãã Insomnia_r6.kext ãè¦ã¤ãã£ãã
- ç´ ç´ã«ãããæ´»ç¨ããã¦ããããã¨ã«ããã
$ sudo kextload ~/Library/Application\ Support/InsomniaX/Insomnia_r6.kext
- å®è¡ã¯ããã«å®äºãããã©ãããããã¼ãã§ããããã ã
- ãã£ã¹ãã¬ã¤ãéãã¦ã¿ãã
- å ¨ãã¹ãªã¼ãããæ§åã¯ãªãã
æåããï¼ï¼ããã ï¼
- ã«ã¼ãã«æ©è½æ¡å¼µã®ãã¼ãç¶æ³ã確èªããã³ãã³ããããã
$ kextstat
- ããããããã§ã¯ç»é¢ãã«ã¼ãã«æ©è½æ¡å¼µã§æº¢ãã¦ãã¾ãã®ã§ãapple以å¤ã®kextã«éå®ãã¦ã¿ãã
$ kextstat|grep -v apple Index Refs Address Size Wired Name (Version)113 0 0x5c86f000 0xe000 0xd000 com.iospirit.driver.rbiokithelper (1.5.4) <62 35 29 5 4 3 1> 115 0 0x5bfc4000 0x3000 0x2000 com.eltima.ElmediaPlayer.kext (1.0) <4 1> 116 0 0x55347000 0x5000 0x4000 com.google.driver.Gild (1.0.0) <5 4 3 1> 117 0 0x5c49e000 0x18000 0x17000 org.pqrs.driver.KeyRemap4MacBook (7.3.0) <29 5 4 3 1> 127 0 0x5c1f2000 0x2000 0x1000 com.bresink.driver.BRESINKx86Monitoring (2.0) <12 11 10> 128 3 0x5c8d1000 0x25000 0x24000 org.virtualbox.kext.VBoxDrv (3.2.8) <7 5 4 3 1> 129 0 0x5c397000 0x7000 0x6000 org.virtualbox.kext.VBoxUSB (3.2.8) <128 41 35 7 5 4 3 1> 130 0 0x5c48c000 0x4000 0x3000 org.virtualbox.kext.VBoxNetFlt (3.2.8) <128 7 5 4 3 1> 131 0 0x5c1f8000 0x3000 0x2000 org.virtualbox.kext.VBoxNetAdp (3.2.8) <128 5 4 1> 204 0 0x5b44f000 0x3000 0x2000 com.protech.nosleep (1.2.1) <4 3> 283 0 0x55307000 0x3000 0x2000 org.binaervarianz.driver.insomnia (1.0.0d1) <4 3 1>
- ä¸çªæå¾ã®è¡ã«ãinsomniaã確èªã§ããï¼
- Insomnia.kextãç¡å¹ã«ããã«ã¯ãloadãunloadã«å¤æ´ãã¦å®è¡ãã°OKã
$ sudo kextunload ~/Library/Application\ Support/InsomniaX/Insomnia_r6.kext
ä¸æçã«ã¹ãªã¼ãã許å¯ãã
- æå¹ã»ç¡å¹ã®è¨å®æ¹æ³ã¯åãã£ããããããèªåãæä½ãããã®ã¯InsomniaXã®Sleep Systemã
- ä¸ä½ã©ããã£ã¦ãInsomnia.kextã«ã¹ãªã¼ããä¾é ¼ãã¦ããã®ã ããï¼
- Insomnia.kextã®æ¬å®¶ãã¼ã¸ã§ã調ã¹ã¦ã¿ãããkextloadãkextunload以å¤ã®æ段ã¯ç¡ãããã ã
- ãã®ãã³ãã¯kernel.logã«é ããã¦ããã以ä¸ã¯ãInsomniaXã§Sleep Systemãå®è¡ããã¨ãã®ãã°ã
Jul 14 04:30:32 zari-MacBook kernel[0]: Insomnia: kIOPMEnableClamshell sent to root Jul 14 04:30:32 zari-MacBook kernel[0]: Insomnia: Lid close is now processed again. Jul 14 04:30:32 zari-MacBook kernel[0]: Insomnia finished Jul 14 04:30:32 zari-MacBook kernel[0]: ========================================== Jul 14 04:30:33 zari-MacBook kernel[0]: AFPSleepWakeHandler: going to sleep Jul 14 04:30:33 zari-MacBook kernel[0]: enet_event_func - vendor 1, class 1, subclass 2, event code 14 Jul 14 04:30:34: --- last message repeated 1 time --- Jul 14 04:30:34 zari-MacBook kernel[0]: enet_event_func - vendor 1, class 1, subclass 2, event code 15 Jul 14 04:30:35: --- last message repeated 1 time --- Jul 14 04:30:35 zari-MacBook kernel[0]: enet_event_func - vendor 1, class 1, subclass 2, event code 12 Jul 14 04:30:36 zari-MacBook kernel[0]: System Sleep Jul 14 04:30:37 zari-MacBook kernel[0]: Wake reason = UHC3 Jul 14 04:30:37 zari-MacBook kernel[0]: System Wake Jul 14 04:30:37 zari-MacBook kernel[0]: Previous Sleep Cause: 5 Jul 14 04:30:37 zari-MacBook kernel[0]: The USB device Apple Internal Keyboard / Trackpad (Port 2 of Hub at 0x5d000000) may have caused a wake by issuing a remote wakeup (2) Jul 14 04:30:37 zari-MacBook kernel[0]: AirPort: Link Down on en1. Reason 4 (Disassociated due to inactivity). Jul 14 04:30:37 zari-MacBook kernel[0]: enet_event_func - vendor 1, class 1, subclass 2, event code 12 Jul 14 04:30:38 zari-MacBook kernel[0]: Insomnia:init Jul 14 04:30:38 zari-MacBook kernel[0]: Insomnia:start Jul 14 04:30:38 zari-MacBook kernel[0]: Insomnia: kIOPMDisableClamshell sent to root Jul 14 04:30:38 zari-MacBook kernel[0]: Insomina: enabled Jul 14 04:30:38 zari-MacBook kernel[0]: ========================
- ä½ã¨ï¼ã¹ãªã¼ãããåã«ãInsomnia.kextã¯ä¸æ¦çµäºãã¦ããããã«è¦ãããï¼kextunloadï¼
- ããã¦ã¹ãªã¼ãã解é¤ãããã¨ãInsomnia.kextã¯åã³åãåºãã¦ããããã«è¦ãããï¼kextloadï¼
- åããããªåä½ã«ãªãããã«ãã³ãã³ãã§å®è¡ãã¦ã¿ãã
$ pmset sleepnow Unable to sleep system: error 0xe00002bc # Insomnia.kextããã¼ãããã¦ããã¨ã # ä¸è¨ã®ããã«ã¨ã©ã¼ãçºçãã¦ã¹ãªã¼ãã§ããªã # ã¨ãããkextunloadã¨kextloadã§æãã§ãããã¨... $ sudo kextunload ~/Library/Application\ Support/InsomniaX/Insomnia_r6.kext;\Sleeping now...ã§ããï¼
- ãªãã¨ãã¹ãªã¼ãããåã«ä¸æ¦ Insomnia.kext ãã¢ã³ãã¼ããã¦ããã ããã ã£ãã®ã ã
- ã³ãã³ãã¯ãã¹ãªã¼ã復帰å¾ã«ã¾ã Insomnia.kext ããã¼ãããã®ã§æå¹ã«ãªãã
- ã ãããã£ã¹ãã¬ã¤ãéããç¶æ ã§ããWake on Demandã§æ¥ç¶ãã¦æä½ãã§ããã®ã ã
ããã§ãInsomniaX.appã«é ¼ããã«ãã¹ãªã¼ãã®æå¹ã»ç¡å¹ãèªç±ã«ã³ã³ããã¼ã«ã§ããããã«ãªã£ãï¼
- Insomnia.kextã¯ããã¾ã§ãã¹ãªã¼ããç¡å¹ã«ãããã¨ã«ç¹åããã«ã¼ãã«æ©è½æ¡å¼µã§ã
- InsomniaX.appã¯ãããããã¼ãã»ã¢ã³ãã¼ãããã¿ã¤ãã³ã°ã調æ´ããã ãã§ã便å©ãªç°å¢ãæä¾ãã¦ããã¦ããã®ã ã
*1:ã¹ãã¼ã¿ã¹ã¡ãã¥ã¼å½¢å¼ã®ã¢ã¤ã³ã³ã¡ãã¥ã¼ã¯æä½ã§ãããããã以å¤ã®ã¢ã¤ã³ã³ã¡ãã¥ã¼ã¯InsomniaXã«éãããGUIã¹ã¯ãªããã£ã³ã°ã§æä½ã§ããªããæä½ã§ããæ¹æ³ãããã°ããã²ç¥ãããã§ãï¼