Scan code for hyper key

I bought a programmable keyboard recently for which I can program the hardware scan code of each key. I would like to have a key that is recognized in X using the default xkb rules as the hyper key, but I can't figure out for the life of me how xkb translates hardware scan codes into "keycodes" which are then mapped to symbols in the /usr/share/X11/xkb/keycodes files. Basically, if someone can tell me how X goes from hardware scan codes to keycodes, or just what the scan code is for hyper in the default X keyboard config, I would appreciate it immensely.

Thanks for the replies, everyone. So after seeing this thing about setkeycodes, I thought that maybe there was also a getkeycodes, and surely enough there was. Running it gets you a table like this:
Plain scancodes xx (hex) versus keycodes (dec)
for 1-83 (0x01-0x53) scancode equals keycode
0x50: 80 81 82 83 99 0 86 87
0x58: 88 117 0 0 95 183 184 185
0x60: 0 0 0 0 0 0 0 0
0x68: 0 0 0 0 0 0 0 0
0x70: 93 0 0 89 0 0 85 91
0x78: 90 92 0 94 0 124 121 0
Escaped scancodes e0 xx (hex)
e0 00: 0 0 0 0 0 0 0 0
e0 08: 0 0 0 0 0 0 0 0
e0 10: 165 0 0 0 0 0 0 0
e0 18: 0 163 0 0 96 97 0 0
e0 20: 113 140 164 0 166 0 0 0
e0 28: 0 0 255 0 0 0 114 0
e0 30: 115 0 172 0 0 98 255 99
e0 38: 100 0 0 0 0 0 0 0
e0 40: 0 0 0 0 0 119 119 102
e0 48: 103 104 0 105 112 106 118 107
e0 50: 108 109 110 111 0 0 0 0
e0 58: 0 0 0 125 126 127 116 142
e0 60: 0 0 0 143 0 217 156 173
e0 68: 128 159 158 157 155 226 0 112
e0 70: 0 0 0 0 0 0 0 0
e0 78: 0 0 0 0 0 0 0 0
which shows that a scan code of e068 maps to 128, the keycode for Hyper, by default. Great, problem solved.
Unfortunately, when I fired up the keyboard programming software, it wouldn't let me assign a scan code of e068 to any keys, for some unexplained reason. Okay, so I use an unmapped scan code, 0x68,  that it does allow me to use. I figured I'd use setkeycodes to set 0x68 to map to 128. But now when I run showkey -s, the key that I thought I programmed to 0x68 gives 0xe078, with a keycode of 192, even though getkeycodes suggests that 0xe078 is unmapped. I even tried booting the kernel with the atkbd.softraw=0 parameter, to no avail. Furthermore, when I run xev in an X session, the keycode for the key in question now shows up as 249.
By this point, I had no idea what was going on anymore, so I just gave up and used xmodmap to set keycode 249 to Hyper_R. I now have a Hyper key, but I can only get it via a series of obscure commands, rather than something that works out of the box. Oh well.
If anyone can explain what was going on here, I'd still like to know, just out of curiosity.
Thanks again.

