LINUX.ORG.RU

В DragonFly BSD в X-ах глючат мышь и клавиатура.

 , , ,


0

1

Под X-ми мышь дергается и скачет как припадочная, с клавиатуры вводится какйо-то мусор. Мышка и клавиатура, естественно usb-ые. Если подключить мышь ps/2, то всё нормально. Видимо какой-то не тот протокол ввода используется по умолчанию. Может кто знает, как это поправить?

Ответ на: комментарий от Clockwork

Вот кусок лога:

[   193.968] 
X.Org X Server 1.21.1.13
X Protocol Version 11, Revision 0
[   193.968] Current Operating System: DragonFly  6.4-RELEASE DragonFly v6.4.2-RELEASE #11: F x86_64


[   196.523] (II) config/udev: Adding input device System keyboard multiplexer (/dev/input/event0)
[   196.523] (**) System keyboard multiplexer: Applying InputClass "Evdev keyboard"
[   196.523] (II) LoadModule: "kbd"
[   196.523] (II) Loading /usr/local/lib/xorg/modules/input/kbd_drv.so
[   196.523] (II) Module kbd: vendor="X.Org Foundation"
[   196.523] 	compiled for 1.21.1.13, module version = 1.9.0
[   196.523] 	Module class: X.Org XInput Driver
[   196.523] 	ABI class: X.Org XInput driver, version 24.4
[   196.523] (II) Using input driver 'kbd' for 'System keyboard multiplexer'
[   196.523] (**) System keyboard multiplexer: always reports core events
[   196.523] (**) System keyboard multiplexer: always reports core events
[   196.523] (**) Option "Protocol" "standard"
[   196.523] (**) Option "Device" "/dev/input/event0"
[   196.523] (**) Option "XkbRules" "evdev"
[   196.523] (**) Option "XkbModel" "pc105"
[   196.523] (**) Option "XkbLayout" "us"
[   196.523] (**) Option "config_info" "udev:/dev/input/event0"
[   196.523] (II) XINPUT: Adding extended input device "System keyboard multiplexer" (type: KEYBOARD, id 6)
[   196.583] (II) config/udev: Adding input device System mouse (/dev/input/event1)
[   196.583] (II) LoadModule: "mouse"
[   196.583] (II) Loading /usr/local/lib/xorg/modules/input/mouse_drv.so
[   196.613] (II) Module mouse: vendor="X.Org Foundation"
[   196.613] 	compiled for 1.21.1.13, module version = 1.9.3
[   196.613] 	Module class: X.Org XInput Driver
[   196.613] 	ABI class: X.Org XInput driver, version 24.4
[   196.613] (II) Using input driver 'mouse' for 'System mouse'
[   196.613] (**) System mouse: always reports core events
[   196.613] (**) Option "Device" "/dev/input/event1"
[   196.613] (==) System mouse: Protocol: "Auto"
[   196.613] (**) System mouse: always reports core events
[   196.613] (==) System mouse: Emulate3Buttons, Emulate3Timeout: 50
[   196.613] (**) System mouse: ZAxisMapping: buttons 4 and 5
[   196.613] (**) System mouse: Buttons: 5
[   196.613] (**) Option "config_info" "udev:/dev/input/event1"
[   196.613] (II) XINPUT: Adding extended input device "System mouse" (type: MOUSE, id 7)
[   196.613] (**) System mouse: (accel) keeping acceleration scheme 1
[   196.613] (**) System mouse: (accel) acceleration profile 0
[   196.613] (**) System mouse: (accel) acceleration factor: 2.000
[   196.613] (**) System mouse: (accel) acceleration threshold: 4
[   196.613] (II) System mouse: SetupAuto: hw.iftype is -1, hw.model is 0
[   197.483] (II) config/udev: Adding input device SIGMACHIP USB Keyboard (/dev/input/event2)
[   197.483] (**) SIGMACHIP USB Keyboard: Applying InputClass "Evdev keyboard"
[   197.483] (II) Using input driver 'kbd' for 'SIGMACHIP USB Keyboard'
[   197.483] (**) SIGMACHIP USB Keyboard: always reports core events
[   197.483] (**) SIGMACHIP USB Keyboard: always reports core events
[   197.483] (**) Option "Protocol" "standard"
[   197.483] (**) Option "Device" "/dev/input/event2"
[   197.483] (**) Option "XkbRules" "evdev"
[   197.483] (**) Option "XkbModel" "pc105"
[   197.483] (**) Option "XkbLayout" "us"
[   197.483] (**) Option "config_info" "udev:/dev/input/event2"
[   197.483] (II) XINPUT: Adding extended input device "SIGMACHIP USB Keyboard" (type: KEYBOARD, id 8)
[   197.483] (II) config/udev: Adding input device SIGMACHIP Usb Mouse (/dev/input/event3)
[   197.483] (II) Using input driver 'mouse' for 'SIGMACHIP Usb Mouse'
[   197.483] (**) SIGMACHIP Usb Mouse: always reports core events
[   197.483] (**) Option "Device" "/dev/input/event3"
[   197.483] (==) SIGMACHIP Usb Mouse: Protocol: "Auto"
[   197.483] (**) SIGMACHIP Usb Mouse: always reports core events
[   197.483] (==) SIGMACHIP Usb Mouse: Emulate3Buttons, Emulate3Timeout: 50
[   197.483] (**) SIGMACHIP Usb Mouse: ZAxisMapping: buttons 4 and 5
[   197.483] (**) SIGMACHIP Usb Mouse: Buttons: 5
[   197.483] (**) Option "config_info" "udev:/dev/input/event3"
[   197.483] (II) XINPUT: Adding extended input device "SIGMACHIP Usb Mouse" (type: MOUSE, id 9)
[   197.483] (**) SIGMACHIP Usb Mouse: (accel) keeping acceleration scheme 1
[   197.483] (**) SIGMACHIP Usb Mouse: (accel) acceleration profile 0
[   197.483] (**) SIGMACHIP Usb Mouse: (accel) acceleration factor: 2.000
[   197.483] (**) SIGMACHIP Usb Mouse: (accel) acceleration threshold: 4
[   197.483] (II) SIGMACHIP Usb Mouse: SetupAuto: hw.iftype is -1, hw.model is 0
[   198.353] (II) config/udev: Adding input device System mouse (/dev/sysmouse)
[   198.353] (II) Using input driver 'mouse' for 'System mouse'
[   198.353] (**) System mouse: always reports core events
[   198.353] (**) Option "Device" "/dev/sysmouse"
[   198.353] (==) System mouse: Protocol: "Auto"
[   198.353] (**) System mouse: always reports core events
[   198.353] (==) System mouse: Emulate3Buttons, Emulate3Timeout: 50
[   198.353] (**) System mouse: ZAxisMapping: buttons 4 and 5
[   198.353] (**) System mouse: Buttons: 5
[   198.353] (**) Option "config_info" "udev:/dev/sysmouse"
[   198.353] (II) XINPUT: Adding extended input device "System mouse" (type: MOUSE, id 10)
[   198.353] (**) System mouse: (accel) keeping acceleration scheme 1
[   198.353] (**) System mouse: (accel) acceleration profile 0
[   198.353] (**) System mouse: (accel) acceleration factor: 2.000
[   198.353] (**) System mouse: (accel) acceleration threshold: 4
[   198.353] (II) System mouse: SetupAuto: hw.iftype is 4, hw.model is 0
[   198.353] (II) System mouse: SetupAuto: protocol is SysMouse
[   198.353] (II) config/udev: Adding input device SIGMACHIP Usb Mouse (/dev/ums0)
[   198.353] (II) Using input driver 'mouse' for 'SIGMACHIP Usb Mouse'
[   198.353] (**) SIGMACHIP Usb Mouse: always reports core events
[   198.353] (**) Option "Device" "/dev/ums0"
[   198.353] (==) SIGMACHIP Usb Mouse: Protocol: "Auto"
[   198.353] (**) SIGMACHIP Usb Mouse: always reports core events
[   198.353] (EE) xf86OpenSerial: Cannot open device /dev/ums0
	Device busy.
