udev-ish replacement for hal-cups-utils?

Ozan Çağlayan ozan at pardus.org.tr
Wed Aug 5 06:05:40 PDT 2009


Tim Waugh wrote On 31-07-2009 16:07:
> On Fri, 2009-07-24 at 21:47 +0200, Till Kamppeter wrote:
>   
>> When will this come? Right now? Later?
>>     
>
> It's implemented now, and merged into 1.1.x.  I've removed the udev
> branch.
>   

Just tried it with an HP P1005 which requires a firmware and which was
failing with the old hal-cups-utils + foo2zjs firmware loader, it worked
really fine except some timeout messages. I'm posting syslog output:


Aug  5 15:42:43 ozan2009-pardus kernel: [104666.618282] usb 1-8: new
high speed USB device using ehci_hcd and address 4
Aug  5 15:42:43 ozan2009-pardus kernel: [104666.753110] usb 1-8: New USB
device found, idVendor=03f0, idProduct=3d17
Aug  5 15:42:43 ozan2009-pardus kernel: [104666.753114] usb 1-8: New USB
device strings: Mfr=1, Product=2, SerialNumber=3
Aug  5 15:42:43 ozan2009-pardus kernel: [104666.753117] usb 1-8:
Product: HP LaserJet P1005
Aug  5 15:42:43 ozan2009-pardus kernel: [104666.753120] usb 1-8:
Manufacturer: Hewlett-Packard
Aug  5 15:42:43 ozan2009-pardus kernel: [104666.753121] usb 1-8:
SerialNumber: BC0NGRH
Aug  5 15:42:43 ozan2009-pardus kernel: [104666.753213] usb 1-8:
configuration #1 chosen from 1 choice
Aug  5 15:42:43 ozan2009-pardus kernel: [104666.756323] usblp0: USB
Bidirectional printer dev 4 if 0 alt 0 proto 2 vid 0x03F0 pid 0x3D17
Aug  5 15:42:43 ozan2009-pardus udev-usb-printer: add
/devices/pci0000:00/0000:00:13.5/usb1/1-8/1-8:1.0
Aug  5 15:42:43 ozan2009-pardus udev-usb-printer: parent devpath is
/devices/pci0000:00/0000:00:13.5/usb1/1-8
Aug  5 15:42:43 ozan2009-pardus udev-usb-printer: Device vendor/product
is 03F0:3D17
Aug  5 15:42:44 ozan2009-pardus udev-usb-printer: failed to claim interface
Aug  5 15:42:44 ozan2009-pardus udev-usb-printer: invalid or missing
IEEE 1284 Device ID
Aug  5 15:42:44 ozan2009-pardus udev-usb-printer: add
/devices/pci0000:00/0000:00:13.5/usb1/1-8/1-8:1.0/usb/lp0
Aug  5 15:42:44 ozan2009-pardus udev-usb-printer: parent devpath is
/devices/pci0000:00/0000:00:13.5/usb1/1-8
Aug  5 15:42:44 ozan2009-pardus udev-usb-printer: MFG:Hewlett-Packard
MDL:HP LaserJet P1005 SERN:- serial:BC0NGRH
Aug  5 15:42:44 ozan2009-pardus printer-config-daemon: add
/devices/pci0000:00/0000:00:13.5/usb1/1-8
Aug  5 15:42:44 ozan2009-pardus printer-config-daemon:
MFG:Hewlett-Packard MDL:HP LaserJet P1005 SERN:- serial:BC0NGRH
Aug  5 15:42:44 ozan2009-pardus /lib/udev/hpljP1005: foo2zjs: loading HP
LaserJet P1005 firmware /lib/firmware/sihpP1005.dl to /dev/usb/lp0 ...
Aug  5 15:42:44 ozan2009-pardus /lib/udev/hpljP1005: foo2zjs: ...
download successful.
Aug  5 15:42:50 ozan2009-pardus python: io/hpmud/musb.c 136: unable
get_string_descriptor -110: Connection timed out
Aug  5 15:42:50 ozan2009-pardus python: io/hpmud/musb.c 1996: invalid
product id string ret=-110
Aug  5 15:42:50 ozan2009-pardus kernel: [104674.164353] usb 1-8: usbfs:
USBDEVFS_CONTROL failed cmd python rqt 128 rq 6 len 255 ret -110
Aug  5 15:42:53 ozan2009-pardus printer-config-daemon: URI matches
without serial number: usb://HP/LaserJet%20P1005
Aug  5 15:42:53 ozan2009-pardus printer-config-daemon: No serial number
URI matches so using those without
Aug  5 15:42:53 ozan2009-pardus printer-config-daemon: About to add
queue for usb://HP/LaserJet%20P1005
Aug  5 15:42:53 ozan2009-pardus udev-add-printer: add_queue:
URIs=['usb://HP/LaserJet%20P1005']
Aug  5 15:43:28 ozan2009-pardus udev-add-printer: PPD:
foomatic:HP-LaserJet_P1005-foo2xqx.ppd; Status: 0


So is the current 1.1.x branch feature complete for a complete
replacement of hal-cups-utils?
What other components should I update to replace hal-cups-utils with the
udev one. AFAIK:

- Bump system-config-printer, configure it with --with-udev-rules,
- Obsolete hal-cups-utils,
- Tweak cups init script to retry the configuration.

I once saw a device-id patch in HPLIP, is that an independent bugfix for
a stable device-id detection or was it needed for the udev-ish replacement?

Thanks for all your efforts!

Ozan Caglayan
http://www.pardus.org.tr/eng


More information about the devkit-devel mailing list