http://qa.mandrakesoft.com/show_bug.cgi?id=5641





------- Additional Comments From [EMAIL PROTECTED]  2003-14-09 00:04 -------
Okay, seems the problem was that printerdrake didn't properly setup hpoj.  I was
getting extra entries until I ran:
/etc/init.d/hpoj setup
which detected my printer:
Probing "%001%003"...
    Found "psc 1200 series"
    with serial number "MY35QC70W35H".
     This device will be set up as "mlc:usb:psc_1200_series".
Then when I ran printerdrake I had two entries, one configured as a HP psc1200
and one as a psc1100.  Printing with either driver works fine.  Note that this
time, printerdrake also installed SANE for me, which it didn't do before running
hpoj setup.  The problem of multiple printerdrake entries is also fixed.
So it seems like a paradoxical problem though... printerdrake should configure
hpoj, but printerdrake doesn't work properly until hpoj is configured.

Here's the output you wanted:

[EMAIL PROTECTED] austin]# getusbprinterid /dev/usb/lp0
MFG:Hewlett-Packard;MDL:psc 1200
series;CMD:LDL,MLC,PML,DYN;CLS:PRINTER;1284.4DL:4d,4e,1;SN:MY35QC70W35H;S:0380008000820000002c1480062c2500062;
[EMAIL PROTECTED] austin]# getusbprinterid /dev/usb/lp1
Died at /usr/bin/getusbprinterid line 3.
[EMAIL PROTECTED] austin]# getusbprinterid /dev/usb/lp2
Died at /usr/bin/getusbprinterid line 3.

[EMAIL PROTECTED] austin]# cat /etc/cups/printers.conf
# Printer configuration file for CUPS v1.1.19
# Written by cupsd on Sat 13 Sep 2003 12:18:23 PM EDT
<DefaultPrinter HPpsc1200>
Info HP psc 1200
Location
DeviceURI usb://Unknown
State Idle
Accepting Yes
JobSheets none none
QuotaPeriod 0
PageLimit 0
KLimit 0
</Printer>
<Printer HPpsc1200_1>
Info HP psc 1200
Location
DeviceURI ptal://mlc:usb:psc_1200_series
State Idle
Accepting Yes
JobSheets none none
QuotaPeriod 0
PageLimit 0
KLimit 0
</Printer>

[EMAIL PROTECTED] austin]# cat /etc/ptal/mlc\:usb\:psc_1200_series
# Added Sat Sep 13 12:17:01 EDT 2003 by "/etc/init.d/hpoj setup".
 
# The basic format for this file is "key[+]=value".
# If you say "+=" instead of "=", then the value is appended to any
# value already defined for this key, rather than replacing it.
 
# Comments must start at the beginning of the line.  Otherwise, they may
# be interpreted as being part of the value.
 
# If you have multiple devices and want to define options that apply to
# all of them, then put them in the file /etc/ptal/defaults, which is read
# in before this file.
 
# The format version of this file:
#   /etc/init.d/hpoj ignores device configuration
#   files with incorrect/missing versions.
init.version=2
 
# The device model that was originally detected on this port:
#   If this ever changes, then you should re-run
#   "/etc/init.d/hpoj setup"
#   to delete and re-probe this device.
init.mlcd.append+=-devidmatch "MDL:psc 1200 series;"
 
# The serial number of the device that was originally detected on this port:
#   Comment out if you want to disable serial-number matching.
init.mlcd.append+=-devidmatch "SN:MY35QC70W35H;"
 
# Standard options passed to ptal-mlcd:
init.mlcd.append+=
init.mlcd.append+=-device "/dev/usb/lp[0-9]*" "/dev/usblp[0-9]*"
 
# ptal-mlcd's remote console can be useful for debugging, but may be a
# security/DoS risk otherwise.  In any case, it's accessible with the
# command "ptal-connect mlc:<XXX>:<YYY> -service PTAL-MLCD-CONSOLE".
# Uncomment the following line if you want to enable this feature for
# this device:
# init.mlcd.append+=-remconsole
 
# If you need to pass any other command-line options to ptal-mlcd, then
# add them to the following line and uncomment the line:
# init.mlcd.append+=
 
# By default ptal-printd is started for mlc: devices.  If you use CUPS,
# then you may not be able to use ptal-printd, and you can uncomment the
# following line to disable ptal-printd for this device:
# init.printd.start=0
 
# If you need to pass any additional command-line options to ptal-printd,
# then add them to the following line and uncomment the line:
# init.printd.append+=

