WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: [Solved] Xorg Keymaps PiCore 13.0.3  (Read 2265 times)

Offline Rabie

  • Sr. Member
  • ****
  • Posts: 272
[Solved] Xorg Keymaps PiCore 13.0.3
« on: July 22, 2022, 06:28:34 AM »
Hi There,

i have a problem with changing Xorg Keymaps from English to German on PiCore.
i am using raspberry pi 3 with PiCore 13.0.3.

I can typ German in the Console if i switch tty but not in Xorg like in aterm for example.

I am using the bootcode lang=de_DE.UTF-8 kmap=de in cmdline.txt

mylocal.tcz is also loaded

Code: [Select]
locale
LANG=de_DE.UTF-8
LC_CTYPE="de_DE.UTF-8"
LC_NUMERIC="de_DE.UTF-8"
LC_TIME="de_DE.UTF-8"
LC_COLLATE="de_DE.UTF-8"
LC_MONETARY="de_DE.UTF-8"
LC_MESSAGES="de_DE.UTF-8"
LC_PAPER="de_DE.UTF-8"
LC_NAME="de_DE.UTF-8"
LC_ADDRESS="de_DE.UTF-8"
LC_TELEPHONE="de_DE.UTF-8"
LC_MEASUREMENT="de_DE.UTF-8"
LC_IDENTIFICATION="de_DE.UTF-8"
LC_ALL=


tc@box:/mnt/mmcblk0p1$ locale -a
C
de_DE
de_DE@euro
de_DE.iso88591
de_DE.iso885915@euro
de_DE.utf8
POSIX

i added loadkmap </usr/share/kmap/qwertz/de-latin1.kmap to bootsync.sh

but still can't write german in the programms

any advice ?  :-\

    [EDIT]: Changed  bootlocal.sh  to  bootsync.sh.  Rich
« Last Edit: July 22, 2022, 10:01:06 AM by Rich »

Offline patrikg

  • Wiki Author
  • Hero Member
  • *****
  • Posts: 722
Re: Xorg Keymaps PiCore 13.0.3
« Reply #1 on: July 22, 2022, 07:05:53 AM »
Kmaps only affects the console and Xvesa, not Xorg.

For Xorg you have to config/set one file, you can follow this thread but replace to what country you want.
Edit script change uk to de, save, run and reboot.

http://forum.tinycorelinux.net/index.php/topic,24893.msg164258.html#msg164258

« Last Edit: July 22, 2022, 07:19:16 AM by patrikg »

Offline Rabie

  • Sr. Member
  • ****
  • Posts: 272
Re: Xorg Keymaps PiCore 13.0.3
« Reply #2 on: July 22, 2022, 07:59:53 AM »
Hi patrikg,

Kmaps only affects the console and Xvesa, not Xorg.

For Xorg you have to config/set one file, you can follow this thread but replace to what country you want.
Edit script change uk to de, save, run and reboot.

http://forum.tinycorelinux.net/index.php/topic,24893.msg164258.html#msg164258

your script did work :)

Thank you very much

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11694
Re: Xorg Keymaps PiCore 13.0.3
« Reply #3 on: July 22, 2022, 08:27:29 AM »
Hi Rabie
... i added loadkmap </usr/share/kmap/qwertz/de-latin1.kmap to bootlocal.sh ...
That command belongs in  bootsync.sh , not  bootlocal.sh.  See:
http://forum.tinycorelinux.net/index.php/topic,23698.msg148996.html#msg148996

When it comes to automatically starting programs, scripts, daemons, etc., the basic rules of thumb are:
1. Things that need to run before a GUI are started (like kmaps) should go into  /opt/bootsync.sh.
2. Things that need to run after a GUI are started (like starting a GUI app) should go into  ~/.X.d.
3. Things that are not sensitive to when they are started can go into  /opt/bootlocal.sh  which runs in the background.

When starting something from numbers 1 or 3, you need to specify a full path. They run before any user is logged in.

Item 2 is unique to each user.

Offline Rabie

  • Sr. Member
  • ****
  • Posts: 272
Re: Xorg Keymaps PiCore 13.0.3
« Reply #4 on: July 22, 2022, 08:56:32 AM »
Hi Rich,
Quote
i added loadkmap </usr/share/kmap/qwertz/de-latin1.kmap to bootlocal.sh
sorry i meant bootsync.sh   :P

Thx

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11694
Re: Xorg Keymaps PiCore 13.0.3
« Reply #5 on: July 22, 2022, 09:13:57 AM »
Hi Rabie
No problem. Your original post has been corrected. :)

Offline patrikg

  • Wiki Author
  • Hero Member
  • *****
  • Posts: 722
Re: Xorg Keymaps PiCore 13.0.3
« Reply #6 on: July 22, 2022, 09:56:46 AM »
Thank you @Rabie, for taking your time to report that you solved the problem. :)