LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Slackware 13.0 x86 & x86_64 - trouble with xkb layout (https://www.linuxquestions.org/questions/slackware-14/slackware-13-0-x86-and-x86_64-trouble-with-xkb-layout-752342/)

theget 09-03-2009 05:00 AM

Slackware 13.0 x86 & x86_64 - trouble with xkb layout
 
hi all, ive just installed 13.0 in both variants on 2 pc's, all works fine, but i've edited the lang.sh to fit my language needs just to
LANG=es_ES.UTF-8
also the xorg.conf is in "es" for spanish,
but anytime i startx, manually or by telinit 4 mode, the xkbmap is default in "en"

i've read near about that the actual version of Xorg didnt need conf? (maybe i'm wrong)
where i can change those values to get it spanish on default?

many thanks

Regards

get

titopoquito 09-03-2009 05:06 AM

Hi theget,

welcome to LQ.org! Please read the CHANGES AND HINTS text file on the Slackware CD. This is about HAL, you will have to copy a hal policy file to /etc and modify it to use the Spanish keyboard layout. xorg.conf should not be necessary, you should remove the keyboard line AFAIK if you use the HAL file.

theget 09-03-2009 06:16 AM

my fault, i didn't read it before, and yes, that's just what i need.

Many thanks

titopoquito 09-03-2009 09:02 AM

No need to apologize, you're welcome

salemboot 09-14-2009 09:33 PM

I'm sure there is a way to put a kernel parameter which will automate all of this.

Quote:

If you need to use a non-US keyboard layout, then copy the file located at
/usr/share/hal/fdi/policy/10osvendor/10-keymap.fdi to /etc/hal/fdi/policy
and edit it to suit your needs. Have a look at the contents of that file
for an example and more information. If you prefer to do this the "old" way
using /etc/X11/xorg.conf, then you can use "X -configure" or "xorgsetup" to
generate an xorg.conf, then add the following lines to the "ServerFlags"
section to disable input device hotplugging via HAL:
Option "AllowEmptyInput" "false"
Option "AutoAddDevices" "false"
Option "AutoEnableDevices" "false"
This is also relevant if you prefer to disable HAL completely for whatever
reason.
Quote:

Input methods for complex characters (CJK, which is shorthand for Chinese,
Japanese, Korean) and other non-latin character sets have been added. These
input methods use the SCIM (Smart Common Input Method) platform.
The environment variables for SCIM support are set in /etc/profile.d/scim.sh
The requirements for getting SCIM input methods to work in your X session
are as follows:
(1) Use a UTF-8 locale. Look in /etc/profile.d/lang.sh for setting your
language to (for instance) en_US.UTF-8. As a word of warning: maybe you
should leave root with a non-UTF-8 locale because you don't want root's
commands to be misinterpreted. You can add the following line to your
~/.profile file to enable UTF-8 just for yourself:
export LANG=en_US.UTF-8
(2) Make the scim profile scripts executable. These will setup your
environment correctly for the use of scim with X applications. Run:
chmod +x /etc/profile.d/scim.*
(3) Start the scim daemon as soon as your X session starts. The scim daemon
must be active before any of your X applications. In KDE, you can add a
shell script to the ~/.kde/Autostart folder that runs the command
"scim -d". In XFCE you can add "scim -d" to the Autostarted Applications.
If you boot your computer in runlevel 4 (the graphical XDM/KDM login)
you can simply add the line "scim -d" to your ~/.xprofile file.
This gives you a Desktop Environment independent way of starting scim.
When scim is running, you will see a small keyboard icon in your system tray.
Right-click it to enter SCIM Setup. In 'Global Setup' select your keyboard
layout, and you are ready to start entering just about any language
characters you wish! Press the magical key combo <Control><Space>
in order to activate or deactivate SCIM input. The SCIM taskbar in the
desktop's corner allows you to select a language. As you type, SCIM will show
an overview of applicable character glyphs (if you are inputting complex
characters like Japanese).


All times are GMT -5. The time now is 10:29 AM.