Project

General

Profile

Bug #807

Cannot set the keymap to anything other then the default

Added by Chris Buechler about 10 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
Operating System
Target version:
Start date:
08/07/2010
Due date:
% Done:

0%

Estimated time:
Affected Version:
All
Affected Architecture:

Description

(from cvstrac)

Cannot set the keymap to anything other than the default. This is mainly because /etc/rc.d/syscons is never run so I have created the following patch for my system.

The patch works by first setting the keymap value in the new file "/var/etc/rc.conf.user" this has been placed in /var/etc to make sure it survives after an upgrade.
The new file is then run from the end of /etc/defaults/rc.conf this also enables the ability to override any default settings.
Secondly once the keymap is set correctly "/etc/rc.d/syscons start" needs to be executing this is done in "/etc/rc" just after the
keyboard has been set.

(The diff is also attached in .txt file.)

diff urN org/etc/defaults/rc.conf new/etc/defaults/rc.conf
--
org/etc/defaults/rc.conf 2008-09-05 13:04:46.000000000 0100
+
+ new/etc/defaults/rc.conf 2008-09-05 12:57:48.000000000 0100
@ -629,3 +629,10 @
done
}
fi

# if rc.conf.user file exists load its setting
+if [ -e /var/etc/rc.conf.user ]; then
. /var/etc/rc.conf.user
fi

diff urN org/etc/rc new/etc/rc
--
org/etc/rc 2008-09-05 13:03:23.000000000 0100
+
+ new/etc/rc 2008-09-05 12:59:18.000000000 +0100
@ -207,6 +207,9 @
[ -c "/dev/ukbd0" ] && kbdcontrol -a ukbd0 < /dev/console
fi

# Start syscons
/etc/rc.d/syscons start
+
  1. Fire up unionfs if mount points exist.
    if [ f /dist/uniondirs ]; then
    echo -n "."
    diff -urN org/var/etc/rc.conf.user new/var/etc/rc.conf.user
    --
    org/var/etc/rc.conf.user 1970-01-01 01:00:00.000000000 +0100

++ new/var/etc/rc.conf.user 2008-09-05 13:17:54.000000000 +0100 @ -0,0 +1,5 @
# This file is included at the end of /etc/defaults/rc.conf
# place any overrides you require here.

# eg. to change to a uk keyboard uncomment the line below
# keymap="uk.iso"

History

#1 Updated by Ermal Lu├ži about 10 years ago

This needs

kbdcontrol < /dev/ttyv0 -l $keymap

it should be added on installer and be remembered on some config.

#2 Updated by Scott Ullrich almost 10 years ago

  • Target version changed from 2.0 to 2.1

#3 Updated by Chris Buechler over 8 years ago

  • Target version changed from 2.1 to 2.2

#4 Updated by Chris Buechler over 6 years ago

  • Status changed from New to Closed

#5 Updated by Florent THOMAS over 5 years ago

Hi,

I observed the same thing on the 2.2.3 fresh install

Also available in: Atom PDF