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

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
hsgg
n00b
n00b


Joined: 16 Apr 2007
Posts: 9

PostPosted: Sat Feb 16, 2013 3:46 pm    Post subject: Xorg with multiple keyboards and different layouts Reply with quote

Hi all,

I have two keyboards, one on the laptop with a German layout, and a wireless keyboard with a US layout. I wish to configure each with their own layout, so I do
Code:
$ setxkbmap -device 10 us
$ setxkbmap -device 11 de nodeadkeys

This initially works. 'us' layout on the wireless, 'de' on the laptop. But as soon as I press a button on the German keyboard, the us keyboard turns German. It would not stay with a US layout. I have disabled all keyboard layout management from the desktop environment (LXDE).

Any help with solving this would be greatly appreciated.

Another, perhaps related, point is that the wireless keyboard (which also has a mouse) shows up as pointer with xinput, as you can see below. The wireless keyboard is the "Logitech Unifying Device. Wireless PID:400e", laptop keyboard is the "AT Translated Set 2 keyboard":
Code:
⎡ Virtual core pointer                       id=2   [master pointer  (3)]
⎜   ↳ Virtual core XTEST pointer                 id=4   [slave  pointer  (2)]
⎜   ↳ Logitech USB-PS/2 Optical Mouse            id=9   [slave  pointer  (2)]
⎜   ↳ Logitech Unifying Device. Wireless PID:400e   id=10   [slave  pointer  (2)]
⎜   ↳ TPPS/2 IBM TrackPoint                      id=12   [slave  pointer  (2)]
⎣ Virtual core keyboard                      id=3   [master keyboard (2)]
    ↳ Virtual core XTEST keyboard                id=5   [slave  keyboard (3)]
    ↳ Power Button                               id=6   [slave  keyboard (3)]
    ↳ Video Bus                                  id=7   [slave  keyboard (3)]
    ↳ Sleep Button                               id=8   [slave  keyboard (3)]
    ↳ AT Translated Set 2 keyboard               id=11   [slave  keyboard (3)]
    ↳ ThinkPad Extra Buttons                     id=13   [slave  keyboard (3)]

Thanks,
Henry

EDIT: Of course, an anonymous user informed me that I forgot essential information:

~amd64
x11-base/xorg-server-1.13.2
x11-base/xorg-drivers-1.13
x11-drivers/xf86-input-evdev-2.7.3
Currently I have:
Code:
$ setxkbmap -query
rules:      evdev
model:      pc105
layout:     de
variant:    nodeadkeys
options:    grp:alt_shift_toggle

And I don't have an xorg.conf anywhere. But if I do use one, then "MatchIsKeyboard" does not work, as the wireless keyboard is recognized as a mouse!
Back to top
View user's profile Send private message
christofdeluca
n00b
n00b


Joined: 19 Mar 2005
Posts: 34

PostPosted: Thu Feb 21, 2013 2:02 am    Post subject: Reply with quote

http://askubuntu.com/questions/41421/multiple-keyboards-with-different-layouts

Basically you can do it with a nice xorg.conf.
Back to top
View user's profile Send private message
hsgg
n00b
n00b


Joined: 16 Apr 2007
Posts: 9

PostPosted: Sat Mar 02, 2013 10:17 pm    Post subject: Reply with quote

Thanks, christofdeluca. With the xorg.conf approach, I have the same problem as with setxkbmap: It initially works, but as soon as I press a button on the laptop keyboard, all is German.

Could this be a kernel bug? I am suspecting this, since my wireless keyboard+mouse shows up as a mouse only.
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