вот у меня тоже с этим проблема, после обновления иксов. раскладка, парвда, переключается по назначенному капс локу, но лампочка на клавиатуре это никак не отображает, она вообще какой-то своей жизнью живет. как бороться - уже не знаю. все параметры для переключения прописаны в /etc/default/keyboard, xorg.conf нету в принципе, в /etc/default/console-setup все упоминания про раскладку убраны, но там ссылка есть на /etc/default/keyboard. Более того, судя по логу xorg'a параметры раскладок грузятся нормально (меня правда смущает то, что там фигурируют некие sleep & power баттоны, и то, что в lshal'e несколько записей связанных с xkb, правда это, как я понимаю, из-за тех самых слип/павер кнопок). но почему - не работает, я не понимаю.
Код: Выделить всё
(II) LoadModule: "evdev"
(II) Loading /usr/lib/xorg/modules/input//evdev_drv.so
(II) Module evdev: vendor="X.Org Foundation"
compiled for 1.6.3, module version = 2.2.5
Module class: X.Org XInput Driver
ABI class: X.Org XInput driver, version 4.0
(**) AT Translated Set 2 keyboard: always reports core events
(**) AT Translated Set 2 keyboard: Device: "/dev/input/event0"
(II) AT Translated Set 2 keyboard: Found keys
(II) AT Translated Set 2 keyboard: Configuring as keyboard
(II) XINPUT: Adding extended input device "AT Translated Set 2 keyboard" (type: KEYBOARD)
(**) Option "xkb_rules" "evdev"
(**) Option "xkb_model" "pc104"
(**) Option "xkb_layout" "us,ru"
(**) Option "xkb_options" "grp:caps_toggle,grp_led:caps"
(II) config/hal: Adding input device Sleep Button
(**) Sleep Button: always reports core events
(**) Sleep Button: Device: "/dev/input/event3"
(II) Sleep Button: Found keys
(II) Sleep Button: Configuring as keyboard
(II) XINPUT: Adding extended input device "Sleep Button" (type: KEYBOARD)
(**) Option "xkb_rules" "evdev"
(**) Option "xkb_model" "pc104"
(**) Option "xkb_layout" "us,ru"
(**) Option "xkb_options" "grp:caps_toggle,grp_led:caps"
(II) config/hal: Adding input device Power Button
(**) Power Button: always reports core events
(**) Power Button: Device: "/dev/input/event2"
(II) Power Button: Found keys
(II) Power Button: Configuring as keyboard
(II) XINPUT: Adding extended input device "Power Button" (type: KEYBOARD)
(**) Option "xkb_rules" "evdev"
(**) Option "xkb_model" "pc104"
(**) Option "xkb_layout" "us,ru"
(**) Option "xkb_options" "grp:caps_toggle,grp_led:caps"
(II) config/hal: Adding input device Power Button
(**) Power Button: always reports core events
(**) Power Button: Device: "/dev/input/event1"
(II) Power Button: Found keys
(II) Power Button: Configuring as keyboard
(II) XINPUT: Adding extended input device "Power Button" (type: KEYBOARD)
(**) Option "xkb_rules" "evdev"
(**) Option "xkb_model" "pc104"
(**) Option "xkb_layout" "us,ru"
(**) Option "xkb_options" "grp:caps_toggle,grp_led:caps"
(II) config/hal: Adding input device ImExPS/2 Generic Explorer Mouse
(**) ImExPS/2 Generic Explorer Mouse: always reports core events
(**) ImExPS/2 Generic Explorer Mouse: Device: "/dev/input/event5"
(II) ImExPS/2 Generic Explorer Mouse: Found 9 mouse buttons
(II) ImExPS/2 Generic Explorer Mouse: Found x and y relative axes
(II) ImExPS/2 Generic Explorer Mouse: Found scroll wheel(s)
(II) ImExPS/2 Generic Explorer Mouse: Configuring as mouse
(**) ImExPS/2 Generic Explorer Mouse: YAxisMapping: buttons 4 and 5
(**) ImExPS/2 Generic Explorer Mouse: EmulateWheelButton: 4, EmulateWheelInertia: 10, EmulateWheelTimeout: 200
(II) XINPUT: Adding extended input device "ImExPS/2 Generic Explorer Mouse" (type: MOUSE)
(**) ImExPS/2 Generic Explorer Mouse: (accel) keeping acceleration scheme 1
(**) ImExPS/2 Generic Explorer Mouse: (accel) filter chain progression: 2.00
(**) ImExPS/2 Generic Explorer Mouse: (accel) filter stage 0: 20.00 ms
(**) ImExPS/2 Generic Explorer Mouse: (accel) set acceleration profile 0
(II) ImExPS/2 Generic Explorer Mouse: initialized for relative axes.
Код: Выделить всё
$ lshal | grep -C 3 xkb
input.device = '/dev/input/event3' (string)
input.product = 'Sleep Button' (string)
input.x11_driver = 'evdev' (string)
input.xkb.layout = 'us,ru' (string)
input.xkb.model = 'pc104' (string)
input.xkb.options = 'grp:caps_toggle,grp_led:caps' (string)
linux.device_file = '/dev/input/event3' (string)
linux.hotplug_type = 2 (0x2) (int)
linux.subsystem = 'input' (string)
--
input.device = '/dev/input/event2' (string)
input.product = 'Power Button' (string)
input.x11_driver = 'evdev' (string)
input.xkb.layout = 'us,ru' (string)
input.xkb.model = 'pc104' (string)
input.xkb.options = 'grp:caps_toggle,grp_led:caps' (string)
linux.device_file = '/dev/input/event2' (string)
linux.hotplug_type = 2 (0x2) (int)
linux.subsystem = 'input' (string)
--
input.device = '/dev/input/event1' (string)
input.product = 'Power Button' (string)
input.x11_driver = 'evdev' (string)
input.xkb.layout = 'us,ru' (string)
input.xkb.model = 'pc104' (string)
input.xkb.options = 'grp:caps_toggle,grp_led:caps' (string)
linux.device_file = '/dev/input/event1' (string)
linux.hotplug_type = 2 (0x2) (int)
linux.subsystem = 'input' (string)
--
input.originating_device = '/org/freedesktop/Hal/devices/platform_i8042_i8042_KBD_port' (string)
input.product = 'AT Translated Set 2 keyboard' (string)
input.x11_driver = 'evdev' (string)
input.xkb.layout = 'us,ru' (string)
input.xkb.model = 'pc104' (string)
input.xkb.options = 'grp:caps_toggle,grp_led:caps' (string)
linux.device_file = '/dev/input/event0' (string)
linux.hotplug_type = 2 (0x2) (int)
linux.subsystem = 'input' (string)
Код: Выделить всё
$ ls -l /etc/X11/xorg.conf
ls: невозможно получить доступ к /etc/X11/xorg.conf: Нет такого файла или каталога
[16 Дек 2009 19:37:36] user@deb ~
$ cat /etc/default/key* | grep -v ^\#
XKBMODEL="pc104"
XKBLAYOUT="us,ru"
XKBOPTIONS="grp:caps_toggle,grp_led:caps"
$ cat /etc/default/cons* | grep -v ^\#|grep -v ^$
VERBOSE_OUTPUT="no"
ACTIVE_CONSOLES="/dev/tty[1-6]"
CHARMAP="UTF-8"
CODESET="CyrSlav"
FONTFACE="Fixed"
FONTSIZE="10"
if [ -f /etc/default/keyboard ]; then
. /etc/default/keyboard
fi
еще вводит в ступор, что на соседней машине с точно такими же параметрами все нормально работает.
зы всякие hal'ы и даже Х серверы после правок файлов я, само собой, перезапускал.
куда можно покопать?)
UNIX is basically a simple operating system, but you have to be a genius to understand the simplicity. © Dennis Ritchie
The more you believe you don't do mistakes, the more bugs are in your code.