Slashdot Mirror


Knock Some Commands Into Your Laptop

An anonymous reader writes "For the first time, you can smack your computer and get a meaningful response! An article at IBM Devworks show you how to rap on the laptop case with your knuckles and have commands run on those knocks. Enterprising hackers have developed modules for the Linux kernel to take advantage of laptop integrated accelerometer sensors; with them the possibilities are endless."

44 of 196 comments (clear)

  1. This technology was first developed... by Anonymous Coward · · Score: 2, Funny

    ...using Ralph Kramden's wife.

  2. multiple desktop switching by Speare · · Score: 4, Informative

    A MacOSX program called VirtuaDesktops has integrated this sort of thing, but it's still a bit finicky. You knock the laptop and it switches to the next desktop in the direction you knocked. It needs some debouncing because the recoil often just switches you right back to where you were.

    --
    [ .sig file not found ]
    1. Re:multiple desktop switching by Jeff+DeMaagd · · Score: 4, Informative

      Definitely not the "first time", though maybe a first for Linux.

      I think there is a video called "SmackBook" that demonstrates the use of the software you described. I thought it was posted on Slashdot.

    2. Re:multiple desktop switching by Rude+Turnip · · Score: 5, Funny

      The most amusing of the Macbook motion sensor apps is Macsaber, which creates various lightsaber sounds in response to you swinging around your laptop. It's fun for the first 5 minutes until you remember how much your Macbook cost.

    3. Re:multiple desktop switching by catwh0re · · Score: 2, Informative
      Here is a video link for interested people "Smack book" http://www.youtube.com/watch?v=6uvQTTPr9Rw.

      Macs also have a few other apps such as stable window which keeps a window upright while turning the laptop around, plus a few games that work on a similar principles such as "Neverball" amongst others. There are even widgets that tap into the AMS to play small ball-in-hole games.

      My particular favourite is the app that turns your powerbook into a light saber making sound effects as you swing it around. (MacSaber)

      I've avoided pasting links to all of these as most are run on small sites where a direct link will /. the 'ell out of them. However just do a google search for anything you're interested in. There is a lot of fun projects happening with AMS as a HID device in the open source community.

  3. Within moments of this article being posted... by DietCoke · · Score: 5, Funny

    IBM's warranty calls for failed drives shot through the roof.

  4. I don't know about you, but. . . by kimvette · · Score: 4, Insightful

    I don't know about you, but I would not go out of my way to subject a laptop to sudden motion intentionally while the hard drive is running, no matter how well the hard drives are built. If I spend $2,000 on a laptop, I'd want the thing to last.

    --
    The Christian Right is Neither (Christian nor right). See: Matthew 23, Matthew 25, Ezekiel 16:48-50
    1. Re:I don't know about you, but. . . by justsomebody · · Score: 2, Interesting

      Now even for a fancy feature like this one?
      http://www.gnome.org/~fherrera/blog/gtollina

      C'mon... Admit it:)

      btw. hitting your wife is so 70's. Now its all about hitting computers.

      --
      Signature Pro version 1.13.2-3 release 83.5 beta3try7 after-breakfast edition
    2. Re:I don't know about you, but. . . by antifoidulus · · Score: 4, Funny

      btw. hitting your wife is so 70's. Now its all about hitting computers.

      That is where most of us get our sex anways.....

  5. This is not new by SuperMog2002 · · Score: 5, Informative

    This has been around for months on the MacBook Pro in the form of Smackbook. The user simply hits his MBP to switch desktops. In this case, one of the desktops is running OS X, the other XP via Parallels.

    --
    Sunwalker Dezco for Warchief in 2016
    1. Re:This is not new by Ignominious+Cow+Herd · · Score: 2, Insightful

      "...as the technology became more sophisticated, the controls were made touch sensitive ... now all you had to do was wave your hand in the general direction of the components and hope. It saved a lot of muscular expenditure of course, but meant you had to stay infuriatingly still if you wanted to keep listening to the same programme. D. Adams"

      --
      Lump lingered last in line for brains, and the ones she got were sorta rotten and insane.
  6. pffft ... by Average_Joe_Sixpack · · Score: 4, Funny

    Enterprising hackers have developed modules for the Linux kernel to take advantage of laptop integrated accelerometer sensors; with them the possibilities are endless
     
    I'm waiting for them to enable the self destruct sequence on Dell laptops ... that would be useful.

    1. Re:pffft ... by ScrewMaster · · Score: 2, Insightful

      The self-destruct sequence on Dell equipment is fully automated and is initiated the first time the unit is powered up after purchase. The countdown is assigned to a random number at the factory, ranging anywhere from ten seconds to several months.

      --
      The higher the technology, the sharper that two-edged sword.
    2. Re:pffft ... by spysmily1 · · Score: 2, Insightful

      They do...it starts when you press the power button.

      --
      Videogames made me kill people...I also eat mushrooms to grow bigger.
  7. So I can use... by NoseBag · · Score: 5, Funny

    ...my laptop to detect opportunity when it knocks?

    How 'bout compiler engines? Will it detect knocking in them?

    --
    Cloned foods give the statement "We had that last week!" a whole new meaning.
    1. Re:So I can use... by twiddlingbits · · Score: 3, Funny

      No knocks to worry about if you write High Octane Code!

  8. Won't work for me... by x2A · · Score: 5, Funny

    ...usually when I hit my laptop, it's because it's already frozen.

    --
    The revolution will not be televised... but it will have a page on Wikipedia
  9. random sensors..... by eggoeater · · Score: 5, Interesting

    Maybe we should just start putting in different types of random sensors in laptops that can pull data from the emediate environment and see what the hackers can do with them. Some suggestions:

    Gyroscopes for Orientation (pitch,roll,yaw)
    More accelerometers
    Altimeter
    GPS
    External temperature,humidity, pressure
    Pressure sensors (which determine how hard the user is banging on the keyboard in aggrevation).
    Thermal imaging

  10. Thank you for calling IBM Warranty services... by RulerOf · · Score: 5, Funny

    ... What seems to be the problem?

    "Uh, well, I was drunk and I, uh... My screen is cracked."

    --
    Boot Windows, Linux, and ESX over the network for free.
  11. New Dialog box by fluffywuffy · · Score: 2, Interesting

    One knock for yes, two knocks for no, and three knocks for cancel

  12. Knock knock! by modecx · · Score: 5, Funny

    knock knock knock smack smack smack knock knock knock

    It looks like you're calling for help.
    Would you like help?
    * Telegraph CQD RAPE RAPE STOP NEED HELP PDQ STOP
    * Just signal your distress without help

    --
    Constitutional rights may be respected, repealed, or modified; but they must never be ignored.
  13. What they need to do... by Doc+Squidly · · Score: 2, Insightful

    What they need to do to install the sensors int the monitors of desktops because that's were the average user will hit they computer.

    My guess is that most people get fixated on the monitor or don't realize that if they wanted to do damage then need to strike the components that actually do the work.

    --
    I think I think, therefore I think I am.
  14. Dumb dumb dumb... by Anonymous Coward · · Score: 2, Insightful

    Aside from the fact that encouraging people to gradually ruin their notebook's hard drive, this idea is the next "MOUSE GESTURING".

    Write press release - introduce a few whiz-bang apps or games - stumble over an article about the concept ten years later and laugh at the idea all over again.

    At least it's not the next Z-Board.

  15. Hmm.. something useful here by Anonymous Coward · · Score: 3, Funny

    1. chair impact detected
    2. sell microsoft stock
    3. buy google stock
    4. profit!

  16. SmackEdit by HTTP+Error+403+403.9 · · Score: 4, Interesting
    There is another Mac OS X app called SmackEdit. It simulates a manual typewriter and when smacked on the side, it performs a carriage return including the bell ring.


    Lots of fun at the coffee shop.

    --
    I'm not a Troll, it's reverse psychology.
    1. Re:SmackEdit by justsomebody · · Score: 2, Informative
      --
      Signature Pro version 1.13.2-3 release 83.5 beta3try7 after-breakfast edition
    2. Re:SmackEdit by pesc · · Score: 4, Informative

      It simulates a manual typewriter and when smacked on the side, it performs a carriage return including the bell ring

      On the typewriters I have used, the bell doesn't ring when you do a carriage return. It rings when you reach a certain column so that you know that you are beginning to reach the end of the line and that you may want to do a carriage return before typing the next word.

      --

      )9TSS
  17. I guarantee.... by gardyloo · · Score: 5, Funny

    ... that everyone's new password will be "shave and a haircut"

  18. Real port knocking protocol? by noidentity · · Score: 3, Funny

    So, will this allow a true port knocking protocol to be implemented?

    "Why isn't the USB port working?"
    "Knock first!"

  19. The Best Possible Response by Billosaur · · Score: 4, Funny

    "Help, help, come see the vviolence in the system... help, help, I'm being repressed!!!"

    --
    GetOuttaMySpace - The Anti-Social Network
    1. Re:The Best Possible Response by stunt_penguin · · Score: 2, Funny

      *whacks MacBook*

      MacBook : "Look Dave, I can see you're really upset about this. I honestly think you ought to sit down calmly, take a stress pill, and think things over.

      --
      When the posters fear their moderators, there is tyranny; when the moderators fears the posters, there is liberty.
  20. What? by eosp · · Score: 3, Funny

    Typing ls was too much for people?

    1. Re:What? by eosp · · Score: 2, Funny

      Bang it harder for -la, I suppose?

  21. Or, you could just wave your hand over your Mac... by thedbp · · Score: 4, Interesting

    This is even cooler - using Virtual Desktops, Shadowbook, and Parallels Desktop, you can switch between OS X and Windows just by waving your hand over the ambient light sensor in the MacBook Pro ...

    Peep a video here:
    http://blog.medallia.com/2006/06/shadowbook.html

    Cheers!

  22. Quake by cdep_illabout · · Score: 3, Funny

    I would hate to get owned by someone who didn't even have their laptop open.

  23. Morse Code by ronanbear · · Score: 2, Interesting

    It would be a great way to input Morse Code into a laptop. It could be integrated into a program which teaches Morse Code and would be fun to learn.

    --
    the more they over-think the plumbing the easier it is to stop up the pipe
  24. Re:Obligatory Starter Thread - KNOCK, KNOCK! by redstar427 · · Score: 2, Funny

    Future of laptop communications between laptop and its owner...

    Laptop owner (trying knock commands): knock knock
    Laptop: who's there?
    Laptop owner: me
    Laptop: me who?
    Laptop owner (frustrated, tries again): knock knock
    Laptop: who's there?
    Laptop owner: your owner
    Laptop: your owner who?
    Laptop owner: want your owner to knock you on the ground again?
    Laptop: okay, okay, no need to become violent!

    --
    "Two things are infinite: the universe and human stupidity; and I'm not sure about the universe." Albert Einstein
  25. I've been able to slap sense into my windows... by ArielMT · · Score: 3, Funny

    I've been able to slap some sense into my windows for quite some time now. It comes built-in to X11.

    First off, choose a cursor theme in which the cursor for moving a window is a hand, such as any of the comix cursor themes in Debian. Next, on those rare occasions when a program misbehaves, hold down the Alt key to warn the window. Finally, click and drag the mouse anywhere on the offending window briefly, while the Alt key is still held down.

    Congratulations, you've just slapped some sense into the misbehaving window.

    --
    It must be Windows. It needs half a gig of RAM and a hardware-accelerated graphics card just to run Solitaire.
  26. The Module - with apologies to E. A. Poe. by Karellen · · Score: 4, Funny

    Once upon a midnight dreary, while I pondered weak and weary,
    Over many a quaint and curious man page of forgotten lore,
    While I nodded, nearly napping, to page down I started tapping,
    On the case of laptop rapping, rapping to see one page more.
    `'Tis a kernel module,' said I, `understanding taps galore -
    Only this, and nothing more.'

    --
    Why doesn't the gene pool have a life guard?
  27. Underwood by peacefinder · · Score: 2, Interesting

    A completely obvious application:

    Whack the monitor with your right hand to produce a carriage return and a ding.

    Would that not be totally retro-cool?

    --
    With reasonable men I will reason; with humane men I will plead; but to tyrants I will give no quarter. -- William Lloyd
  28. re: shouldn't really be a worry by King_TJ · · Score: 2, Insightful

    The sudden motion the sensors were originally designed to sense was the first stage of it starting to fall off of a desk or table, onto the floor. If it took very much shock energy to trip the sensor, it would be totally useless - since it would basically be asking the hard drive to shut down after the computer already hit the floor.

    Therefore, the sensors are very sensitive - registering a response to levels of shock well below what would actually harm a spinning laptop hard drive. (If your drive was fragile enough to crash because of someone lightly tapping on the top of the notebook's case, or giving a light tap to the side of the unit to switch virtual screens, it would also die whenever someone tried to move around to get moer comfortable with their laptop in their lap, or adjiust the position of the lid, or.... (you get the idea).

    This stuff seems perfectly harmless to me, as long as users exercise some common sense. (Obviously - it was NEVER a good idea to whack your computer hard on the side or top!)

  29. Smack alerts by OverflowingBitBucket · · Score: 2, Funny

    Now what I want to see is software that monitors the knocking and phones home to us if one of our users is smacking the crap out of one of our laptops, so we can spring in on them and catch them in the act. That would rock.

  30. But is it useful? by apharmdq · · Score: 2, Interesting

    I'm really trying to think of how this would be useful in any way. Sure it's a pretty cool gimmick to be slapping your laptop around, especially for all the folks out there with sadistic tendencies, but can it really accomplish anything that couldn't be accomplished with an ordinary laptop? Which would be easier, switching desktops by hitting Ctrl+F2 or reaching up and tapping the side of your laptop screen? It takes longer and is a waste of energy. (I mean, isn't that the reason people are so crazy about Vim and Emacs? The fact that you don't have to lift your hands from the keyboard?)

    I will admit that being able to lock and unlock your computer through a series of taps is pretty nifty, but the same feature could be accomplished through timed keystrokes and so forth. And people have already mentioned possible affects on the hardware.

    It seems to me that this will be more of a niche product, sort of like the thumbprint scanners seem to be nowadays.

  31. New Kernel ready for pounding? by weeboo0104 · · Score: 2, Funny

    What? All these jokes about knocking on laptops and nothing about bash errors?
    bash: shave-and-a-haircut: command not found

    --
    It is easier to build strong children than to repair broken men. -Frederick Douglass