Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
udev und hp all-in-one
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
schnebeck
n00b
n00b


Joined: 07 Jun 2002
Posts: 12
Location: Hannover/Germany

PostPosted: Tue Nov 30, 2004 12:44 am    Post subject: udev und hp all-in-one Reply with quote

Aloha!

Ich habe ein kleines Problem geeignete Regeln für den HP PSC2355 All-in-One einzurichten. Das Problem: Alle Komponenten des Gerätes (Scanner, Drucker, Tasten, Card-Reader) hängen an einem USB-DEVICE
Code:
ls -x /sys/bus/usb/devices/3-2/
3-2:1.0          3-2:1.1       3-2:1.2    3-2:1.3             bcdDevice       bConfigurationValue  bDeviceClass  bDeviceProtocol
bDeviceSubClass  bmAttributes  bMaxPower  bNumConfigurations  bNumInterfaces  detach_state         devnum        idProduct
idVendor         manufacturer  maxchild   power               product         serial               speed         version

d.h. wenn die Geräte angelegt werden, wird eine herkömmliche Regel wie
Code:
BUS="usb", SYSFS{manufacturer}="HP", SYSFS{product}="PSC 2350 series", NAME="%k", SYMLINK="psc2355"

sowohl für ein /dev/lp0 als auch für ein /dev/sda Gerät matchen:
Code:

Nov 30 01:42:08 susi kernel: usb 3-2: new full speed USB device using address 7
Nov 30 01:42:09 susi kernel: drivers/usb/class/usblp.c: usblp0: USB Bidirectional printer dev 7 if 1 alt 0 proto 2 vid 0x03F0 pid 0x4911
Nov 30 01:42:09 susi udev[25881]: configured rule in '/etc/udev/rules.d/10-udev.rules' at line 16 applied, added symlink 'psc2355 usb%k'
Nov 30 01:42:09 susi udev[25881]: configured rule in '/etc/udev/rules.d/10-udev.rules' at line 16 applied, 'lp0' becomes '%k'
Nov 30 01:42:09 susi udev[25881]: creating device node '/dev/lp0'
Nov 30 01:42:09 susi kernel: scsi38 : SCSI emulation for USB Mass Storage devices
Nov 30 01:42:09 susi kernel:   Vendor: HP        Model: PSC 2355          Rev: 1.00
Nov 30 01:42:09 susi kernel:   Type:   Direct-Access                      ANSI SCSI revision: 02
Nov 30 01:42:10 susi kernel: Attached scsi removable disk sdb at scsi38, channel 0, id 0, lun 0
Nov 30 01:42:10 susi scsi.agent[25927]: disk at /devices/pci0000:00/0000:00:0d.0/usb3/3-2/3-2:1.3/host38/38:0:0:0
Nov 30 01:42:10 susi kernel: USB Mass Storage device found at 7
Nov 30 01:42:11 susi udev[25952]: configured rule in '/etc/udev/rules.d/10-udev.rules' at line 16 applied, added symlink 'psc2355 usb%k'
Nov 30 01:42:11 susi udev[25952]: configured rule in '/etc/udev/rules.d/10-udev.rules' at line 16 applied, 'sdb' becomes '%k'
Nov 30 01:42:11 susi udev[25952]: creating device node '/dev/sdb'


Ich will aber Drucker und Cardreader mit einzelnen Regeln behandeln. Dazu müsste man gegen
Code:
cat  /sys/bus/usb/devices/usb3/3-2/3-2\:1.1/bInterfaceClass
07
matchen können. Die "07" genzeichnet die Druckerschnittstelle. Ich darf aber anscheinend keine Kennwörter aus Unterverzeichnissen isolieren.

Hat jemand eine Idee?

Bye

Thorsten
Back to top
View user's profile Send private message
@4u
Apprentice
Apprentice


Joined: 13 Nov 2004
Posts: 160

PostPosted: Tue Nov 30, 2004 7:46 am    Post subject: Reply with quote

Code:
BUS="usb", SYSFS{manufacturer}="HP", SYSFS{product}="PSC 2350 series", SYSFS{bInterfaceClass}="07", NAME="%k", SYMLINK="psc2355"
sollte doch eigentlich durchaus klappen?!
_________________
Alle Angaben ohne Gewähr - Korrekturen sind gern willkommen
Back to top
View user's profile Send private message
schnebeck
n00b
n00b


Joined: 07 Jun 2002
Posts: 12
Location: Hannover/Germany

PostPosted: Tue Nov 30, 2004 3:39 pm    Post subject: Reply with quote

Nee klappt nicht - es geht noch einfacher KERNEL="lp?" matched :o)

Trotzdem danke fürs Mitüberlegen.

Bye

Thorsten
Back to top
View user's profile Send private message
misterjack
Veteran
Veteran


Joined: 03 Oct 2004
Posts: 1656

PostPosted: Thu Dec 02, 2004 5:43 am    Post subject: Reply with quote

"probe all luns" im kernel bei scsi-unterstützung? mehr infos: http://de.gentoo-wiki.com/HOWTO_von_devfs_zu_udev_wechseln
_________________
„Meine Meinung steht fest! Bitte verwirren Sie mich nicht mit Tatsachen.“
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