Page 1 of 1

[solved] How to add XF86-eject to the keyboard settings

Posted: Wed May 24, 2017 9:41 am
by tianlan
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:

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

Posted: Wed May 24, 2017 9:51 am
by Jerry3904
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.

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

Posted: Wed May 24, 2017 10:33 am
by tianlan
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?

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

Posted: Wed May 24, 2017 11:26 am
by Jerry3904
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.

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

Posted: Wed May 24, 2017 11:40 am
by tianlan
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

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

Posted: Thu May 25, 2017 9:27 pm
by tianlan
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.

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

Posted: Thu Jan 25, 2018 10:10 am
by tianlan
After installing mx17 all Keys were working out of the box, except for the eject cdrom key. but that was easily enabled via the Keyboard -- Application shortcuts.
Thanks a lot, I will mark this thread as solved.