Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
how to make system recognize all my Fn key bindings
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
pd1986
Guru
Guru


Joined: 19 Feb 2012
Posts: 404
Location: Paris

PostPosted: Thu Oct 11, 2012 6:59 pm    Post subject: how to make system recognize all my Fn key bindings Reply with quote

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
View user's profile Send private message
piotraf
n00b
n00b


Joined: 01 Apr 2003
Posts: 43
Location: Łódź - Poland

PostPosted: Fri Oct 19, 2012 10:19 am    Post subject: Reply with quote

Maybe this will help http://en.gentoo-wiki.com/wiki/Multimedia_Keys
_________________
best regards/ pozdrawiam
PiotrAF
Back to top
View user's profile Send private message
pd1986
Guru
Guru


Joined: 19 Feb 2012
Posts: 404
Location: Paris

PostPosted: Fri Oct 19, 2012 1:27 pm    Post subject: Reply with quote

piotraf wrote:
Maybe this will help http://en.gentoo-wiki.com/wiki/Multimedia_Keys


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
View user's profile Send private message
pd1986
Guru
Guru


Joined: 19 Feb 2012
Posts: 404
Location: Paris

PostPosted: Fri Oct 19, 2012 1:28 pm    Post subject: Reply with quote

And, they don't return me any information when I press only Fn.
Back to top
View user's profile Send private message
jrussia
Tux's lil' helper
Tux's lil' helper


Joined: 29 Aug 2012
Posts: 89
Location: Chicago

PostPosted: Fri Oct 19, 2012 6:25 pm    Post subject: Reply with quote

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
View user's profile Send private message
pd1986
Guru
Guru


Joined: 19 Feb 2012
Posts: 404
Location: Paris

PostPosted: Fri Oct 19, 2012 10:10 pm    Post subject: Reply with quote

jrussia wrote:
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


Yes I tried. Nothing returns from showkey, even run it in terminal with root account
Back to top
View user's profile Send private message
jrussia
Tux's lil' helper
Tux's lil' helper


Joined: 29 Aug 2012
Posts: 89
Location: Chicago

PostPosted: Fri Oct 19, 2012 10:47 pm    Post subject: Reply with quote

You might also check the kernel in Device Drivers->X86 Platform Specific Device Drivers for support for your system.
Back to top
View user's profile Send private message
pd1986
Guru
Guru


Joined: 19 Feb 2012
Posts: 404
Location: Paris

PostPosted: Fri Oct 19, 2012 11:55 pm    Post subject: Reply with quote

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
View user's profile Send private message
jrussia
Tux's lil' helper
Tux's lil' helper


Joined: 29 Aug 2012
Posts: 89
Location: Chicago

PostPosted: Sat Oct 20, 2012 12:42 am    Post subject: Reply with quote

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
View user's profile Send private message
dmpogo
Advocate
Advocate


Joined: 02 Sep 2004
Posts: 3267
Location: Canada

PostPosted: Sat Oct 20, 2012 6:50 am    Post subject: Reply with quote

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
View user's profile Send private message
pd1986
Guru
Guru


Joined: 19 Feb 2012
Posts: 404
Location: Paris

PostPosted: Sat Oct 20, 2012 7:51 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum