Slashdot Mirror


Experimenting With Light on Apple Laptops

venkatg writes "Soon after Apple introduced sudden motion sensors in their PowerBooks in early 2005, Amit Singh had shown how these sensors can be used for creative purposes (covered by Slashdot earlier as Having Fun With PowerBook Motion Sensors and PowerBook As A New Kind Of Human Interface Device). This time around Singh discusses 'Experimenting With Light' in a new article whereby by light he means the ambient light sensors and the illuminated backlight keyboard sensors in Apple's laptops. The article shows (source code is included) how one can measure ambient light and do things with it. It also shows things like how to get/set illuminated keyboard brightness and display brightness or do fade transitions of the keyboard lighting. So now that we have all these motion and light sensors under control, is there a MacBook discotheque in the works?"

10 of 120 comments (clear)

  1. How does the keyboard backlight work? by Ant+P. · · Score: 4, Insightful

    Is it just one light, or can individual keys be lit up? You could do a lot more with it that way.

    1. Re:How does the keyboard backlight work? by Anonymous Coward · · Score: 5, Informative

      The keyboard illumination does not allow for individual key lighting.

      The mechanism is a mat of fiber-optic cables which are illuminated by just two leds, which also cannot be independantly controlled.

  2. Just wait 'till the blackhats get ahold of this! by JonTurner · · Score: 4, Funny

    (mumbles to self...) Let's see... motion sensors, ambient light sensors, lots of indicator LEDS, backlit keyboard. Yep, we've got everything we need!(/mumbles)

    Coming soon, from a black-hat hacker near you:
    Siezure-O-Rama 1.0 !! Now, with 38% more unconsciousness!

  3. In the year 2000... by MudButt · · Score: 4, Funny

    It would be pretty cool if someone wrote a program that makes your keyboard randomly blink a la The Original Star Trek (or many other 60's sci-fi shows). Am I the only one that's still impressed by random flashing lights on a computer? I know... I'm easily ammused...

  4. Blackout Game by VorpalRodent · · Score: 5, Interesting
    I recall a game from not too long ago wherein one would push lighted buttons, and they would alternate the lighted status of those buttons around it. The objective was to turn off (or on, I forget) all the buttons on the unit.

    With this, assuming that each key has a light associated with it, one could do the same thing with a whole keyboard.

    And for those who don't have any issues with being violent towards their computers, you could reset it a la Etch-a-Sketch with the motion sensor.

    --
    Take it to the limit, everybody to the limit, come on, everybody fhqwhgads.
    1. Re:Blackout Game by mgabrys_sf · · Score: 4, Funny

      20 bucks in shareware for anyone who can program me an etch-a-sketch plug in for photoshop that allows me to wipe a frustrating layout off the screen by me violently shaking the laptop. It would be far more cheaper than therapy.

      (of course one could surmise that anyone who wants this in leu of therapy might have issues - but I'd call those people just plain nuts)

  5. Before the Mac bashers go crazy with this one.... by King_TJ · · Score: 4, Interesting

    .... I don't think this article is here as another "Oooh.... the Macbook and Steve Jobs are awesome!" story. The intriguing part is how its users are "thinking different" to an extent Apple themselves didn't seem to. Already, people have taken the relatively boring "sudden motion sensor" that Apple only thought of implementing to help prevent hard drive crashes, and used it for a motion-sensing laptop security system, to roll marbles around in maze games by tilting the laptop, and even to switch virtual desktops by lightly tapping the left or right-hand sides of the machine to "bump" the desktop over one direction or the other.

    Now, they're tackling the ambient light sensors, which again, serve a relatively "boring" (if still useful) purpose. I'm intrigued to see what imaginative people will end up doing with this one too. For starters, I could envision some usefulness in things like making the backlit keyboard blink in a repeating pattern to indicate completion of recording in certain audio programs. (Many recording studio environments are kept dark so you can easily see all the readouts on the displays of the equipment while working. Macbook Pros are going to be popular in these environments, and it might be nice to get a subtle indication it finished transcoding or recording some audio - even if the display went blank due to a screen saver?)

  6. The killer app by Anonymous Coward · · Score: 5, Funny

    As soon as the light dims, iTunes will automatically start the Barry White playlist and some soft porn starts to play via Front Row. All that is left for you to do is to hug yourself and cry yourself to sleep, feeling oh so lonely, lonely, lonely.

  7. Brilliant, New Mail indicator by TristanBrotherton · · Score: 4, Interesting

    Fantastic, I wanted to know how to do this so i could write a new mail indicator. Lots of itme i dont like my macbook to speak, so now i can write a script to pulse the keyboard backlights when i get mail. Brilliant, they are bright enough to blind bats so should be quite effective.

  8. Re:Perhaps keyboard backlighting could flash by ronanbear · · Score: 4, Interesting

    Apple should use the motion sensor to detect when the powerbook is likely to be being used on a lap and automatically lower the power usage to reduce the temperature. That would be a really good way to show off the motion sensor.

    --
    the more they over-think the plumbing the easier it is to stop up the pipe