[LightDM] [help] keyboard layout in a multiseat

poma pomidorabelisima at gmail.com
Mon Jun 8 02:46:55 PDT 2015


On 08.06.2015 09:24, Benoit Barthelet wrote:
> I got a multiseat where my two keyboards are different, one is FR, the
> other is GB
> I upgraded to 1.14 recently and had to redo my config from 1.10, so far so
> good, I attached my various gpu, mouse, keyboards with loginctl, everything
> works fine except that both keyboards are GB (which is the default locale).
> 
> So I tried to put this in /etc/lightdm/lightdm.conf
> 
> [Seat:seat1]
> xserver-config=/etc/X11/xorg.conf.seat1
> 
> with the /etc/X11/xorg.conf.seat1 being :
> 
> Section "ServerLayout"
>         Identifier      "seat1"
>         Screen          "Screen1"
>         InputDevice     "Mouse1"        "CorePointer"
>         InputDevice     "Keyboard1"     "CoreKeyboard"
> EndSection
> 
> Section "InputDevice"
>         Identifier      "Keyboard1"
>         Driver          "evdev"
>         Option          "Device"
> "/dev/input/by-id/usb-Dell_Dell_QuietKey_Keyboard-event-kbd"
>         Option          "XkbLayout"     "fr"
> EndSection
> Section "InputDevice"
>         Identifier      "Mouse1"
>         Driver          "evdev"
>         Option          "Device"
> "/dev/input/by-id/usb-DELL_DELL_USB_Laser_Mouse-event-mouse"
>         Option          "GrabDevice"    "True"
> EndSection
> Section "Monitor"
>         Identifier   "Monitor1"
>         VendorName   "Monitor Vendor"
>         ModelName    "Monitor Model"
> EndSection
> Section "Screen"
>         Identifier "Screen1"
>         Monitor    "Monitor1"
> EndSection
> 
> With that setup it works fine, but is that the "right" way to proceed ?


This is a more simple way, rather than "right":

/etc/X11/xorg.conf.d/<unique name>.conf
Section "InputClass"
        Identifier "<unique name>"
        MatchUSBID "<vendor ID>:<product ID>"
        Option "XkbLayout" "<country code>"
EndSection


> Shouldn't the layout of the keyboard be automatically detected ?

Does the keyboard as hardware component provides this information to the system?




More information about the LightDM mailing list