Thinstation / thinstation

A framework for making thin and light Linux based images for x86 based machines and thinclients.
https://www.thinstation.net/
804 stars 187 forks source link

LOCALE=fr_CA #768

Open Rockyb0a opened 1 year ago

Rockyb0a commented 1 year ago

I'm getting an issue with this locale. The generated /etc/thinstation.runtime configure the XKEYBOARD=fr(ca) which crash since it doesn't like the parathensis, I would expect something like fr_CA.UTF8. Also at the console level it doesn't work. I looked inside /lib/kbd/keymaps to find the fr.map which is the French from France keymap. loadkeys actually confirm that. The right console keymap should be cf (Canadian French). I'm willing to help with some pointers.

Doncuppjr commented 1 year ago

Locales and .dna packages are difficult. Place the files, then rerun makedna , answer the questions, try update , if works, clean_chroot, git commit -a. git diff HEAD^. Send the patch to me.

Sent from Yahoo Mail for iPhone

On Friday, March 31, 2023, 6:43 AM, Rockyb0a @.***> wrote:

I'm getting an issue with this locale. The generated /etc/thinstation.runtime configure the XKEYBOARD=fr(ca). Also at the console level it doesn't work. I looked inside /lib/kbd/keymaps to find the fr.map which is the French from France keymap. loadkeys actually confirm that. The right console keymap should be cf (Canadian French). I'm willing to help with some pointers.

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you are subscribed to this thread.Message ID: @.***>

Rockyb0a commented 1 year ago

Allright, here is what I did so far,remane locale_fr_CA to locale-fr_CA.original. copy the cf.map.gz took from arch linux inside lib/kbd and remove the other one. added the qwerty include since is was required.

In the locale folder I change the parameter as follow in locale fr_CA_locale:

LANG=fr_CA.UTF-8 KEYBOARD_MAP=cf CONSOLE_KEYBOARD=cf.map.gz CONSOLE_FONT=default8x16.psfu.gz XKEYBOARD=fr_CA

My TTY console is now working as expected and I can now boot without the ca(fr) XKeyboard error I got in /etc/thinstation.runtime with this new XKEYBOARD.

Xorg: My 00-keboard.conf:

Again looking at xcfe running on arch, here is my working config: Section "InputClass" Identifier "Keyboards Defaults" MatchIsKeyboard "on" Option "XkbLayout" "ca" EndSection

Section "InputClass" Identifier "system-keyboard" MatchIsKeyboard "on" Option "XkbLayout" "ca" Option "XkbModel" "pc105" Option "XkbOptions" "terminate:ctrl_alt_bksp" EndSection

But the good thing is that if I boot the default image with a full desktop, I'm able to change it with the keyboard application by removing and adding the french-canada. Obvisously this is not persistent. Do you know which file get mofified, I would have thought it would be in the user profile folder, but not found anything yet.

Rockyb0a commented 6 months ago

I still believe I'm very close but missing just this little thing. I have an image that include the right console keyboard. If I add the xfce package I can use the keyboard configuration to remove the french(canada) keyboard and adding back french(canada) to solve my issues. The only difference I noticed is in ~/.config/xfce/xfconf/xfce-perchannel-xml/keyboard-layout-xml which adds a line ­

I try to add this line in my configuration but it seams to get remove because it is empty.

Might this be the problem, any other file would be reflecting this keyboard change using the utility?