Tiny Core Linux

Tiny Core Extensions => TCE Q&A Forum => Topic started by: Op.Davoron on March 31, 2010, 04:19:52 AM

Title: German Keymap Problem in Xorg (solved)
Post by: Op.Davoron on March 31, 2010, 04:19:52 AM
Hi and sorry for that but I cant get my German Keymap to work in X.

I have read the FAQ and the old threads about that, but nothing helped.

I am running Tinycore via Netbooting and load my extensions with the httplist boot parameter.

The extension get load properly and the keymaps can be found in /usr/share/kmap/ .

So in the FAQ (which is relay outdated especially the bootcodes section) and the Forum Threads can be found:
Exit to Promt
type (e.g.) : sudo loadkmap < /usr/share/kmap/de.kmap
startx

so I does that, but in X (terminal/Opera) is no change and the us layout is present!
I also use the kmap bootcode, only for testing but that also does nothing.

Its the same if I write the loadkmap code to the /opt/bootlocal.sh.

Does someone have a similar problem solved or have any ideas ?
Also can I chance the kmap for X via Xorg.conf?

Thank you for helping me!
Title: Re: German Keymap Problem
Post by: curaga on March 31, 2010, 05:20:32 AM
Do you use Xorg? If so, the console keymap has no effect on X, unlike with Xvesa.

With xorg you can use the standard procedures in xorg.conf (google xkb guide).
Title: Re: German Keymap Problem
Post by: bmarkus on March 31, 2010, 10:17:05 AM
Read WIKI article http://wiki.tinycorelinux.com/tiki-index.php?page=Using+Xorg+over+Xvesa
Title: Re: German Keymap Problem
Post by: jls on March 31, 2010, 05:42:05 PM
~/.xsession :
Code: [Select]
......
waitforX
XSERVER=`sed -n -e '1p' $0 | grep vesa`
if [ "$XSERVER" ]; then
        xmodmap -e "clear Mod4" -e "add Mod5 = Mode_switch" &
else
        setxkbmap it &
fi
"$DESKTOP" 2>/tmp/wm_errors &
.......
the faq are old, there is no need anymore to type this:
Code: [Select]
sudo loadkmap < /usr/share/kmap/de.kmapjust add kmap=de in your boot options, for example this is my /mnt/hda3/boot/grub/menu.lst:
Code: [Select]
............
title MicroCore PH
kernel (hd0,2)/boot/bzImage-upxed quiet embed desktop=enlightenment_start lang=it_IT@euro max_loop=255 tce=hda3 nodhcp settime kmap=it TZ=CET-1CEST-2,M3.5.0,M10.5.0 noutc home=hda3
initrd (hd0,2)/boot/microcore.gz
..............
Title: Re: German Keymap Problem
Post by: ^thehatsrule^ on March 31, 2010, 09:08:22 PM
The FAQ has contained both ways for a long time, and should still work.
Title: Re: German Keymap Problem
Post by: Op.Davoron on April 01, 2010, 12:56:24 AM
Thank you for the replies!

Upon i know (thanks to curaga) what to search for, it wasnt that difficult.

Shame over me for not finding the "Using Xorg over Xvesa" but I have done it an other way.

But I use  a simple:
echo 'setxkbmap -rules xorg -layout "de"' >> /home/tc/.xsession

Think you could remove the "-rules xorg" to.

The "kmap=de" doesent work for Xorg. For the Text-Shell it does.

Thank you all for the help!