LINUX.ORG.RU

Hal, клавиатура


0

0

Имеем федору 13 и ядро от 11 (родное не работает на моем железе из-за бага). Клавиатура и мышь не работают через udev. Добавил в xorg.conf Option «AutoAddDevices» «off», мышь нормально заработала, а вот клавиатура как-то не очень, буквы вроде все работают, а остальнае не хотят(стрелки и те клавиши что над ними), вместо insert печатается слеш и т.п. Вот конфиг:

Section "InputDevice"
    # generated from data in "/etc/sysconfig/keyboard"
    Identifier     "Keyboard0"
    Driver         "kbd"
    #Driver  "evdev"
    Option  "AutoRepeat"    "500 30"
    Option         "XkbLayout" "us"
    Option         "XkbModel" "acpi"
EndSection

[madgnu]:~]$ ll /etc/X11/xorg.conf.d/
итого 16K
-rw-r--r-- 1 root root 1,1K Апр 28 01:18 10-evdev.conf
-rw-r--r-- 1 root root  377 Апр 28 01:18 10-quirks.conf
-rw-r--r-- 1 root root  220 Май  9 18:32 10-synaptics.conf
-rw-r--r-- 1 root root  979 Май  8 17:07 50-fpit.conf
[madgnu]:~]$ cat /etc/X11/xorg.conf.d/10-evdev.conf 
# Catchall classes for input devices
# We don't simply match on any device since that also adds accelerometers
# and other devices that we don't really want to use. The list below
# matches everything but joysticks.

Section "InputClass"
        Identifier "evdev pointer catchall"
        MatchIsPointer "on"
        MatchDevicePath "/dev/input/event*"
        Driver "evdev"
EndSection

Section "InputClass"
        Identifier "evdev keyboard catchall"
        MatchIsKeyboard "on"
        MatchDevicePath "/dev/input/event*"
        Driver "evdev"
EndSection

Section "InputClass"
        Identifier "evdev touchpad catchall"
        MatchIsTouchpad "on"
        MatchDevicePath "/dev/input/event*"
        Driver "evdev"
EndSection

Section "InputClass"
        Identifier "evdev tablet catchall"
        MatchIsTablet "on"
        MatchDevicePath "/dev/input/event*"
        Driver "evdev"
EndSection

Section "InputClass"
        Identifier "evdev touchscreen catchall"
        MatchIsTouchscreen "on"
        MatchDevicePath "/dev/input/event*"
        Driver "evdev"
EndSection

xf86-input-evdev, естественно, должен быть установлен.

madgnu ★★★★★
()
Ответ на: комментарий от madgnu

Блин, случайно отправил.

В федоре же xorg-server 1.8, поэтому стоит конфигурировать так.

А по поводу не печатающихся символов - модель клавиатуры выбрана неверно.

madgnu ★★★★★
()
Ответ на: комментарий от madgnu

Да еще и выразился неверно, надо спать больше =/

Я имел ввиду, что стоит все же попробовать заставить работать определение через udev.

madgnu ★★★★★
()

> Клавиатура и мышь не работают через udev

Забудь про HAL и переходи на udev.
Почему с ним не работает? Покажи конфиг и логи иксов.
Нужна версия udev старше 148.

Sphinx ★★☆☆
()
Ответ на: комментарий от Sphinx

udev и xorg-x11-drv-evdev установлены, но это не мешает им не работать со старым ядром. На родном от 13 федоры все работало, правда недолго из-за этой фигни https://bugzilla.redhat.com/show_bug.cgi?id=589007 привожу xorg.0.log

