Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Udev Rule für Nostromo Speedpad.
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German)
View previous topic :: View next topic  
Author Message
reyneke
Guru
Guru


Joined: 09 Jan 2004
Posts: 542
Location: Augsburg / Germany

PostPosted: Wed Jan 26, 2005 9:29 pm    Post subject: Udev Rule für Nostromo Speedpad. Reply with quote

Hallo allerseits.

Meine neueste Errungenschaft ist ein Nostromo Speedpad2 (n52).
Da ich ein funktionierendes udev-only-System habe, würde ich gerne eine Regel schreiben, die

  • /dev/input/event{0,1} für das Pad mit den Rechten 777 anlegt (devices werden schon erstellt, allerdings mit 700er Rechten)
  • einen Symlink /dev/nostromo{0,1} anlegt.

Momentan muß ich noch "# chmod 777 /dev/input/event*" als root ausführen, damit das Pad funktioniert. Irgendwie funktioniert die Regel, die ich geschrieben habe nicht und ich kann den Fehler nicht richtig lokalisieren ...
Das Gerät ist dauerhaft angesteckt und wird kernelseitig als sowohl Maus als auch Tastatur erkannt (deshalb auch die zwei device-Dateien). coldplug wird im boot- und hotplug im default-Runlevel gestartet.
Hier nun die udev-Infos nebst bereits daraus erstellter, nicht funktionierender rule.
cat udev.event{2,3} wrote:

looking at class device '/sys/class/input/event2':
SYSFS{dev}="13:66"

follow the class device's "device"
looking at the device chain at '/sys/devices/pci0000:00/0000:00:10.1/usb2/2-2/
2-2:1.0':
BUS="usb"
ID="2-2:1.0"
SYSFS{bAlternateSetting}=" 0"
SYSFS{bInterfaceClass}="03"
SYSFS{bInterfaceNumber}="00"
SYSFS{bInterfaceProtocol}="01"
SYSFS{bInterfaceSubClass}="01"
SYSFS{bNumEndpoints}="01"
SYSFS{detach_state}="0"
SYSFS{iInterface}="00"

looking at the device chain at '/sys/devices/pci0000:00/0000:00:10.1/usb2/2-2'
:
BUS="usb"
ID="2-2"
SYSFS{bConfigurationValue}="1"
SYSFS{bDeviceClass}="00"
SYSFS{bDeviceProtocol}="00"
SYSFS{bDeviceSubClass}="00"
SYSFS{bMaxPower}=" 90mA"
SYSFS{bNumConfigurations}="1"
SYSFS{bNumInterfaces}=" 2"
SYSFS{bcdDevice}="0210"
SYSFS{bmAttributes}="80"
SYSFS{detach_state}="0"
SYSFS{devnum}="2"
SYSFS{idProduct}="0815"
SYSFS{idVendor}="050d"
SYSFS{manufacturer}="Honey Bee "
SYSFS{maxchild}="0"
SYSFS{product}="Nostromo SpeedPad2 "
SYSFS{speed}="1.5"
SYSFS{version}=" 1.10"

looking at the device chain at '/sys/devices/pci0000:00/0000:00:10.1/usb2':
BUS="usb"
ID="usb2"
SYSFS{bConfigurationValue}="1"
SYSFS{bDeviceClass}="09"
SYSFS{bDeviceProtocol}="00"
SYSFS{bDeviceSubClass}="00"
SYSFS{bMaxPower}=" 0mA"
SYSFS{bNumConfigurations}="1"
SYSFS{bNumInterfaces}=" 1"
SYSFS{bcdDevice}="0206"
SYSFS{bmAttributes}="c0"
SYSFS{detach_state}="0"
SYSFS{devnum}="1"
SYSFS{idProduct}="0000"
SYSFS{idVendor}="0000"
SYSFS{manufacturer}="Linux 2.6.9-reyneke-r3 uhci_hcd"
SYSFS{maxchild}="2"
SYSFS{product}="VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1 Controller (#2)"
SYSFS{serial}="0000:00:10.1"
SYSFS{speed}="12"
SYSFS{version}=" 1.10"

looking at the device chain at '/sys/devices/pci0000:00/0000:00:10.1':
BUS="pci"
ID="0000:00:10.1"
SYSFS{class}="0x0c0300"
SYSFS{detach_state}="0"
SYSFS{device}="0x3038"
SYSFS{irq}="21"
SYSFS{subsystem_device}="0x7120"
SYSFS{subsystem_vendor}="0x1462"
SYSFS{vendor}="0x1106"

