LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux From Scratch (https://www.linuxquestions.org/questions/linux-from-scratch-13/)
-   -   Keyboard messup - LFS 7.0 rc2 (https://www.linuxquestions.org/questions/linux-from-scratch-13/keyboard-messup-lfs-7-0-rc2-911675/)

liajeava 11-03-2011 10:31 AM

Keyboard messup - LFS 7.0 rc2
 
I have followed LFS 7.0rc2 and am able boot into the OS.
But, at the bash prompt, the keyboard keys are mixed up.
The alphabets & number are printed properly.
But, the symbols are messed up.
Like if i press '\' i get '-', '[' gives 'u with two dots above', ']' gives '+'
some symbols are working like '.' ','

Please, help to fix this.
Thanks!

druuna 11-03-2011 10:45 AM

Hi,

This sounds like a wrong keyboard layout setting.

What type of keyboard do you have? Default US, or German or ?????

Re-visit chapters 7.10. Configuring the Linux Console and 7.13. The Bash Shell Startup Files.

I would advise to remove the /etc/sysconfig/console script and the export LANG=<ll>_<CC>.<charmap><@modifiers> entry from your /etc/profile. Reboot and check if the keyboard layout is ok. It should be if you have a "normal" keyboard.

If this works, don't bother with the console script. You might want to add an appropriate export LANG=.... in /etc/profile (might also not be needed, but that depends on your wishes/needs).

Hope this helps.

liajeava 11-03-2011 11:20 AM

The problem was with /etc/sysconfig/console.

I had created it with this addition
Code:

The following example illustrates keymap autoconversion from ISO-8859-15 to UTF-8 and enabling dead keys in Unicode mode:

cat > /etc/sysconfig/console << "EOF"
# Begin /etc/sysconfig/console

UNICODE="1"
KEYMAP="de-latin1"
KEYMAP_CORRECTIONS="euro2"
LEGACY_CHARSET="iso-8859-15"
FONT="LatArCyrHeb-16 -m 8859-15"

# End /etc/sysconfig/console
EOF

As it was mentioned somewhere there might be issues with UTF8, i thought the above will be helpful. Looks like it set default keyboard to de-latin1 format.
I have commented all that, and its working fine now. (/etc/profile is as it was)

Thank-you!

druuna 11-03-2011 02:02 PM

Hi,

This KEYMAP="de-latin1" points to a German (de) keyboard. Which you probably do not have (I do recall you mentioning a en_US entry in /etc/profile).

BTW: You're welcome :)


All times are GMT -5. The time now is 07:48 AM.