View previous topic :: View next topic |
Author |
Message |
AustrianCoder Apprentice
Joined: 11 Oct 2003 Posts: 258 Location: �sterreich
|
Posted: Tue Apr 05, 2011 9:52 am Post subject: xorg and multiple keyboards with different layouts |
|
|
Hi all.
I am working on a device with a special matrix keyboard on it. For this device there exists an userspace driver based on uinput.
The matrix keyboard needs to be configured for a German layout. Until now quite easy:
Code: |
Section "InputClass"
Identifier "matrix keyboard"
MatchIsKeyboard "on"
MatchProduct "matrix_keyboard"
Option "XkbLayout" "de"
EndSection
|
Now I have an other requirement. I need to be able to connect any USB-Keyboard and use for them maybe an other layout. So we have
the following situation:
matrix keyboard: de layout
usb keyboard: uk layout
I have tried this configuration
Code: |
Section "InputClass"
Identifier "matrix keyboard"
MatchIsKeyboard "on"
MatchProduct "matrix_keyboard"
Option "XkbLayout" "de"
EndSection
Section "InputClass"
Identifier "generic keyboard"
MatchIsKeyboard "on"
Option "XkbLayout" "uk"
EndSection
|
This will set the layout of every keyboard to uk and this is not wanted. I have looked at the man of xorg.conf, but I did not found a keyword like MatchNotProduct.
Is there a way to handle this?
Thanks,
AC |
|
Back to top |
|
|
ppurka Advocate
Joined: 26 Dec 2004 Posts: 3256
|
Posted: Tue Apr 05, 2011 11:28 am Post subject: |
|
|
If your keyboards are getting the same device numbers maybe adding something like this to each section helps? Code: | MatchDevicePath "/dev/input/event<number> |
_________________ emerge --quiet redefined | E17 vids: I, II | Now using kde5 | e is unstable :-/ |
|
Back to top |
|
|
|