Project

General

Profile

Actions

Bug #807

closed

Cannot set the keymap to anything other then the default

Added by Chris Buechler over 13 years ago. Updated almost 9 years ago.

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

0%

Estimated time:
Plus Target Version:
Release Notes:
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"

Actions #1

Updated by Ermal Luçi over 13 years ago

This needs

kbdcontrol < /dev/ttyv0 -l $keymap

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

Actions #2

Updated by Scott Ullrich over 13 years ago

  • Target version changed from 2.0 to 2.1
Actions #3

Updated by Chris Buechler almost 12 years ago

  • Target version changed from 2.1 to 2.2
Actions #4

Updated by Chris Buechler almost 10 years ago

  • Status changed from New to Closed
Actions #5

Updated by Florent THOMAS almost 9 years ago

Hi,

I observed the same thing on the 2.2.3 fresh install

Actions

Also available in: Atom PDF