GNU bug report logs - #37428
Keyboard layout setting fails when no keyboard is attached

Previous Next

Package: guix;

Reported by: dario <dario.klingenberg <at> web.de>

Date: Mon, 16 Sep 2019 16:15:02 UTC

Severity: normal

To reply to this bug, email your comments to 37428 AT debbugs.gnu.org.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-guix <at> gnu.org:
bug#37428; Package guix. (Mon, 16 Sep 2019 16:15:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to dario <dario.klingenberg <at> web.de>:
New bug report received and forwarded. Copy sent to bug-guix <at> gnu.org. (Mon, 16 Sep 2019 16:15:03 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: dario <dario.klingenberg <at> web.de>
To: bug-guix <bug-guix <at> gnu.org>
Subject: Keyboard layout setting fails when no keyboard is attached
Date: Mon, 16 Sep 2019 17:32:31 +0200
I have Guix system installed on a Laptop/Tablet hybrid that allows
detaching the keyboard. In my system configuration, I set the keyboard
layout to the German QWERTZ using

(operating-system
...
 (keyboard-layout
  (keyboard-layout "de" "nodeadkeys"))
 (bootloader
  (bootloader-configuration
   (bootloader grub-efi-bootloader)
   (target "/boot/efi")
   (keyboard-layout keyboard-layout)))
...
 (services
  (append
   (list ...
         (set-xorg-configuration
          (xorg-configuration
           (keyboard-layout keyboard-layout)
           ...
   %desktop-services))))))

When the keyboard is attached, the keyboard layout is set correctly in
the TTY and in the graphical session. However, without the keyboard
attached, even when an external USB-keyboard is attached, the keyboard
layout is only set correctly in the TTY, but in the graphical session,
the default QWERTY layout is set.

This issue is obviously very easy to work around by either attaching the
keyboard or using setxkbmap, but the behaviour seems strange enough to
warrant reporting.

Best regards,
Dario




Information forwarded to bug-guix <at> gnu.org:
bug#37428; Package guix. (Wed, 18 Sep 2019 04:53:02 GMT) Full text and rfc822 format available.

Message #8 received at 37428 <at> debbugs.gnu.org (full text, mbox):

From: quiliro <at> riseup.net
To: "dario" <dario.klingenberg <at> web.de>
Cc: 37428 <at> debbugs.gnu.org
Subject: Re: bug#37428: Keyboard layout setting fails when no keyboard is
 attached
Date: Tue, 17 Sep 2019 23:52:28 -0500
On Mon, September 16, 2019 10:32 am, dario wrote:
> I have Guix system installed on a Laptop/Tablet hybrid that allows
> detaching the keyboard. In my system configuration, I set the keyboard
> layout to the German QWERTZ using
>
> (operating-system
> ...
>  (keyboard-layout
>   (keyboard-layout "de" "nodeadkeys"))
>  (bootloader
>   (bootloader-configuration
>    (bootloader grub-efi-bootloader)
>    (target "/boot/efi")
>    (keyboard-layout keyboard-layout)))
> ...
>  (services
>   (append
>    (list ...
>          (set-xorg-configuration
>           (xorg-configuration
>            (keyboard-layout keyboard-layout)
>            ...
>    %desktop-services))))))

(keyboard-layout keyboard-layout))





Information forwarded to bug-guix <at> gnu.org:
bug#37428; Package guix. (Wed, 18 Sep 2019 04:58:01 GMT) Full text and rfc822 format available.

Message #11 received at 37428 <at> debbugs.gnu.org (full text, mbox):

From: quiliro <at> riseup.net
To: "dario" <dario.klingenberg <at> web.de>
Cc: 37428 <at> debbugs.gnu.org
Subject: Re: bug#37428: Keyboard layout setting fails when no keyboard is
 attached
Date: Tue, 17 Sep 2019 23:57:06 -0500
This is my setting for that section:

 (services (append (list
	    (service gnome-desktop-service-type)
            (service xfce-desktop-service-type)
	    (set-xorg-configuration
	     (xorg-configuration             ;for Xorg
	      (keyboard-layout keyboard-layout))))
	    %desktop-services))

I hope it is helpful.





Information forwarded to bug-guix <at> gnu.org:
bug#37428; Package guix. (Thu, 19 Sep 2019 14:32:02 GMT) Full text and rfc822 format available.

Message #14 received at 37428 <at> debbugs.gnu.org (full text, mbox):

From: dario <dario.klingenberg <at> web.de>
To: quiliro <at> riseup.net
Cc: 37428 <at> debbugs.gnu.org
Subject: Re: bug#37428: Keyboard layout setting fails when no keyboard is
 attached
