usb mouse and xorg

From: Sergey V. Dyatko <sergey.dyatko_at_gmail.com>
Date: Tue, 10 Sep 2013 14:42:02 +0300
Hi,

after I update my HEAD box from 252xxx (i'm not sure) to r255393 USB
mouse(s) stop work for me on X. 
I run `tail -f /var/log/Xorg.0.log /var/log/messages`:

Sep 10 14:27:15 laptop kernel: ugen4.2: <A4Tech> at usbus4
Sep 10 14:27:15 laptop devd: Executing 'env
LD_PRELOAD=/usr/local/lib/libhal.so:/usr/local/lib/libdbus-1.so:/usr/local/lib/libcuse4bsd.so /usr/local/etc/rc.d/webcamd
start ugen4.2 0' Sep 10 14:27:15 laptop kernel: ums0: <A4Tech USB
Optical Mouse, class 0/0, rev 1.10/0.01, addr 2> on usbus4 Sep 10
14:27:15 laptop kernel: ums0: 7 buttons and [XYZ] coordinates ID=0 Sep
10 14:27:15 laptop devd: Executing '/etc/rc.d/moused quietstart ums0'

==> /var/log/Xorg.0.log <==
(II) config/hal: Adding input device USB Optical Mouse
(**) Option "Device" "/dev/ums0"
(==) USB Optical Mouse: Protocol: "Auto"
(**) USB Optical Mouse: always reports core events
(**) Option "Device" "/dev/ums0"
(EE) xf86OpenSerial: Cannot open device /dev/ums0
        Device busy.
(EE) USB Optical Mouse: cannot open input device
(II) UnloadModule: "mouse"
(EE) PreInit returned NULL for "USB Optical Mouse"
(EE) config/hal: NewInputDeviceRequest failed (8)

after comment 
notify 100 {
       match "system" "DEVFS";
... skipped
       action "/etc/rc.d/moused quietstart $cdev";
}; on devd.conf and restart devd my mouse work again:

==> /var/log/messages <==
Sep 10 14:27:49 laptop sudo:    tiger : TTY=pts/4 ;
PWD=/usr/home/tiger ; USER=root ; COMMAND=/bin/csh Sep 10 14:28:56
laptop kernel: ugen4.2: <A4Tech> at usbus4 (disconnected) Sep 10
14:28:56 laptop kernel: ums0: at uhub2, port 2, addr 2 (disconnected)
Sep 10 14:28:56 laptop devd: Executing '/etc/rc.d/moused stop ums0' Sep
10 14:29:01 laptop kernel: ugen4.2: <A4Tech> at usbus4 Sep 10 14:29:01
laptop kernel: ums0: <A4Tech USB Optical Mouse, class 0/0, rev
1.10/0.01, addr 2> on usbus4 Sep 10 14:29:01 laptop devd: Executing
'env
LD_PRELOAD=/usr/local/lib/libhal.so:/usr/local/lib/libdbus-1.so:/usr/local/lib/libcuse4bsd.so /usr/local/etc/rc.d/webcamd
start ugen4.2 0' Sep 10 14:29:01 laptop kernel: ums0: 7 buttons and
[XYZ] coordinates ID=0

==> /var/log/Xorg.0.log <==
(II) config/hal: Adding input device USB Optical Mouse
(**) Option "Device" "/dev/ums0"
(==) USB Optical Mouse: Protocol: "Auto"
(**) USB Optical Mouse: always reports core events
(**) Option "Device" "/dev/ums0"
(==) USB Optical Mouse: Emulate3Buttons, Emulate3Timeout: 50
(**) USB Optical Mouse: ZAxisMapping: buttons 4 and 5
(**) USB Optical Mouse: Buttons: 5
(II) XINPUT: Adding extended input device "USB Optical Mouse" (type:
MOUSE) (**) USB Optical Mouse: (accel) keeping acceleration scheme 1
(**) USB Optical Mouse: (accel) acceleration profile 0
(II) USB Optical Mouse: SetupAuto: hw.iftype is 5, hw.model is 0
(II) USB Optical Mouse: SetupAuto: protocol is SysMouse
(WW) fcntl(70, F_SETOWN): Inappropriate ioctl for device


-- 
wbr, tiger
Received on Tue Sep 10 2013 - 09:42:04 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:41 UTC