Re: logitec usb wireless mouse

From: Randy Bush <randy_at_psg.com>
Date: Sat, 5 Feb 2005 14:11:44 -0800
> usbd_enable="YES"

yep.  and the keyboard would not have worked without that

> ifconfig_rl0="DHCP"
> saver="blank"
> blanktime="300"

not relevant, i hope

> moused_enable="NO"

hmmm.  i use moused all the time, as i switch back and forth from
touchpad to usb.

> Section "InputDevice"
>       Identifier  "Mouse0"
>       Driver      "mouse"
>       Option      "Protocol" "auto"
>       Option      "Device" "/dev/sysmouse"
>       Option      "ZAxisMapping" "4 5"
>       Option      "Buttons" "5"
> EndSection

ahhhh.  usbd is running moused for you.  i hacked /etc/usbd.conf to
have

    device "Mouse"
        devname "ums[0-9]+"
	attach "/usr/bin/killall moused; /usr/sbin/moused -p /dev/ums0 -t auto; /usr/sbin/vidcontrol -m on"
	detach "/usr/bin/killall moused; /usr/sbin/moused -p /dev/psm0 -t auto; /usr/sbin/vidcontrol -m on"
    device "Logitech Cordless Keyboard"
        devname "ukbd0"
        attach "/usr/sbin/kbdcontrol -k /dev/kbd1 < /dev/console"
        detach "/usr/sbin/kbdcontrol -k /dev/kbd0 < /dev/console"

this switches back and forth between the built-in keyboard and the
usb keyboard brilliantly.  but the mouse has a will of its own.

so then i have

    Section "InputDevice"
            Identifier  "Mouse0"
            Driver      "mouse"
            Option      "Protocol" "auto"
            Option      "Device" "/dev/sysmouse"
    EndSection

again, the keyboard works, and usbdevs shows me

    port 2 addr 2: low speed, power 98 mA, config 1, \
            USB Receiver(0xc50b), Logitech(0x046d), rev 21.00

and syslog shows

    ukbd0: Logitech USB Receiver, rev 1.10/21.00, addr 2, iclass 3/1
    kbd1 at ukbd0
    ums0: Logitech USB Receiver, rev 1.10/21.00, addr 2, iclass 3/1
    ums0: 7 buttons and Z dir.

and, when i plug the usb in, i see

    root     41884  0.0  0.1  1348  748  ??  Ss    2:07PM   0:00.00 /usr/sbin/moused -p /dev/ums0 -t auto

randy, still confused
Received on Sat Feb 05 2005 - 21:11:48 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:38:27 UTC