попробовал аналогично прыгающему PL2303 /dev/ttyUSB0-1-2-3итд,
не получается
вот как усмирил /dev/ttyUSB0
Код: Выделить всё
#pl2303
BUS=="usb",KERNELS=="3-1:1.0",KERNEL=="ttyUSB*",SYMLINK+="ttyUSB0"
Код: Выделить всё
#MOUSE
BUS=="usb",KERNELS=="4-1:1.0",ATTR{name}=="PIXART USB OPTICAL MOUSE",SYMLINK+="input1"
что дальше править не соображу
Код: Выделить всё
looking at device '/devices/pci0000:00/0000:00:1d.2/usb4/4-1/4-1:1.0/input/input36':
KERNEL=="input36"
SUBSYSTEM=="input"
DRIVER==""
ATTR{name}=="PIXART USB OPTICAL MOUSE"
ATTR{phys}=="usb-0000:00:1d.2-1/input0"
ATTR{uniq}==""
ATTR{modalias}=="input:b0003v093Ap2510e0111-e0,1,2,4,k110,111,112,r0,1,8,am4,lsfw"
looking at parent device '/devices/pci0000:00/0000:00:1d.2/usb4/4-1/4-1:1.0':
KERNELS=="4-1:1.0"
SUBSYSTEMS=="usb"
DRIVERS=="usbhid"
ATTRS{bInterfaceNumber}=="00"
ATTRS{bAlternateSetting}==" 0"
ATTRS{bNumEndpoints}=="01"
ATTRS{bInterfaceClass}=="03"
ATTRS{bInterfaceSubClass}=="01"
ATTRS{bInterfaceProtocol}=="02"
ATTRS{modalias}=="usb:v093Ap2510d0100dc00dsc00dp00ic03isc01ip02"
ATTRS{supports_autosuspend}=="1"
looking at parent device '/devices/pci0000:00/0000:00:1d.2/usb4/4-1':
KERNELS=="4-1"
SUBSYSTEMS=="usb"
DRIVERS=="usb"
ATTRS{configuration}=="HID-compliant MOUSE"
ATTRS{bNumInterfaces}==" 1"
ATTRS{bConfigurationValue}=="1"
ATTRS{bmAttributes}=="a0"
ATTRS{bMaxPower}=="100mA"
ATTRS{urbnum}=="12"
ATTRS{idVendor}=="093a"
ATTRS{idProduct}=="2510"
ATTRS{bcdDevice}=="0100"
ATTRS{bDeviceClass}=="00"
ATTRS{bDeviceSubClass}=="00"
ATTRS{bDeviceProtocol}=="00"
ATTRS{bNumConfigurations}=="1"
ATTRS{bMaxPacketSize0}=="8"
ATTRS{speed}=="1.5"
ATTRS{busnum}=="4"
ATTRS{devnum}=="35"
ATTRS{version}==" 1.10"
ATTRS{maxchild}=="0"
ATTRS{quirks}=="0x0"
ATTRS{authorized}=="1"
ATTRS{manufacturer}=="PIXART"
ATTRS{product}=="USB OPTICAL MOUSE"
looking at parent device '/devices/pci0000:00/0000:00:1d.2/usb4':
KERNELS=="usb4"
SUBSYSTEMS=="usb"
DRIVERS=="usb"
ATTRS{configuration}==""
ATTRS{bNumInterfaces}==" 1"
ATTRS{bConfigurationValue}=="1"
ATTRS{bmAttributes}=="e0"
ATTRS{bMaxPower}==" 0mA"
ATTRS{urbnum}=="857"
ATTRS{idVendor}=="1d6b"
ATTRS{idProduct}=="0001"
ATTRS{bcdDevice}=="0206"
ATTRS{bDeviceClass}=="09"
ATTRS{bDeviceSubClass}=="00"
ATTRS{bDeviceProtocol}=="00"
ATTRS{bNumConfigurations}=="1"
ATTRS{bMaxPacketSize0}=="64"
ATTRS{speed}=="12"
ATTRS{busnum}=="4"
ATTRS{devnum}=="1"
ATTRS{version}==" 1.10"
ATTRS{maxchild}=="2"
ATTRS{quirks}=="0x0"
ATTRS{authorized}=="1"
ATTRS{manufacturer}=="Linux 2.6.31.2-desktop-0.rc1.1mnb uhci_hcd"
ATTRS{product}=="UHCI Host Controller"
ATTRS{serial}=="0000:00:1d.2"
ATTRS{authorized_default}=="1"
looking at parent device '/devices/pci0000:00/0000:00:1d.2':
KERNELS=="0000:00:1d.2"
SUBSYSTEMS=="pci"
DRIVERS=="uhci_hcd"
ATTRS{vendor}=="0x8086"
ATTRS{device}=="0x24c7"
ATTRS{subsystem_vendor}=="0x8086"
ATTRS{subsystem_device}=="0x5247"
ATTRS{class}=="0x0c0300"
ATTRS{irq}=="18"
ATTRS{local_cpus}=="ffffffff"
ATTRS{local_cpulist}=="0-31"
ATTRS{modalias}=="pci:v00008086d000024C7sv00008086sd00005247bc0Csc03i00"
ATTRS{enable}=="1"
ATTRS{broken_parity_status}=="0"
ATTRS{msi_bus}==""
looking at parent device '/devices/pci0000:00':
KERNELS=="pci0000:00"
SUBSYSTEMS==""
DRIVERS==""
без проблем (есть правда глючок, но об этом позже, надо пофиксить номер, может пропадет)
и ещё, модуль не умеет
Код: Выделить всё
modinfo usbhid
filename: /lib/modules/2.6.31.2-desktop-0.rc1.1mnb/kernel/drivers/hid/usbhid/usbhid.ko.gz
license: GPL
description: USB HID core driver
author: Andreas Gal, Vojtech Pavlik, Jiri Kosina
srcversion: 0CD93FD3EE7E21D92F182E2
alias: usb:v*p*d*dc*dsc*dp*ic03isc*ip*
depends: hid,usbcore
vermagic: 2.6.31.2-desktop-0.rc1.1mnb SMP mod_unload modversions 686
parm: mousepoll:Polling interval of mice (uint)
parm: ignoreled:Autosuspend with active leds (uint)
parm: quirks:Add/modify USB HID quirks by specifying quirks=vendorID:productID:quirks where vendorID, productID, and quirks are all in 0x-prefixed hex (array of charp)