All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Michał Pecio" <michal.pecio@gmail.com>
To: linux-console@vger.kernel.org
Subject: AltGr leaks keypresses to VT on which X is running
Date: Wed, 26 Apr 2017 16:50:43 +0200	[thread overview]
Message-ID: <20170426165043.6f33563c@gmail.com> (raw)

Hi,

I recently observed this odd behavior:

I login as root on tty3 and run

loadkeys pl # like US QWERTY but AltGr changes a->ą c->ć etc.
echo        # only typed, not actually executed with ENTER

Now the last line shows the incomplete command:

$ echo 

Then I login on tty1 and run

Xorg :0 vt3

which displays Xorg on vt3. Inside Xorg, while holding AltGr, I hit
every letter in order: qwerty...asdf...zxc..

Then I kill Xorg and switch to vt3. Now the last line shows:

$ echo ęąśłżźń

These are all AltGr-generated Polish letters _except_ ó (AltGr+o).
No idea what's so special about ó. Pressing ENTER runs echo which
really prints this string.

Similar thing happens with German ('de') console layout. X layout seems
irrelevant.

It only happens if I first hold AltGr and then press a letter, not the
other way around.

Inside Xorg, all keys are processed correctly.

I'm not sure if it's a kernel bug, X bug or something "expected"?

Thanks,
Michal

                 reply	other threads:[~2017-04-26 14:50 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20170426165043.6f33563c@gmail.com \
    --to=michal.pecio@gmail.com \
    --cc=linux-console@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.