[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#789816: console-setup: Nokia N900 Keyboard Model is not fully supported by ckbcomp

Package: console-setup
Version: 1.128
Severity: wishlist
Tags: patch


The Nokia N900 keyboard model (nokiarx51) is not fully supported by ckbcomp.
It is generating a few "Unknown key type PC_FN_LEVEL2" lines and the cursor
keys are not mapped correctly for some keyboards variations.

The attached patch removes the warning and results in working arrow keys in
the Germany keyboard variation.

-- Sebastian

-- System Information:
Debian Release: stretch/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: armhf (armv7l)

Kernel: Linux 4.0.0-rc1-00403-ge0372f3-dirty (SMP w/1 CPU core)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages console-setup depends on:
ii  console-setup-linux     1.128
ii  debconf                 1.5.56
ii  keyboard-configuration  1.128
ii  xkb-data                2.14-1

console-setup recommends no packages.

Versions of packages console-setup suggests:
ii  locales   2.19-18
ii  lsb-base  4.1+Debian13+nmu1

Versions of packages keyboard-configuration depends on:
ii  debconf                 1.5.56
ii  initscripts             2.88dsf-59.2
ii  liblocale-gettext-perl  1.05-9

Versions of packages console-setup-linux depends on:
ii  kbd                     1.15.5-2
ii  keyboard-configuration  1.128

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>
ii  kbd             1.15.5-2

-- debconf information:
  console-setup/store_defaults_in_debconf_db: true
  console-setup/codesetcode: Lat15
  keyboard-configuration/switch: No temporary switch
  console-setup/fontsize-fb47: 8x16
  keyboard-configuration/compose: No compose key
  keyboard-configuration/ctrl_alt_bksp: false
* keyboard-configuration/layout: German
  keyboard-configuration/altgr: The default for the keyboard layout
  keyboard-configuration/unsupported_config_options: true
  console-setup/charmap47: UTF-8
  console-setup/fontface47: Fixed
* keyboard-configuration/variant: German
  keyboard-configuration/modelcode: nokiarx51
  keyboard-configuration/unsupported_layout: true
  keyboard-configuration/xkb-keymap: de
  keyboard-configuration/toggle: No toggling
  console-setup/codeset47: # Latin1 and Latin5 - western Europe and Turkic languages
  keyboard-configuration/layoutcode: de
  keyboard-configuration/unsupported_config_layout: true
  keyboard-configuration/store_defaults_in_debconf_db: true
  console-setup/fontsize-text47: 8x16
  keyboard-configuration/unsupported_options: true
* keyboard-configuration/model: Generic 105-key (Intl) PC
  console-setup/fontsize: 8x16
--- /usr/bin/ckbcomp	2015-05-24 07:10:12.000000000 +0200
+++ ckbcomp	2000-01-01 02:27:53.872802734 +0100
@@ -4012,6 +4012,8 @@
 		    } else {
 			$coord = ($group << 4) + $level + 11;
+		} elsif (/^PC_FN_LEVEL2$/) {
+			$coord = ($group << 4) + ($level << 1);
 		} else {
 		    warning "Unknown key type $types_table{$key}\n";
 		    $coord = ($group << 4) + $level;

Reply to: