MacTelChat     

Welcome to MacTelChat

You are currently viewing our site as a guest which gives you limited access. By joining our free community you will be able to post topics, communicate privately with other members, respond to polls, upload your own photos and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact support.

Go Back   MacTelChat > Downloads > Notebook Utilities

Latest Files
Latest Files
Most Popular Files
Most Popular Files

Free Software Downloads
  • Freeware for Mac Intels
  • Use these files at your own risk!
  • Enjoy
Navigation
Main | Category Tree | Stats | Search
Downloads [Download SlapBook for VirtueDesktops]
File Name: SlapBook for VirtueDesktops (110.0 KB) Download
Author: javester (Uploaded by javester)
Date Added: 05-25-2006
Downloads: 15944
Grade: B
Description

Version 0.65 now available. Now much easier to use with Daniel@Tudra.net's wrapper code. Corrected minor packaging error as well (Thanks Gritz!)

To discuss SlapBook for VirtueDesktops, go here.

With all the buzz about the SmackBook hack on the internet, we thought it'd be cool to pull together something for VirtueDesktops - our preferred desktop manager for OS X.



And learning from our friend Erling Ellingsen, the original SmackBook creator, we used freely redistributable code from Christian Klein of teenage mutant ninja hero coders fame. No problem with redistributing SMS smarts here.

We also added:
  • Universal Binary Support
  • an Installer
  • a Preferences file to tweak the Slap parameters
  • a more intelligent slap detection algorithm (with automatic calibration, Center of Gravity and off-the-table detection)
  • debug mode. Any command-line parm will invoke debug mode.
