Discussion:
Processed: Re: [initramfs-tools] update-initramfs -u warns: Unknown X keysym "dead_belowmacron"
(too old to reply)
Debian Bug Tracking System
2018-07-25 07:10:01 UTC
Permalink
reassign -1 console-setup 1.184
Bug #903393 [initramfs-tools] [initramfs-tools] update-initramfs -u warns: Unknown X keysym "dead_belowmacron"
Bug reassigned from package 'initramfs-tools' to 'console-setup'.
No longer marked as found in versions initramfs-tools/0.130.
Ignoring request to alter fixed versions of bug #903393 to the same values previously set
Bug #903393 [console-setup] [initramfs-tools] update-initramfs -u warns: Unknown X keysym "dead_belowmacron"
Marked as found in versions console-setup/1.184.
--
903393: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=903393
Debian Bug Tracking System
Contact ***@bugs.debian.org with problems
Ben Hutchings
2018-07-25 07:10:01 UTC
Permalink
Control: reassign -1 console-setup 1.184

This is not a bug in initramfs-tools. The warning comes from console-
setup and is triggered by a change to the German keyboard layout
(from <https://bugs.freedesktop.org/show_bug.cgi?id=102225>).

Ben.
--
Ben Hutchings
[W]e found...that it wasn't as easy to get programs right as we had
thought. I realized that a large part of my life from then on was going
to be spent in finding mistakes in my own programs.
- Maurice Wilkes, 1949
r***@rozbrajacz.futbol
2023-11-16 22:10:01 UTC
Permalink
Control: found -1 1.223
Control: retitle -1 console-setup: disagrees with xorg on what X keys exist ("WARNING: Unknown X keysym")
Post by Ben Hutchings
This is not a bug in initramfs-tools. The warning comes from console-
setup and is triggered by a change to the German keyboard layout
Indeed, on my system (I use a customised German layout, attached)
console-setup.service fails, even though the layout works under X.org:
$ systemctl status console-setup.service
× console-setup.service - Set console font and keymap
Loaded: loaded (/lib/systemd/system/console-setup.service; enabled; preset: enabled)
Active: failed (Result: exit-code) since Thu 2023-11-16 06:35:40 CET; 16h ago
Main PID: 2308 (code=exited, status=1/FAILURE)
CPU: 158ms

Nov 16 06:35:40 rozbian systemd[1]: Starting console-setup.service - Set console font and keymap...
Nov 16 06:35:40 rozbian console-setup.sh[2351]: WARNING: Unknown X keysym "Ssharp"
Nov 16 06:35:40 rozbian console-setup.sh[2351]: WARNING: Unknown X keysym "Ssharp"
Nov 16 06:35:40 rozbian console-setup.sh[2316]: /usr/bin/setupcon: 999: cannot open /tmp/tmpkbd.OzTB9k: No such file
Nov 16 06:35:40 rozbian systemd[1]: console-setup.service: Main process exited, code=exited, status=1/FAILURE
Nov 16 06:35:40 rozbian systemd[1]: console-setup.service: Failed with result 'exit-code'.
Nov 16 06:35:40 rozbian systemd[1]: Failed to start console-setup.service - Set console font and keymap.

The interesting bit is
$ grep sharp /usr/share/X11/xkb/symbols/de2
key <AC02> { [ s, S, ssharp, Ssharp ] };
i.e. M-s -> ß and M-S -> ẞ, which correspond as expected to
$ ą
ß (U+00DF, UTF-8 c3 9f ): LATIN SMALL LETTER SHARP S
ẞ (U+1E9E, UTF-8 e1 ba 9e ): LATIN CAPITAL LETTER SHARP S

So Ssharp definitely exists but isn't in <X11/keysymdef.h>:
$ grep -i sharp /usr/include/X11/keysymdef.h
#define XK_ssharp 0x00df /* U+00DF LATIN SMALL LETTER SHARP S */
#define XK_musicalsharp 0x0af5 /* U+266F MUSIC SHARP SIGN */
or, indeed, anywhere?
$ grep -ri ssharp /usr/include/
/usr/include/gtk-3.0/gdk/gdkkeysyms-compat.h:#define GDK_ssharp 0x0df
/usr/include/gtk-3.0/gdk/gdkkeysyms.h:#define GDK_KEY_ssharp 0x0df
/usr/include/xkbcommon/xkbcommon-keysyms.h:#define XKB_KEY_ssharp 0x00df /* U+00DF LATIN SMALL LETTER SHARP S */
/usr/include/gtk-4.0/gdk/gdkkeysyms.h:#define GDK_KEY_ssharp 0x0df
/usr/include/X11/keysymdef.h:#define XK_ssharp 0x00df /* U+00DF LATIN SMALL LETTER SHARP S */

xev says
KeyPress event, serial 35, synthetic NO, window 0x7800001,
root 0x6c6, subw 0x0, time 59127073, (215,-26), root:(966,406),
state 0x2080, keycode 39 (keysym 0xdf, ssharp), same_screen YES,
XKeysymToKeycode returns keycode: 28
XLookupString gives 2 bytes: (c3 9f) "ß"
XmbLookupString gives 2 bytes: (c3 9f) "ß"
XFilterEvent returns: False
KeyPress event, serial 35, synthetic NO, window 0x7800001,
root 0x6c6, subw 0x0, time 59129097, (215,-26), root:(966,406),
state 0x2081, keycode 39 (keysym 0x1001e9e, U1E9E), same_screen YES,
XLookupString gives 3 bytes: (e1 ba 9e) "ẞ"
XmbLookupString gives 3 bytes: (e1 ba 9e) "ẞ"
XFilterEvent returns: False

So whatever the source of truth w.r.t. keys xinput-or-whatever uses,
console-setup probably needs to use as well, or not error after warnings.

~ roz

xiscu
2018-09-15 12:10:01 UTC
Permalink
Dear Developers,
I'm able to reproduce it also on 1.185:

# apt policy console-setup
console-setup:
Installed: 1.185
Candidate: 1.185
Version table:
*** 1.185 500
500 http://ftp.de.debian.org/debian buster/main amd64 Packages
10 http://ftp.de.debian.org/debian sid/main amd64 Packages
100 /var/lib/dpkg/status

# update-initramfs -u||echo "Failed"
update-initramfs: Generating /boot/initrd.img-4.18.0-1-amd64
WARNING: Unknown X keysym "dead_belowmacron"
WARNING: Unknown X keysym "dead_belowmacron"
WARNING: Unknown X keysym "dead_belowmacron"
WARNING: Unknown X keysym "dead_belowmacron"

Regards,
xiscu
Esokrates
2018-09-26 20:20:02 UTC
Permalink
I can also reproduce ths with a German keyboard (XPS 13 9360).
s***@arcor.de
2019-01-17 18:10:02 UTC
Permalink
Package: console-setup
Version: 1.188

Same here on Debian Buster with console-setup v1.188 and "de" keyboard
layout.
Same as well on Raspbian Buster on RPi2, which has the same
console-setup version and keyboard layout.

I narrowed it down a bid to the "setupcon" command, when configuring the
keyboard:

***@VM-Buster:~# setupcon -v -k
Configuring /dev/tty1 /dev/tty2 /dev/tty3 /dev/tty4 /dev/tty5 /dev/tty6
The charmap is UTF-8
BackSpace is ^?
on /dev/tty1 executing kbd_mode -u.
on /dev/tty2 executing kbd_mode -u.
on /dev/tty3 executing kbd_mode -u.
on /dev/tty4 executing kbd_mode -u.
on /dev/tty5 executing kbd_mode -u.
on /dev/tty6 executing kbd_mode -u.
WARNING: Unknown X keysym "dead_belowmacron"
WARNING: Unknown X keysym "dead_belowmacron"
WARNING: Unknown X keysym "dead_belowmacron"
WARNING: Unknown X keysym "dead_belowmacron"
executing loadkeys /tmp/tmpkbd.oCkLOX.

____________________

Possibly related:

- On the VM, the "dpkg-reconfigure keyboard-configuration" dialog has
French language, even that the current locale is set to "en_GB.UTF-8",
not other locale is even generated, current keyboard layout is "de",
console has UTF-8, Latin1+5, 8x16 chars. I also have disabled APT
package translations disabled. This is not the case on an otherwise
identical Stretch VM with v1.164 packages.

- On the RPi, "dpkg-reconfigure keyboard-configuration" does not even
run interactively, even with "-f dialog" or "-f readline" frontend
actively set. It updates "/etc/default/keyboard", but does not change
any value that was set before. Not sure if it's related. I can't find
any error output/log about it.
at46
2019-04-25 14:00:01 UTC
Permalink
Seems the warnings are gone. Neither with update-initramfs nor with
setupcon I get the "WARNING: Unknown X keysym "dead_belowmacron""
messages anymore.

Axel
TS
2020-01-09 17:00:03 UTC
Permalink
Post by at46
Seems the warnings are gone. Neither with update-initramfs nor with
setupcon I get the "WARNING: Unknown X keysym "dead_belowmacron""
messages anymore.
Axel
Hi,

for me this message still is displayed:

# command update-initramfs -u || echo "Failed"
update-initramfs: Generating /boot/initrd.img-5.4.0-2-amd64
WARNING: Unknown X keysym "dead_belowmacron"
WARNING: Unknown X keysym "dead_belowmacron"
WARNING: Unknown X keysym "dead_belowmacron"
WARNING: Unknown X keysym "dead_belowmacron"

current sid.



kind regards,

Thilo
xiscu
2020-03-26 11:40:01 UTC
Permalink
Package: console-setup
Version: 1.194
Followup-For: Bug #903393

Dear Developers,
I'm able to reproduce it also on 1.194:

# apt policy console-setup
console-setup:
Installed: 1.194
Candidate: 1.194
Version table:
*** 1.194 900
900 http://ftp.de.debian.org/debian testing/main amd64 Packages
10 http://ftp.de.debian.org/debian sid/main amd64 Packages
100 /var/lib/dpkg/status

# update-initramfs -u || echo "Failed"
update-initramfs: Generating /boot/initrd.img-5.4.0-4-amd64
WARNING: Unknown X keysym "dead_belowmacron"
WARNING: Unknown X keysym "dead_belowmacron"
WARNING: Unknown X keysym "dead_belowmacron"
WARNING: Unknown X keysym "dead_belowmacron"

Regards,
xiscu

-- System Information:
Debian Release: bullseye/sid
APT prefers testing
APT policy: (900, 'testing'), (10, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 5.4.0-4-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE=en_US:en (charmap=UTF-8)
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages console-setup depends on:
ii console-setup-linux 1.194
ii debconf 1.5.73
ii keyboard-configuration 1.194
ii xkb-data 2.29-2

console-setup recommends no packages.

Versions of packages console-setup suggests:
ii locales 2.30-2
ii lsb-base 11.1.0

Versions of packages keyboard-configuration depends on:
ii debconf 1.5.73
ii liblocale-gettext-perl 1.07-4

Versions of packages console-setup-linux depends on:
ii init-system-helpers 1.57
ii initscripts 2.96-3
ii kbd 2.0.4-4
ii keyboard-configuration 1.194

console-setup-linux suggests no packages.

Versions of packages console-setup is related to:
pn console-common <none>
pn console-data <none>
pn console-tools <none>
pn gnome-control-center <none>
ii kbd 2.0.4-4
ii systemd 244.3-1

-- debconf information:
* keyboard-configuration/compose: No compose key
* keyboard-configuration/altgr: The default for the keyboard layout
* keyboard-configuration/optionscode:
console-setup/use_system_font:
* keyboard-configuration/variantcode:
console-setup/framebuffer_only:
* console-setup/fontsize-fb47: 8x18
* keyboard-configuration/switch: No temporary switch
keyboard-configuration/unsupported_options: true
* keyboard-configuration/xkb-keymap: de
console-setup/store_defaults_in_debconf_db: true
keyboard-configuration/ctrl_alt_bksp: false
console-setup/fontsize-text47: 8x18
* keyboard-configuration/layout:
keyboard-configuration/unsupported_config_options: true
* keyboard-configuration/other:
* keyboard-configuration/model: Generic 105-key PC (intl.)
* keyboard-configuration/layoutcode: de
* keyboard-configuration/variant: German
* console-setup/fontface47: Fixed
* console-setup/codeset47: # Latin1 and Latin5 - western Europe and Turkic languages
* keyboard-configuration/modelcode: pc105
debian-installer/console-setup-udeb/title:
* keyboard-configuration/toggle: No toggling
* console-setup/charmap47: UTF-8
console-setup/codesetcode: Lat15
keyboard-configuration/unsupported_layout: true
* keyboard-configuration/store_defaults_in_debconf_db: true
console-setup/guess_font:
console-setup/fontsize: 8x18
keyboard-configuration/unsupported_config_layout: true
xiscu
2020-05-04 19:10:01 UTC
Permalink
Package: console-setup
Followup-For: Bug #903393

Dear Maintainer,

I'm not able to reproduce on 1.195:

# update-initramfs -u || echo "Failed"
update-initramfs: Generating /boot/initrd.img-5.5.0-2-amd64

No warnings so far with that test.


In any case, here some extra information:

a) ****
# cat /etc/default/keyboard
# KEYBOARD CONFIGURATION FILE

# Consult the keyboard(5) manual page.

XKBMODEL="pc105"
XKBLAYOUT="de"
XKBVARIANT=""
XKBOPTIONS="lv3:ralt_switch,compose:rctrl"

BACKSPACE="bs"
****

b) ****
# apt policy console-setup
console-setup:
Installed: 1.195
Candidate: 1.195
Version table:
*** 1.195 900
900 http://ftp.de.debian.org/debian testing/main amd64 Packages
10 http://ftp.de.debian.org/debian sid/main amd64 Packages
100 /var/lib/dpkg/status
****