looking at the device chain at '/sys/devices/pci0000:00':
BUS=""
ID="pci0000:00"
SYSFS{detach_state}="0"

-------------8<-------------------------------------8<----------------------------

looking at class device '/sys/class/input/event3':
SYSFS{dev}="13:67"

follow the class device's "device"
looking at the device chain at '/sys/devices/pci0000:00/0000:00:10.1/usb2/2-2/2-2:1.1':
BUS="usb"
ID="2-2:1.1"
SYSFS{bAlternateSetting}=" 0"
SYSFS{bInterfaceClass}="03"
SYSFS{bInterfaceNumber}="01"
SYSFS{bInterfaceProtocol}="02"
SYSFS{bInterfaceSubClass}="01"
SYSFS{bNumEndpoints}="01"
SYSFS{detach_state}="0"
SYSFS{iInterface}="00"

looking at the device chain at '/sys/devices/pci0000:00/0000:00:10.1/usb2/2-2':
BUS="usb"
ID="2-2"
SYSFS{bConfigurationValue}="1"
SYSFS{bDeviceClass}="00"
SYSFS{bDeviceProtocol}="00"
SYSFS{bDeviceSubClass}="00"
SYSFS{bMaxPower}=" 90mA"
SYSFS{bNumConfigurations}="1"
SYSFS{bNumInterfaces}=" 2"
SYSFS{bcdDevice}="0210"
SYSFS{bmAttributes}="80"
SYSFS{detach_state}="0"
SYSFS{devnum}="2"
SYSFS{idProduct}="0815"
SYSFS{idVendor}="050d"
SYSFS{manufacturer}="Honey Bee "
SYSFS{maxchild}="0"
SYSFS{product}="Nostromo SpeedPad2 "
SYSFS{speed}="1.5"
SYSFS{version}=" 1.10"

looking at the device chain at '/sys/devices/pci0000:00/0000:00:10.1/usb2':
BUS="usb"
ID="usb2"
SYSFS{bConfigurationValue}="1"
SYSFS{bDeviceClass}="09"
SYSFS{bDeviceProtocol}="00"
SYSFS{bDeviceSubClass}="00"
SYSFS{bMaxPower}=" 0mA"
SYSFS{bNumConfigurations}="1"
SYSFS{bNumInterfaces}=" 1"
SYSFS{bcdDevice}="0206"
SYSFS{bmAttributes}="c0"
SYSFS{detach_state}="0"
SYSFS{devnum}="1"
SYSFS{idProduct}="0000"
SYSFS{idVendor}="0000"
SYSFS{manufacturer}="Linux 2.6.9-reyneke-r3 uhci_hcd"
SYSFS{maxchild}="2"
SYSFS{product}="VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1 Controller (#2)"
SYSFS{serial}="0000:00:10.1"
SYSFS{speed}="12"
SYSFS{version}=" 1.10"

looking at the device chain at '/sys/devices/pci0000:00/0000:00:10.1':
BUS="pci"
ID="0000:00:10.1"
SYSFS{class}="0x0c0300"
SYSFS{detach_state}="0"
SYSFS{device}="0x3038"
SYSFS{irq}="21"
SYSFS{subsystem_device}="0x7120"
SYSFS{subsystem_vendor}="0x1462"
SYSFS{vendor}="0x1106"

looking at the device chain at '/sys/devices/pci0000:00':
BUS=""
ID="pci0000:00"
SYSFS{detach_state}="0"

cat /etc/udev/rules.d/10-local.rules wrote:

# Nostromo Speedpad2
BUS="usb", SYSFS{manufacturer}="Honey Bee ", SYSFS{product}="Nostromo Speedpad2 ", NAME="%k", SYMLINK="nostromo%n"
BUS="usb", SYSFS{manufacturer}="Honey Bee ", SYSFS{product}="Nostromo Speedpad2 ", NAME="%k", SYMLINK="nostromo%n"


Danke für eure Hilfe.
Gruß,
reyneke.
_________________
I like to wait to see how things turn out
If You Apply Some Pressure
WHAT HAPPENS when you lose EVERYTHING?
You start again.
You start all over again.

Maximo Park - Apply Some Pressure
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum