Dedicated Button for Toggling Screens

Anyone who regularly presents to an audience these days has known the pain of getting one’s laptop to work reliably with projection hardware. It’s all the more fraught with pain when you’re hopping around from venue to venue, trying desperately to get everything functioning on a tight schedule. [Seb] found that the magic keystrokes they used to deal with these issues no longer worked on the Macbook Pro Touchbar, and so a workaround was constructed in hardware.

The build itself is simple – an Adafruit Trinket serves as the brains, with a meaty 12mm tactile button used for input. The Trinket emulates a USB keyboard and sends the Cmd-F1 keypress to the computer when the button is pressed. The button’s even mounted in a tidy deadbugged fashion.

While it’s not at all complicated from a build standpoint, the key to this project is that it’s a great example of using the tools available to solve real-life problems. When you’re in a rush with 300 people waiting for your talk to start, the last thing you need to be worrying about is a configuration issue. [Seb] now has a big red button to mash to get out of trouble and get on with the job at hand. It does recall this much earlier hack for emulating a USB keyboard with an Arduino Uno or Mega. It’s a useful skill to have!

 

25 thoughts on “Dedicated Button for Toggling Screens

    1. I personally don’t have preblems with any of the three I mess around with on a daily basis (a PowerBook G4, a 2006 Mac Pro, and a 2010 Macbook Pro). However I avoid any fancier screen casting tech and just use a mini display port to vga or DVI adapter (aftermarket, of course). Hasn’t failed yet.

      That being said, I think his presenting software is what’s misbehaving in this case.

      1. Try it – you may be surprised. BetterTouchTool + touch bar = user definable key strip — add your own icons or menu options, bind layouts to specific apps, etc. etc. A huge improvement over crtl-shift-F1 does “something”. I wouldn’t go back now.

  1. I don’t get it, this saves pressing two keys at once but you have to plug it in first? Nothing wrong with a dedicated key or a few though. Stick-of-gum sized controller from cheap or sticky USB keyboard, solder what you need for keystrokes with switches and stick it in an enclosure.

    1. I don’t get it too…

      Solving this task by using remaining parts of a broken keyboard might have some hack quality but using an ATtiny85’s keyboard library for exactly what it is meant for is definitely just generating white noise in the net.

      All thumbs down and a huuuuge YAWN!

      1. Why all this negativity… sure I get the point that with some proper preparation before a presentation it should be no problem at all to connect a projector to a computer…

        But, don’t be so negative about the project itself. There have been much more useless projects on hackaday. I guess the problem with this one is that it does not have (enough) sound or light coming out of it. But in my opinion, I think it is great, a whole device (actually a whole microcomputer with a high tech communication protocol) just to add one silly button, it can’t be more overkill then that…

        Therefore I love it!

        PS: I’m a little bit dissapointed that the computer this will be used on required this add-on to make this possible. Perhaps it is an idea to add another button that one could be for the “backspace” function as I’ve heard that that function isn’t available either?

    2. Apparently what’s the problem is that the “pressing of the two keys” doesn’t work on the new Macbooks, because the F1-key doesn’t properly exist (the touch bar replaces the function-keys row). I haven’t used any Macbooks with the touchbar myself, but I can image that the functionality has been removed (the ESC-key was apparently removed).

  2. I don’t see why anything arduino-related (much less this very specific thing) is a “useful skill to have”. It’s trivial to do on most platforms… Most modern ones (Cortex M) even have full USB stacks. And a decade ago we were doing it with V-USB (called AVR-USB at the time) on crappy low-end atmels.

  3. “The key to this project is that it’s a great example of using the tools available to solve real-life problems.”
    Thanks for the key, here is the decoded version, cheers ! :

    “One day he wanted to show the usual justification for his work and expenses on Powerpoint, [Seb] was shocked to discover that his shinny new $2000 laptop missed the F1 key needed for his favorite keyboard shortcut (that happens to be the one that is provided by the operating system for everyone to toggle “screen-mirroring” to an external display).

    Rather than boringly finding the new “touchbar” shortcut provided for it (a simple option to enable in a control panel, like explained all over the Internet), he prefered to boringly make another “arduino usb button” (a quick setup that requires minor modifications of a code example from a provided USB-keyboard library… like explained all over the internet) with the actual benefit to impress his friends and blog’s readers, mostly web-designers who are fascinated by those dark and dirty “low-level” electronic things.

    The key to this project is to make such a trivial thing look like a “solution to a real-life problem”, with a blog entry, a video on Vimeo, and the mandatory Github project (mostly a full copy of the old existing USB keyboard library), claiming it to the world (“calling all speakers !”) then take some “hardware credibilty” from hipsters for it. As a bonus, it could even get reported on HackaDay, which now targets the same superfical but profitable audience.

    You probably nailed it, Seb is an “artist” (a word that used to define people serving the Arts, but now serves exclusively as a mere status to market soulless sanatized digital visuals and sounds), so he’s accustomed to spend tons of public money without batting an eyelid, and he went directly at his usual supplier Adafruit and, after reading their nice “usb keyboard” tutorial, bought the $20 of proposed products required for his unimaginative build
    But for those of you spared from the vicissitudes of the poor fresh macbook’s owners, and who could stoop to deal with “no names” clones gathered from some stinkin’ chinese vendors, the same exact thing is doable for a small fraction of the previous amount. And if, unlike Seb, you don’t need other’s money to be creative, you could even add a some resistors and a touch of humour, i.e. replacing the button by a rotten apple ;)”

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s