Keyboard remapping - scancodes/keycodes and Fn key

Hello,
I'm using Archlinux on a MacBook Pro and I'm overall pretty happy.
However I desperately want to swap my Fn and Control keys. I know that this is a tricky business but I also know that this can be done in OS X via a kext module, so I hope it can be done in Linux as well.
The output of showkey prints when I press Fn:
keycode 464 press
keycode 464 release
showkey -s however prints nothing when I press just Fn.
Here's the output of evtest:
Event: time 1396031474.937906, -------------- SYN_REPORT ------------
Event: time 1396031475.169971, type 1 (EV_KEY), code 464 (KEY_FN), value 1
It does not print an EV_MSC line as the Control key does:
Event: time 1396031475.561965, -------------- SYN_REPORT ------------
Event: time 1396031475.729966, type 4 (EV_MSC), code 4 (MSC_SCAN), value 700e0
Event: time 1396031475.729966, type 1 (EV_KEY), code 29 (KEY_LEFTCTRL), value 1
So, it looks like my plan to remap the keys using scancodes (via setkeycodes) will not work. Remapping via loadkeys (keycode 464 = Control) also does not work - the Fn+<letter> combination is treated as if just the letter has been pressed.
I will appreciate any kind of help as I am pretty stuck at this point.
Thanks!
P.S.: Sorry if the topic is in the wrong forum.

I do not have a Thinkvantage folder in Control Panel.
I was unable to find any reference on Lenovo's site for the T500 for keyboard customization.
I  took you original advice, before editing, and installed the Keyboard customizer for the T400.  This works as expected for the T500.  I looked through the programs supplied by Lenovo for the T500 and could not find any program for the keyboard on my system. 
I have removed some of the less than useful Lenovo configuration and control programs maybe that is the reason for the missing Control Panel folder.  Many seem to be slow to get things right and often get things wrong, but that is another thread.  I do not understand why IBM and now Lenovo keep making programs that are redundant with small gain relative to standard Windows features.  I have found the WiFi and Wired networking particularly difficult to get working smoothly.  The only solution is to turn off the WiFi.
Now if you have a reason for 4 displays, 2 ATi, and 2 Intel Mobile in the windows display confguration panel on my system I will be forever grateful.
Anyway thank you for you help in finding a solution to my external keyboard customization problem.

