Differences between revisions 1 and 19 (spanning 18 versions)
Revision 1 as of 2008-02-03 18:09:26
Size: 1165
Comment:
Revision 19 as of 2012-07-03 10:43:21
Size: 2839
Comment: setting shared between console and Xorg setup
Deletions are marked like this. Additions are marked like this.
Line 2: Line 2:
## ##############################################################
##
## More informations on "DebianWiki/EditorGuide" article
## Don't use all this template, just what you need !
##
## ##############################################################
##
||<tablestyle="width: 100%;" style="border: 0px hidden">~-Translation(s): none-~ ||<style="text-align: right; border: 0px hidden"> (!) [:/Discussion:Discussion]||
[[BR]]
||<tablestyle="width: 100%; text-align: center; border: 0px hidden"> http://www.debian.org/logos/openlogo-nd-50.png http://www.debian.org/Pics/debian.png||
||<style="border: 0px hidden">~+inline:Portal/IDB/logo_portal.png Welcome to ["Debian"] Keyboard+~||
||<tablestyle="width: 100%;" style="border: 0px hidden">~-[[DebianWiki/EditorGuide#translation|Translation(s)]]: English - [[it/Keyboard|Italiano]] - [[ru/Keyboard|Русский]] -~||<style="text-align: right;border: 0px hidden"> (!) [[/Discussion|Discussion]]||
Line 14: Line 4:
inline:Portal/IDB/icon-template-32x32.png This portal talk about keyboards. Technical language could be used, but explained.
----
||<tablestyle="width: 100%; text-align: center; border: 0px hidden"> {{http://www.debian.org/logos/openlogo-nd-50.png}} {{http://www.debian.org/Pics/debian.png}}||
||<style="border: 0px hidden">~+{{attachment:Portal/IDB/logo_portal.png}} Welcome to the [[Debian]] portal for keyboard information +~||
## For long page, you can use a TOC
<<TableOfContents(2)>>
Line 17: Line 9:
## For long portal, you can use a TOC
## [[TableOfContents(2)]]
The keyboard settings are stored in '''/etc/default/keyboard''' and this setting shared between console and Xorg setup.
Line 20: Line 11:
 * [:/MultimediaKeys:Configure additionnal multimedia key]  * Keyboard layout (keymap), see [[http://www.debian.org/doc/manuals/debian-reference/ch08.en.html#_the_keyboard_input|debian-reference]].
Line 22: Line 13:
## == Waiting for rectification ==
## Pages need works like merging, ambiguous
 * "{{{dpkg-reconfigure --priority=low xserver-xorg}}}" suggested by the above linked page does not work in Squeeze. You may try to add something like "{{{setxkbmap us,ru -option grp:ctrl_shift_toggle}}}" into {{{~/.xsessionrc}}} instead.
Line 25: Line 15:
----
## - If this page belongs to an existing Category, add it below.
 CategoryPortal | CategoryKeyboard
 * [[/MultimediaKeys|Configure additional multimedia key]]

== Change Keyboard Layout ==

A keyboard layout can be changed on command line:
{{{
$ sudo dpkg-reconfigure keyboard-configuration
}}}

This will prompt you for the ''model'' of keyboard (what the keyboard *is*), and then for the keyboard ''layout'' (what the keys should *do*). Use this tool to change your keyboard map e.g from qwerty to qwertz, or for non-English layouts.

== Set Keyboard Layout in initramfs ==

The file /etc/initramfs-tools/initramfs.conf must be changed to have the localized keyboard layout at boot time:

{{{
#
# KEYMAP: [ y | n ]
#
# Load a keymap during the initramfs stage.
#

KEYMAP=y
}}}

Apply changes.

{{{
# update-initramfs -u
}}}

== Enable USB Keyboard in initramfs ==

The initramfs-tools must include the usbhid module and its dependencies for USB keyboard support at boot time. Either the configuration file /etc/initramfs-tools/conf.d/driver-policy must include most modules, or they will have to be specified in another file:

{{{
#
# MODULES: [ most | netboot | dep | list ]
#
# most - Add most filesystem and all harddrive drivers.
#
# dep - Try and guess which modules to load.
#
# netboot - Add the base modules, network modules, but skip block devices.
#
# list - Only include modules from the 'additional modules' list
#

MODULES=most
}}}

If the configuration above was not set to include most modules then the necessary modules have to be specified in the file /etc/initramfs-tools/modules:

{{{
# USB keyboard at boot
usbcore
uhci_hcd
ehci_hcd
usbhid
}}}

Apply changes.

{{{
# update-initramfs -u
}}}

Translation(s): English - Italiano - Русский

(!) ?Discussion


http://www.debian.org/logos/openlogo-nd-50.png http://www.debian.org/Pics/debian.png

Portal/IDB/logo_portal.png Welcome to the Debian portal for keyboard information

The keyboard settings are stored in /etc/default/keyboard and this setting shared between console and Xorg setup.

  • Keyboard layout (keymap), see debian-reference.

  • "dpkg-reconfigure --priority=low xserver-xorg" suggested by the above linked page does not work in Squeeze. You may try to add something like "setxkbmap us,ru -option grp:ctrl_shift_toggle" into ~/.xsessionrc instead.

  • Configure additional multimedia key

Change Keyboard Layout

A keyboard layout can be changed on command line:

$ sudo dpkg-reconfigure keyboard-configuration

This will prompt you for the model of keyboard (what the keyboard *is*), and then for the keyboard layout (what the keys should *do*). Use this tool to change your keyboard map e.g from qwerty to qwertz, or for non-English layouts.

Set Keyboard Layout in initramfs

The file /etc/initramfs-tools/initramfs.conf must be changed to have the localized keyboard layout at boot time:

#
# KEYMAP: [ y | n ]
#
# Load a keymap during the initramfs stage.
#

KEYMAP=y

Apply changes.

# update-initramfs -u

Enable USB Keyboard in initramfs

The initramfs-tools must include the usbhid module and its dependencies for USB keyboard support at boot time. Either the configuration file /etc/initramfs-tools/conf.d/driver-policy must include most modules, or they will have to be specified in another file:

#
# MODULES: [ most | netboot | dep | list ]
#
# most - Add most filesystem and all harddrive drivers.
#
# dep - Try and guess which modules to load.
#
# netboot - Add the base modules, network modules, but skip block devices.
#
# list - Only include modules from the 'additional modules' list
#

MODULES=most

If the configuration above was not set to include most modules then the necessary modules have to be specified in the file /etc/initramfs-tools/modules:

# USB keyboard at boot
usbcore
uhci_hcd
ehci_hcd
usbhid

Apply changes.

# update-initramfs -u