#1036430 Debian 12 : wrong keyboard mapping for Français (Macintosh)

#1036430#5
Date:
2023-05-20 17:51:18 UTC
From:
To:
Boot method: network
Image version: debian-bookworm-DI-rc3-amd64-netinst.iso
Date: 05/20/2023 5:00 PM

Machine: Apple Inc. MacBookAir3,2
Partitions: <df -Tl will do; the raw partition table is preferred>
Sys. de fichiers Type     blocs de 1K Utilisé Disponible Uti% Monté sur
udev             devtmpfs     1839564       0    1839564   0% /dev
tmpfs            tmpfs         374588    1596     372992   1% /run
/dev/sda2        ext4       238658212 5072244  221389976   3% /
tmpfs            tmpfs        1872928       0    1872928   0% /dev/shm
tmpfs            tmpfs           5120       8       5112   1% /run/lock
/dev/sda1        vfat          523248   26700     496548   6% /boot/efi
tmpfs            tmpfs         374584     120     374464   1%
/run/user/1000


Base System Installation Checklist:
[O] = OK, [E] = Error (please elaborate below), [ ] = didn't try it

Initial boot:           [O]
Detect network card:    [O]
Configure network:      [O]
Detect media:           [O]
Load installer modules: [O]
Clock/timezone setup:   [O]
User/password setup:    [O]
Detect hard drives:     [O]
Partition hard drives:  [O]
Install base system:    [O]
Install tasks:          [O]
Install boot loader:    [O]
Overall install:        [E]

Comments/Problems:

Insallation was 99% OK but the keyboard Français(Macintosh) was not
detected
during the installation.
So, I changed it after the first reboot but the 'mapping' is wrong :

2 keys are switched : @ (cap #) with < (cap >)

This problem didn't occure with debian 11.7

Thanks

#1036430#10
Date:
2023-05-21 06:02:25 UTC
From:
To:
Bonjour Thomas,

and thanks for your report.

thomas.chandesris@gmail.com <thomas.chandesris@gmail.com> (2023-05-20):

Could you please share what the generated configuration looked like?

Are you saying the layout was problematic during the install, after the
first reboot, and it's now fixed with the reconfiguration? Or are you
saying the layout is still problematic after the reconfiguration?

Also, does the switched keys issue affect X and/or VTs? It's been a while
but I remember at least the XKB apple:badmap option, which could be used
to switch those.

Was the 11.7 installation done on the same MacBookAir3,2 hardware? (To
make sure we're not comparing Apples and Oranges).


Cheers,

#1036430#15
Date:
2023-05-21 10:44:46 UTC
From:
To:
Bonjour Cyril,

In fact, I think there are two imbricated problems :
- the layout automatically set during the installation is not
corresponding to the keyboard
- 2 keys are switched

You'll find my answers/explanations bellow.

Thanks
I don't know how to do that but the layout automatically set during
the installation was "Français (obsolète, variante)"
Then I've changed it after the first reboot and set "Français
(Macintosh)"

And then I saw the problem with the 2 keys switched.

I've tried in a VT and the layout was "Français (obsolète, variante)"
and keys were still switched. See attached files.
thomas@mac-debian:~$ sudo setxkbmap apple:badmap
[sudo] Mot de passe de thomas :
WARNING: Running setxkbmap against an XWayland server
Error loading new keyboard description
thomas@mac-debian:~$ sudo setxkbmap apple:goodmap
WARNING: Running setxkbmap against an XWayland server
Error loading new keyboard description
No it didn't
Yes, the same machine

Thanks