public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] How to configure keyboard layout for X11 libinput?
@ 2020-04-06 14:37 Grant Edwards
  2020-04-06 14:47 ` Michael
  0 siblings, 1 reply; 6+ messages in thread
From: Grant Edwards @ 2020-04-06 14:37 UTC (permalink / raw
  To: gentoo-user

I switched from evdev to libinput as recommeded by recent news, and
now my keyboard is hosed: a bunch of keys are unrecognized or send the
wrong thing.  (Arrow keys don't work, right-CTRL causes screen to
flash, pgup/pgdown don't work, etc.).  Unfortunately, all of the
keyboard layout documentation I find talks about evdev, but doesn't
mention libinput:

https://wiki.gentoo.org/wiki/Keyboard_layout_switching

Where/how to I set keyboard layout for libinput?

--
Grant





^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [gentoo-user] How to configure keyboard layout for X11 libinput?
  2020-04-06 14:37 [gentoo-user] How to configure keyboard layout for X11 libinput? Grant Edwards
@ 2020-04-06 14:47 ` Michael
  2020-04-06 15:09   ` [gentoo-user] " Grant Edwards
  0 siblings, 1 reply; 6+ messages in thread
From: Michael @ 2020-04-06 14:47 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 629 bytes --]

On Monday, 6 April 2020 15:37:34 BST Grant Edwards wrote:
> I switched from evdev to libinput as recommeded by recent news, and
> now my keyboard is hosed: a bunch of keys are unrecognized or send the
> wrong thing.  (Arrow keys don't work, right-CTRL causes screen to
> flash, pgup/pgdown don't work, etc.).  Unfortunately, all of the
> keyboard layout documentation I find talks about evdev, but doesn't
> mention libinput:
> 
> https://wiki.gentoo.org/wiki/Keyboard_layout_switching
> 
> Where/how to I set keyboard layout for libinput?
> 
> --
> Grant

Did you try '/etc/X11/xorg.conf.d/10-evdev.conf' ?

It still works here.

[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [gentoo-user] Re: How to configure keyboard layout for X11 libinput?
  2020-04-06 14:47 ` Michael
@ 2020-04-06 15:09   ` Grant Edwards
  2020-04-06 15:12     ` Grant Edwards
  0 siblings, 1 reply; 6+ messages in thread