Similar Messages

  • Not Getting Key Code for ALT key

    Hi,
    I am having some trouble in getting key code for alt key. Can Any one help in it.
    I am sharing for source code the way I am trying to do it.
    import flash.events.KeyboardEvent;
    stage.addEventListener(KeyboardEvent.KEY_DOWN, function(e:KeyboardEvent){trace("Key== "+e.keyCode); txt.text=""+e.keyCode;});

    Hi Amanpreet,
    The code i posted was a working example to detect Alt + click. You can try pasting it in the Actions panel of a blank AS3 file, Test Movie, press Alt and Click on the blank area of Stage and see that the trace statement appears in Output panel.
    Flash does not return the keycode of Alt key directly but lets you detect if Alt was pressed or not using 'event.altKey'. This boolean property is available for both Keyboard and Mouse events.
    You can try another sample: (This will only work when you Test Movie on Browser)
    //Place a dynamic textbox named 'txtStatus' on stage to display the text.
    stage.addEventListener(KeyboardEvent.KEY_DOWN, keyHandler);
    function keyHandler(e:KeyboardEvent) {
           txtStatus.text = e.keyCode.toString(); 
           if(e.altKey)
                txtStatus.text = 'alt pressed';
    When you Test Movie in browser, you'll need to click on the Stage area once to set it in focus. Also make sure to embed your fonts or set 'use device fonts' Anti-alias setting to display the text correctly.
    -Nipun

  • Name and hash codes for Hyper-V Server 2012R2 RTM

    Hi,
    can some one please confirm the download from http://technet.microsoft.com/en-us/evalcenter/dn205299.aspx is the final RTM version ?
    File name: "9600.16384.WINBLUE_RTM.130821-1623_X64FRE_SERVERHYPERCORE_EN-US-IRM_SHV_X64FRE_EN-US_DV5.ISO"
    SHA1: "99829e03eb090251612673bf57c4d064049d067a"
    MD5: "9c9e0d82cb6301a4b88fd2f4c35caf80"
    I see different hashes, and filenames, for ISO downloaded from MSDN.
    Thank you in advance,
    Simone

    Yep. I got the same.
    File: 9600.16384.WINBLUE_RTM.130821-1623_X64FRE_SERVERHYPERCORE_EN-US-IRM_SHV_X64FRE_EN-US_DV5.ISO
    CRC-32: b3ef194e
    MD4: 22a4f13b6f6e86f35381aa60b2911ace
    MD5: 9c9e0d82cb6301a4b88fd2f4c35caf80
    SHA-1: 99829e03eb090251612673bf57c4d064049d067a
    It is usually redundant to include more than one state-of-the-art hash function, but why not...

  • Custom Keyboard Scan Code

    Hi 
      We have a custom keyboard with 20Keys . We need to implement a custom scan code for every keys . Has microsoft documented any custom keys so that OEMs or IHV can use for their requirement so that it doesnt conflict with the standard keyboard scan codes 
      Thanks 

    About Keyboard Input
    From above link.
    "Scan Code
    The scan code is the value that the keyboard hardware generates when the user presses a key. It is a device-dependent value that identifies the key pressed, as opposed to the character represented by the key. An application typically ignores scan codes.
    Instead, it uses the device-independent virtual-key codes to interpret keystroke messages."
    Virtual-Key Codes
    La vida loca

  • Keyboard scan codes are trapped in somewhere ...

    I'm trying to use Sun Type 5C keyboard with PC (Solaris-x86).
    I have purchased an adapter (Ultra Spec Cables, Inc) which can connect
    Sun keyboard to PC. This works fine, however, Sun's unique keys are
    not recognized. Although those Sun's unique keys are not available
    in the PC keyboard, the adapter generates scan codes when those keys are
    pressed (or released).
    Using xmodmap, I successfully mapped most of Sun's unique keys.
    However, I couldn't do this trick for 'Front', 'Open', 'Stop' keys.
    Because they didn't emit any event while I'm checking corresponding keycode
    using 'xev' (/usr/openwin/demo/xev).
    It seems to me that those scan codes are trapped in somewhere. My current
    guess is not in X-windows system but in Solaris keyboard device (/dev/kbd).
    My questions are:
    (1) Is there any way to verify who is trapping the scan code (or key code)?
    (2) Is there any way to fix this?
    A guy from the adapter's manufacturer said Linux didn't see this problem.
    (This seems indicating that the problem is in Unix side not X-Windows side.)
    Any suggestions, clues, answers are highly appreciated.

    Hi,
    I have the same problem with a self-made adapter. The SunOpen etc. keys seem to be recognized at the console, but not in X. With Linux and XFree the kbd works like expected. Have you any hints to solve the problem, already?
    Michael

  • How shall we do validation for Unique Key and Multiple Primary Key?

    Hi,
    I have table created From EO in which one column is checked as Unique.
    How to do validation for column checked as Unique.
    I know how to do validation for column checked as primary key.
    Below is sample code for primary key validation
    if (getRvSize() != null)
    throw new OAAttrValException(OAException.TYP_ENTITY_OBJECT,
    getEntityDef().getFullName(), // EO name
    getPrimaryKey(), // EO PK
    "RvSize", // Attribute Name
    value, // Attribute value
    "AK", // Message product short name
    "FWK_TBX_T_EMP_ID_NO_UPDATE"); // Message name
    if (value != null)
    OADBTransaction transaction = getOADBTransaction();
    Object[] rvKey = {value};
    EntityDefImpl rvDefinition = xxczVAGCSRVSizingEOImpl.getDefinitionObject();
    xxczVAGCSRVSizingEOImpl rv =
    (xxczVAGCSRVSizingEOImpl)rvDefinition.findByPrimaryKey(transaction, new Key(rvKey));
    if (rv != null)
    throw new OAAttrValException(OAException.TYP_ENTITY_OBJECT,
    getEntityDef().getFullName(), // EO name
    getPrimaryKey(), // EO PK
    "RvSize", // Attribute Name
    value, // Attribute value
    "AK", // Message product short name
    "FWK_TBX_T_EMP_ID_UNIQUE"); // Message name
    What changes need to be done for above code in order to do the validation for Unique Key.
    I have one more Question
    How shall we do the Validation for Multiple Primary Key in a table?
    - Mithun

    1. If you just validate on one attribute like your unique key, then put your logic in the set<Your AttributeName) method
    2. If you want to do the cross validation ( like validating multiple attributes) then put your logic in the validateEntrity Method
    How to do that?
    1. Create a Validation View object.
    2. Associate your VVO to the VAM
    3. Create entity expert.
    4. Have method in entity expert for your validation (you would be calling AM and then VO execute the query and do the validation.
    5. You would be calling the Entity experty method from your EO either setMethods or validateEntity.
    I have given just the high level points.
    Hope this helps.
    Thanks,
    RK

  • Bluetooth keyboard: keys without scan codes

    Hi,
    I've bought a HP Touchpad Bluetooth keyboard and it works brilliantly, even some of the special keys on the top row, such as volume up/down, play/pause and home, work out of the box. However, three others in that row don't even seem to produce scan codes, at least showkey -s doesn't show any.
    My question: I;m sure that the HP Touchpad uses them, so they must produce some kind of signal. Is there any way to find out which ones, and to catch them?
    Thanks for any help!

    .:B:. wrote:
    So acpi_listen does show results .
    You can use the acpi handler scripts to link an action to them.
    I think I wasn't clear. My setup is a notebook with a keyboard attached and an extra bluetooth wireless. Two of the three keys that show no results on the bluetooth keyboard have equivalent keys on the attached keyboard. When I press these keys on the bluetooth keyboard, acpi_listen shows nothing. When I press the equivalent keys on the attached keyboard, they work, as acpi_listen shows.
    Sorry for being unclear on that, and thanks for helping me so far!
    Any idea how I should find out more?

  • MacBook Pro to my iMac with the firewire it makes me enter the Key product code for Office:Mac2011

    When I connect my MacBook Pro to my iMac with the firewire to use as a monitor it makes me enter the Key producy code for Office:Mac 2011 every time.
    Then when I disconnect my MacBook I have to enter the product key again to use office on it???
    Any ideas??

    Post on the Office forums:  http://answers.microsoft.com/en-us/mac

  • I cannot enter the key code for updating to QuickTime Pro 7 as there is no Icon in Preferences and no Registration option in menu?

    I have followed the clear instructions to enter the purchased key code for QuickTime Pro 7. There are two options offered:-
    1. Go into Preferences and select the QuickTime Player icon and enter the code that way.
    2. Open QuickTime Player and open up ‘registration’ and enter the key code.
    For whatever reason I have neither option available to me although QuickTime player is on my system and I use it regularly. It is version 10 build (118). I have run software updates and there is no upgrade available. I have downloaded the latest version and tried to load it but this fails because the system finds a version already available. I have attempted to uninstall but whilst it moves it from the Application folder, it remains on the Mac as it is part of the system files. So I cannot use the Pro version. The iMac is a 27” Intel about a year old and has all the software updates available to me installed.
    Any offers for suggestions or past experiences that can help me overcome this conundrum?

    Both answers were spot on. I made the mistake yesterday of downloading the version for Leopard in my haste. I also thought the issue was related to having to uninstall the current version X.
    So the moral of the episode is check the version you have and make certain you download the correct version for your system. All works now.
    Thanks chaps!

  • When I try to get the key code for office it tells me its already been used.  My mac had a new hard drive in its first year, could it be because of this?  How can I get the office I've paid for but never used?

    My mac had to have a new hard drive in its first year.  Now, when I try to get the key code for office it tells me its already been used.  How do i get the office I've paid for but never used?

    The product key is sent to you by email as part of the purchase confirmation.
    If you have lost it, log into your Microsoft account.

  • Transaction code for creation of  transaction keys in obyc

    Dear Experts,
    Can u tell me what is the transaction code for creation of transaction keys in obyc asap.
    Thanks & Regards,
    Radhika.

    Hi
    There is no TCode and the path is
    SPRO-Material Management-Purchasing-Conditions-Price Determination....
    Cheers
    Srinivas

  • Product Licence key code for CrystalReports11_5_Net_2005.msi

    I have installed Crsyatl Report Server XI [OEM Embedded] in our Production Server.
    This installation does not have 11.5.3700 assemblies, which is referenced in our Project.
    So we decided to install CrystalReports11_5_Net_2005.msi in our production server. This installation asks for product key code. I have provided the key code what we he has for Crsyatl Report Server [OEM Embedded], but this key code is not accepted.
    How to obtain these assemblies in our producrion server.
    Also I would like to the MSI CrystalReports11_5_Net_2005.msi is Redistributable to our clients.
    Regards,
    Padmanaban V
    Edited by: Padmanaban Viswanathan on Feb 4, 2010 12:34 PM
    Edited by: Padmanaban Viswanathan on Feb 4, 2010 12:36 PM

    Hi Padmanaban,
    Please contact your OEM Account Representative to discuss getting a CR Designer keycode for your distribution package. You may want to check with your Product team first, they may already have one for your use.
    Thank you
    Don

  • How to run the Transaction Code - BIC for Bank keys uploading

    Hi
    How to run the Transaction Code - BIC for Bank keys uploading.
    please give me suggestion.
    Thanks
    Indu

    Go to BIC transaction screen
    Fill the selection screen parameters as below
    1. Update Run (Test Run: Check Off: Real Run:Check On)
    2. Set Deletion Flag (Check On)
    3. Maximum no. of records: 999999
    4. Detail List (Check On)
    5. Display variant: 1SAP
    6. Presentation server (Select Radio Button)
    7. Application server (Deselcet Radio button)
    8. File name and Path: Select relavant file which is to be upload
    9. Bank country: If needed (Give respective country name)
    10. Select execute button or F8
    NOTE: Make sure that before executing run execute TEST RUN by deselecting Update Run check box
    Hope this will meet your requirement
    Thanks.

  • Problem in writing a  code MENU EXIT.. it is asking for access key.

    Hi,
    I have a problem in creating a menu exit.
    while am creating a menu exit i went to CUS to write code but it is asking for Access Key..
    could anybody help me regarding this..??
    Thank you,
    Praveen Dubasi.

    Is the address on your iTunes account exactly the same (format and spacing etc) as on your credit card bill : http://support.apple.com/kb/TS1646 ? If it is then you could try what it says at the bottom of that page :
    If the issue persists, contact your credit card company and verify that they and any company they use to process credit card authorisations have the correct information on file.
    And/or try contacting iTunes support : http://www.apple.com/support/itunes/contact/ - click on Express Lane, then iTunes > iTunes Store

  • Need new activation code for NFR  XS key

    who knows who to email to receive new activation codes for logic NFR key. I havent gotten a response for the [email protected] address. what is the proper Apple email address to get codes from?

    All the suggestions in this forum were made because people assumed that you are using Logic Pro 7.1 and Mac OS X.
    I didn't assume this at all. I still think that they should be contacting apple, because as far as I can tell, an NFR version of a no longer selling product is not something you would ideally want to be hanging on to. apple would be able to tell you if they'll change it over for a logic 7 one, or to have a license bought for it so you can keep running 6 on OS9. NFRs are after all demo versions, usually given out to dealers and/or VIPs, I don't see why they would want to maintain NFR licenses out there for software that they are no longer demo-ing to sell. doesn't mean you can't buy a normal license though.

Maybe you are looking for