Date: Thu, 19 Sep 2019 08:02:56 +0200
This looks like what I have, apart from the fact that I use exwm and
therefore have neither gnome nor xfce services.

I just noticed that I may have messed up the parens when I copy/pasted
into the mail; in my config, they are correct.


Best regards,

Dario


quiliro <at> riseup.net writes:

> This is my setting for that section:
>
>  (services (append (list
> 	    (service gnome-desktop-service-type)
>             (service xfce-desktop-service-type)
> 	    (set-xorg-configuration
> 	     (xorg-configuration             ;for Xorg
> 	      (keyboard-layout keyboard-layout))))
> 	    %desktop-services))
>
> I hope it is helpful.





Information forwarded to bug-guix <at> gnu.org:
bug#37428; Package guix. (Thu, 19 Sep 2019 21:03:02 GMT) Full text and rfc822 format available.

Message #17 received at 37428 <at> debbugs.gnu.org (full text, mbox):

From: Ludovic Courtès <ludo <at> gnu.org>
To: dario <dario.klingenberg <at> web.de>
Cc: 37428 <at> debbugs.gnu.org
Subject: Re: bug#37428: Keyboard layout setting fails when no keyboard is
 attached
Date: Thu, 19 Sep 2019 23:02:49 +0200
Hello,

dario <dario.klingenberg <at> web.de> skribis:

> When the keyboard is attached, the keyboard layout is set correctly in
> the TTY and in the graphical session. However, without the keyboard
> attached, even when an external USB-keyboard is attached, the keyboard
> layout is only set correctly in the TTY, but in the graphical session,
> the default QWERTY layout is set.

Are you using GNOME, or Xfce, or some lightweight window manager?

When the X11 keyboard layout is incorrect, are there any hints in
~/.local/share/xorg/Xorg.1.log as to why?

Thanks,
Ludo’.




Information forwarded to bug-guix <at> gnu.org:
bug#37428; Package guix. (Mon, 23 Sep 2019 17:01:01 GMT) Full text and rfc822 format available.

Message #20 received at 37428 <at> debbugs.gnu.org (full text, mbox):

From: dario <dario.klingenberg <at> web.de>
To: Ludovic Courtès <ludo <at> gnu.org>
Cc: 37428 <at> debbugs.gnu.org
Subject: Re: bug#37428: Keyboard layout setting fails when no keyboard is
 attached
Date: Mon, 23 Sep 2019 18:59:46 +0200
Hello Ludo,


> Are you using GNOME, or Xfce, or some lightweight window manager?
I am using EXWM. Interestingly, when using GNOME, the problem does not appear.

> When the X11 keyboard layout is incorrect, are there any hints in
> ~/.local/share/xorg/Xorg.1.log as to why?
Maybe this is relevant? As far as I can tell, this all looks fine.
[    39.298] (II) XINPUT: Adding extended input device "Logitech K520" (type: KEYBOARD, id 10)
[    39.298] (**) Option "xkb_rules" "evdev"
[    39.298] (**) Option "xkb_layout" "de"
[    39.298] (**) Option "xkb_variant" "nodeadkeys"
[    39.298] (**) Option "xkb_options" "ctrl:nocaps"
[    39.298] (II) evdev: Logitech K520: initialized for relative axes.
[    39.298] (WW) evdev: Logitech K520: ignoring absolute axes.
[    39.298] (**) Logitech K520: (accel) keeping acceleration scheme 1
[    39.298] (**) Logitech K520: (accel) acceleration profile 0
[    39.298] (**) Logitech K520: (accel) acceleration factor: 2.000
[    39.298] (**) Logitech K520: (accel) acceleration threshold: 4
I also searched for errors and warnings, but did not find anything suspicious.

Also, it turns out that when attaching the tablet keyboard, the layout
is also set correctly for the external keyboard, even when the tablet
keyboard is removed again.


Best,

Dario


Ludovic Courtès <ludo <at> gnu.org> writes:

> Hello,
>
> dario <dario.klingenberg <at> web.de> skribis:
>
>> When the keyboard is attached, the keyboard layout is set correctly in
>> the TTY and in the graphical session. However, without the keyboard
>> attached, even when an external USB-keyboard is attached, the keyboard
>> layout is only set correctly in the TTY, but in the graphical session,
>> the default QWERTY layout is set.
>
> Are you using GNOME, or Xfce, or some lightweight window manager?
>
> When the X11 keyboard layout is incorrect, are there any hints in
> ~/.local/share/xorg/Xorg.1.log as to why?
>
> Thanks,
> Ludo’.





This bug report was last modified 5 years and 262 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.