You are not logged in.

#26 2017-10-16 22:52:24

cfr
Member
From: Cymru
Registered: 2011-11-27
Posts: 7,131

Re: Compose key fails in QT apps in KDE & all (?) apps in LWM session

seth wrote:
localectl
locale
locale -a
env | grep -E '(LC_|LANG)'

I take it 'C' is not normal, then?

Output from localectl ; locale ; locale -a ; env | grep '\(LC_\)\|\(LANG\)' (I'm never keen on the '-e/E' for grep):

   System Locale: LANG=cy_GB.UTF-8
                  LANGUAGE=cy_GB:cy:en_GB:en
                  LC_COLLATE=C
       VC Keymap: us
      X11 Layout: us
       X11 Model: pc105+inet
     X11 Variant: euro
     X11 Options: terminate:ctrl_alt_bksp+eurosign:5+compose:caps

LANG=cy_GB.UTF-8
LC_CTYPE="cy_GB.UTF-8"
LC_NUMERIC="cy_GB.UTF-8"
LC_TIME="cy_GB.UTF-8"
LC_COLLATE=C
LC_MONETARY="cy_GB.UTF-8"
LC_MESSAGES="cy_GB.UTF-8"
LC_PAPER="cy_GB.UTF-8"
LC_NAME="cy_GB.UTF-8"
LC_ADDRESS="cy_GB.UTF-8"
LC_TELEPHONE="cy_GB.UTF-8"
LC_MEASUREMENT="cy_GB.UTF-8"
LC_IDENTIFICATION="cy_GB.UTF-8"
LC_ALL=

C
POSIX
cy_GB.utf8
en_GB.utf8
en_US.utf8

LANG=cy_GB.UTF-8
LC_COLLATE=C
LANGUAGE=en_GB

It used to be correct, only LC_COLLATE is (reasonably) "C"

What do you mean by 'it used to be correct'? What is correct now?

Also, does "AT Translated Set 2 keyboard" actually match your product?

Yes. It definitely is matching. The X log shows it picking up the product and applying the relevant configuration settings.

[  3426.771] (II) config/udev: Adding input device AT Translated Set 2 keyboard (/dev/input/event4)
[  3426.771] (**) AT Translated Set 2 keyboard: Applying InputClass "evdev keyboard catchall"
[  3426.771] (**) AT Translated Set 2 keyboard: Applying InputClass "libinput keyboard catchall"
[  3426.771] (**) AT Translated Set 2 keyboard: Applying InputClass "cfr evdev keyboard"
[  3426.771] (II) LoadModule: "evdev"
[  3426.771] (II) Loading /usr/lib/xorg/modules/input/evdev_drv.so
[  3426.772] (II) Module evdev: vendor="X.Org Foundation"
[  3426.772]    compiled for 1.19.1, module version = 2.10.5
[  3426.772]    Module class: X.Org XInput Driver
[  3426.772]    ABI class: X.Org XInput driver, version 24.1
[  3426.772] (II) Using input driver 'evdev' for 'AT Translated Set 2 keyboard'
[  3426.772] (**) AT Translated Set 2 keyboard: always reports core events
[  3426.772] (**) evdev: AT Translated Set 2 keyboard: Device: "/dev/input/event4"
[  3426.772] (--) evdev: AT Translated Set 2 keyboard: Vendor 0x1 Product 0x1
[  3426.772] (--) evdev: AT Translated Set 2 keyboard: Found keys
[  3426.772] (II) evdev: AT Translated Set 2 keyboard: Configuring as keyboard
[  3426.772] (**) Option "config_info" "udev:/sys/devices/platform/i8042/serio0/input/input4/event4"
[  3426.772] (II) XINPUT: Adding extended input device "AT Translated Set 2 keyboard" (type: KEYBOARD, id 11)
[  3426.772] (**) Option "xkb_rules" "evdev"
[  3426.772] (**) Option "xkb_model" "pc105+inet"
[  3426.772] (**) Option "xkb_layout" "us"
[  3426.772] (**) Option "xkb_variant" "euro"
[  3426.772] (**) Option "xkb_options" "terminate:ctrl_alt_bksp+eurosign:5+compose:caps"

I did it this way because it counts all kinds of things as 'keyboards' and I didn't want to mess up the auto-configuration for everything else.


CLI Paste | How To Ask Questions

Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L

Offline

#27 2017-10-17 05:12:32

seth
Member
Registered: 2012-09-03
Posts: 50,012

Re: Compose key fails in QT apps in KDE & all (?) apps in LWM session

Still only LC_COLLATE (as it used to be in comment #16) and that's probably just what setxkbmap prints out here - nothing to worry about.

What's the content of your ~/.XCompose and if the answer is "nothing", what if you put there

# GREEK
<Multi_key> <g> <A>    : "Α"   U0391    # GREEK CAPITAL LETTER ALPHA
<Multi_key> <g> <a>    : "α"   U03B1    # GREEK SMALL LETTER ALPHA
<Multi_key> <g> <B>    : "Β"   U0392    # GREEK CAPITAL LETTER BETA
<Multi_key> <g> <b>    : "β"   U03B2    # GREEK SMALL LETTER BETA
<Multi_key> <g> <D>    : "Δ"   U0394    # GREEK CAPITAL LETTER DELTA
<Multi_key> <g> <d>    : "δ"   U03B4    # GREEK SMALL LETTER DELTA
<Multi_key> <g> <E>    : "Ε"   U0395    # GREEK CAPITAL LETTER EPSILON
<Multi_key> <g> <e>    : "ε"   U03B5    # GREEK SMALL LETTER EPSILON
<Multi_key> <g> <F>    : "Φ"   U03A6    # GREEK CAPITAL LETTER PHI
<Multi_key> <g> <f>    : "φ"   U03C6    # GREEK SMALL LETTER PHI
<Multi_key> <g> <G>    : "Γ"   U0393    # GREEK CAPITAL LETTER GAMMA
<Multi_key> <g> <g>    : "γ"   U03B3    # GREEK SMALL LETTER GAMMA
<Multi_key> <g> <H>    : "Η"   U0397    # GREEK CAPITAL LETTER ETA
<Multi_key> <g> <h>    : "η"   U03B7    # GREEK SMALL LETTER ETA
<Multi_key> <g> <I>    : "Ι"   U0399    # GREEK CAPITAL LETTER IOTA
<Multi_key> <g> <i>    : "ι"   U03B9    # GREEK SMALL LETTER IOTA
<Multi_key> <g> <J>    : "Θ"   U0398    # GREEK CAPITAL LETTER THETA
<Multi_key> <g> <j>    : "θ"   U03B8    # GREEK SMALL LETTER THETA
<Multi_key> <g> <K>    : "Κ"   U039A    # GREEK CAPITAL LETTER KAPPA
<Multi_key> <g> <k>    : "κ"   U03BA    # GREEK SMALL LETTER KAPPA
<Multi_key> <g> <L>    : "Λ"   U039B    # GREEK CAPITAL LETTER LAMDA
<Multi_key> <g> <l>    : "λ"   U03BB    # GREEK SMALL LETTER LAMDA
<Multi_key> <g> <M>    : "Μ"   U039C    # GREEK CAPITAL LETTER MU
<Multi_key> <g> <m>    : "μ"   U03BC    # GREEK SMALL LETTER MU
<Multi_key> <g> <N>    : "Ν"   U039D    # GREEK CAPITAL LETTER NU
<Multi_key> <g> <n>    : "ν"   U03BD    # GREEK SMALL LETTER NU
<Multi_key> <g> <O>    : "Ο"   U039F    # GREEK CAPITAL LETTER OMICRON
<Multi_key> <g> <o>    : "ο"   U03BF    # GREEK SMALL LETTER OMICRON
<Multi_key> <g> <P>    : "Π"   U03A0    # GREEK CAPITAL LETTER PI
<Multi_key> <g> <p>    : "π"   U03C0    # GREEK SMALL LETTER PI
<Multi_key> <g> <Q>    : "Χ"   U03A7    # GREEK CAPITAL LETTER CHI
<Multi_key> <g> <q>    : "χ"   U03C7    # GREEK SMALL LETTER CHI
<Multi_key> <g> <R>    : "Ρ"   U03A1    # GREEK CAPITAL LETTER RHO
<Multi_key> <g> <r>    : "ρ"   U03C1    # GREEK SMALL LETTER RHO
<Multi_key> <g> <S>    : "Σ"   U03A3    # GREEK CAPITAL LETTER SIGMA
<Multi_key> <g> <s>    : "σ"   U03C3    # GREEK SMALL LETTER SIGMA
<Multi_key> <g> <T>    : "Τ"   U03A4    # GREEK CAPITAL LETTER TAU
<Multi_key> <g> <t>    : "τ"   U03C4    # GREEK SMALL LETTER TAU
<Multi_key> <g> <U>    : "Υ"   U03A5    # GREEK CAPITAL LETTER UPSILON
<Multi_key> <g> <u>    : "υ"   U03C5    # GREEK SMALL LETTER UPSILON
<Multi_key> <g> <W>    : "Ω"   U03A9    # GREEK CAPITAL LETTER OMEGA
<Multi_key> <g> <w>    : "ω"   U03C9    # GREEK SMALL LETTER OMEGA
<Multi_key> <g> <X>    : "Ξ"   U039E    # GREEK CAPITAL LETTER XI
<Multi_key> <g> <x>    : "ξ"   U03BE    # GREEK SMALL LETTER XI
<Multi_key> <g> <Y>    : "Ψ"   U03A8    # GREEK CAPITAL LETTER PSI
<Multi_key> <g> <y>    : "ψ"   U03C8    # GREEK SMALL LETTER PSI
<Multi_key> <g> <Z>    : "Ζ"   U0396    # GREEK CAPITAL LETTER ZETA
<Multi_key> <g> <z>    : "ζ"   U03B6    # GREEK SMALL LETTER ZETA

and startx again? Can you insert "λ" this way now? (Though caps lock should not activate caps... what other keyboard devices do you have? "xinput")

Offline

#28 2017-10-17 12:54:04

cfr
Member
From: Cymru
Registered: 2011-11-27
Posts: 7,131

Re: Compose key fails in QT apps in KDE & all (?) apps in LWM session

Can you insert "λ" this way now? (Though caps lock should not activate caps... what other keyboard devices do you have? "xinput")

As mentioned above, it does now work in KDE. The third-level chooser (AltGr as default) doesn't produce anything other than the Euro, however.  I'm a bit reluctant to try ~/.XCompose now CapsLock is working as compose in a plasma session. If I understood what was going on, it would be different. I don't currently have ~/.XCompose at all. I've never tried to make it produce Greek. (I just write \alpha \beta \gamma and so on.) Would these be added to the default combinations or replace them?

xinput:

⎡ 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)]
⎜   ↳ SynPS/2 Synaptics TouchPad                id=12   [slave  pointer  (2)]
⎜   ↳ TPPS/2 IBM TrackPoint                     id=13   [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)]
    ↳ Integrated Camera: Integrated C           id=10   [slave  keyboard (3)]
    ↳ AT Translated Set 2 keyboard              id=11   [slave  keyboard (3)]
    ↳ ThinkPad Extra Buttons                    id=14   [slave  keyboard (3)]