...
[    67.148] (II) NVIDIA(0): [DRI2] Setup complete
[    67.148] (II) NVIDIA(0): [DRI2]   VDPAU driver: nvidia
[    67.148] (==) RandR enabled
[    67.148] (II) Initializing built-in extension Generic Event Extension
[    67.148] (II) Initializing built-in extension SHAPE
[    67.148] (II) Initializing built-in extension MIT-SHM
[    67.148] (II) Initializing built-in extension XInputExtension
[    67.148] (II) Initializing built-in extension XTEST
[    67.148] (II) Initializing built-in extension BIG-REQUESTS
[    67.148] (II) Initializing built-in extension SYNC
[    67.148] (II) Initializing built-in extension XKEYBOARD
[    67.148] (II) Initializing built-in extension XC-MISC
[    67.148] (II) Initializing built-in extension XINERAMA
[    67.148] (II) Initializing built-in extension XFIXES
[    67.148] (II) Initializing built-in extension RENDER
[    67.148] (II) Initializing built-in extension RANDR
[    67.148] (II) Initializing built-in extension COMPOSITE
[    67.148] (II) Initializing built-in extension DAMAGE
[    67.149] (II) SELinux: Disabled on system
[    67.151] (II) Initializing extension GLX
[    67.199] (**) Option "CoreKeyboard"
[    67.199] (**) Keyboard0: always reports core events
[    67.199] (**) Option "Protocol" "standard"
[    67.199] (**) Keyboard0: Protocol: standard
[    67.199] (**) Option "XkbRules" "base"
[    67.199] (**) Keyboard0: XkbRules: "base"
[    67.199] (**) Option "XkbModel" "acpi"
[    67.199] (**) Keyboard0: XkbModel: "acpi"
[    67.199] (**) Option "XkbLayout" "us"
[    67.199] (**) Keyboard0: XkbLayout: "us"
[    67.199] (**) Option "CustomKeycodes" "off"
[    67.199] (**) Keyboard0: CustomKeycodes disabled
[    67.199] (II) XINPUT: Adding extended input device "Keyboard0" (type: KEYBOARD)
[    67.226] (**) Option "Protocol" "ImPS/2"
[    67.226] (**) Mouse0: Device: "/dev/mouse1"
[    67.226] (**) Mouse0: Protocol: "ImPS/2"
[    67.226] (**) Option "CorePointer"
[    67.226] (**) Mouse0: always reports core events
[    67.226] (**) Option "Device" "/dev/mouse1"
[    67.238] (**) Option "Emulate3Buttons" "no"
[    67.238] (**) Option "ZAxisMapping" "4 5"
[    67.238] (**) Mouse0: ZAxisMapping: buttons 4 and 5
[    67.238] (**) Mouse0: Buttons: 9
[    67.238] (**) Mouse0: Sensitivity: 1
[    67.238] (II) XINPUT: Adding extended input device "Mouse0" (type: MOUSE)
[    67.238] (**) Mouse0: (accel) keeping acceleration scheme 1
[    67.238] (**) Mouse0: (accel) acceleration profile 0
[    67.238] (**) Mouse0: (accel) acceleration factor: 2.000
[    67.238] (**) Mouse0: (accel) acceleration threshold: 4
[    67.472] (II) Mouse0: ps2EnableDataReporting: succeeded
[    67.478] (II) config/udev: Adding input device Power Button (/dev/event0)
[    67.478] (II) AutoAddDevices is off - not adding device.
[    67.480] (II) config/udev: Adding input device Power Button (/dev/event1)
[    67.480] (II) AutoAddDevices is off - not adding device.
[    67.483] (II) config/udev: Adding input device Genius NetScroll + Traveler (/dev/event4)
[    67.483] (II) AutoAddDevices is off - not adding device.
[    67.484] (II) config/udev: Adding input device Genius NetScroll + Traveler (/dev/mouse1)
[    67.484] (II) AutoAddDevices is off - not adding device.
[    67.484] (II) config/udev: Adding input device   USB Keyboard (/dev/event5)
[    67.484] (II) AutoAddDevices is off - not adding device.
[    67.485] (II) config/udev: Adding input device   USB Keyboard (/dev/event6)
[    67.485] (II) AutoAddDevices is off - not adding device.
[    67.486] (II) config/udev: Adding input device saa7134 IR (Beholder BeholdTV 5 (/dev/event8)
[    67.486] (II) AutoAddDevices is off - not adding device.
[    67.489] (II) config/udev: Adding input device AT Translated Set 2 keyboard (/dev/event3)
[    67.489] (II) AutoAddDevices is off - not adding device.
[    67.489] (II) config/udev: Adding input device PC Speaker (/dev/event7)
[    67.489] (II) AutoAddDevices is off - not adding device.
[    67.492] (II) config/udev: Adding input device Macintosh mouse button emulation (/dev/event2)
[    67.492] (II) AutoAddDevices is off - not adding device.
[    67.493] (II) config/udev: Adding input device Macintosh mouse button emulation (/dev/mouse0)
[    67.493] (II) AutoAddDevices is off - not adding device.
ALeo
() автор топика
Ответ на: комментарий от madgnu

Как модель клавиатуры выбрать? Гугление не очень помогает, везде предлагается почти одинаковая конфигурацыя xorg.conf

ALeo
() автор топика
Ответ на: комментарий от madgnu

Пробовал, именно с него и начинал.

ALeo
() автор топика

Попробуйте так

Section "InputDevice"
    Identifier     "Keyboard0"
    Driver         "kbd"
    Option         "XkbRules" "xorg"
    Option         "XkbModel" "pc104"
    Option         "XkbLayout" "us,ru"
    Option         "XkbVariant" "winkeys"
EndSection

HTaeD ★★★★
()
Ответ на: комментарий от ALeo

В убунте раньше клавиатура вообще отваливалась, если AutoAddDevices отключить. Попоробуй включи. И покажи вывод xinput list.

sh_topor
()
Вы не можете добавлять комментарии в эту тему. Тема перемещена в архив.