Tiny Core Linux
Tiny Core Base => Raspberry Pi => Topic started by: bmarkus on January 22, 2013, 07:05:41 AM
-
If you want to change keyboard layout for Xorg in piCore, create xorg.conf file in /usr/local/share/X11 (or edit if already exists) and add a section like this:
Section "InputDevice"
Identifier "Keyboard0"
Driver "kbd"
Option "XkbLayout" "hu"
Option "XkbModel" "pc105"
EndSection
It is setting a Hungarian layout for a pc105 keyboard. Replace it with your own settings and add xorg.conf to backup to make it persistent.
You can put a small config file, for example mykbd.conf with the same content to /usr/local/share/X11/xorg.conf.d alternatively.
It is fixing the layout issue, but special keys and key combinations still doesn't work. It is the next step.
-
Huh, why not the standard /etc/X11 dir?
-
Huh, why not the standard /etc/X11 dir?
Is it matter if doesn't worK :)
Just joking. It was picked up by configure as default at compile time. Anyhow, I have to rebuild it soon.
-
Hi! I am asking you for help. I have TC 13 with Xorg. I want to set the keyboard to Hungarian. I created the file: xorg.conf as described and added to backup. But it doesn't work, the keyboard stays in English. is it different with tc13?
location:
/usr/local/share/X11/xorg.conf
and the content is the same as bmarkus wrote.
Thanks!
-
You need to put your config inside the directory /usr/local/share/X11/xorg.conf.d/
-
Thank you!
I made and add to backup, but after reboot it is still in english.
is the filename xorg.conf a problem in the xorg.conf.d directory?
kmap is installed and the command was added to bootlocal.sh
loadkmap < /usr/share/kmap/qwerty/hu101.kmap
-
I renamed it to 20-keyboard.conf but nothings happens :-\
-
Hi Laskody
The loadkmap < /usr/share/kmap/qwerty/hu101.kmap command belongs in bootsync.sh, not bootlocal.sh.
On the subject of kmaps:
kmaps only affects the console and Xvesa, not Xorg.
I renamed it to 20-keyboard.conf but nothings happens :-\
What does this command return:
grep "\.conf" /var/log/Xorg.0.log
-
Using system config directory: "usr/local/share/X11/xorg.conf.d"
-
When I run the command in the terminal:
setxkbmap -layout "hu"
Switches the language to Hungarian and its works.
how could i automate it at boot?
-
Solved! I renamed the file:
00-keyboard.conf in the xorg.conf.d directory and editet as:
Section "InputClass"
Identifier "system-keyboard"
MatchIsKeyboard "on"
Option "XkbLayout" "hu"
Option "XkbModel" "pc104"
Option "XkbVariant" ",dvorak"
Option "XkbOptions" "grp:win_space_toggle"
EndSection