An I reconfigured the keyboard with (see also msg:
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=903393#39):

dpkg-reconfigure keyboard-configuration

Regards,
xiscu

-- System Information:
Debian Release: bullseye/sid
APT prefers testing
APT policy: (900, 'testing'), (10, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 5.5.0-2-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE=en_US:en (charmap=UTF-8)
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages console-setup depends on:
ii console-setup-linux 1.195
ii debconf 1.5.74
ii keyboard-configuration 1.195
ii xkb-data 2.29-2

console-setup recommends no packages.

Versions of packages console-setup suggests:
ii locales 2.30-4
ii lsb-base 11.1.0

Versions of packages keyboard-configuration depends on:
ii debconf 1.5.74
ii liblocale-gettext-perl 1.07-4

Versions of packages console-setup-linux depends on:
ii init-system-helpers 1.57
ii initscripts 2.96-3
ii kbd 2.0.4-4
ii keyboard-configuration 1.195

console-setup-linux suggests no packages.

Versions of packages console-setup is related to:
pn console-common <none>
pn console-data <none>
pn console-tools <none>
pn gnome-control-center <none>
ii kbd 2.0.4-4
ii systemd 245.5-2

-- debconf information:
console-setup/fontsize: 8x18
keyboard-configuration/unsupported_config_options: true
* keyboard-configuration/compose: Right Control
console-setup/store_defaults_in_debconf_db: true
* keyboard-configuration/store_defaults_in_debconf_db: true
* console-setup/fontface47: Fixed
* keyboard-configuration/modelcode: pc105
* console-setup/charmap47: UTF-8
console-setup/use_system_font:
* keyboard-configuration/toggle: No toggling
* keyboard-configuration/xkb-keymap: de(nodeadkeys)
* keyboard-configuration/variant: German
* console-setup/fontsize-fb47: 8x18
* keyboard-configuration/layoutcode: de
* keyboard-configuration/ctrl_alt_bksp: false
console-setup/fontsize-text47: 8x18
* keyboard-configuration/model: Generic 105-key PC (intl.)
console-setup/codesetcode: Lat15
* keyboard-configuration/switch: No temporary switch
* keyboard-configuration/altgr: Right Alt (AltGr)
keyboard-configuration/unsupported_config_layout: true
* keyboard-configuration/other:
* keyboard-configuration/optionscode: lv3:ralt_switch,compose:rctrl
keyboard-configuration/unsupported_layout: true
* console-setup/codeset47: # Latin1 and Latin5 - western Europe and Turkic languages
console-setup/framebuffer_only:
debian-installer/console-setup-udeb/title:
* keyboard-configuration/layout:
* keyboard-configuration/variantcode:
keyboard-configuration/unsupported_options: true
console-setup/guess_font:
b***@gmail.com
2020-05-17 12:40:01 UTC
Permalink
Dear Maintainer,

On Debian 9 (with console-setup 1.164) running "sudo update-initramfs
-u" produces:
update-initramfs: Generating /boot/initrd.img-4.9.0-12-amd64
WARNING: Unknown X keysym "dead_belowbreve"
WARNING: Unknown X keysym "dead_belowbreve"
WARNING: Unknown X keysym "dead_belowmacron"
WARNING: Unknown X keysym "dead_belowmacron"
WARNING: Unknown X keysym "dead_belowring"
WARNING: Unknown X keysym "dead_belowring"
WARNING: Unknown X keysym "dead_belowcircumflex"
WARNING: Unknown X keysym "dead_belowcircumflex"
WARNING: Unknown X keysym "dead_greek"
WARNING: Unknown X keysym "dead_greek"
WARNING: Unknown X keysym "dead_greek"
WARNING: Unknown X keysym "dead_greek"
WARNING: Unknown X keysym "dead_belowdiaeresis"
WARNING: Unknown X keysym "dead_belowdiaeresis"
WARNING: Unknown X keysym "dead_belowtilde"
WARNING: Unknown X keysym "dead_belowtilde"
WARNING: Unknown X keysym "dead_belowtilde"
WARNING: Unknown X keysym "dead_belowtilde"

On Debian 10 (with console-setup 1.193~deb10u1) running "sudo
update-initramfs -u" produces:
update-initramfs: Generating /boot/initrd.img-4.19.0-9-amd64

This is with my custom XKB keyboard layout where I included the quite a
few "dead_*" X keysyms.

The problem is indeed caused by the Perl script "/usr/bin/ckbcomp" because:

- The script does not support all X keysyms.

- Despite not supporting all X keysyms the supported X keysyms are used
as if the remaining unknown X keysyms are potentially invaild X keysyms.

- On Debian 9 the "/usr/share/initramfs-tools/hooks/keymap" script calls
"/bin/setupcon" via "setupcon --save-keyboard ..." which causes it to
call "/usr/bin/ckbcomp".

- On Debian 10 the "/usr/share/initramfs-tools/hooks/keymap" script
calls "/bin/setupcon" via "setupcon --setup-dir ..." which causes it to
not call "/usr/bin/ckbcomp".

Perhaps the Perl script "/usr/bin/ckbcomp" should be updated to support
all X keysyms or the current supported X keysyms should be used as just
an incomplete whitelist, where the remaining unknown X keysyms are also
potentially vaild keysyms. In other words an info or warning about
unsupported X keysym could be printed only in verbose or debug mode or
not at all.

Regards,
Bakhelit
Debian Bug Tracking System
2023-11-16 22:10:01 UTC
Permalink
found -1 1.223
Bug #903393 [console-setup] [initramfs-tools] update-initramfs -u warns: Unknown X keysym "dead_belowmacron"
Marked as found in versions console-setup/1.223.
retitle -1 console-setup: disagrees with xorg on what X keys exist ("WARNING: Unknown X keysym")
Bug #903393 [console-setup] [initramfs-tools] update-initramfs -u warns: Unknown X keysym "dead_belowmacron"
Changed Bug title to 'console-setup: disagrees with xorg on what X keys exist ("WARNING: Unknown X keysym")' from '[initramfs-tools] update-initramfs -u warns: Unknown X keysym "dead_belowmacron"'.
--
903393: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=903393
Debian Bug Tracking System
Contact ***@bugs.debian.org with problems
Loading...