Similar Messages

  • Apple wired extended keyboard on Vista, windows and alt key

    I've got a pair of these beautiful, slim, keyboards that I use under Vista...they are wired units.
    The Windows and Alt key are flipped. How can I get the into a windows layout instead of a mac layout?
    I downloaded the MS layout editor but it won't let me edit the alt key.
    Pls help,
    Tonyloveshisquitekeyboards

    You can use a program call SharpKeys (http://www.randyrants.com/sharpkeys/) to edit the keys.

  • Mac Mini w/ Apple USB keyboard - question about home and end keys

    I purchased a USB white Apple keyboard to go with my Mac mini.
    My question concerns the home and end keys. When I put the cusor focus in a text field or text area, I would expect that hitting the home key would take me to the beginning of the line and hitting the end key would take me to the end of the line.
    That's not the case?
    If a vertical scrollbar is used in the window, then the home key takes me to the top of the window and the end key takes me to the bottom of the window.
    Please forgive me, I've been on a PC for the last 10+ years, so I thought I should ask.
    What key or key combo moves you to the start and end of a text in a text field or text area?
    Thanks,

    923/3369
    Hi Todd,
    Use the arrow keys with the command key (⌘):
    command + left arrow -> beginning of the line
    command + right arrow -> end of the line
    command + arrow up -> beginning of the text
    command + arrow down -> end of the text
    Explore also the option key (⌥) possibilities, with the arrow keys:
    very handy too.
    Yes, the Home, End, Pageup and Pagedown keys are for controlling the whole document, not the text itself.
    HTH
    Axl

  • Remap the F5 and F6 keys as delete keys?

    Because I make typing mistakes frequently, I use the delete key a lot. Whenever I do I crunch my wrist on its right side. I'd like to improve my ergonomics by using the F5 and F6 keys to delete. They're not used for anything else in most applications I use, and they won't cause me to bend my wrist constantly. Is there some way to get under the hood to do that?

    You may have considered this option already, but a good macro-creating program (e.g. QuicKeys) can do what you describe (and lots more). The only question is whether it's worth the price ($80 to a new user). But QuicKeys can be used to replace so many hand actions--in many cases including clicks--that it likely will help you in ways besides the one you mention.
    As just one example, I made a QuicKeys macro that lets me do the following: Use the mouse to put the insertion point over a word, then (with my other hand) press the tilde-accent mark key (immediately under the "esc" key in the upper-left corner of the keyboard), for which I have no other use. The word that I picked out is instantly selected and deleted--without a single mouse click. As an editor, I use that macro all the time. Other macros can be written to make screens scroll (or jump a page at a time); save files to specified folders or drives; and do many other actions that normally require using the mouse and clicking, dragging, etc.--in each case by simply pressing one or two keys. (The keys in the numeric keypad are good for scrolling or jumping a page at a time, unless you often use them to enter numbers.)

  • Remapping of PageDown and PageUp keys

    I've tried to remap PageDown and PageUp keys with Oracle
    Terminal (OT60) but i've get this error:
    Resource Name: windows-sqlforms Type: bindings.
    Error while parsing the binding string
    "PAGEDOWN"
    of an entry in component "normal".
    Failed to parse token "PAGEDOWN".
    Can anybody help me?
    Thank
    Marco
    null

    Marco Nicolazzo (guest) wrote:
    : I've tried to remap PageDown and PageUp keys with Oracle
    : Terminal (OT60) but i've get this error:
    : Resource Name: windows-sqlforms Type: bindings.
    : Error while parsing the binding string
    : "PAGEDOWN"
    : of an entry in component "normal".
    : Failed to parse token "PAGEDOWN".
    : Can anybody help me?
    : Thank
    : Marco
    Try to use "PgDown" and "PgUp".
    null

  • [Solved]Keyboard layout screwed up and some keys don't work

    After I reinstalled xorg-server 1.5.3-1 and installed xf86-input-evdev 2.0.1-1 and xf86-input-keyboard 1.3.1-1 some of my keys don't work and keyboard layout screwed up. I had finnish (fi) layout, but now it's "us". Arrows, insert- delete- home- end- pg up- pg down- print screen- scroll lock- pause- keys don't work. All characters behind Alt Gr + "" don't work either.
    How to fix this?
    Last edited by Sotamarsu (2008-11-08 13:57:25)

    brother fixed it with next code
    <?xml version="1.0" encoding="UTF-8"?>
    <deviceinfo version="0.2">
    <device>
    <!--
    <match key="info.capabilities" contains="input.keys">
    <append key="info.callouts.add" type="strlist">hal-setup-keymap</append>
    </match>
    -->
    <match key="info.capabilities" contains="input.keys">
    <!-- <merge key="input.xkb.model" type="string">pc104</merge> -->
    <!-- <merge key="input.xkb.rules" type="string">evdev</merge> -->
    <merge key="input.x11_options.XkbRules" type="string">base</merge>
    <merge key="input.x11_options.XkbModel" type="string">evdev</merge>
    <merge key="input.x11_options.XkbLayout" type="string">fi</merge>
    <append key="input.x11_options.XkbOptions" type="strlist">altwin:menu</append>
    <!--
    <merge key="input.xkb.layout" type="string">fi</merge>
    <append key="input.xkb.options" type="strlist">altwin:menu</append>
    -->
    </match>
    </device>
    </deviceinfo>
    Last edited by Sotamarsu (2008-11-08 13:59:18)

  • I need a virtual keyboard like the keyboard dock (with numbers and cursor keys) to work properly. Someone know if is it possible? s as an option in my ipad

    Why Apple not have a virutal keyboard for the iPad equal at the keyboard dock as option? For my is more easy work whith the same virtual keyboard in the iPad like my Mac.

    Hi czigrand,
    Thanks for visiting Apple Support Communities.
    Currently, you can gift dollar amounts or individual items (EG. songs) on the iTunes Store. See this article for more information:
    In the iTunes Store, you can gift a dollar amount or specific music, movies, TV shows, or apps from your iPhone, iPod touch, iPad, Mac, or PC. Follow these steps to send a gift from the iTunes Store.
    iTunes: Sending iTunes Gifts
    http://support.apple.com/kb/HT2736
    Best Regards,
    Jeremy

  • Zxc and command key not working on apple keyboard

    Hi, I'm having issues with certain areas on my Apple keyboard, specifically the zxc and command keys on my keyboard. I have to keep copying and pasting those letters. No spills, no drops, no known reasons for what may cause damage. Any help appre_iated. Thank you in advan_e.

    Does it happen with another KB?
    If only this KB then the is either dirty or faulty. Maybe this will help
    http://theminiblog.co.uk/archives/2006/11/16/how-to-cleaning-the-apple-keyboard/

  • Switch the function and control keys

    Sounds like a stupid request but my life would be much simpler if my Lenova T540p keyboard had the function and control keys switched. I use the control key ALOT and having it to the far left hand lower corner would be awesome.
    Thank you.
    R

    Hey there Redrabbit,
    Try your BIOS. For me (Thinkpad T540p), it's in Config>Keyboard/Mouse>Switch FN and CTRL keys.

  • Remap volume and eject keys on aluminum keyboard?

    Is there a way to remap the volume, mute and eject keys on the Apple
    (wired) aluminum keyboard?
    I'd rather have them above the keypad if that's possible - like they
    were on previous Apple keyboards.

    Something vaguely relevant from MacFixit:
    "Friday, March 03 2006 @ 02:46 PM PST
    Mac OS X 10.4.5 Special Report: Keyboard/Mouse issues
    Some users are reporting issues with specific input devices -- generally third-party keyboards -- after the update to Mac OS X 10.4.5.
    One reader writes:
    "After updating my iMac Core Duo to 10.4.5, the scroll function of the blue, middle button on my IBM SpaceSaver USB keyboard (with integrated trackpoint pointing device) no longer works. I had been using USB OverDrive 10.4.4 to gain this feature."
    Re-installing combo updater The versatile workaround of re-installing the Mac OS X combo updater (PowerPC, (Intel) works to resolve a number of odd keyboard and mouse issues occurring after the update, including inversion of mouse buttons. "
    http://www.apple.com/support/downloads/macosxupdate1045combo.html

  • How to remap the PrtScr, Scroll Lock and Pause keys on a PC keyboard?

    This has been bothering me for a long time, I've bought a Cherry's Standard PC Keyboard G80-3000 (forgive to abandoned Apple's USB keyboard) two months ago. It's all good except one thing: THERE IS NO VOLUME CONTROL FUNCTION KEYS ON THIS KEYBOARD!!
    The PreScr key act as F13 and the other two are totally dead! Is there any way I can remap those three to: Increase Volume, Decrease Volume and Mute keys?
    Or any software can create the shortcuts for volume up and down?
    Is it possible or I've been punished?
    SOS!!!

    There are at least a couple of utilities, namely uControl and DoubleCommand, that do part of what you need (key mapping).
    In addition, if you do not worry about XML, you may directly remap your keys following directions you can find here: http://www.hcs.harvard.edu/~jrus/Site/Cocoa%20Text%20System.html

  • Keyboard has some keycodes without scancodes

    Using a Logitech MK300 USB wireless keyboard and Arch x86_64. I want to map the multimedia keys. Mostly successful, but amazingly enough a few of these keys have keycodes without scancodes, so even if I map the keycode to a keysym in my .Xmodmap it does not work for the few keys that do not have scancodes. From my reading anything without a scancode cannot be used as the kernel basically cannot see the keystroke (but why does it see a keycode then???). I don't see the scancodes in dmesg either.
    Any ideas appreciated.
    Update: http://bbs.archlinux.org/viewtopic.php?id=76328
    It seems possibly that keycodes above 255 don't have scancodes??? Is this correct and anyone yet found a way around this??
    2nd Update: https://bugs.launchpad.net/linux/+bug/313514
    Seems like it is definitely an X and evdev bug, and there might be a workaround as posted at the bottom of that bug report. I will report back if I have any luck trying the workarounds....
    Last edited by lagagnon (2010-05-29 05:59:22)

    dumpkey -i
    will give you the answer about 256 keycodes.
    Also, this part of man showkey may be useful for you. It explains missing scancodes:
    In 2.6 kernels key codes lie in the range 1-255, instead of 1-127.
    Key codes larger than 127 are returned as three bytes of which the
    low order 7 bits are: zero, bits 13-7, and bits 6-0 of the key code.
    The high order bits are: 0/1 for make/break, 1, 1.
    In 2.6 kernels raw mode, or scancode mode, is not very raw at all.
    Scan codes are first translated to key codes, and when scancodes
    are desired, the key codes are translated back. Various transformations
    are involved, and there is no guarantee at all that the final result
    corresponds to what the keyboard hardware did send. So, if you want
    to know the scan codes sent by various keys it is better to boot a
    2.4 kernel. Since 2.6.9 there also is the boot option atkbd.softraw=0
    that tells the 2.6 kernel to return the actual scan codes.
    Last edited by Coacher (2010-05-29 13:53:11)

  • Option and Command Key Swapped on Built-in Keyboard

    My option and command keys are swapped on the built in keyboard. They work fine with a external USB keyboard. I have checked that the keyboard & mouse > modifier keys preference and they aren't remapped in there. In fact, changing the mapping in there has no affect on the command and option keys.
    Any suggestions? Is there a plist file that I can trash?
    Thanks

    I was finally able to fix this by plugging in my non-Apple external keyboard. Once I did this, a drop down menu appeared in the modifier keys window that let me select the internal MacBook keyboard and fix the mapping issue.

  • I need an option to remap reprogram or swap the ctrl and function keys on my laptop

    Open letter to Lenovo
    How many Lenovo laptop users does it take to get a change or option added to remap, reassign, reprogram or swap the two keys on the lower left of the keybards with each other? 
    The number one question I'm asked (and the first question I asked of a lenovo laptop user) was how long did it take to get used to the function key being in the wrong place on the keyboard?  I did a search on the web and found a number of threads that discussed and talked about if it were possible to switch those two keys on the keyboard such as this: http://www.ashbaughonline.com/2006/08/12/thinkpad-fn-ctrl-key/   The point being is there are many lenovo laptop users that would love to have the option at least of swapping the function and ctrl key location on the keyboard and we wouldn't even complain that the key names were wrong afterwards if it were made available in some BIOS or other configuration setting.
    Lenovo, how many users would need to ask for this option to make it happen?
    Please add me to those who would like to see this happen and to anyone else please reply and chime in.

    I have the same problem, and I really can't understand why do they do such things! I even can't get a normal answer from Lenovo about it. I like Thinkpads, they are great designed & they have a lot of unique features, most of them could be customized, exept this! Why??? I can't belive that it's so hard to remap 2 buttons using BIOS! The problem is that the FN key doesn't generate a scan code, which could be recognized by the software, i tried numerous programs to remap the FN button, but it's useless. You can do it only in 2 ways: 1. mechanical - to swap them fisically, but it's hard, dangerous & the warranty will be lost of course. 2. BIOS remapping which can be done only by Lenovo or maybe by somobody, who can hack the BIOS. So, Dear Lenovo Experts PLEASE do this feature for us, we REALLY neeed it! We need it much more than "keyboard customizer", more than "easy eject", more than "media center" becouse we use the left CTRL button every minute, working on your notebook!

  • Remapped Alt and Option keys

    My Logitech wireless keyboard has somehow had the ALT and OPTION keys swapped inadvertently. Anyone know how to remap to baseline?
    G5 dual 1.8   Mac OS X (10.4.6)   Logitech wireless keyboard and mouse

    Keyboard & Mouse preferences pane in System Preferences. Keyboard tab. Click on Modifier Keys... button. Change it there.

Maybe you are looking for

  • Function Module to know the Acc doc no for a Material document.

    Dear Friends, What is the Function Module to know the Acc doc no for a Material document? Please help. Thanks in advance. Regards, RAMAN

  • Get booted out as applets load

    i got a new error message yesterday....it says applets in this html page require a version of java different from the one the browser is currently using: in order to run the applets in the html page, a new browser session is required..press yes to st

  • What do I need to know about fonts?

    Can anyone explain what I need to know about using fonts on a MacBook Pro running Leopard, or point me to a good reference or tutorial? I've never paid much attention to fonts in the past, as I only use a few in print (Arial, Verdana, Times New Roman

  • How to erase hardrive during reboot to restore to factory settings?

    How to erase hardrive during reboot to restore to factory settings?

  • Webcam Video Capture/Drivers

    I can't find any built-in software (eg. Windows Movie Maker) for recording video from the webcam. XP has WMM but Win7 does not? Microsoft states that the Windows Live Movie Maker beta supports importing live video from connected video capture devices