Code Monkey home page Code Monkey logo

clamshellwake's Introduction

ClamshellWake

これは何?

ClamshellWake.kext(クラムシェル ウェイク)は、MacBookのディスプレイを閉じた状態でも Wake on Demand が有効になるカーネル機能拡張です。

  • ディスプレイを閉じた瞬間のスリープが無効になります。

  • ディスプレイを閉じている間は、省エネルギー環境設定にしたがってスリープします。

  • ディスプレイを閉じてスリープ中でも「ネットワークアクセスによってスリープを解除」できます。(省エネルギー環境設定で有効な場合)

  • つまり、ディスプレイを閉じていても、開いている時とまったく同じ挙動になります。

元々MacBookは、高性能なUPS付き(バッテリー容量5000mA)、かつ省エネルギーな(使わない時はスリープし、使う時だけ稼働する = Wake on Demand)、たいへん魅力あるサーバーにもなります。さらに閉じた状態のMacBookは、A4サイズ・厚さ3cmという省スペースの魅力も加わります。ブックエンドに立てかけて本のように収納できます。

使い方

簡単な方法

  • 付属のClamshellWake.appを起動することで、ClamshellWake.kextが有効になります。

  • 付属のClamshellWake.appを終了することで、ClamshellWake.kextも無効になります。

ターミナルからコマンドで操作する方法

カーネルにロード用にClamshellWake.kextを/tmpにコピーします。(カーネルは権限に厳格で、オーナー=root グループ=wheelしか受け付けません)

sudo cp -R ClamshellWake.kext /tmp
sudo chown -R root:wheel /tmp/ClamshellWake.kext

ClamshellWake.kextを有効にします。

sudo kextload -v /tmp/ClamshellWake.kext

ClamshellWake.kextを無効にします。

sudo kextunload -v /tmp/ClamshellWake.kext

アップル以外のカーネル機能拡張のロード状態を確認します。

kextstat | grep -v com.apple

注意

  • ディスプレイを閉じた状態では冷却効率が悪くなり、高負荷が連続すると本体が高温になる可能性があります。

  • MacBookの設置状況によっても、本体が高温になる可能性があります。

開発環境

  • MacBook OSX 10.6.8

  • Xcode 3.2.6

動作確認

  • MacBook OSX 10.6.8

心構え

ClamshellWakeはフリーウェアです。作者自身のMacBook環境での動作確認はしておりますが、どうか以下の点にご注意ください。

本ソフトウェアは無保証であり、使用により発生したいかなる損害についても、作者は責任を負うことができません。

以上、よろしくお願いします。

作者

bebe工房

ブログ

d.hatena.ne.jp/zariganitosh/

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.