Keyboard Layout for new devices

Post bug reports related to either the kiosk ISO or the kiosk wizard here.
Forum rules
Porteus Kiosk section of the forum is unmaintained now. Its kept in a 'read only' mode for archival purposes.
Please use the kiosk contact page for directing your queries: https://porteus-kiosk.org/contact.html
KSPott
Ronin
Ronin
Posts: 1
Joined: 18 Mar 2023, 09:47
Distribution: Porteus Kiosk

Keyboard Layout for new devices

Post#1 by KSPott » 18 Mar 2023, 09:59

Good morning,

first of all I have to mention that Porteus Kiosk is a great Sytem and it helps me a lot in my daily work!

I am using Porteus Kiosk in the latest version and I have some problems with keyboard layout. This problem existed in previous versions too.

My config says "primary_keyboard_layout=de" and when I boot the system with keyboard connected everything works as expected.
But as soon as a new keybord device is connected after boot it will always have US-Keyboard-Layout.
The keyboard which was connected on boot time will stay an german layout.
When I reboot the system with both connected, both will use the desired layout.

Is there a problem with my configuration or could this be a bug?

Thank you very much for your help.

User avatar
fanthom
Moderator Team
Moderator Team
Posts: 5666
Joined: 28 Dec 2010, 02:42
Distribution: Porteus Kiosk
Location: Poland
Contact:

Keyboard Layout for new devices

Post#2 by fanthom » 18 Mar 2023, 11:55

Hello KSPott,

I believe this is an Xorg bug as it should set the layout per session and not per device.

You can workaround it with following parameter:

Code: Select all

run_command=(while true; do setxkbmap de; sleep 2; done; ) &
This is a "hammer" approach but works.

Thanks
Please add [Solved] to your thread title if the solution was found.

Locked