REQUIREMENTS
- Sudden Motion Sensor equipped Mac portable (check Hardware Overview in System Profiler)
- VirtueDesktops v0.52r138 & above (http://virtuedesktops.info)
- OS X 10.4.6

HOW TO USE:
Just run the SlapBook application. To debug, go to Terminal and run "slapbookvirtue d"

PREFERENCES:
PollFrequency (microsecs): How often to query the SMS sensors.
SensitivityIndex (10 to 256): "Slap" sensitivity threshold. Lower values are more sensitive.
StableInterval (5 to 100): How many PollFrequency intervals to wait before detecting slaps again. This setting allows the SMS sensors to settle down between slaps.
Flip (0/1): Set to non-zero value to flip x-axis.
Quiet (0/1): 0 to turn off acknowledgements

Known Issues:
  • Shows up as NOT RESPONDING in Activity Monitor. No worries though, the program does yield to other threads. Will just need to tweak polling logic to get rid of the false alarm.
  • Hardcoded to use CTRL+SHIFT+LARROW and CTRL+SHIFT+RARROW to invoke VirtueDesktops slap transitions

TROUBLESHOOTING:
  • Try debug mode - go to Terminal and run "slapbookvirtue d"
    Trigger is the X-axis reading that triggered slap detection ((abs(x) - ZeroPoint ) > SensitivityIndex).
    Trajectory >= ZeroPoint = Left Slap. Trajectory < ZeroPoint = Right Slap.
  • Fine-tune the parameters in the Preferences file. I don't recommend setting PollFreq < 5000 and SensitivityIndex > 128 though.
  • Still having problems? Please send your System Profiler XML file and the output from the slapbookvirtue debug screen to slapbookvirtue@mactelchat.com

Roadmap:
  • Configurable Sound effects (Three Stooges anybody?)
  • Polling governor (Automatic throttling)
  • HeadTap to toggle Slap detection
  • More robust off-the-table transition prevention
  • Remove sendkey hardcodes
  • Preferences Pane
  • Ability to send active window to other desktops with a Shift-Slap
  • Slap-down to switch to desktops below
  • Slap gestures (e.g. Double-slap to do transitions)
  • Repackage as VirtueDesktops plugin (once plugin system is ready)
  • Integrate wrapper work done by Daniel Knippers (thanks Daniel!)
  • Daemon mode
  • Configurable voice acknowledgements

Changelog:

v0.65 - Minor packaging mistake (included debug instead of release build) led to run-time errors. Thanks Gritz! Also fine-tuned wrapper code to kill slapbook background process properly when main app is closed. (6/4/2006)

v0.6 - Packaged using wrapper code created by Daniel@Tudra.net (rock on Daniel!). Auto-launches VirtueDesktops if its not running; created copy of non-wrapped app as well in /usr/bin for debugging purposes (as suggested by hellofriends below). (6/4/2006)

v0.5 - Auto-calibration for off-centered SMS sensors. Refactored slap detection and off-the-table transition prevention. (5/30/2006)

v0.4 - Fixed IOI2C SMS detection. Lowered SensitivityIndex limit. (5/27/2006)

v0.3 - Modified SMS auto-detection logic to detect 3 SMS sensors (SMC, PMU & IO2IC). Improved debug output. Fine-tuned trajectory calculation. Featuring Vicki! (5/26/2006)

v0.2 - Added additional logic (thanks to Saptarshi and Pall Thayer!) to handle different SMS types. Also added Flip parameter in Preferences file. Set to non-zero value to flip x-axis. Improved debug output. (5/26/2006)

v0.1 - Initial Release (5/25/2006)

Images
SlapBook for VirtueDesktops by javester on 05-25-2006
Downloads [Download SlapBook for VirtueDesktops]


Comments
Claisen
05-25-2006 at 05:43 PM
when i launch slapbookvirtue, i get "VirtueDesktops not running" when it is, in fact, running. any thoughts?
javester
05-25-2006 at 05:58 PM
Which version are you using? I only tested it with the latest version - 0.52r138.

gritz
05-25-2006 at 06:18 PM
This wors Great! ThanX!
billchase2
05-25-2006 at 06:27 PM
i get the same thing.... what the heck?
billchase2
05-25-2006 at 06:30 PM
i upgraded... now it says theres no sms available... there IS. i'm on a 1.67 PB
testtesttest
05-25-2006 at 06:36 PM
I am PowerBook G4 and I run ./slapbookvirtue and I get "No motion sensor available" is sensor do exist in that machine?

thank
nero44
05-25-2006 at 06:45 PM
same here. using 0.52r138
my pb definitely has a motion sensor since ams visualizer works fine.
any ideas?
thanks
sapsi@pobox.com
05-25-2006 at 07:32 PM
Hi,
Thank you for the software and for making me aware of VirtueDesktops - very nice stuff.
However like the people above, i get "No Motion Sensor available", however i do hear audible click if i shake the PB 15(PPC) and the Dashboard Widget Acme Level Widget does work. This is PB bought in June 05.

Thanks
Saptarshi
sapsi@pobox.com
05-25-2006 at 07:45 PM
Hi,
Pall Thayer, of Level Widget fame, made some modifications to motion.c (which i think you're using). The modified one works. Hope that helps.
Regards
Saptarshi
hellofriends
05-25-2006 at 07:54 PM
PB 12" w/ motion sensor gives me
----------------------------
VirtueDesktops not running
-----------------------------

but it is
-Raven
05-25-2006 at 08:21 PM
@ Saptarshi: is there a link to the modified motion.c?

if so, pls post it!
sapsi@pobox.com
05-25-2006 at 08:30 PM
Hi,
The Level Widget found in the source located at
http://pallit.lhi.is/palli/dashlevel/

has the motion.c code. Download the appropiate source for your PB (depends on HiRes(Oct 2005) or older PBs)

But how does it help? I think motion.c code is directly in the slapbook code.
Not sure on this one though.

Regards
Saptarshi

StealthAngel
05-25-2006 at 08:39 PM
Definally a problem with the method used to capture motion.
You can tell if you have a Motion sensor by running the command "pmset -g", you should see a line that reports
Quote:
Battery Power -1
AC Power -1*
Currently in use:
sms 1 (1 meaning enabled, 0 disabled)
The new laptops report sms as AMS.
-Raven
05-25-2006 at 08:53 PM
sms is enabled,
but i dont have the programming skills to follow the instructions to activate the motion.c...
i am just too much of a noob...
but if anyone has some time, write some step by step instructions!

i want that cool feature! xD

thanks
-Raven
-Raven
05-25-2006 at 09:24 PM
okay,
finally 'kinda got the motion.c running'
when i start it up in terminal i also get the 'No motion sensor available' note there...
problem might be, that it says the motion.c only runs on 10.4.4, i already got 10.4.6!
still waitin for the fix!
still want that cool feature! :P
javester
05-25-2006 at 10:13 PM
Hi Sapsi,
You are correct. I am using the original motion.c codefrom Chris Klein's site.
I took a quick peek at the level widget and I did see some more checks in it to differentiate between the pbooks and ibooks.

Thanks for bringing the mods in the Level Widget to my attention.
I'll post the fix here tomorrow so everybody can start slapping their MacBooks silly

I only got to try it on my MBP 1.83Ghz and my friend's PB 12.1" so please lemme know how it works on other SMS equipped Apple notebooks.
Dean
05-25-2006 at 11:37 PM
Quote:
ibook-g4 /Applications/slapbookvirtue; exit
No motion sensor available
iBook G4 equipped with a motion sensor.
bugmenot
05-26-2006 at 01:26 AM
Nothing happens when I give slaps - MacBook -- no error messages anywhere.
Tony Arnold
05-26-2006 at 02:32 AM
Hey Javester, I'm the author of VirtueDesktops - want to integrate this directly into VirtueDesktops upfront? I'm happy to have a look at what you're doing and integrate it into trunk.
frgee
05-26-2006 at 07:45 AM
i get "bus error" and no joy. pbg4 1.67 10.4.6. i have the latest virtue installed as well. any thoughts? maybe tony can get it integrated into virtue. that would be solid.


DownloadsII 5.0.3 by westpointer & Jelle
Based on ecDownloads 4.1 © Ronin


Copyright © 2006-2007 MactelChat.com
Powered by vBulletin Version 3.6.1
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.1.0
vBulletin Skin developed by: vBStyles.com