Announcement

Collapse
No announcement yet.

[SOLVED] Emachines netbook Keyboard gives " instead of @

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    [SOLVED] Emachines netbook Keyboard gives " instead of @

    I have a clean install of kubuntu 9.10 on my netbook (FOR CLARITY this is not the netbook remix. It is the standard install of kubuntu)

    As the title suggests my issue is that when i hold shift and hit the 2 i do not get a "@" instead i get " and i do not get " when i hold shift and hit '.

    #2
    Re: Emachines netbook Keyboard gives " instead of @

    Weird, as I've never heard of this issue before but you can fix it easy enough with xmodmap.

    Are you using an other-than-standard-US keyboard layout or do you have layouts enabled

    To change key assignments via xmodmap in Kubuntu;

    1) Determine the keycodes for the key(s) you want to change by opening a terminal, running "xev", observe the output and note the keycode. For example, on my keyboard the "2" key produces:
    KeyPress event, serial 31, synthetic NO, window 0x3a00001,
    root 0x13c, subw 0x3a00002, time 249251601, (42,53), root2179,860),
    state 0x0, keycode 11 (keysym 0x32, 2), same_screen YES,
    XLookupString gives 1 bytes: (32) "2"
    XmbLookupString gives 1 bytes: (32) "2"
    XFilterEvent returns: False

    KeyRelease event, serial 34, synthetic NO, window 0x3a00001,
    root 0x13c, subw 0x3a00002, time 249251705, (42,53), root2179,860),
    state 0x0, keycode 11 (keysym 0x32, 2), same_screen YES,
    XLookupString gives 1 bytes: (32) "2"
    XFilterEvent returns: False
    Note that each keypress results in a KeyPress and Key Release event and note the key assignment is listed in quotes.

    When I do "Shift-2" that is two KeyPress and two KeyRelease events:
    KeyPress event, serial 34, synthetic NO, window 0x3a00001,
    root 0x13c, subw 0x0, time 249315780, (-561,103), root1576,910),
    state 0x0, keycode 50 (keysym 0xffe1, Shift_L), same_screen YES,
    XLookupString gives 0 bytes:
    XmbLookupString gives 0 bytes:
    XFilterEvent returns: False

    KeyPress event, serial 34, synthetic NO, window 0x3a00001,
    root 0x13c, subw 0x0, time 249315881, (-561,103), root1576,910),
    state 0x1, keycode 11 (keysym 0x40, at), same_screen YES,
    XLookupString gives 1 bytes: (40) "@"
    XmbLookupString gives 1 bytes: (40) "@"
    XFilterEvent returns: False

    KeyRelease event, serial 34, synthetic NO, window 0x3a00001,
    root 0x13c, subw 0x0, time 249315951, (-561,103), root1576,910),
    state 0x1, keycode 11 (keysym 0x40, at), same_screen YES,
    XLookupString gives 1 bytes: (40) "@"
    XFilterEvent returns: False

    KeyRelease event, serial 34, synthetic NO, window 0x3a00001,
    root 0x13c, subw 0x0, time 249316000, (-561,103), root1576,910),
    state 0x1, keycode 50 (keysym 0xffe1, Shift_L), same_screen YES,
    XLookupString gives 0 bytes:
    XFilterEvent returns: False
    Note here that the KeyCode is unchanged from the "2" or "@" and the keysym changed. This is due to the modifier key "Shift_L" being pressed and held before pressing the "2" key. You will also see lots and lots of mouse movement events while "xev" is running so you'll be scrolling amongst lots of the to find the correct output.

    Once you have your keycode, edit
    /etc/X11/Xsession
    as su or using sudo and add the text [ -f /etc/X11/Xmodmap ] && xmodmap /etc/X11/Xmodmap near the top of the file.

    Then again as su or using sudo create a file named /etc/X11/Xmodmap and put your modifier line in like so:

    keycode 11 = 2 at 2 at 2 at


    Another method of determining keycode assignments for those keys already assigned is to type in a console xmodmap -pke. This will list all keycode assignments currently existing.

    I use the above method to assign keycodes to my multimedia keys on my keyboard so I can use them in KDE and to reverse the keypress order of my tilde/grave and backslash/bar keys (to speed up CLI usage).

    Please Read Me

    Comment


      #3
      Re: Emachines netbook Keyboard gives " instead of @

      There is an easier way...

      Check in your System Settings, if I remember (1) the Region and (2) the Keyboard and make sure that the correct country is set.

      osunluvr is suggesting that you re-assign the keys. It will work, but it is probably unecessary.

      It is quite common to use the UK keyboard, find that @ and " are reversed and that the country is wrongly set as the US.

      ...LOL! There are only 6 billion people who don't live in the US and don't use a standard US keyboard. I'm one of them...
      "A problem well stated is a problem half solved." --Charles F. Kettering
      "Sometimes the questions are complicated and the answers are simple."--Dr. Seuss

      Comment


        #4
        Re: Emachines netbook Keyboard gives " instead of @

        Yeah - that's why my first question was if he was using a US keyboard or not. I was in France for a month last year and had one heck of a time typing my emails with that "funny" keyboard setup!!!


        Please Read Me

        Comment


          #5
          Re: Emachines netbook Keyboard gives " instead of @

          in system settings (general tab) > regional > setting in lacale tab is set to canada (correct) and there is us english and british english installed.
          and under keyboard layout "keyboard model" is set to "generic 104-key pc"
          with a layout name canada

          Comment


            #6
            Re: Emachines netbook Keyboard gives " instead of @

            this seems to be the xev read outs your speaking of


            KeyPress event, serial 34, synthetic NO, window 0x1400001,
            root 0x104, subw 0x0, time 612607, (675,181), root678,210),
            state 0x0, keycode 50 (keysym 0xffe1, Shift_L), same_screen YES,
            XLookupString gives 0 bytes:
            XmbLookupString gives 0 bytes:
            XFilterEvent returns: False

            KeyPress event, serial 34, synthetic NO, window 0x1400001,
            root 0x104, subw 0x0, time 613614, (675,181), root678,210),
            state 0x1, keycode 11 (keysym 0x22, quotedbl), same_screen YES,
            XLookupString gives 1 bytes: (22) """
            XmbLookupString gives 1 bytes: (22) """
            XFilterEvent returns: False

            KeyRelease event, serial 34, synthetic NO, window 0x1400001,
            root 0x104, subw 0x0, time 613793, (675,181), root678,210),
            state 0x1, keycode 11 (keysym 0x22, quotedbl), same_screen YES,
            XLookupString gives 1 bytes: (22) """
            XFilterEvent returns: False

            KeyRelease event, serial 34, synthetic NO, window 0x1400001,
            root 0x104, subw 0x0, time 614620, (675,181), root678,210),
            state 0x1, keycode 50 (keysym 0xffe1, Shift_L), same_screen YES,
            XLookupString gives 0 bytes:
            XFilterEvent returns: False

            Look correct ?

            Comment


              #7
              Re: Emachines netbook Keyboard gives " instead of @

              Ha i see the issue playing around a little - the keyboard had defaulted to canadian multilingual not canadian english.

              Comment


                #8
                Re: Emachines netbook Keyboard gives " instead of @

                So is it solved then?
                "A problem well stated is a problem half solved." --Charles F. Kettering
                "Sometimes the questions are complicated and the answers are simple."--Dr. Seuss

                Comment


                  #9
                  Re: Emachines netbook Keyboard gives " instead of @

                  Well, at least we know why it's acting French!!!

                  Please edit your first post and add <Solved> to the Subject line - Thanks!

                  Please Read Me

                  Comment


                    #10
                    Re: Emachines netbook Keyboard gives &quot; instead of @

                    sorry to put it plain

                    SOLVED

                    Comment

                    Working...
                    X