Package: hal-cups-utils
Version: 0.6.16-2
Severity: normal

  Hi,

  I had to debug a problem by ssh on my familly computer. So, I will
put here what I recall but I'm not sure I've all the information (I only have
part of the log files)

  My parents have an hp psc 2355 printer. Since the installation of the
hal-cups-utils package, each time the printer is put online, a new
printer is configurated with name 'PSC_2350_Series' and uri
'usb://HP/PSC%202350%20series?serial=HU4ARBR10YKJ':

Aug 26 14:04:51 titi kernel: [ 2230.672070] usb 4-2: new full speed USB device 
using uhci_hcd and address 4
Aug 26 14:04:51 titi kernel: [ 2230.864032] usb 4-2: configuration #1 chosen 
from 1 choice
Aug 26 14:04:51 titi kernel: [ 2230.884259] usblp0: USB Bidirectional printer 
dev 4 if 1 alt 0 proto 2 vid 0x03F0 pid 0x4911
Aug 26 14:04:51 titi kernel: [ 2230.885247] scsi1 : SCSI emulation for USB Mass 
Storage devices
Aug 26 14:04:51 titi kernel: [ 2230.887006] usb 4-2: New USB device found, 
idVendor=03f0, idProduct=4911
Aug 26 14:04:51 titi kernel: [ 2230.887023] usb 4-2: New USB device strings: 
Mfr=1, Product=2, SerialNumber=3
Aug 26 14:04:51 titi kernel: [ 2230.887029] usb 4-2: Product: PSC 2350 series
Aug 26 14:04:51 titi kernel: [ 2230.887034] usb 4-2: Manufacturer: HP
Aug 26 14:04:51 titi kernel: [ 2230.887039] usb 4-2: SerialNumber: HU4ARBR10YKJ
Aug 26 14:04:51 titi kernel: [ 2230.888245] usb-storage: device found at 4
Aug 26 14:04:51 titi kernel: [ 2230.888254] usb-storage: waiting for device to 
settle before scanning
Aug 26 14:04:51 titi NetworkManager: <debug> [1219752291.966844] 
nm_hal_device_added(): New device added (hal udi is 
'/org/freedesktop/Hal/devices/usb_device_3f0_4911_HU4ARBR10YKJ'). 
Aug 26 14:04:52 titi NetworkManager: <debug> [1219752292.413078] 
nm_hal_device_added(): New device added (hal udi is 
'/org/freedesktop/Hal/devices/usb_device_1d6b_1_0000_00_0c_1_if0_0'). 
Aug 26 14:04:52 titi NetworkManager: <debug> [1219752292.540209] 
nm_hal_device_added(): New device added (hal udi is 
'/org/freedesktop/Hal/devices/usb_device_3f0_4911_HU4ARBR10YKJ_if2'). 
Aug 26 14:04:52 titi NetworkManager: <debug> [1219752292.623223] 
nm_hal_device_added(): New device added (hal udi is 
'/org/freedesktop/Hal/devices/usb_device_3f0_4911_HU4ARBR10YKJ_if1'). 
Aug 26 14:04:52 titi NetworkManager: <debug> [1219752292.674930] 
nm_hal_device_added(): New device added (hal udi is 
'/org/freedesktop/Hal/devices/usb_device_3f0_4911_HU4ARBR10YKJ_if3'). 
Aug 26 14:04:52 titi NetworkManager: <debug> [1219752292.794536] 
nm_hal_device_added(): New device added (hal udi is 
'/org/freedesktop/Hal/devices/usb_device_3f0_4911_HU4ARBR10YKJ_usbraw'). 
Aug 26 14:04:53 titi hal_lpadmin: add
Aug 26 14:04:54 titi python: hp-makeuri[6072]: warning: hp-makeuri should not 
be run as root.
Aug 26 14:04:54 titi hal_lpadmin: URIs: 
['usb://HP/PSC%202350%20series?serial=HU4ARBR10YKJ', 
'hal:///org/freedesktop/Hal/devices/usb_device_3f0_4911_HU4ARBR10YKJ_if1_printer_HU4ARBR10YKJ']
Aug 26 14:04:55 titi python: hp-makeuri[6076]: warning: hp-makeuri should not 
be run as root.
Aug 26 14:04:55 titi python: hp-makeuri[6076]: error: Device does not support 
fax.
Aug 26 14:04:55 titi hal_lpadmin: HPLIP Fax URIs: None
Aug 26 14:04:55 titi NetworkManager: <debug> [1219752295.612317] 
nm_hal_device_added(): New device added (hal udi is 
'/org/freedesktop/Hal/devices/usb_device_3f0_4911_HU4ARBR10YKJ_if1_printer_HU4ARBR10YKJ').
 
