If you have a motion sensor in your Apple Laptop (SMS), then you can get a smackbook!

Discussion in 'OT Technology' started by Danoldo, Jun 12, 2006.

  1. Danoldo

    Danoldo Lollercaust

    Joined:
    Aug 10, 2001
    Messages:
    45,570
    Likes Received:
    173
    Location:
    Scottsdale, AZ
    If you have a Macbook/Macbook PRO, it is ABSOLUTELY fucking simple to get this working


    I got it to work earlier today. I used Xcode to make modifications to Desktop Manager, and Emacs to adjust smack.pl to work on my PowerBook 12'. It was a bitchy and time consuming process, especially for somebody who almost never uses Xcode nor knows how to program in anything beyond Java.

    The biggest problem is adjusting the sensitivity. The video shows it working surprisingly well; my PowerBook 12' usually refused to sense taps on the side of the screen no matter what the numbers were at. The biggest problem with this whole thing is that using the laptop on anything but a flat surface causes the thing to start sensing "smacks" like crazy. The installer can be fixed easily, but making the concept itself work well is either going to be a very clever programming job or downright impossible. I also found that using a desktop switching hotkey, such as apple + -->, was far easier even if the touch thing did work.

    Quick guide to installing:

    NOTE - Intel Mac users should skip steps 1-7, as the official source code I linked to doesn't compile on Intel Macs. Your only option (that I know of) it to use a user ported version of desktop manager, such as this one. I have not tried these pre compiled versions myself, but have heard that they work.

    1) Download the latest Desktop Manager source code:
    [​IMG]

    2) Extract source code:
    [​IMG]

    3) Open Xcode (you should have this, if not get it from your Mac OSX install CD) and either go to file --> open or just hold apple + o. Select the directory you extracted the DM source code to and hit open:
    [​IMG]


    4) Type "WorkspaceController.m" in the search box. It will bring up only one result. Double click on that result:
    [​IMG]

    5) Scroll down to you reach the init portion of the code. Where pictures, cut and paste the following:
    [​IMG]



    6) Click the button "Build and Go". In the box that pops up click "Save All":
    [​IMG]


    YOUR MODIFIED VERSION OF DESKTOP MANAGER WILL NOW COMPILE. DEPENDING ON THE SPEED OF YOUR MAC, THIS WILL TAKE A COUPLE MINUTES.

    7) When it finishes compiling, it will automatically launch. You will know this when desktop manager starts. How just hide Xcode (apple + h).
    [​IMG]

    8 ) Now, download 2 files. AMSTracker...
    [​IMG]

    ...and download and extract a wonderful ZIP of smackbook itself:


    9) While I used Emacs, for the sake of simplicity we will use textedit to modify the perl file. Go the the extracted smackbook directory, right click on "smack.pl", click "Get info", and replace the extension ".pl" with ".txt", and hit enter. In the box that pops up, click "use .txt". Now double click on the "smack.txt" icon, and it should open up textedit.
    [​IMG]



    10)If you have an iBook or PowerBook, replace the line "my $x = $a[1]*256 + $a[0];" with "my $x = $a[0];". The line "if(abs($x) > whateverthis#is && $stable > 30) {" defines how sensistive it is, "whateverthis$is" being the sensetivity. If you have a MacBook, leave it as default (I think). Users of the iBook or PowerBook may wish to turn it down to something like 10.
    [​IMG]

    Save the file when done.

    11) After saving, go back to the info pane for "smack.txt" and change it back to ".pl":
    [​IMG]

    12) Open the dmg "AMSTracker". Drag the file "AMSTracker" out of it and into the smackbook directory.
    [​IMG]


    13) If you made it to this point, congradulations, your half way there. Actually, that's a lie.
    [​IMG]


    Open Mac OSX Terminal. Type "cd", space, and then the path of the smackbook folder. An easy way to do this is just drag the folder onto the terminal window. When your done, hit enter.


    14) Type "perl smack.pl" into the terminal and hit enter.
    [​IMG]



    If everything went correctly, your laptop should be going crazy and/or working properly with smackbook.

    If it outputs anything but "simultating AMS hardware" and "self descruct activated", you are good to go. If you get the simulating error, you either need to reboot your laptop or don't have (working) SMS hardware. If you get the self destruct error, run away from your laptop as fast as you can run.
     
    Last edited: Jun 12, 2006
  2. Turkey_Sub

    Turkey_Sub New Member

    Joined:
    May 27, 2004
    Messages:
    2,154
    Likes Received:
    0
    im sorry but i dont get the point of this?
     
  3. IcyHot4Life

    IcyHot4Life Str8 Ballin'

    Joined:
    Aug 2, 2002
    Messages:
    18,151
    Likes Received:
    0
    Location:
    Inquire Within
  4. Danoldo

    Danoldo Lollercaust

    Joined:
    Aug 10, 2001
    Messages:
    45,570
    Likes Received:
    173
    Location:
    Scottsdale, AZ
    there is no point, living life excessively is just a means to an end
     
  5. mcr

    mcr smack my bishop

    Joined:
    Apr 15, 2005
    Messages:
    7,861
    Likes Received:
    0
    Location:
    Columbus
    what is the point of this?
     
  6. Turkey_Sub

    Turkey_Sub New Member

    Joined:
    May 27, 2004
    Messages:
    2,154
    Likes Received:
    0
    shit that video is sooo cool!

    Is that a desktop manager or is it switching from window to window?
     
  7. nashstradamus

    nashstradamus New Member

    Joined:
    Nov 2, 2003
    Messages:
    899
    Likes Received:
    0
    Location:
    East Coast, USA
    wowie
    i need to install XP
     
  8. Danoldo

    Danoldo Lollercaust

    Joined:
    Aug 10, 2001
    Messages:
    45,570
    Likes Received:
    173
    Location:
    Scottsdale, AZ
    it's a desktop manager....

    It's on my macbook pro right now as we speak ;-)
     
  9. veonake

    veonake OnT poster, OT lurker

    Joined:
    Apr 11, 2004
    Messages:
    4,235
    Likes Received:
    0
    Location:
    NYC
    Good stuff, just installed on my MBP.
     
  10. RaginBajin

    RaginBajin Have you punched a donkey today?

    Joined:
    Dec 24, 2001
    Messages:
    8,740
    Likes Received:
    0
    Location:
    NoVA
    That seems pretty cool.
     
  11. Turkey_Sub

    Turkey_Sub New Member

    Joined:
    May 27, 2004
    Messages:
    2,154
    Likes Received:
    0
    Can you utilize it without a desktop manager? I have no need for one really, but if I could like switch windows or use exose with it, that'd be nasty.
     
  12. Turkey_Sub

    Turkey_Sub New Member

    Joined:
    May 27, 2004
    Messages:
    2,154
    Likes Received:
    0
    I have a quick question that i dont feel like making another thread for..

    On ur desktop you see those harddrive icons that are for applications you've installed? What do you do with them? I have like 3 on my desktop and when I 'eject' them I cant use the application and am forced to dl them again. Sorry if this is a stupid question but im really new to macs.
     
  13. CarRamRod

    CarRamRod The schnozzberries taste like schnozzberries.

    Joined:
    Jan 16, 2006
    Messages:
    902
    Likes Received:
    0
    Location:
    Austin, TX
    Drag the application icon from the "harddrive icon" to your applications folder on your Macintosh disk. This will "install" the program. After that, you can eject the white "harddrive icons" and still have the app in the Applications folder.
     
  14. Turkey_Sub

    Turkey_Sub New Member

    Joined:
    May 27, 2004
    Messages:
    2,154
    Likes Received:
    0
    Gotcha, yeah for some reason I do that with VLC media player, but after I do it, it dosnt recognize any program. Like ill click on the dock icon and a question mark just appears. Oh well.
     
  15. cftofu2k

    cftofu2k OT Supporter

    Joined:
    Aug 29, 2003
    Messages:
    2,949
    Likes Received:
    0
    Location:
    California
    hmm in for tomorrow. seems pretty cool.. almost like running dual screen for multitasking
     
  16. CarRamRod

    CarRamRod The schnozzberries taste like schnozzberries.

    Joined:
    Jan 16, 2006
    Messages:
    902
    Likes Received:
    0
    Location:
    Austin, TX
    Did you make the dock icon when you had it in your applications folder, or when you had it in the white HDD icon?

    You need to remove the icon from the dock (just drag it out and release) and then drag a new one from the applications folder app.
     
  17. moses

    moses OMGWTFBBQ

    Joined:
    Mar 22, 2000
    Messages:
    40,221
    Likes Received:
    0
    Location:
    Austin, TX
    in for more simplified instructions for mactel people
     
  18. cftofu2k

    cftofu2k OT Supporter

    Joined:
    Aug 29, 2003
    Messages:
    2,949
    Likes Received:
    0
    Location:
    California
    just tried on my macbook. doesnt seem to work..

    i get this message: AMS hardware present and initialized :dunno:
     
  19. Bolicious

    Bolicious Handleobraese

    Joined:
    Aug 5, 2000
    Messages:
    43,793
    Likes Received:
    0
    Location:
    Ellicott City, MD
    Repeated slapping of my $2500 laptop? No thanks.
     
  20. moses

    moses OMGWTFBBQ

    Joined:
    Mar 22, 2000
    Messages:
    40,221
    Likes Received:
    0
    Location:
    Austin, TX
    after playing with smacking my laptop around i thought it was honestly easier to use the shortcut keys that virtuedesktop has and looks just as cool.

    my version for intel owners: easy and painless

    download and install VirtueDesktop (which is a pretty cool app in itself)
    http://virtuedesktops.info/

    Start the app after adding it to your Applications folder

    download AMSTracker:
    http://www.osxbook.com/software/sms/amstracker/

    download smackbook:
    http://blog.medallia.com/files/smackbook.zip

    extract smackbook to a folder, place it wherever you want on your HD (I chose applications). then extract AMSTracker, and put AMSTracker in the smackbook directory. From Terminal, navigate to the smackbook directory and run 'perl smackbook.pl &' without the quotes and command-H to hide terminal if you want. voila, you're done. smack away.

    i'm sure i'll stick with virtuedesktop after i'm bored with smacking my laptop around.
     
  21. P07r0457

    P07r0457 New Member

    Joined:
    Sep 20, 2004
    Messages:
    28,491
    Likes Received:
    0
    Location:
    Southern Oregon
    wow, smackbook is almost as useless as.... well... shit.... there's nothing less useless than smackbook...
     
  22. Danoldo

    Danoldo Lollercaust

    Joined:
    Aug 10, 2001
    Messages:
    45,570
    Likes Received:
    173
    Location:
    Scottsdale, AZ
    completely agree'd.....

    but the feature is still :eek3: no matter if it has a "use or not"

    I dont even turn the tap function on anymore
     
  23. biawokauns

    biawokauns New Member

    Joined:
    Sep 18, 2001
    Messages:
    19,893
    Likes Received:
    0
    Location:
    Republic of Kalifornia
    but it makes pc fanboys wet
     
  24. P07r0457

    P07r0457 New Member

    Joined:
    Sep 20, 2004
    Messages:
    28,491
    Likes Received:
    0
    Location:
    Southern Oregon
    too bad linux (on the pc) had it for YEARS before.
     
  25. moses

    moses OMGWTFBBQ

    Joined:
    Mar 22, 2000
    Messages:
    40,221
    Likes Received:
    0
    Location:
    Austin, TX
    virtual desktops yes, SMS no.
     

Share This Page