[   198.353] (EE) SIGMACHIP Usb Mouse: cannot open input device
[   198.353] (EE) PreInit returned 2 for "SIGMACHIP Usb Mouse"
[   198.353] (II) UnloadModule: "mouse"
[   198.353] scfb: SaveScreen 0
[   198.353] scfb: SaveScreen done
[   198.363] (EE) Failed to open authorization file "goga/.serverauth.831": No such file or directory
[   205.703] (II) Mouse autoprobe: selecting NetScrollPS/2 protocol
[   217.833] scfb: LeaveVT 0
[   318.263] scfb: EnterVT 0
[   318.263] scfb: EnterVT done
[   318.263] scfb: LoadPalette 0
[   318.263] scfb: SaveScreen 0
[   318.263] scfb: SaveScreen done
[   318.263] (II) System mouse: SetupAuto: hw.iftype is -1, hw.model is 0
zloy_starper ★★★
() автор топика
Ответ на: комментарий от zloy_starper

Xorg использует kbd и mouse и пытается получить доступ к устройству /dev/ums0, которое уже занято (Device busy).

Как вариант, можно установить libinput и отключить moused (который, вероятно, блокирует /dev/ums0) в /etc/rc.conf

Также, думаю, у тебя в конфиге Xorg могут быть лишние устройства

