Let integrity and uprightness preserve me; for I wait on thee. – Psalms 25:21
RSS icon Email icon Home icon
  • Eject Key, Apple Pro Keyboard, and Linux

    Posted on February 22nd, 2005 Arthur 1 comment

    One thing I never liked about running Linux on my iMac is the fact that the eject key doesn’t work.
    Using Debian, Gnome 2.8, Linux 2.6.8.

    Well the problem is now solved, or fixed, thanks to a bit of scripting and the eject executable.

    I wrote a little PHP script:

    #!/usr/local/bin/php
    

    And put it in /usr/local/bin/maccd
    Added a shortcut icon into the Gnome panel, and know all I have to do is click a button to eject and close my cd tray.
    At least it’s easier than going to the Terminal.

    Now if only I can somehow map the eject key to it…

    Uncategorized
     

    One response to “Eject Key, Apple Pro Keyboard, and Linux”

    1. I found that mapping Keycode-204 to the “eject -T” command worked beautifully on my US Apple Pro (Model M7803) keyboard. YMMV

    Leave a reply