Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
xorg and multiple keyboards with different layouts
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
AustrianCoder
Apprentice
Apprentice


Joined: 11 Oct 2003
Posts: 258
Location: �sterreich

PostPosted: Tue Apr 05, 2011 9:52 am    Post subject: xorg and multiple keyboards with different layouts Reply with quote

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
View user's profile Send private message
ppurka
Advocate
Advocate


Joined: 26 Dec 2004
Posts: 3256

PostPosted: Tue Apr 05, 2011 11:28 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum