Fedora Linux Support Community & Resources Center
  #1  
Old 18th April 2008, 01:02 PM
myanatadesmond Offline
Registered User
 
Join Date: Jan 2008
Posts: 10
optical drive eject

i want to use my laptop fn+F10 to eject the dvdrom drive. Anybody knows how to do it ? Doesn't work on my dell latitude D610. It will even be better if i press fn+F10, screen will show an eject icon like mac OSX can do.
Reply With Quote
  #2  
Old 18th April 2008, 01:32 PM
Nokia Offline
Registered User
 
Join Date: Aug 2006
Location: /dev/realm/{Abba,Carpenters,...stage}
Posts: 3,286
Type eject in a terminal.
__________________
For safer browsing, use OpenDNS nameservers 208.67.222.222 and 208.67.220.220

SELinux User Guide

AutoPager
Reply With Quote
  #3  
Old 18th April 2008, 02:33 PM
myanatadesmond Offline
Registered User
 
Join Date: Jan 2008
Posts: 10
Quote:
Originally Posted by Nokia
Type eject in a terminal.
ok, is there any program or where can i configure fn+F10 run the eject command ?
Reply With Quote
  #4  
Old 18th April 2008, 02:42 PM
A.Serbinski Offline
Registered User
 
Join Date: Jul 2006
Posts: 1,123
The "fn" key doesn't map as a key, so no.
Why don't you just press the button on the drive?
Reply With Quote
  #5  
Old 18th April 2008, 02:45 PM
sideways Offline
Retired User
 
Join Date: Oct 2004
Location: London, UK
Posts: 4,999
Quote:
Originally Posted by myanatadesmond
ok, is there any program or where can i configure fn+F10 run the eject command ?
If your Fn key generates an keyboard event in X you can use xmodmap to map it

Code:
xmodmap -e 'keycode xxx=XF86Eject'
where xxx = the keycode for Fn+F10 which you can find by running 'xev' and pressing the keys. Unfortunately the Fn key is not recognized in many cases. What laptop do you have, there may be a custom kernel module for hotkeys, for Toshibas you can try 'modprobe toshiba_acpi' (may generate a dmesg error about unsupported laptop)

In gnome it is even easier, go to System->Preferences->Personal->Keyboard Shortcuts, and just scroll down to the eject event and press you key combination (It probably won't recognise FN without a kernel module)
Reply With Quote
  #6  
Old 19th April 2008, 04:52 AM
myanatadesmond Offline
Registered User
 
Join Date: Jan 2008
Posts: 10
xhotkeys

ok, things like brightness up/down, volume up/down using the Fn key did work in FC8 on my laptop.
Currently im using xhotkeys, can't use the Fn key though, but windows key+F10 did eject the optical drive using the eject command. Why don't i press the drive eject button? Well, i just want to explore and have some fun.
Reply With Quote
  #7  
Old 21st April 2008, 04:25 AM
A.Serbinski Offline
Registered User
 
Join Date: Jul 2006
Posts: 1,123
Quote:
Originally Posted by myanatadesmond
ok, things like brightness up/down, volume up/down using the Fn key did work in FC8 on my laptop.
The Fn key is not as concrete as other keys on the board. Only SOME combinations map as key presses, and at that, its the COMBINATION that maps as a single key, they don't map separately. Take a regular multimedia keyboard for example. They don't have a Fn key, but they do have such things as volume keys. The volume keys are mapped to the volume function the same on a laptop as on a regular multimedia keyboard. Brightness on the other hand is NOT mapped as a key and cannot be detected by the OS (at least not directly). It is handled by the BIOS.
Quote:
Currently im using xhotkeys, can't use the Fn key though, but windows key+F10 did eject the optical drive using the eject command. Why don't i press the drive eject button? Well, i just want to explore and have some fun.
Yes that will work fine because the "Super" key (thats how its referred to outside of evil bill's empire) maps as a regular key.

Now I'm not saying that you can't detect the key combination, just that it will be much more involved than reading a key code.
Reply With Quote
Reply

Tags
drive, eject, optical

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Fedora 11 dvd eject button does eject when disc is in drive The Grum EOL (End Of Life) Versions 1 8th February 2011 10:22 AM
DVD Eject (through UI) - when no DVD in drive... cacruden Mac Chat 3 29th August 2008 01:52 AM
Prevent optical disc eject? pwherry Installation, Upgrades and Live Media 1 19th April 2006 05:58 AM
Help, DVD drive won't eject 92b16vx Hardware & Laptops 21 17th June 2005 10:39 PM


Current GMT-time: 09:31 (Friday, 24-10-2014)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat
Anjar Photos - Casa Grande Photos - Kafachan Photos