From: Grant Edwards @ 2020-04-06 15:09 UTC (permalink / raw
  To: gentoo-user

On 2020-04-06, Michael <confabulate@kintzios.com> wrote:
> On Monday, 6 April 2020 15:37:34 BST Grant Edwards wrote:
>> I switched from evdev to libinput as recommeded by recent news, and
>> now my keyboard is hosed: a bunch of keys are unrecognized or send the
>> wrong thing.  (Arrow keys don't work, right-CTRL causes screen to
>> flash, pgup/pgdown don't work, etc.).  Unfortunately, all of the
>> keyboard layout documentation I find talks about evdev, but doesn't
>> mention libinput:
>> 
>> https://wiki.gentoo.org/wiki/Keyboard_layout_switching
>> 
>> Where/how to I set keyboard layout for libinput?
>> 
>> --
>> Grant
>
> Did you try '/etc/X11/xorg.conf.d/10-evdev.conf' ?

My keyboard config is in /etc/X11/xorg.conf.d/30-keyboard.conf

The control/capslock key mapping still works, but the keyboard layout
is borked.  If I remove that file, the control/capslock mapping stops
working (as expected), and the kayboard layout is OK.

Next, I tried just removing 'Option "XkbLayout'", and that made no
difference.  Here is what I started with:

Section "InputClass"
        Identifier "keyboard-all"
        Driver "libinput"
        Option "XkbLayout" "us"
        Option "XkbRules" "xorg"
        Option "XkbOptions" "ctrl:nocaps,compose:ralt"
        MatchIsKeyboard "on"
EndSection

Here's what I have no (no difference in behavior):

Section "InputClass"
        Identifier "keyboard-all"
        Driver "libinput"
        Option "XkbRules" "xorg"
        Option "XkbOptions" "ctrl:nocaps,compose:ralt"
        MatchIsKeyboard "on"
EndSection



^ permalink raw reply	[flat|nested] 6+ messages in thread

* [gentoo-user] Re: How to configure keyboard layout for X11 libinput?
  2020-04-06 15:09   ` [gentoo-user] " Grant Edwards
@ 2020-04-06 15:12     ` Grant Edwards
  2020-04-06 16:59       ` Mike Gilbert
  0 siblings, 1 reply; 6+ messages in thread
From: Grant Edwards @ 2020-04-06 15:12 UTC (permalink / raw
  To: gentoo-user

On 2020-04-06, Grant Edwards <grant.b.edwards@gmail.com> wrote:
> On 2020-04-06, Michael <confabulate@kintzios.com> wrote:
>
>> Did you try '/etc/X11/xorg.conf.d/10-evdev.conf' ?
>
> My keyboard config is in /etc/X11/xorg.conf.d/30-keyboard.conf
>
> The control/capslock key mapping still works, but the keyboard layout
> is borked.  If I remove that file, the control/capslock mapping stops
> working (as expected), and the kayboard layout is OK.
>
> Next, I tried just removing 'Option "XkbLayout'", and that made no
> difference.  Here is what I started with:
>
> Section "InputClass"
>         Identifier "keyboard-all"
>         Driver "libinput"
>         Option "XkbLayout" "us"
>         Option "XkbRules" "xorg"
>         Option "XkbOptions" "ctrl:nocaps,compose:ralt"
>         MatchIsKeyboard "on"
> EndSection

I also had to remove the "XkbRules" option.  Now the keyboard mapping
is back to "normal".  'Twould be nice if things like that were
documented somewhere, but I'm not sure where it would be...

--
Grant



^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [gentoo-user] Re: How to configure keyboard layout for X11 libinput?
  2020-04-06 15:12     ` Grant Edwards
@ 2020-04-06 16:59       ` Mike Gilbert
  2020-04-06 18:00         ` Grant Edwards
  0 siblings, 1 reply; 6+ messages in thread
From: Mike Gilbert @ 2020-04-06 16:59 UTC (permalink / raw
  To: gentoo-user

On Mon, Apr 6, 2020 at 11:12 AM Grant Edwards <grant.b.edwards@gmail.com> wrote:
>
> On 2020-04-06, Grant Edwards <grant.b.edwards@gmail.com> wrote:
> > On 2020-04-06, Michael <confabulate@kintzios.com> wrote:
> >
> >> Did you try '/etc/X11/xorg.conf.d/10-evdev.conf' ?
> >
> > My keyboard config is in /etc/X11/xorg.conf.d/30-keyboard.conf
> >
> > The control/capslock key mapping still works, but the keyboard layout
> > is borked.  If I remove that file, the control/capslock mapping stops
> > working (as expected), and the kayboard layout is OK.
> >
> > Next, I tried just removing 'Option "XkbLayout'", and that made no
> > difference.  Here is what I started with:
> >
> > Section "InputClass"
> >         Identifier "keyboard-all"
> >         Driver "libinput"
> >         Option "XkbLayout" "us"
> >         Option "XkbRules" "xorg"
> >         Option "XkbOptions" "ctrl:nocaps,compose:ralt"
> >         MatchIsKeyboard "on"
> > EndSection
>
> I also had to remove the "XkbRules" option.  Now the keyboard mapping
> is back to "normal".  'Twould be nice if things like that were
> documented somewhere, but I'm not sure where it would be...

Take a look at the libinput(4) man page, which is installed by
x11-drivers/xf86-input-libinput.


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [gentoo-user] Re: How to configure keyboard layout for X11 libinput?
  2020-04-06 16:59       ` Mike Gilbert
@ 2020-04-06 18:00         ` Grant Edwards
  0 siblings, 0 replies; 6+ messages in thread
From: Grant Edwards @ 2020-04-06 18:00 UTC (permalink / raw
  To: gentoo-user

On 2020-04-06, Mike Gilbert <floppym@gentoo.org> wrote:

>> I also had to remove the "XkbRules" option.  Now the keyboard mapping
>> is back to "normal".  'Twould be nice if things like that were
>> documented somewhere, but I'm not sure where it would be...
>
> Take a look at the libinput(4) man page, which is installed by
> x11-drivers/xf86-input-libinput.

Nothing there except mouse/trackpad stuff.  I don't see anything about
keyboard layout in general or XkbRules in particular.

--
Grant



^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2020-04-06 18:00 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-04-06 14:37 [gentoo-user] How to configure keyboard layout for X11 libinput? Grant Edwards
2020-04-06 14:47 ` Michael
2020-04-06 15:09   ` [gentoo-user] " Grant Edwards
2020-04-06 15:12     ` Grant Edwards
2020-04-06 16:59       ` Mike Gilbert
2020-04-06 18:00         ` Grant Edwards

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox