Bug 1019255

Summary: wrong mapping of control keys (including backspace or tab) on text console (VT)
Product: [openSUSE] openSUSE Tumbleweed Reporter: Michal Kubeček <mkubecek>
Component: BasesystemAssignee: systemd maintainers <systemd-maintainers>
Status: RESOLVED FIXED QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P5 - None CC: fbui, mkubecek, sbrabec, systemd-maintainers
Version: Current   
Target Milestone: ---   
Hardware: Other   
OS: Other   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Attachments: refreshed version of Werner's patch (for current openSUSE:Factory)

Description Michal Kubeček 2017-01-11 07:49:01 UTC
Note: the symptoms are very much like (maybe even exactly the same as) those
of bsc#904214 reported some time ago on 13.2. I also tried the trick from
bug 904214 comment 8 and it works.

On current Tumbleweed, most control keys, including backspace or tab, are
processed incorrectly on text console (VT), resulting in inserting a character
which cannot be displayed; echoing it through 'od -t x1' shows 'ef 80 80'
which should be U+FOOO in UTF-8. Few keys work correctly (e.g. arrows or
"Delete") but most seem to be mapped to this character, making work on VTs
unbearable.

The issue doesn't seem to depend on localization, I'm not using any national
keyboard map (selected "English (US)" on install) and the issue affects both
root (LANG=POSIX, LC_CTYPE=cs_CZ.UTF-8) and regular user (LANG=cs_CZ.UTF-8,
no LC_* set).

First time I noticed this was around half December but it's possible it has
been broken earlier. The issue persists after updating everything to latest
updates this morning (2017-01-11).
Comment 1 Michal Kubeček 2017-01-11 07:50:18 UTC
Adding people working on the original bug (bsc#904214).
Comment 2 Dr. Werner Fink 2017-01-11 08:17:43 UTC
(In reply to Michal Kubeček from comment #1)

Hmmm ... would be interesting if the workaround in attachment #647655 [details] still applies to src/vconsole/vconsole-setup.c and if it helps to let spread and survive the console settings
Comment 3 Dr. Werner Fink 2017-01-11 08:19:27 UTC
Expand the CC to systemd-maintainers@suse.de
Comment 4 Michal Kubeček 2017-01-11 10:17:29 UTC
Created attachment 709502 [details]
refreshed version of Werner's patch (for current openSUSE:Factory)

I tried to add it to current openSUSE:Factory/systemd package, update all
packages, regenerate initrd and reboot. As far as I can see, it seems to
resolve the issue.
Comment 5 Stanislav Brabec 2017-01-11 14:34:14 UTC
I am experiencing the same, including the same work-around:

unicode_start

That is why I suspect that the console initialization race in systemd appeared again.
Comment 6 Franck Bui 2017-03-20 11:38:23 UTC
I believe that TW should be fixed by now since it ships systemd v232 which contains the following fix:

https://github.com/systemd/systemd/commit/c2f2c51c53e91232e6f2aa686d734728ad703f9f

Closing.

Feel free to reopen it if you still encounter the issue.

Thanks.