Tiny Core Linux

Tiny Core Base => Raspberry Pi => Topic started by: a.dester on August 31, 2020, 10:56:10 AM

Title: Missing setxkbmap on Tinycore 11
Post by: a.dester on August 31, 2020, 10:56:10 AM
Hello everybody, this is my first post.
I am unable to find "setxkbmap" command to change X keyboard layout at runtime on Tinycore 11 for RPi.
Previously I run TC version 7 and setxkbmap was included in Xorg-7.7-bin.tcz package.
Do you know if it is now located somewhere else?

Thank you
Kind regards

Alessandro
Title: Re: Missing setxkbmap on Tinycore 11
Post by: Rich on August 31, 2020, 11:28:43 AM
Hi a.dester
Welcome to the forum.

It appears TC7 was the last version that had  setxkbmap.
Title: Re: Missing setxkbmap on Tinycore 11
Post by: Rich on August 31, 2020, 11:32:08 AM
Hi a.dester
Will  kmaps  do what you need:
http://tinycorelinux.net/11.x/armv6/tcz/kmaps.tcz.info
Title: Re: Missing setxkbmap on Tinycore 11
Post by: Rich on August 31, 2020, 11:42:52 AM
Hi a.dester
If you look here:
https://wiki.archlinux.org/index.php/Xorg/Keyboard_configuration#Using_setxkbmap
The section labeled  "Using X configuration files"  appears to show an alternative method to  setxkbmap.
Title: Re: Missing setxkbmap on Tinycore 11
Post by: a.dester on September 01, 2020, 04:19:02 AM
Hi Rich,
thank you.
I'm already using kmaps.tcz to change keyboard mapping in busybox shell.
The point is that I can't change the keyboard mapping in Xorg at runtime.
Modifying the X config file as explained at https://wiki.archlinux.org/index.php/Xorg/Keyboard_configuration#Using_setxkbmap (https://wiki.archlinux.org/index.php/Xorg/Keyboard_configuration#Using_setxkbmap) is working correctly (and I'm already using it), but doesn't allow to do it while X is running.
Title: Re: Missing setxkbmap on Tinycore 11
Post by: Rich on September 02, 2020, 02:38:44 AM
Hi a.dester
Attached is a script to build and package  setxkbmap.  Download the script into a work directory, then:
Code: [Select]
chmod 775 build_setxkbmap.sh
./build_setxkbmap.sh

When it completes, check  package/submitqc.txt  for errors. If there are no errors, then copy the  setxkbmap.tcz  and  setxkbmap.tcz.dep
files in that same directory to your  tce  directory. Then:
Code: [Select]
tce-load -i setxkbmapand try it out. If it looks OK, you can submit the 2  .tar.gz  files in the work directory to the repository.
Title: Re: Missing setxkbmap on Tinycore 11
Post by: Juanito on September 04, 2020, 06:48:37 AM
setxkbmap extracted from piCore-7.x Xorg-7.7-bin and posted to piCore-11.x repos