View previous topic :: View next topic |
Author |
Message |
pd1986 Guru
Joined: 19 Feb 2012 Posts: 404 Location: Paris
|
Posted: Thu Oct 11, 2012 6:59 pm Post subject: how to make system recognize all my Fn key bindings |
|
|
In my system, only these key bindings with Fn could work. They are Fn, F3, F4, F6, F7, F11, even in terminal. They work perfectly.
but xev, it can recognize a little more, such as Fn+F1, F10, F12. How could I make those keys work, not only in desktop, but also in terminal? For example, pressing Fn+F1 will make the system locked in Windows.
Also there are other key binding that the system doesn't know. They are Fn+F8, F9 which works for toggle the wifi and touchpad. How could I make system know these?
Thanks. |
|
Back to top |
|
|
piotraf n00b
Joined: 01 Apr 2003 Posts: 43 Location: Łódź - Poland
|
|
Back to top |
|
|
pd1986 Guru
Joined: 19 Feb 2012 Posts: 404 Location: Paris
|
Posted: Fri Oct 19, 2012 1:27 pm Post subject: |
|
|
Thanks, I've tried xev and keytouch. But the problem is, they can only recognize some the key bindings, not all. for example, if I press Fn+F1, I could get the keycode from xev like "keycode 170" (just an example, not truely this number). but when I press Fn+F2, nothing happens, returns returns. So I could set functions to key bindings in Xmodmap. |
|
Back to top |
|
|
pd1986 Guru
Joined: 19 Feb 2012 Posts: 404 Location: Paris
|
Posted: Fri Oct 19, 2012 1:28 pm Post subject: |
|
|
And, they don't return me any information when I press only Fn. |
|
Back to top |
|
|
jrussia Tux's lil' helper
Joined: 29 Aug 2012 Posts: 89 Location: Chicago
|
Posted: Fri Oct 19, 2012 6:25 pm Post subject: |
|
|
You can use 'showkey' to see if the system (not just Xorg) is mapping the keys. I think there is also a message in dmesg for using setkeycodes to map keys that are unmapped. Once they are mapped systemwide, you can use xmodmap to configure what they do in Xorg.
http://www.gentoo-wiki.info/HOWTO_Use_Multimedia_Keys#Setting_up_xmodmap |
|
Back to top |
|
|
pd1986 Guru
Joined: 19 Feb 2012 Posts: 404 Location: Paris
|
Posted: Fri Oct 19, 2012 10:10 pm Post subject: |
|
|
Yes I tried. Nothing returns from showkey, even run it in terminal with root account |
|
Back to top |
|
|
jrussia Tux's lil' helper
Joined: 29 Aug 2012 Posts: 89 Location: Chicago
|
Posted: Fri Oct 19, 2012 10:47 pm Post subject: |
|
|
You might also check the kernel in Device Drivers->X86 Platform Specific Device Drivers for support for your system. |
|
Back to top |
|
|
pd1986 Guru
Joined: 19 Feb 2012 Posts: 404 Location: Paris
|
Posted: Fri Oct 19, 2012 11:55 pm Post subject: |
|
|
jrussia wrote: | You might also check the kernel in Device Drivers->X86 Platform Specific Device Drivers for support for your system. |
Oh, in that, I choose only Toshiba Bluetooth RFKill switch support, since my laptop is Toshiba. While no other option relates to toshiba in that |
|
Back to top |
|
|
jrussia Tux's lil' helper
Joined: 29 Aug 2012 Posts: 89 Location: Chicago
|
Posted: Sat Oct 20, 2012 12:42 am Post subject: |
|
|
There's also Toshiba Laptop Extras (ACPI_TOSHIBA) in the same menu. If you search for it you will see the list of DEPENDS (kind of a long list.)
On the other hand, I don't know if this will help. Did you try
1) press the key combination
2) check 'dmesg tail'
3) does it have an error about the key press? |
|
Back to top |
|
|
dmpogo Advocate
Joined: 02 Sep 2004 Posts: 3267 Location: Canada
|
Posted: Sat Oct 20, 2012 6:50 am Post subject: |
|
|
Some Fn key may not generate keystroke, but ACPI events. Use acpi_listen to see what they do. And compile right additional ACPI driver for your laptop
(TOSHIBA_LAPTOP_EXTRAS in your case) - it is almost certainly needed for proper ACPI mapptings !
Once ACPI codes are confirmed to be generated, your desktop environment will probably pick them up, or you can run acpid and write your own small scripts to handle these events |
|
Back to top |
|
|
pd1986 Guru
Joined: 19 Feb 2012 Posts: 404 Location: Paris
|
Posted: Sat Oct 20, 2012 7:51 am Post subject: |
|
|
dmpogo wrote: | Some Fn key may not generate keystroke, but ACPI events. Use acpi_listen to see what they do. And compile right additional ACPI driver for your laptop
(TOSHIBA_LAPTOP_EXTRAS in your case) - it is almost certainly needed for proper ACPI mapptings !
Once ACPI codes are confirmed to be generated, your desktop environment will probably pick them up, or you can run acpid and write your own small scripts to handle these events |
Thanks for pointing it out. However, I think the keystroke about ACPI is mostly done, as those to control the brightness, to make the system suspend or hibernate work already. Those who don't work are to toggle the wifi, touchpad, etc. These keystrokes need to be done by acpi_listen? |
|
Back to top |
|
|
|