|
Size: 1683
Comment:
|
Size: 2607
Comment:
|
| Deletions are marked like this. | Additions are marked like this. |
| Line 45: | Line 45: |
== 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 }}} |
The keyboard settings are stored in /etc/default/keyboard
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.
Change Keyboard Layout
A keyboard layout can be changed on command line:
# dpkg-reconfigure keyboard-configuration
Use the tool mentioned above if you want to change your keyboard map e.g from qwerty to qwertz.
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


Welcome on