This is a discussion on usb printer with udev within the Slackware Linux Support forums, part of the Unix Operating Systems category; --> Wild Wizard wrote: > Nothing to do with /dev, cups no longer uses /dev for usb > printers. > ...
| |||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| Wild Wizard wrote: > Nothing to do with /dev, cups no longer uses /dev for usb > printers. > Run '/usr/lib/cups/backend/usb' to get the URI for the usb > printer, or just select the printer from the web interface > when you set it up. I solved in a very simple way, as from my above post. In any case, if I run /usr/lib/cups/backend/usb I receive only: ---------------------------------------------------- root@darkstar:/usr/lib/cups/backend# ./usb direct usb:/dev/usb/lp0 "Unknown" "USB Printer #1" direct usb:/dev/usb/lp1 "Unknown" "USB Printer #2" direct usb:/dev/usb/lp2 "Unknown" "USB Printer #3" direct usb:/dev/usb/lp3 "Unknown" "USB Printer #4" direct usb:/dev/usb/lp4 "Unknown" "USB Printer #5" direct usb:/dev/usb/lp5 "Unknown" "USB Printer #6" direct usb:/dev/usb/lp6 "Unknown" "USB Printer #7" direct usb:/dev/usb/lp7 "Unknown" "USB Printer #8" direct usb:/dev/usb/lp8 "Unknown" "USB Printer #9" direct usb:/dev/usb/lp9 "Unknown" "USB Printer #10" direct usb:/dev/usb/lp10 "Unknown" "USB Printer #11" direct usb:/dev/usb/lp11 "Unknown" "USB Printer #12" direct usb:/dev/usb/lp12 "Unknown" "USB Printer #13" direct usb:/dev/usb/lp13 "Unknown" "USB Printer #14" direct usb:/dev/usb/lp14 "Unknown" "USB Printer #15" direct usb:/dev/usb/lp15 "Unknown" "USB Printer #16" ---------------------------------------------------- That is the same situation if I try to configure the printer by cups via web. I configured it by CUPS and after by hand edited /etc/cups/printers.conf setting DeviceURI usb:/dev/lp0 instead of usb:/dev//usb/lp0. MS |
| |||
| Mauro Sacchetto <mauro.sacchetto@alice.it> wrote: : I open a new tread for this argument. I have Slackware current : with udev without hotplug. All devices work fine, except the : printer, a USB HP Deskjet 6122. The printer is correctly identified : (lsusb -v) and the driver is charges (lsmod -v). In /dev : /dev/lp0 is regularly created. I configure the printer by CUPS : via browser, but when I try to print, CUPS tells me: : ================================================== ==== : HP DeskJet 6122 Foomatic/hpijs (recommended) : Description: : Location: locale : Printer State: idle, accepting jobs. : "Printer not connected; will retry in 30 seconds..." : Device URI: usb:/dev/usb/lp0 : ================================================== ==== : Instead, another USB device, the scanner, works regularly. : Any suggestion? Run these following commands as root and report back what you get: ls -l /dev/usb/lp0 lsmod I suspect that you are missing a module needed to use a USB printer, but you also only said that /dev/lp0 existed, which is not the same as the device /dev/usb/lp0. The device /dev/lp0 is for the first parallel printer. The device /dev/usb/lp0 is for the first USB printer. Your device URI is correct for a USB printer. I know another poster said it wasn't, but this is not true. There are two URIs you can use for USB printers, the direct device (/dev/usb/lp0) and a symbolic URI (what the other poster gave). I prefer using the direct device (/dev/usb/lp0) on my printer because it does not properly wake up from sleep mode if I use the symbollic URI. |
| |||
| On Wed, 03 May 2006 00:01:56 GMT, Forrest <gmauslander@hotmail.com> wrote: >Wild Wizard wrote: >> cups no longer uses /dev for usb >> printers. > >Funny...I managed to lose /dev/usb/lp0 and couldn't print (using the >-current CUPS) until I recreated it with mknod. Somewhere, somehow udev is supposed to create that devnode on demand, that's the plan... Dunno how to do it myself, suggest looking through the notes in Changelog and Piter's stuff. And: http://www.kernel.org/pub/linux/util...plug/udev.html Grant. -- Memory fault -- brain fried |
| |||
| On 2006-05-03, Grant <bugsplatter@gmail.com> wrote: > On Wed, 03 May 2006 00:01:56 GMT, Forrest <gmauslander@hotmail.com> wrote: > >>Wild Wizard wrote: >>> cups no longer uses /dev for usb >>> printers. >> >>Funny...I managed to lose /dev/usb/lp0 and couldn't print (using the >>-current CUPS) until I recreated it with mknod. > > Somewhere, somehow udev is supposed to create that devnode on demand, > that's the plan... Dunno how to do it myself, suggest looking through > the notes in Changelog and Piter's stuff. This line should do it: BUS=="usb", KERNEL=="lp[0-9]*", NAME="usb/%k", GROUP="lp" RW -- http://rlworkman.net |
| |||
| On 2006-05-04, Robby Workman <newsgroups@rlworkman.net> wrote: > > This line should do it: > BUS=="usb", KERNEL=="lp[0-9]*", NAME="usb/%k", GROUP="lp" > I t does'nt do it in my case. Got an Epson Stylus Photo R300 with card reader. The printer is detected with hotplug. Installed Piter Punk's udev. /usr/lib/cups/backend/usb gives: direct usb:/dev/usb/lp0 "Unknown" "USB Printer #1" direct usb:/dev/usb/lp1 "Unknown" "USB Printer #2" etc. lsusb gives Bus 005 Device 002: ID 04b8:0803 Seiko Epson Corp. Bus 005 Device 001: ID 0000:0000 Bus 004 Device 001: ID 0000:0000 Bus 003 Device 001: ID 0000:0000 Bus 002 Device 001: ID 0000:0000 Bus 001 Device 001: ID 0000:0000 lsusb -v gives: Bus 005 Device 002: ID 04b8:0803 Seiko Epson Corp. Device Descriptor: bLength 18 bDescriptorType 1 bcdUSB 2.00 bDeviceClass 0 (Defined at Interface level) bDeviceSubClass 0 bDeviceProtocol 0 bMaxPacketSize0 64 idVendor 0x04b8 Seiko Epson Corp. idProduct 0x0803 bcdDevice 1.00 iManufacturer 1 EPSON iProduct 2 USB2.0 MFP(Hi-Speed) iSerial 3 MI3P10402200339520 bNumConfigurations 1 Configuration Descriptor: bLength 9 bDescriptorType 2 wTotalLength 55 bNumInterfaces 2 bConfigurationValue 1 iConfiguration 4 USB2.0 MFP(Hi-Speed) bmAttributes 0xc0 Self Powered MaxPower 2mA Interface Descriptor: bLength 9 bDescriptorType 4 bInterfaceNumber 0 bAlternateSetting 0 bNumEndpoints 2 bInterfaceClass 8 Mass Storage bInterfaceSubClass 6 SCSI bInterfaceProtocol 80 Bulk (Zip) iInterface 5 USB2.0 Mass Storage Endpoint Descriptor: bLength 7 bDescriptorType 5 bEndpointAddress 0x01 EP 1 OUT bmAttributes 2 Transfer Type Bulk Synch Type None Usage Type Data wMaxPacketSize 0x0200 bytes 512 once bInterval 0 Endpoint Descriptor: bLength 7 bDescriptorType 5 bEndpointAddress 0x82 EP 2 IN bmAttributes 2 Transfer Type Bulk Synch Type None Usage Type Data wMaxPacketSize 0x0200 bytes 512 once bInterval 0 Interface Descriptor: bLength 9 bDescriptorType 4 bInterfaceNumber 1 bAlternateSetting 0 bNumEndpoints 2 bInterfaceClass 7 Printer bInterfaceSubClass 1 Printer bInterfaceProtocol 2 Bidirectional iInterface 6 USB2.0 Printer Endpoint Descriptor: bLength 7 bDescriptorType 5 bEndpointAddress 0x04 EP 4 OUT bmAttributes 2 Transfer Type Bulk Synch Type None Usage Type Data wMaxPacketSize 0x0200 bytes 512 once bInterval 0 Endpoint Descriptor: bLength 7 bDescriptorType 5 bEndpointAddress 0x85 EP 5 IN bmAttributes 2 Transfer Type Bulk Synch Type None Usage Type Data wMaxPacketSize 0x0200 bytes 512 once bInterval 0 Is the card reader interfering? Any hint will be appreciated. NB all other apps such as camera, externel disk, NVidia are detected. -- ++++++++++++++++++++++++++++++++ Mike Slack current email: micder at zeelandnet dot nl ++++++++++++++++++++++++++++++++ |
| ||||
| On 2006-05-04, Mike <Mike@nospam.invalid> wrote: > On 2006-05-04, Robby Workman <newsgroups@rlworkman.net> wrote: > >> >> This line should do it: >> BUS=="usb", KERNEL=="lp[0-9]*", NAME="usb/%k", GROUP="lp" >> > I > t does'nt do it in my case. > Got an Epson Stylus Photo R300 with card reader. > The printer is detected with hotplug. > > Installed Piter Punk's udev. Have a look at this page, and to be more specific, item numbers 11, 19, and 20. IIRC, this page is included in the documentation directory of the udev source. http://www.reactivated.net/writing_udev_rules.html RW -- http://rlworkman.net |