Page 1 of 1

Keyboard Layout for new devices

Posted: 18 Mar 2023, 09:59
by KSPott
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.

Keyboard Layout for new devices

Posted: 18 Mar 2023, 11:55
by fanthom
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