Hello, did you have any success? Since moving to udev I've had absolutely no luck printing at all. Initially the job would show up briefly in the print queue and disappear. Now with kernel 2.6.3 the printer just spews endless blank pages at me (it's an Epson Stylus 680 by the way). It's frustrating having to boot to Windows just to print things.alo-alo wrote:Hi! Did anybody get working usb printer with udev and cups? I can't print with cups. Cups accepts jobs, but it won't print. Over which device are you printing?
Oh joy! I used foomatic-compiledb to build a ppd database and thenalo-alo wrote:Hi! Did anybody get working usb printer with udev and cups? I can't print with cups. Cups accepts jobs, but it won't print. Over which device are you printing?
Code: Select all
"Unable to open USB device "usb://HP/DeskJet%20845C?serial=TH173141WMSX": No such device"
Code: Select all
Location: /dev/usb/lp0

Yes, I just did, took some digging, but not hard to do in the end.alo-alo wrote:Hi! Did anybody get working usb printer with udev and cups? I can't print with cups. Cups accepts jobs, but it won't print. Over which device are you printing?
Code: Select all
/etc/init.d/hotplug stop
/etc/init.d/hotplug start
Code: Select all
# /etc/udev/udev.rules: device naming rules for udev
Code: Select all
# USB Epson printer to be called lp_epson
#BUS="usb", SYSFS_serial="HXOLL0012202323480", NAME="lp_epson"
# USB HP printer to be called lp_hp
#BUS="usb", SYSFS_serial="W09090207101241330", NAME="lp_hp"
Code: Select all
# USB Lexmark Z53 printer to be called usb_lp_lexmark_z53
BUS="usb", SYSFS_product="Lexmark Z53", NAME="usb_lp_lexmark_z53"
Code: Select all
cat /proc/bus/usb/devices
that will give you index for:
/sys/bus/usb/devices
This is the 'devices' entry for my Lexmark Z53:
T: Bus=01 Lev=01 Prnt=01 Port=01 Cnt=01 Dev#= 2 Spd=12 MxCh= 0
D: Ver= 1.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=16 #Cfgs= 1
P: Vendor=043d ProdID=0054 Rev= 1.00
S: Manufacturer=Lexmark
S: Product=Lexmark Z53
C:* #Ifs= 1 Cfg#= 1 Atr=40 MxPwr= 4mA
I: If#= 0 Alt= 0 #EPs= 2 Cls=07(print) Sub=01 Prot=02 Driver=usblp
E: Ad=02(O) Atr=02(Bulk) MxPS= 64 Ivl=0ms
E: Ad=83(I) Atr=02(Bulk) MxPS= 16 Ivl=0ms
Code: Select all
/sys/bus/usb/devices
Code: Select all
/sys/bus/usb/devices/usb1/1-2
Code: Select all
ls /sys/bus/usb/devices/usb1/1-2
1-2:1.0 bDeviceClass bDeviceSubClass bNumConfigurations bcdDevice detach_state idVendor power speed
bConfigurationValue bDeviceProtocol bMaxPower bNumInterfaces bmAttributes idProduct manufacturer product
Code: Select all
cat product
Lexmark Z53
Code: Select all
/etc/init.d/hotplug stop
/etc/init.d/hotplug start
Code: Select all
ls /dev
...
/dev/usb_lp_lexmark_z53
...
Code: Select all
ln -s /dev/usb_lp_lexmark_z53 /dev/usblp0


Code: Select all
BUS="usb", KERNEL="lp[0-9]*", NAME="usb/%k"Thanks a lot for that hint!dsd wrote:the next release of udev will include a rule which by default will create /dev/usb/lp0 as well as /dev/lp0 - this should kill any udev-related cups problems.
the new rule looks like:and thats probably the most simplistic way you can get this going right now.Code: Select all
BUS="usb", KERNEL="lp[0-9]*", NAME="usb/%k"