Hi, this is my first post on this forum, but I hope other will come ;-)
Shortly : I got a smartbook EFIKA. It works perfectly well and I'm very satisfied (I'll start coding very soon with it)
... excepted a little issue : Midnight Commander shortcuts ( F2, F3, F4 ... F10 ) are not directly available, but need to hit Fn key, and that's very painfull.
In this post, I propose a hack (this is only a hack) to invert the F1, F2 ... F11 behavior.
Expected :
Hit F1 -> Open the help
Hit Fn + F1 -> mute audio
Hit F2 -> Save a modified file in Midnight Commander (as example)
Hit Fn + F2 -> decrease volume
...
Hit F11 -> toggle fullscreen window (when possible)
Hit Fn + F11 -> Opens the defaulted web browser
Warning : F10 still does not work. Work in progress.
The hack :
create your own .Xmodmap # the case is important
xmodmap -pke > ~/.Xmodmap
Make the following modifications in the new .Xmodmap ( available as .diff here
http://ftp.educoo.org/home/ericb/efika/xmodmap.diff ) using your favorite editor !
IMPORTANT : - (minus) means before, + (plus) means after the change
-keycode 67 = F1 XF86_Switch_VT_1 F1 XF86_Switch_VT_1
-keycode 68 = F2 XF86_Switch_VT_2 F2 XF86_Switch_VT_2
-keycode 69 = F3 XF86_Switch_VT_3 F3 XF86_Switch_VT_3
-keycode 70 = F4 XF86_Switch_VT_4 F4 XF86_Switch_VT_4
-keycode 71 = F5 XF86_Switch_VT_5 F5 XF86_Switch_VT_5
-keycode 72 = F6 XF86_Switch_VT_6 F6 XF86_Switch_VT_6
-keycode 73 = F7 XF86_Switch_VT_7 F7 XF86_Switch_VT_7
-keycode 74 = F8 XF86_Switch_VT_8 F8 XF86_Switch_VT_8
-keycode 75 = F9 XF86_Switch_VT_9 F9 XF86_Switch_VT_9
+keycode 67 = XF86AudioMute XF86_Switch_VT_1 XF86AudioMute XF86_Switch_VT_1
+keycode 68 = XF86AudioLowerVolume XF86_Switch_VT_2 XF86AudioLowerVolume XF86_Switch_VT_2
+keycode 69 = XF86AudioRaiseVolume XF86_Switch_VT_3 XF86AudioRaiseVolume XF86_Switch_VT_3
+keycode 70 = XF86AudioPrev XF86_Switch_VT_4 XF86AudioPrev XF86_Switch_VT_4
+keycode 71 = XF86AudioPlay XF86_Switch_VT_5 XF86AudioPlay XF86_Switch_VT_5
+keycode 72 = XF86AudioStop XF86_Switch_VT_6 XF86AudioStop XF86_Switch_VT_6
+keycode 73 = XF86AudioNext XF86_Switch_VT_7 XF86AudioNext XF86_Switch_VT_7
+keycode 74 = XF86MonBrightnessDown XF86_Switch_VT_8 XF86MonBrightnessDown XF86_Switch_VT_8
+keycode 75 = XF86MonBrightnessUp XF86_Switch_VT_9 XF86MonBrightnessUp
-keycode 95 = F11 XF86_Switch_VT_11 F11 XF86_Switch_VT_11
+keycode 95 = XF86WWW XF86_Switch_VT_11 XF86WWW XF86_Switch_VT_11
-keycode 121 = XF86AudioMute NoSymbol XF86AudioMute
-keycode 122 = XF86AudioLowerVolume NoSymbol XF86AudioLowerVolume
-keycode 123 = XF86AudioRaiseVolume NoSymbol XF86AudioRaiseVolume
+keycode 121 = F1 NoSymbol F2
+keycode 122 = F2 NoSymbol F2
+keycode 123 = F3 NoSymbol F3
-keycode 158 = XF86WWW NoSymbol XF86WWW
+keycode 158 = F11 NoSymbol F11
-keycode 171 = XF86AudioNext NoSymbol XF86AudioNext
-keycode 172 = XF86AudioPlay XF86AudioPause XF86AudioPlay XF86AudioPause
-keycode 173 = XF86AudioPrev NoSymbol XF86AudioPrev
-keycode 174 = XF86AudioStop XF86Eject XF86AudioStop XF86Eject
+keycode 171 = F7 NoSymbol F7
+keycode 172 = F5 XF86AudioPause F5 XF86AudioPause
+keycode 173 = F4 NoSymbol F4
+keycode 174 = F6 XF86Eject F6 XF86Eject
-keycode 232 = XF86MonBrightnessDown NoSymbol XF86MonBrightnessDown
-keycode 233 = XF86MonBrightnessUp NoSymbol XF86MonBrightnessUp
+keycode 232 = F8 NoSymbol F8
+keycode 233 = F9 NoSymbol F9
To validate the changes, do :
xmodmap ~/.Xmodmap
And if there is no typo, or wrong name introduced, it should work. If not, try to close the session, and relog yourself.
Thanks in advance for any feedback, and correction (what I propose can be plain wrong, so please be gentle ;-)
Don't forget F10 is not solved ;-)
--
qɔᴉɹə