From: Bengt Richter <bokr@bokr.com>
To: "Ludovic Courtès" <ludo@gnu.org>
Cc: 40273@debbugs.gnu.org
Subject: bug#40273: installer: No way to input Latin characters with non-Latin keyboard layouts
Date: Fri, 3 Apr 2020 01:27:43 +0200 [thread overview]
Message-ID: <20200402232743.GA2810@LionPure> (raw)
In-Reply-To: <87zhbup4ke.fsf@gnu.org>
Hi all,
On +2020-04-02 12:25:37 +0200, Ludovic Courtès wrote:
> Hi,
>
> Mathieu Othacehe <m.othacehe@gmail.com> skribis:
>
> >> That’s exactly what it does, see (shepherd comm).
> >>
> >> Perhaps we just need to have the installer service depend on ‘syslogd’,
> >> at which point nothing goes to /dev/console?
> >
> > Heh, I read it too fast, sorry :) The issue was in fact that we are
> > calling `start-service' and `stop-service' from `apply-locale' in (gnu
> > installer), and printing shepherd messages to shepherd-message-port
> > which is stderr by default.
> >
> > Fixed on wip-installer-help.
>
> Awesome.
>
> Do you think that branch is ready for a merge? Or did you want to
> further discuss some of the changes? Florian seemed to agree that it’s
> a good thing.
>
I am wondering about hot-plugged keyboards, whether plugged in before
power-up or late, after login and GUI terminal activation.
I see/imagine several issues.
1) Legacy unices seem just to have accepted any usb device identifying itself
as key event generator and merged the events indiscriminately into existing
key-event streams, with security issues ignored, and alternate layouts ignored :-/
What I'm writing on now [1] has a US keyboard (which is annoying if I am
trying to write swedish, or embarrass myself with my French :), so I am recharging
the batteries for an old swedish Logitech kb that has a wireless connection to a USB receiver.
(I'll return to report how that worked out -- I think I saw that PureOS was able to handle
different-layout keyboards in different concurrent sessions -- different keyboards and displays
can be attached to different "seats" -- or something like that, I obviously don't know much yet ;-)
Anyway, to the point: even if I'm wrong about PureOS handling concurrent
different-layout keyboards, I think that would be a good goal
for GuixOS/Hurd/Shepherd to implement.
So WDYT about a little kb experimenting to expose potential issues before final decisions?
2) Another issue is that with hot-plugging and booting from external media,
keyboard layouts are unknowable ahead of time (except by humans deciding they
will only boot from media they know carry KB layout info matching the booting host's KB).
So who/what is the first user of keyboard layout info?
I think probably the OEM who decided which key should interrupt booting
to go into BIOS setup, since the BIOS has to continue with some assumption
of keyboard layout. Probably matches the BIOS-developer's kb, hard coded ;-)
But consider a "NUC" box, with no predetermined peripherals, just sockets.
Plug in the right keyboard or keep rebooting and hitting Esc or Del or F11
and hope you don't trigger anything disastrous. Or get online with another
machine and search for how someone succeeded. Filter bad advice.
How many times have you gone through that ? ;-)
Ok, next user after BIOS, probably some boot loader. Its image can not contain
knowledge of what keyboard is the source of key-codes, so it must
either receive converted key codes or be able to get the right
layout info to do the conversion itself -- or punt, using a US layout
for anything and everything. ... Let's see, '-' is '/' and '+' is '-'
and ... argh. (recognize install iso experience? setfont sun12x22 helps :)
So anyway, eliding, the boot loader gets the root file system loaded and
pivots to it and the kernel can figure out keyboards again for itself, maybe.
Is this really a good design for gnu guix systems?
All that Mach stuff I read April 1st sounded really neat ;-)
(I regret having pointed out the date and not letting it run.
I apologize for interrupting the fun "joke" ;-/ )
Logitech KB batteries still charging, will have to try that later ...
HTH make multiple concurrent different-layout keyboards be part of the future :)
> Ludo’.
>
>
>
[1] Purism Librem13v4 laptop: an emergency-prompted purchase when my swedish laptop died in US)
--
Regards,
Bengt Richter
next prev parent reply other threads:[~2020-04-02 23:29 UTC|newest]
Thread overview: 40+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-03-28 13:42 bug#40273: installer: No way to input Latin characters with non-Latin keyboard layouts pelzflorian (Florian Pelz)
2020-03-28 19:45 ` Mathieu Othacehe
2020-03-30 10:44 ` pelzflorian (Florian Pelz)
2020-03-30 11:35 ` Mathieu Othacehe
2020-03-30 17:11 ` pelzflorian (Florian Pelz)
2020-03-30 17:31 ` pelzflorian (Florian Pelz)
2020-03-31 15:35 ` Ludovic Courtès
2020-03-31 16:55 ` pelzflorian (Florian Pelz)
2020-04-01 20:33 ` Bengt Richter
2020-04-02 6:24 ` pelzflorian (Florian Pelz)
2020-04-02 9:45 ` Ludovic Courtès
2020-04-03 0:38 ` pelzflorian (Florian Pelz)
2020-04-03 1:11 ` pelzflorian (Florian Pelz)
2020-04-03 13:31 ` pelzflorian (Florian Pelz)
2020-04-03 13:59 ` pelzflorian (Florian Pelz)
2020-04-03 15:20 ` Ludovic Courtès
2020-04-03 15:56 ` pelzflorian (Florian Pelz)
2020-04-05 14:03 ` Ludovic Courtès
2020-04-05 20:02 ` pelzflorian (Florian Pelz)
2020-04-05 21:26 ` Ludovic Courtès
2020-03-29 15:04 ` Ludovic Courtès
2020-03-29 17:16 ` pelzflorian (Florian Pelz)
2020-03-29 17:53 ` Mathieu Othacehe
2020-03-30 10:39 ` Mathieu Othacehe
2020-03-30 12:39 ` pelzflorian (Florian Pelz)
2020-03-31 15:29 ` Ludovic Courtès
2020-04-01 12:49 ` Mathieu Othacehe
2020-03-31 15:28 ` Ludovic Courtès
2020-04-01 12:52 ` Mathieu Othacehe
2020-04-02 10:25 ` Ludovic Courtès
2020-04-02 11:40 ` Mathieu Othacehe
2020-04-06 7:52 ` Ludovic Courtès
2020-04-06 13:14 ` Mathieu Othacehe
2020-04-07 9:49 ` Ludovic Courtès
2020-04-07 17:14 ` Mathieu Othacehe
2020-04-02 23:27 ` Bengt Richter [this message]
2020-04-03 23:17 ` pelzflorian (Florian Pelz)
2020-04-08 7:20 ` Bengt Richter
2020-04-08 9:42 ` Ludovic Courtès
2020-04-08 21:11 ` Bengt Richter
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=20200402232743.GA2810@LionPure \
--to=bokr@bokr.com \
--cc=40273@debbugs.gnu.org \
--cc=ludo@gnu.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.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
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.