Original URL: http://www.reghardware.co.uk/2006/05/25/macbook_motion_sensor_mallarkey/
If you thought the motion sensor in Apple's MacBook Pro and MacBook laptops was only there to help protect your hard drive from accidental drops, or to do silly things like Star Wars lightsabre emulation (http://www.reghardware.co.uk/2006/05/22/macbook_lightsabre_emulation/), think again. Someone's come up with an application that's actually useful: screen control.
You can see a video of the process in action here (http://www.youtube.com/watch?v=6uvQTTPr9Rw&www.reghardware.co.uk).

The trick's done by combining Amit Singh's utility AMSTracker (http://www.osxbook.com/software/sms/amstracker/?www.reghardware.co.uk), a command line tool that regularly reports the motion sensor's status. It's then used by a system script like this one (http://www.no-rulz.net/screenswitch.py?www.reghardware.co.uk) that uses the data provided by AMStracker to trigger events like key presses which in turn set Mac OS X's Exposé or Dashboard in motion.
Tap the side of your screen and... bingo.
Just don't hit it too hard, OK? ®
Re-enact great Jedi, Sith battles with... a Nintendo Wii Remote (12 December 2006)
http://www.reghardware.co.uk/2006/12/12/wii_remote_is_light_sabre/
Apple admits MacBook, MacBook Pro issues (27 July 2006)
http://www.reghardware.co.uk/2006/07/27/apple_acknowledges_macbook_issues/
How to fry an egg... on an Apple MacBook (17 July 2006)
http://www.reghardware.co.uk/2006/07/17/macbook_frys_egg/
Apple extends MacBook line-up (4 July 2006)
http://www.reghardware.co.uk/2006/07/04/apple_extends_macbook_line/
Apple adjusts 17in MacBook Pro's fans (28 June 2006)
http://www.reghardware.co.uk/2006/06/28/apple_updates_macbook_pro_firmware/
Apple posts fix for overly hot MacBooks (6 June 2006)
http://www.reghardware.co.uk/2006/06/06/apple_macbook_heat_fix/
Re-enact great Jedi, Sith battles with... an Apple MacBook (22 May 2006)
http://www.reghardware.co.uk/2006/05/22/macbook_lightsabre_emulation/
Apple launches black, white MacBooks (16 May 2006)
http://www.reghardware.co.uk/2006/05/16/apple_macbook_launch/
Colorware paints up MacBook Pro (8 May 2006)
http://www.reghardware.co.uk/2006/05/08/colorware_coloured_macbook_pros/
Early MacBook Pros hit by battery glitch? (4 May 2006)
http://www.reghardware.co.uk/2006/05/04/apple_macbook_pro_battery_issue/
Toasty MacBook Pros cured with paste transplant (1 May 2006)
http://www.reghardware.co.uk/2006/05/01/apple_macbook_pro_heat_fix/
Apple's MacBook gets bigger and bigger (24 April 2006)
http://www.reghardware.co.uk/2006/04/24/apple_macbook_17/