The Notebook Review forums were hosted by TechTarget, who shut down them down on January 31, 2022. This static read-only archive was pulled by NBR forum users between January 20 and January 31, 2022, in an effort to make sure that the valuable technical information that had been posted on the forums is preserved. For current discussions, many NBR forum users moved over to NotebookTalk.net after the shutdown.
Problems? See this thread at archive.org.

    G51 Linux backslash/pipe key remapping

    Discussion in 'ASUS Gaming Notebook Forum' started by linuxguy, Aug 4, 2009.

  1. linuxguy

    linuxguy Notebook Consultant

    Reputations:
    77
    Messages:
    234
    Likes Received:
    0
    Trophy Points:
    30
    The following procedure is for OpenSuse 11.1. It may/may not work for other Linux distributions.

    The G51 has a key that the default Suse setup incorrectly interprets. The key is the backslash/pipe key. It interprets it as "<" and ">". To get around this you need to edit the keyboard map file for the raw (console) mode and make a local "fix" file for Xorg mode. This procedure will last through all runlevels, which is a good thing. You must be root to do the console mode fix.

    Editing the keyboard map for console mode:
    Look in /etc/sysconfig/keyboard. Search for KEYTABLE in the file. This will tell you the default keyboard map file it's using. Make a note of it. In my case it is us.map.gz. Now, cd /usr/share/kbd/keymaps/i386/qwerty. gunzip us.map.gz. Using your favorite editor, edit the us.map file and search for 86. This is the keycode that we want to change. Change the line so that it reads like this:

    keycode 86 = backslash bar

    Save the file.
    Recompress it: gzip us.map
    Done with raw mode.
    -----------------------------------------------------------------------------
    Fixing the key for Xorg mode:
    su to yourself, not root. You must be in your own home directory for this fix, so type in cd <enter>.

    With your favorite editor create a file called .Xmodmap - It must have the dot before the filename and it must be spelled exactly as shown. Add the following line:

    keycode 94 = backslash bar

    Save the file.

    In order to make both changes effective, reboot. Your "|/" key should now function as normal.
     
  2. corpdecker

    corpdecker Newbie

    Reputations:
    0
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    5
    Just wanted to say thanks for this, I was running in circles trying to find a Variant or model that would fix this. I'm using Arch Linux and the us.map.gz I needed to edit was in /usr/share/kbd/keymaps/i386/qwerty/ , and i needed to manually add

    Code:
    exec xmodmap ~/.Xmodmap &
    to my .xinitrc for it to take effect in X.
     
  3. spikesnet

    spikesnet Notebook Enthusiast

    Reputations:
    0
    Messages:
    19
    Likes Received:
    0
    Trophy Points:
    5
    Thank you!!