Aug 26 14:04:55 titi hal_lpadmin: Calling GetReady
Aug 26 14:04:55 titi hal_lpadmin: D-Bus method call failed: 
org.freedesktop.DBus.Error.ServiceUnknown: The name 
com.redhat.NewPrinterNotification was not provided by any .service files
Aug 26 14:04:56 titi kernel: [ 2235.890205] usb-storage: device scan complete
Aug 26 14:04:57 titi hal_lpadmin: Device ID: MFG:HP;MDL:PSC 2350 
series;DES:5740;CMD:MLC,PCL,PML,DW-PCL,DESKJET,DYN; 
URI:usb://HP/PSC%202350%20series?serial=HU4ARBR10YKJ


This is a problem because:
* an 'hp' printer already exists in the cups configuration for this printer
* both printers are then put offline (so an admin is needed to restart one 
printer from the cups webpage)
  (probably because both try to talk to the same hp driver ?)

At first, I removed my 'hp' printer, letting the hal_lpadmin one alone.
In this case, printing works but the hp tool 'hp-toolbox' does not work anymore
because it looks for printers with uri hp:// and not usb://hp/...

So, I removed the hal-cups-utils, re-add my static configuration for the 'hp' 
printer
and all work.



  As I've looked around before thinking that removing the hal-cups-utils can 
help me,
I saw in /usr/lib/hal/hal_lpadmin:
        cmd = \
            "LC_ALL=C hp-makeuri -lnone %s %s:%s 2>/dev/null </dev/null" % \
            (type, bus, device)
        try:
            uri = os.popen (cmd, 'r').readlines ()[0].strip ()
Hoverever, hp-makeuri does not seem to output anything when called with -c or 
-lnone:
[EMAIL PROTECTED]:~$ lsusb
Bus 001 Device 009: ID 03f0:5b11 Hewlett-Packard Officejet J2100 Series
Bus 001 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
[EMAIL PROTECTED]:~$ hp-makeuri 001:009

HP Linux Imaging and Printing System (ver. 2.8.6)
Device URI Creation Utility ver. 4.4

Copyright (c) 2001-8 Hewlett-Packard Development Company, LP
This software comes with ABSOLUTELY NO WARRANTY.
This is free software, and you are welcome to distribute it
under certain conditions. See COPYING file for more details.

CUPS URI: hp:/usb/Officejet_J5700_series?serial=CN736CE02W04TC
SANE URI: hpaio:/usb/Officejet_J5700_series?serial=CN736CE02W04TC
HP Fax URI: hpfax:/usb/Officejet_J5700_series?serial=CN736CE02W04TC

Done.
[EMAIL PROTECTED]:~$ hp-makeuri -c 001:009
[EMAIL PROTECTED]:~$ hp-makeuri -lnone -c 001:009
[EMAIL PROTECTED]:~$ hp-makeuri -lnone  001:009
[EMAIL PROTECTED]:~$ hp-makeuri -lnone -c 001:008
error: Device not found
[EMAIL PROTECTED]:~$ 

  I hope this can help you

  Best regards,
    Vincent


-- System Information:
Debian Release: lenny/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (500, 'stable'), (1, 
'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.27-rc3-amd64 (SMP w/2 CPU cores)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages hal-cups-utils depends on:
ii  cups                          1.3.8-1    Common UNIX Printing System(tm) - 
ii  hal                           0.5.11-3   Hardware Abstraction Layer
ii  libc6                         2.7-13     GNU C Library: Shared libraries
ii  libcups2                      1.3.8-1    Common UNIX Printing System(tm) - 
ii  libdbus-1-3                   1.2.1-3    simple interprocess messaging syst
ii  libhal1                       0.5.11-3   Hardware Abstraction Layer - share
ii  python                        2.5.2-2    An interactive high-level object-o
ii  python-cupsutils              1.0.0-2    Python utility modules around the 
ii  python-dbus                   0.83.0-1   simple interprocess messaging syst
ii  python-gobject                2.14.2-1   Python bindings for the GObject li

hal-cups-utils recommends no packages.

Versions of packages hal-cups-utils suggests:
ii  hplip                         2.8.6-2    HP Linux Printing and Imaging Syst
ii  system-config-printer         1.0.0-2    graphical interface to configure t

-- no debconf information



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to