Welcome!

Please read this important information about MX sources lists.
News
  • MX Linux on social media: here
  • Mepis support still here
Current releases
  • MX-17 Final release info here
  • MX-16.1 release info here
  • antiX-17 release info here
    New users
    • Please read this first, and don't forget to add system and hardware information to posts!
    • Read Forum Rules

How to add XF86-eject to the keyboard settings

Message
Author
User avatar
tianlan
Forum Novice
Forum  Novice
Posts: 16
Joined: Wed Apr 26, 2017 11:53 pm

How to add XF86-eject to the keyboard settings

#1 Postby tianlan » Wed May 24, 2017 9:41 am

I need help for a Dell Studio 1457 with
Kernel : Linux 4.7.0-0.bpo.1-amd64 (x86_64)
Compiled : #1 SMP MX 4.7.8-1mx16+3 (2017-02-23)
Default C Compiler : GNU C Compiler version 4.9.2 (Debian 4.9.2-10)
Distribution : MX-16 Metamorphosis
Desktop Environment : XFCE 4

The system is running well. I can insert a CD into the optical drive, but I can't eject it, because the eject key is not functioning and I can't see another way.
The drive hasn't got a hole to manually eject a CD using a pin.
When using LinixMint live OS the function key is enabled and working.

My questions:
Is Keyboard' - 'Edit keyboard settings and application shortcuts' the right place to do the change?
How can I configure the application shortcut for XF86 Eject?
How to name the shortcut command? and if I click 'Open', which file shall I choose?

:happy:

User avatar
Jerry3904
Forum Veteran
Forum Veteran
Posts: 20117
Joined: Wed Jul 19, 2006 6:13 am

Re: How to add XF86-eject to the keyboard settings

#2 Postby Jerry3904 » Wed May 24, 2017 9:51 am

You can use the Keyboard -- Application shortcuts: click on the "+" sign, then paste in this code with the first dialog box:

Code: Select all

eject cdrom
Then use whatever keystroke combo you want (e.g., Ctrl-E) to activate it. Works here.

Note that it will be more complicated if you have more than one cdrom.
Production: 4.7.0-0.bpo.1-amd64, MX-15 RC1, AMD FX-4130 Quad-Core, GeForce GT 630/PCIe/SSE2, 8 GB, Kingston SSD 120 GB and WesternDigital 1TB
Testing: AAO 722: 3.16-0-4-686-pae. MX-15, AMD C-60 APU, 4 GB

User avatar
tianlan
Forum Novice
Forum  Novice
Posts: 16
Joined: Wed Apr 26, 2017 11:53 pm

Re: How to add XF86-eject to the keyboard settings

#3 Postby tianlan » Wed May 24, 2017 10:33 am

Hi Jerry3904,
thanks for the swift answer. It is now possible to eject discs via some keys or key combinations.

I did as you suggested, inserted 'eject cdrom' into the box for the command - clicked the 'OK' box. When prompted I tried to use the 'eject key' red between F 12 and 'Insert", but that is not recognized.
Other keys/ key combinations like: Ctrl R, Alt R, Shift+E, Alt L, Fn+F6, Fn+F7 are accepted and are ejecting a CD when pressed. But I need most for typing, editing or other operations. Thus keys like Ctrl and Alt are not useful. For now I chose Fn+F6.

If the question below could be answered that would be great. If not, then I am and will be happy with the present solution.

Is it possible to enable the designated eject key and if how?

User avatar
Jerry3904
Forum Veteran
Forum Veteran
Posts: 20117
Joined: Wed Jul 19, 2006 6:13 am

Re: How to add XF86-eject to the keyboard settings

#4 Postby Jerry3904 » Wed May 24, 2017 11:26 am

How did you identify your keyboard in Keyboard > Layout, Keyboard Model pull-down menu? There are many Dell configs in that menu, and you could go through them one at a time to see if any worked better.
Production: 4.7.0-0.bpo.1-amd64, MX-15 RC1, AMD FX-4130 Quad-Core, GeForce GT 630/PCIe/SSE2, 8 GB, Kingston SSD 120 GB and WesternDigital 1TB
Testing: AAO 722: 3.16-0-4-686-pae. MX-15, AMD C-60 APU, 4 GB

User avatar
tianlan
Forum Novice
Forum  Novice
Posts: 16
Joined: Wed Apr 26, 2017 11:53 pm

Re: How to add XF86-eject to the keyboard settings

#5 Postby tianlan » Wed May 24, 2017 11:40 am

How did you identify your keyboard in Keyboard > Layout, Keyboard Model pull-down menu?


It is the system default set up. Now I will go to bed and tomorrow I will have a look at the layouts.
Have a good evening - good night

User avatar
tianlan
Forum Novice
Forum  Novice
Posts: 16
Joined: Wed Apr 26, 2017 11:53 pm

Re: How to add XF86-eject to the keyboard settings

#6 Postby tianlan » Thu May 25, 2017 9:27 pm

I had a look at
Keyboard > Layout, Keyboard Model pull-down menu
I tried all the dell keyboard models from the list. But none of them recognized the eject key.

I would need something for
Manufacturer Part# : CPK70 | Dell Part# : CPK70

PS My priority for solving this is low. Fn+F6 is ejecting discs.


Return to “Forum How-to's”

Who is online

Users browsing this forum: No registered users and 1 guest