Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
mapping a key to the FN key
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
reup
Guru
Guru


Joined: 13 May 2005
Posts: 419
Location: Nederland

PostPosted: Tue Nov 06, 2007 9:53 am    Post subject: mapping a key to the FN key Reply with quote

hello all,

I have a laptop fujitsu-siemens lifebook with Gentoo 2007 on it

I am looking for a way to use the FN key on a external keyboard that does not have the FN key

on the laptop, the fn key works perfectly well, but I have to plug the laptop away from my desk and everytime I need to use the FN key, I need to go to the laptop to do it, I would prefer to do it from my external keyboard

sure, I need the exercise, but I like linux so much that I don't want to spend to much time away from it

I try the xev program but when it runs and I press the FN key, nothing is shown

all info I found point at the FN key been define in the BIOS, but not only am I lazy, I am also curious, and I bet that someone, somewhere, has made a piece of code that help map the key to somewhere else

thanks
_________________
reup

"Don't wiggle the tail of the frog in the oil of the frying peanuts"
Back to top
View user's profile Send private message
Zarhan
Veteran
Veteran


Joined: 27 Feb 2004
Posts: 1016

PostPosted: Tue Nov 06, 2007 11:31 am    Post subject: Reply with quote

Fn is not a "key" as such - it's really an internal toggle-switch that makes rest of the keyboard behave outside normal keyboard interface. You cannot "map" Fn directly to some key, but you might be able to emulate the functionality - for example, just map some other keys to do suspend, changing of volume and so on.
Back to top
View user's profile Send private message
Hwoarang
Retired Dev
Retired Dev


Joined: 24 Feb 2007
Posts: 701
Location: Leeds, UK

PostPosted: Tue Nov 06, 2007 11:43 am    Post subject: Reply with quote

xbindkeyes might be a usefull program to use (i havent tested xbindkeys with FN switch thought )
Back to top
View user's profile Send private message
reup
Guru
Guru


Joined: 13 May 2005
Posts: 419
Location: Nederland

PostPosted: Tue Nov 06, 2007 12:07 pm    Post subject: Reply with quote

Zarhan,

I dont think I can do this one, as I want to use it to switch from one display to another. as I said, I am lazy and I am looking for a way to NOT fix my xorg.conf. when I am under X on my external screen and I press CTRL-ALT-F1 to go to the first console, my laptop/linux switch to the laptop display and I have to go to the laptop to press FN-F10 to go back to the external display

I am sure that I can fix this particular behavior in the xorg.conf or somewhere else, but it got me interested in mapping the FN key



Hwoarang,

thanks for the tip, I am trying xbindkeys now and will post the result. I think that Zarhan is right and that I can map some of the FN function to something else, but probably not the switch of monitor as it is HW issue
_________________
reup

"Don't wiggle the tail of the frog in the oil of the frying peanuts"
Back to top
View user's profile Send private message
Zarhan
Veteran
Veteran


Joined: 27 Feb 2004
Posts: 1016

PostPosted: Tue Nov 06, 2007 1:53 pm    Post subject: Reply with quote

reup wrote:
Zarhan,

I dont think I can do this one, as I want to use it to switch from one display to another. as I said, I am lazy and I am looking for a way to NOT fix my xorg.conf. when I am under X on my external screen and I press CTRL-ALT-F1 to go to the first console, my laptop/linux switch to the laptop display and I have to go to the laptop to press FN-F10 to go back to the external display


Check if Fujitsu has any nice stuff under /proc/acpi. On Thinkpads it's easy, just do "echo crt_enable > /proc/acpi/ibm/video". Maybe Fujitsus have similar interface, either in sysfs or /proc/acpi.
Back to top
View user's profile Send private message
reup
Guru
Guru


Joined: 13 May 2005
Posts: 419
Location: Nederland

PostPosted: Tue Nov 06, 2007 6:53 pm    Post subject: Reply with quote

unfortunately there is nothing in /proc/acpi except the classic close_lid and power button. not even FAN

and the xbindkeys soft does not understand/see the FN key

ok, ok, I get it, I will have to loose fat (or fix my problem from another angle)

thanks anyway for the quick answers
_________________
reup

"Don't wiggle the tail of the frog in the oil of the frying peanuts"
Back to top
View user's profile Send private message
coolsnowmen
Veteran
Veteran


Joined: 30 Jun 2004
Posts: 1479
Location: No.VA

PostPosted: Wed Nov 07, 2007 4:00 pm    Post subject: Reply with quote

use xbindkeys to run the program "chvt 1"
that will mimic the ctrl-alt-F1 key combination

note: as far as I know, this is the easiest way because the ctrl-alt-f1 is trapped in the kernel, much lower than other key combinations.
_________________
emerge: there are no ebuilds to satisfy "moo"
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