Если не трогать конфиг xorg, то можно заставить libinput работать принудительно

cat /usr/local/etc/X11/xorg.conf.d/40-libinput.conf

Section "InputClass"
    Identifier "libinput catchall"
    MatchIsPointer "on"
    MatchIsKeyboard "on"
    Driver "libinput"
EndSection
Clockwork ★★★★★
()
Ответ на: комментарий от Clockwork

Сделал так. 10-evdev.conf

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

40-libinput.conf

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

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

Мышь заработала. На клавиатуру ноль реакции. В логе по-моему ничего не изменилось, кроме отсутствия Device busy

[    97.413] (II) config/udev: Adding input device System keyboard multiplexer (/dev/input/event0)
[    97.413] (**) System keyboard multiplexer: Applying InputClass "Evdev keyboard"
[    97.413] (II) LoadModule: "kbd"
[    97.413] (II) Loading /usr/local/lib/xorg/modules/input/kbd_drv.so
[    97.433] (II) Module kbd: vendor="X.Org Foundation"
[    97.433] 	compiled for 1.21.1.13, module version = 1.9.0
[    97.433] 	Module class: X.Org XInput Driver
[    97.433] 	ABI class: X.Org XInput driver, version 24.4
[    97.433] (II) Using input driver 'kbd' for 'System keyboard multiplexer'
[    97.433] (**) System keyboard multiplexer: always reports core events
[    97.433] (**) System keyboard multiplexer: always reports core events
[    97.433] (**) Option "Protocol" "standard"
[    97.433] (**) Option "Device" "/dev/input/event0"
[    97.433] (**) Option "XkbRules" "evdev"
[    97.433] (**) Option "XkbModel" "pc105"
[    97.433] (**) Option "XkbLayout" "us"
[    97.433] (**) Option "config_info" "udev:/dev/input/event0"
[    97.433] (II) XINPUT: Adding extended input device "System keyboard multiplexer" (type: KEYBOARD, id 6)
[    97.493] (II) config/udev: Adding input device System mouse (/dev/input/event1)
[    97.493] (II) LoadModule: "mouse"
[    97.493] (II) Loading /usr/local/lib/xorg/modules/input/mouse_drv.so
[    97.523] (II) Module mouse: vendor="X.Org Foundation"
[    97.523] 	compiled for 1.21.1.13, module version = 1.9.3
[    97.523] 	Module class: X.Org XInput Driver
[    97.523] 	ABI class: X.Org XInput driver, version 24.4
[    97.523] (II) Using input driver 'mouse' for 'System mouse'
[    97.523] (**) System mouse: always reports core events
[    97.523] (**) Option "Device" "/dev/input/event1"
[    97.523] (==) System mouse: Protocol: "Auto"
[    97.523] (**) System mouse: always reports core events
[    97.523] (==) System mouse: Emulate3Buttons, Emulate3Timeout: 50
[    97.523] (**) System mouse: ZAxisMapping: buttons 4 and 5
[    97.523] (**) System mouse: Buttons: 5
[    97.523] (**) Option "config_info" "udev:/dev/input/event1"
[    97.523] (II) XINPUT: Adding extended input device "System mouse" (type: MOUSE, id 7)
[    97.523] (**) System mouse: (accel) keeping acceleration scheme 1
[    97.523] (**) System mouse: (accel) acceleration profile 0
[    97.523] (**) System mouse: (accel) acceleration factor: 2.000
[    97.523] (**) System mouse: (accel) acceleration threshold: 4
[    97.523] (II) System mouse: SetupAuto: hw.iftype is -1, hw.model is 0
[    98.393] (II) config/udev: Adding input device SIGMACHIP USB Keyboard (/dev/input/event2)
[    98.393] (**) SIGMACHIP USB Keyboard: Applying InputClass "Evdev keyboard"
[    98.393] (II) Using input driver 'kbd' for 'SIGMACHIP USB Keyboard'
[    98.393] (**) SIGMACHIP USB Keyboard: always reports core events
[    98.393] (**) SIGMACHIP USB Keyboard: always reports core events
[    98.393] (**) Option "Protocol" "standard"
[    98.393] (**) Option "Device" "/dev/input/event2"
[    98.393] (**) Option "XkbRules" "evdev"
[    98.393] (**) Option "XkbModel" "pc105"
[    98.393] (**) Option "XkbLayout" "us"
[    98.393] (**) Option "config_info" "udev:/dev/input/event2"
[    98.393] (II) XINPUT: Adding extended input device "SIGMACHIP USB Keyboard" (type: KEYBOARD, id 8)
[    98.393] (II) config/udev: Adding input device SIGMACHIP Usb Mouse (/dev/input/event3)
[    98.393] (II) Using input driver 'mouse' for 'SIGMACHIP Usb Mouse'
[    98.393] (**) SIGMACHIP Usb Mouse: always reports core events
[    98.393] (**) Option "Device" "/dev/input/event3"
[    98.393] (==) SIGMACHIP Usb Mouse: Protocol: "Auto"
[    98.393] (**) SIGMACHIP Usb Mouse: always reports core events
[    98.393] (==) SIGMACHIP Usb Mouse: Emulate3Buttons, Emulate3Timeout: 50
[    98.393] (**) SIGMACHIP Usb Mouse: ZAxisMapping: buttons 4 and 5
[    98.393] (**) SIGMACHIP Usb Mouse: Buttons: 5
[    98.393] (**) Option "config_info" "udev:/dev/input/event3"
[    98.393] (II) XINPUT: Adding extended input device "SIGMACHIP Usb Mouse" (type: MOUSE, id 9)
[    98.393] (**) SIGMACHIP Usb Mouse: (accel) keeping acceleration scheme 1
[    98.393] (**) SIGMACHIP Usb Mouse: (accel) acceleration profile 0
[    98.393] (**) SIGMACHIP Usb Mouse: (accel) acceleration factor: 2.000
[    98.393] (**) SIGMACHIP Usb Mouse: (accel) acceleration threshold: 4
[    98.393] (II) SIGMACHIP Usb Mouse: SetupAuto: hw.iftype is -1, hw.model is 0
[    99.263] (II) config/udev: Adding input device System mouse (/dev/sysmouse)
[    99.263] (II) Using input driver 'mouse' for 'System mouse'
[    99.263] (**) System mouse: always reports core events
[    99.263] (**) Option "Device" "/dev/sysmouse"
[    99.263] (==) System mouse: Protocol: "Auto"
[    99.263] (**) System mouse: always reports core events
[    99.263] (==) System mouse: Emulate3Buttons, Emulate3Timeout: 50
[    99.263] (**) System mouse: ZAxisMapping: buttons 4 and 5
[    99.263] (**) System mouse: Buttons: 5
[    99.263] (**) Option "config_info" "udev:/dev/sysmouse"
[    99.263] (II) XINPUT: Adding extended input device "System mouse" (type: MOUSE, id 10)
[    99.263] (**) System mouse: (accel) keeping acceleration scheme 1
[    99.263] (**) System mouse: (accel) acceleration profile 0
[    99.263] (**) System mouse: (accel) acceleration factor: 2.000
[    99.263] (**) System mouse: (accel) acceleration threshold: 4
[    99.263] (II) System mouse: SetupAuto: hw.iftype is 4, hw.model is 0
[    99.263] (II) System mouse: SetupAuto: protocol is SysMouse
[    99.263] (II) config/udev: Adding input device SIGMACHIP Usb Mouse (/dev/ums0)
[    99.263] (II) Using input driver 'mouse' for 'SIGMACHIP Usb Mouse'
[    99.263] (**) SIGMACHIP Usb Mouse: always reports core events
[    99.263] (**) Option "Device" "/dev/ums0"
[    99.263] (==) SIGMACHIP Usb Mouse: Protocol: "Auto"
[    99.263] (**) SIGMACHIP Usb Mouse: always reports core events
[    99.263] (==) SIGMACHIP Usb Mouse: Emulate3Buttons, Emulate3Timeout: 50
[    99.263] (**) SIGMACHIP Usb Mouse: ZAxisMapping: buttons 4 and 5
[    99.263] (**) SIGMACHIP Usb Mouse: Buttons: 5
[    99.263] (**) Option "config_info" "udev:/dev/ums0"
[    99.263] (II) XINPUT: Adding extended input device "SIGMACHIP Usb Mouse" (type: MOUSE, id 11)
[    99.263] (**) SIGMACHIP Usb Mouse: (accel) keeping acceleration scheme 1
[    99.263] (**) SIGMACHIP Usb Mouse: (accel) acceleration profile 0
[    99.263] (**) SIGMACHIP Usb Mouse: (accel) acceleration factor: 2.000
[    99.263] (**) SIGMACHIP Usb Mouse: (accel) acceleration threshold: 4
[    99.263] (II) SIGMACHIP Usb Mouse: SetupAuto: hw.iftype is 5, hw.model is 0
[    99.263] (II) SIGMACHIP Usb Mouse: SetupAuto: protocol is SysMouse
[    99.263] scfb: SaveScreen 0
[    99.263] scfb: SaveScreen done
[    99.273] (EE) Failed to open authorization file "goga/.serverauth.814": No such file or directory
[   105.843] (II) Mouse autoprobe: selecting NetScrollPS/2 protocol
[   124.023] (II) SIGMACHIP Usb Mouse: SetupAuto: hw.iftype is -1, hw.model is 0
[   133.423] Failed to switch from vt09 to vt01: Invalid argument
[   133.423] scfb: LeaveVT 0

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

Сделал так. 10-evdev.conf

У тебя 10-evdev.conf обрабатывается раньше и он применил драйвер kbd к клавиатуре, и Xorg остановил поиск более поздних правил (40-libinput.conf).

[    98.393] (II) config/udev: Adding input device SIGMACHIP USB Keyboard (/dev/input/event2)
[    98.393] (**) SIGMACHIP USB Keyboard: Applying InputClass "Evdev keyboard"
[    98.393] (II) Using input driver 'kbd' for 'SIGMACHIP USB Keyboard'

libinput может работать и для клавиатуры, и для мыши с использованием одного конфига 40-libinput.conf

Clockwork ★★★★★
()