LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Laptop and Netbook (https://www.linuxquestions.org/questions/linux-laptop-and-netbook-25/)
-   -   Thinkpad Question (https://www.linuxquestions.org/questions/linux-laptop-and-netbook-25/thinkpad-question-441223/)

num_one 05-03-2006 07:53 AM

Thinkpad Question
 
I want to buy a thinkpad, but it does not come with a standard "us" or "uk" keyboard map, so I want to be certain that I can configure the strange keyboard layout under RHEL Linux before buying the machine, In case I can not configure the keyboard layout that come with the laptop under Linux I will not buy it, by the way the keyboard layout is configured under Windows as :
(Us English Table for IBM Arabic 238_L) what a strange long name ?!!
this layout has the two (redirections) symbols "<" and ">" on the same key at the upper left corner of the keyboard (just under the Esc key.
any knowledge of is that keyboard layout is supported under Linux or not will be great help in making the decision to buy it or to buy another notebook.
Thanks in advance. :)

num_one 05-03-2006 10:43 PM

forgive me just want it to be ........
UP :)

num_one 05-06-2006 09:02 AM

In fact I am confused about which parameter is responsible of changing the behavior of the keyboard, Is it :
Option "XkbModel"
or
Option "XkbLayout"
but I think that Option "XkbLayout" "us" is the parameter that change the keymap, and there for when we choose Option "XkbLayout" "gb" the behavior of the keyboard will change , but it will still in English, and because we want to configure an English language keyboard, so we need to specify a parameter like the following:
Option "XkbLayout" "xx"
in the /etc/X11/xorg.conf file like the following code:

section "InputDevice"
Identifier "Keyboard0"
Driver "kbd"
Option "XkbModel" "pc105"
Option "XkbLayout" "xx"
Option "XKbOptions" "grp:alt_shift_toggle"

where xx is the entry that represent our language/country, and these entries are listed in the file /etc/X11/xkb/rules/xorg.lst
Now the question is which entry of those entries will correctly represent our keymap?
As we mentioned above that we are configuring an English language keymap, so the entry that will correctly represent our keyboard must be one of those entries that belong to one of the countries that talk in English, like "us", "en_US", "us_intl", "gb"
I tried to change the parameter Option "XkbLayout" to represent each of the ("us", "en_US", "us_intl", "gb"), but no one of them matches with the strange keyboard layout of the Thinkpad R50e !!
Are there any other entries in the /etc/X11/xkb/rules/xorg.lst file that represent an English language/country, so I can try it in the xorg.conf file. I tried Kanada:
Option "XkbLayout" "kan" but no success.
any knowledge of oather English language/country listed in the layout section of the /etc/X11/xkb/rules/xorg.lst file will be helpfull in testing that entry in the xorg.conf file as following:
Option "XkbLayout" "New_Entry_That_Represent_English_Language/Country"
I think that this keymap is strange, but there must be a way to configure it under Linux, specially that this machine is one of the IBM Thinkpads which are known to be Linux Compatible laptops.
Thanks for your effort, and Good Luck.
All Linux users dream to success in configuring any thing related to Linux, and ...........The State of the Mind. If you can dream it, you can do it, So try to prove that:

ioerror 05-07-2006 10:30 AM

I don't know if there is a specific keymap for your layout, but if you can't find an exact keymap, then use the closest one. You can then modify the remaining keys on a per-key basis, using xmodmap. The man page explains the syntax. You would then create a file, say, ~/.Xmodmap and load it in your X startup file (~/.xinitrc, ~/.xsessionrc, etc). You can use xev to discover the relevant keycodes.

For example, I have a uk (gb) keymap, but I like # to be on shift-3 and @ on shift-2, as on a us keymap, so in my ~/.Xmodmap, I have:

Quote:

keycode 11 = 2 at
keycode 12 = 3 numbersign
I also swap ~ and ` since I use ~ much more often:

Quote:

keycode 49 = asciitilde grave
and so on.

xmodmap allows you to remap the keyboard any way you like.

num_one 05-08-2006 12:14 PM

Grate Information Thank you, This method of remapping the annoying keys will be my last succor, I will do some extra search hopping that I will find the correct native layout of this laptop keyboard. thanks again. :)


All times are GMT -5. The time now is 09:49 AM.