CLI Paste | How To Ask Questions

Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L

Offline

#29 2017-10-17 14:37:54

seth
Member
Registered: 2012-09-03
Posts: 50,012

Re: Compose key fails in QT apps in KDE & all (?) apps in LWM session

Sorry, I misunderstood that only AltGr would work (and only for the €)
The definitions should be added and you can also include other files (that's where I thought things might go wrong on your side)

The 3rd level definitions are part of your keyboard layout, see https://bbs.archlinux.org/viewtopic.php … 8#p1742788
You should get this for the "euro" variant, try the "intl" or "alt-intl" variants.

Offline

#30 2017-10-18 03:16:50

cfr
Member
From: Cymru
Registered: 2011-11-27
Posts: 7,131

Re: Compose key fails in QT apps in KDE & all (?) apps in LWM session

seth wrote:

Sorry, I misunderstood that only AltGr would work (and only for the €)
The definitions should be added and you can also include other files (that's where I thought things might go wrong on your side)

The 3rd level definitions are part of your keyboard layout, see https://bbs.archlinux.org/viewtopic.php … 8#p1742788
You should get this for the "euro" variant, try the "intl" or "alt-intl" variants.

I actually tried the 'intl' variant. However, when I rebooted, nothing produced anything at all explicable. All the keys did some other thing, so I figured out a way to change it back and reboot. (One of the problems was that neither backspace nor enter did what they said on the tin - I think I had to use AltGr for enter and PgUp did something or other.) I don't know if this was due to something else, but I had assumed it was because my keyboard layout doesn't actually match the intl one. (It really is a US layout with Euro.)

So the locale being C is normal? You get that too? I thought the keyboard mappings used this information somehow, but maybe I'm mistaken - I've read so many bits of things and tried so many workarounds etc., that I am certainly likely to be confusing things by now.

Also, I'm sure there is some other cause of the third-level stuff not working, because AltGr only produced the Euro on my old machine. (That's why I made it the compose key - I could manage without the Euro, generally, and it seemed a waste to keep a whole extra key just for that.)

But if you also have locale 'C', it can't be that, anyway.

My locale is not listed in /usr/share/X11/locale/locale.alias, though it is listed in locale.dir. I also noticed comments here that the UTF8 variatns don't yet work properly, but those may be out of date as the wiki recommends using UTF8.

Last edited by cfr (2017-10-18 03:23:40)


CLI Paste | How To Ask Questions

Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L

Offline

#31 2017-10-18 06:33:13

seth
Member
Registered: 2012-09-03
Posts: 50,012

Re: Compose key fails in QT apps in KDE & all (?) apps in LWM session

The us-intl layout: https://upload.wikimedia.org/wikipedia/ … tional.svg

Yes, prints "C" here as well - and surprisingly regardless of *any* locale environment.

Offline

#32 2017-10-18 22:12:51

cfr
Member
From: Cymru
Registered: 2011-11-27
Posts: 7,131

Re: Compose key fails in QT apps in KDE & all (?) apps in LWM session

It seems localectl picks up changes to the configuration and applies them immediately, so you can change the layout without rebooting. This is probably just ask well since enabling us-intl renders me unable to input either my or root's password. In general, this layout wrecks havoc and half of the keyboard is unable. (The simple letters work, but not much else.)

Yes, prints "C" here as well - and surprisingly regardless of *any* locale environment.

Does seem odd.

Is there some other way of using AltGr for something besides typing Euros? Can I add characters to the layout accessed using the third-level chooser? That is, I'm sure I can, but is this sane, reasonable or wise?

Last edited by cfr (2017-10-18 22:13:20)


CLI Paste | How To Ask Questions

Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L

Offline

#33 2020-06-27 09:57:21

dreieck
Member
Registered: 2012-10-08
Posts: 56

Re: Compose key fails in QT apps in KDE & all (?) apps in LWM session

OK, I had the very same problem, and I found the solution here:

GTK+ apps use their own copy of the Compose file from Xorg. The vast majority of compose sequences should continue to work, with a few legacy exceptions. xterm and QT apps use the XOrg compose sequences which is the en_US.UTF-8 file in /usr/share/X11/locate and the ~/.XCompose file if it exists.

Which meant for me:

ln -s /usr/share/X11/locale/en_US.UTF-8/Compose ~/.XCompose

and then it worked in QT programmes, too.

Last edited by dreieck (2020-06-27 10:01:06)

Offline

Board footer

Powered by FluxBB