You are not logged in.

#1 2025-01-21 12:26:57

jebez
Member
Registered: 2025-01-15
Posts: 50

[SOLVED] arch-chroot with localectl set-keymap fr doesn't work

See https://bbs.archlinux.org/viewtopic.php … 6#p2221506.

Last edited by jebez (2025-01-21 16:50:52)

Offline

#2 2025-01-21 12:41:42

WorMzy
Administrator
From: Scotland
Registered: 2010-06-16
Posts: 12,583
Website

Re: [SOLVED] arch-chroot with localectl set-keymap fr doesn't work


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#3 2025-01-21 12:46:05

schard
Forum Moderator
From: Hannover
Registered: 2016-05-06
Posts: 2,152
Website

Re: [SOLVED] arch-chroot with localectl set-keymap fr doesn't work

I.e. what does

$ localedef --list

yield?


Inofficial first vice president of the Rust Evangelism Strike Force

Offline

#4 2025-01-21 12:59:28

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 23,923

Re: [SOLVED] arch-chroot with localectl set-keymap fr doesn't work

localectl will only configure /etc/X11/xorg.conf.d/00-keyboard.conf which isn't getting parsed by KDE (wayland), just set it explicitly once in KDE.

Last edited by V1del (2025-01-21 12:59:51)

Offline

#5 2025-01-21 13:05:23

jebez
Member
Registered: 2025-01-15
Posts: 50

Re: [SOLVED] arch-chroot with localectl set-keymap fr doesn't work

Sorry for https://archlinuxarm.org/ schard, I didn't know, from there to throw Feature request: F2FS support for the BIOS...

arch-chroot /mnt localedef --list

in archlinux-2025.01.01-x86_64.iso &

localedef --list

in my Arch Linux KDE: nothing.

So

localectl set-keymap fr

can't work in archlinux-*-x86_64.iso? Only once in my Arch Linux KDE (it works)?

Sorry V1del it was wrong (I reinstalled with my script) I updated this post.

Last edited by jebez (2025-01-21 16:18:39)

Offline

#6 2025-01-21 13:43:01

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 23,923

Re: [SOLVED] arch-chroot with localectl set-keymap fr doesn't work

what do you mean exactly, do you get an error from your script or is it simply not set in KDE? that keymap command will set it for the console and for xorg. Wayland enviroments have their own config which isn't going to be covered, since your linked post talks about a KDE session it stands to reason you actually mean a KDE session where you will have to configure this explcitly (or write ~/.config/kxbrc accordingly: https://bbs.archlinux.org/viewtopic.php?id=302504

Offline

#7 2025-01-21 14:00:27

jebez
Member
Registered: 2025-01-15
Posts: 50

Re: [SOLVED] arch-chroot with localectl set-keymap fr doesn't work

See my previous post, does edit a post signal you?

Last edited by jebez (2025-01-21 15:03:34)

Offline

#8 2025-01-21 16:03:26

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 23,923

Re: [SOLVED] arch-chroot with localectl set-keymap fr doesn't work

what exactly doesn't work? And yes generally speaking a lot of systemd utilities need a proper session bus which isn't available in a chroot. AFAIK localectl shouldn't be one of them, but it's entirely unclear what error you're getting or what your expectation is.

Offline

#9 2025-01-21 16:10:40

jebez
Member
Registered: 2025-01-15
Posts: 50

Re: [SOLVED] arch-chroot with localectl set-keymap fr doesn't work

In my install script https://bbs.archlinux.org/viewtopic.php … 5#p2221235 there's

arch-chroot /mnt bash -c "...
localectl set-keymap fr
..."

& just simply

arch-chroot /mnt localectl set-keymap fr

don't work: reboot on my fresh Arch Linux KDE, it's still qwerty, not azerty.

But here if I do

localectl set-keymap fr

it works.

So it not possible to do it in archlinux-*-x86_64.iso?

Last edited by jebez (2025-01-21 16:22:33)

Offline

#10 2025-01-21 16:33:02

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 23,923

Re: [SOLVED] arch-chroot with localectl set-keymap fr doesn't work

localectl will talk via dbus and potentially inform the session of the change. If you do that on the chroot there's no session to inform, so it will only write two files, neither of which will be read by KDE.

Offline

#11 2025-01-21 16:50:21

jebez
Member
Registered: 2025-01-15
Posts: 50

Re: [SOLVED] arch-chroot with localectl set-keymap fr doesn't work

Ok thanks. Kamehameha!

With

arch-chroot /mnt bash -c "...
localectl set-keymap fr
..."
localectl status

&

arch-chroot /mnt localectl status

both output:

System Locale: LANG=C.UTF-8
VC Keymap: fr
X11 Layout: fr
X11 Options: terminate:ctrl_alt_bksp

so it affects archlinux-2025.01.01-x86_64.iso, not /mnt.

Should add that in https://wiki.archlinux.org/title/Linux_ … figuration.

Last edited by jebez (2025-01-21 20:31:26)

Offline

Board footer

Powered by FluxBB