[EMAIL PROTECTED] austin]# cat /proc/bus/usb/devices
T:  Bus=03 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#=  1 Spd=480 MxCh= 5
B:  Alloc=  0/800 us ( 0%), #Int=  0, #Iso=  0
D:  Ver= 2.00 Cls=09(hub  ) Sub=00 Prot=01 MxPS= 8 #Cfgs=  1
P:  Vendor=0000 ProdID=0000 Rev= 2.04
S:  Manufacturer=Linux 2.4.21-0.25mdksmp ehci-hcd
S:  Product=NEC Corporation USB 2.0
S:  SerialNumber=00:09.2
C:* #Ifs= 1 Cfg#= 1 Atr=40 MxPwr=  0mA
I:  If#= 0 Alt= 0 #EPs= 1 Cls=09(hub  ) Sub=00 Prot=00 Driver=hub
E:  Ad=81(I) Atr=03(Int.) MxPS=   2 Ivl=256ms
T:  Bus=02 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#=  1 Spd=12  MxCh= 2
B:  Alloc=  0/900 us ( 0%), #Int=  0, #Iso=  0
D:  Ver= 1.10 Cls=09(hub  ) Sub=00 Prot=00 MxPS= 8 #Cfgs=  1
P:  Vendor=0000 ProdID=0000 Rev= 0.00
S:  Product=USB OHCI Root Hub
S:  SerialNumber=e0848000
C:* #Ifs= 1 Cfg#= 1 Atr=40 MxPwr=  0mA
I:  If#= 0 Alt= 0 #EPs= 1 Cls=09(hub  ) Sub=00 Prot=00 Driver=hub
E:  Ad=81(I) Atr=03(Int.) MxPS=   2 Ivl=255ms
T:  Bus=01 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#=  1 Spd=12  MxCh= 3
B:  Alloc=  0/900 us ( 0%), #Int=  0, #Iso=  0
D:  Ver= 1.10 Cls=09(hub  ) Sub=00 Prot=00 MxPS= 8 #Cfgs=  1
P:  Vendor=0000 ProdID=0000 Rev= 0.00
S:  Product=USB OHCI Root Hub
S:  SerialNumber=e0846000
C:* #Ifs= 1 Cfg#= 1 Atr=40 MxPwr=  0mA
I:  If#= 0 Alt= 0 #EPs= 1 Cls=09(hub  ) Sub=00 Prot=00 Driver=hub
E:  Ad=81(I) Atr=03(Int.) MxPS=   2 Ivl=255ms
T:  Bus=01 Lev=01 Prnt=01 Port=01 Cnt=01 Dev#=  3 Spd=12  MxCh= 0
D:  Ver= 2.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS= 8 #Cfgs=  1
P:  Vendor=03f0 ProdID=2f11 Rev= 1.00
S:  Manufacturer=Hewlett-Packard
S:  Product=psc 1200 series
S:  SerialNumber=MY35QC70W35H
C:* #Ifs= 3 Cfg#= 1 Atr=c0 MxPwr=  2mA
I:  If#= 0 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=cc Prot=00 Driver=(none)
E:  Ad=01(O) Atr=02(Bulk) MxPS=  64 Ivl=0ms
E:  Ad=81(I) Atr=02(Bulk) MxPS=  32 Ivl=0ms
E:  Ad=82(I) Atr=03(Int.) MxPS=   8 Ivl=10ms
I:  If#= 1 Alt= 0 #EPs= 3 Cls=07(print) Sub=01 Prot=02 Driver=usblp
E:  Ad=03(O) Atr=02(Bulk) MxPS=  32 Ivl=0ms
E:  Ad=83(I) Atr=02(Bulk) MxPS=  32 Ivl=0ms
E:  Ad=84(I) Atr=03(Int.) MxPS=   8 Ivl=10ms
I:  If#= 2 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=ff Prot=ff Driver=(none)
E:  Ad=05(O) Atr=02(Bulk) MxPS=  32 Ivl=0ms
E:  Ad=85(I) Atr=02(Bulk) MxPS=  64 Ivl=0ms
E:  Ad=86(I) Atr=03(Int.) MxPS=   8 Ivl=10ms
I:  If#= 2 Alt= 1 #EPs= 3 Cls=ff(vend.) Sub=d4 Prot=00 Driver=(none)
E:  Ad=05(O) Atr=02(Bulk) MxPS=  32 Ivl=0ms
E:  Ad=85(I) Atr=02(Bulk) MxPS=  64 Ivl=0ms
E:  Ad=86(I) Atr=03(Int.) MxPS=   8 Ivl=10ms


-- 
Configure bugmail: http://qa.mandrakesoft.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


------- Reminder: -------
assigned_to: [EMAIL PROTECTED]
status: UNCONFIRMED
creation_date: 
description: 
I just added a HP PSC 1210 muti-funtion printer to my system.  Every time I run
printerdrake, it adds another instance of that model to the list of printers. 
So if I run it three times, I get a list of three HP PSC 1210's connected to my
system.

Reply via email to