Hello,
I'm facing a small problem with my new dvorak keyboard connected to my
laptop (having an azerty keyboard).
I'm running OpenBSD 6.4
After having performed the following command:
> doas wsconsctl keyboard1.encoding=fr.dvorak
I'm able to use both keyboards on the console ;-)
On the laptop I'm well with Azerty and on the USB I'm well with dvorak.
Great !!!! This is exactly what I'm looking for.
But when I'm starting Xorg (either xenodm or startx), both keyboards are in
dvorak.
If I'm using a linux machines, the command setxkbmap allow me to have both
keyboards in Xorg. The linux command is based on ID and is like this:
> setxkbmap -device 17 -layout fr -variant dvorak.
The ID is identified by the command
> xinput list
Unfortunately, in OpenBSD this xinput command always return the same
output.
It's like it does not see the USB keyboard. Despite I'm able to use it, but
not with the correct layout.
Here after the output
obsd-laptop:~$ xinput list
⎡ Virtual core pointer id=2 [master pointer
(3)]
⎜ ↳ Virtual core XTEST pointer id=4 [slave pointer
(2)]
⎜ ↳ /dev/wsmouse id=7 [slave pointer
(2)]
⎣ Virtual core keyboard id=3 [master keyboard
(2)]
↳ Virtual core XTEST keyboard id=5 [slave keyboard
(3)]
↳ /dev/wskbd id=6 [slave keyboard
(3)]
I do not use a specific /etc/X11/xorg.conf file
My .xsession file is empty
My .xinitrc file is like this:
obsd-laptop:~$ more .xsession
.xsession: No such file or directory
obsd-laptop:~$ more .xinitrc
export LANG=en_US.UTF-8
exec openbox-session
The OpenBSD's man page about setxkbmap says:
*-device device* Specifies the numeric device id of the input device to be
updated with the new keyboard layout. If not specified, the core keyboard
device of the X server is updated.
How to get this ID ?
How to perform this multi keyboard setup in xorg (xenorca) ?
In which direction should I look for ?
Many thanks