[embarrased]

the printer had (somehow) shut down at some point in the afternoon,
thus it was not listed, as pete z. pointed out.

now, after restarting it, it does in fact seem like the
printer is indeed now detected by the printer module:


bash# lsmod | egrep "usb|printer|Module|uhci"
Module                  Size  Used by
printer                 4928   1 
uhci                   22144   0  (unused)
usbcore                49664   1  [printer uhci]
bash# 


i am astonished and embarrased
to report that things just work now,
after two *d@mned* days of fiddling with
this problem in various ways.

sorry for bothering you guys - now ... what _really_ bothers
me now is that i have no idea what is the right thing to
do...

i noted the modules running (uhci), and
rebooted the linux box ... hmmm, it does not work.
the ptal daemos are there ... yet the printer module is *not*
used:


bash# get ptal
root       670  0.0  0.1  1864  612 ?        S    00:32   0:00
/opt/hpoj-010515/bin/ptal-mlcd usb:0 -device /dev/usb/lp0
root       672  0.0  0.1  1372  404 ?        S    00:32   0:00
/opt/hpoj-010515/bin/ptal-printd mlc:usb:0 -like /dev/lp0
bash# lsmod | egrep "usb|printer|Module|uhci"
Module                  Size  Used by
printer                 4928   0  (unused)
uhci                   22144   0  (unused)
usbcore                49664   1  [printer uhci]
bash# 

like this, lpr just "sucks" print jobs into oblivion.

i tried rebooting the printer ... this shows up ...

May 17 00:38:04 tcb kernel: usb.c: USB disconnect on device 4
May 17 00:38:48 tcb kernel: hub.c: USB new device connect on bus1/2, assigned
device number 5
May 17 00:38:48 tcb kernel: printer.c: usblp0: USB Bidirectional printer dev 5
if 0 alt 0


but nothing, the daemons come up,

bash# get ptal
root      1812  0.0  0.1  1864  612 ?        S    00:38   0:00
/opt/hpoj-010515/bin/ptal-mlcd usb:0 -device /dev/usb/lp0
root      1814  0.0  0.1  1372  400 ?        S    00:38   0:00
/opt/hpoj-010515/bin/ptal-printd mlc:usb:0 -like /dev/lp0
bash# 

but the printer is still unused:

bash# lsmod | egrep "usb|printer|Module|uhci"
Module                  Size  Used by
printer                 4928   0  (unused)
uhci                   22144   0  (unused)
usbcore                49664   1  [printer uhci]
bash# 

looking at the /var/log/messages, i am going to try to reconstruct
what happened before, the only interesting things that happened are:

May 16 17:34:06 tcb kernel: usb.c: USB disconnect on device 2
[must have been when the printer shut itself off?]

then ... i am not sure what happened here to trigger this (kernel
autoclean of modules?):

May 16 21:53:02 tcb kernel: usb.c: deregistering driver usblp
May 16 21:53:02 tcb kernel: usb.c: USB disconnect on device 1
May 16 21:53:02 tcb kernel: usb.c: USB bus 1 deregistered
May 16 21:53:02 tcb kernel: usb.c: USB disconnect on device 3
May 16 21:53:02 tcb kernel: usb.c: USB bus 2 deregistered
May 16 21:53:16 tcb kernel: PCI: Found IRQ 9 for device 00:04.2
May 16 21:53:16 tcb kernel: PCI: The same IRQ used for device 00:04.3
May 16 21:53:16 tcb kernel: uhci.c: USB UHCI at I/O 0xb400, IRQ 9
May 16 21:53:16 tcb kernel: usb.c: new USB bus registered, assigned bus number
1
May 16 21:53:16 tcb kernel: hub.c: USB hub found
May 16 21:53:16 tcb kernel: hub.c: 2 ports detected
May 16 21:53:16 tcb kernel: PCI: Found IRQ 9 for device 00:04.3
May 16 21:53:16 tcb kernel: PCI: The same IRQ used for device 00:04.2
May 16 21:53:16 tcb kernel: uhci.c: USB UHCI at I/O 0xb000, IRQ 9
May 16 21:53:16 tcb /etc/hotplug/usb.agent: ... no drivers for USB product
0/0/0
May 16 21:53:16 tcb kernel: usb.c: new USB bus registered, assigned bus number
2
May 16 21:53:16 tcb kernel: hub.c: USB hub found
May 16 21:53:16 tcb kernel: hub.c: 2 ports detected
May 16 21:53:16 tcb /etc/hotplug/usb.agent: ... no drivers for USB product
0/0/0

and then, this (i'm sure about this) must have been a little bit ago
when i got tipped that the printer was not connected and printing
worked:

May 17 00:19:32 tcb kernel: hub.c: USB new device connect on bus1/2, assigned
device number 6
May 17 00:19:32 tcb kernel: usb.c: USB device 6 (vend/prod 0x3f0/0x11) is not
claimed by any active driver.
May 17 00:19:32 tcb kernel: usb.c: registered new driver usblp
May 17 00:19:32 tcb kernel: printer.c: usblp0: USB Bidirectional printer dev 6
if 0 alt 0


and i cannto reproduce the situation. 
i tried unloading printer and uhci, then starting the printer
and various other things ... printer is still unused:

bash# lsmod | egrep "usb|printer|Module|uhci"
Module                  Size  Used by
printer                 4928   0  (unused)
uhci                   22144   0  (unused)
usbcore                49664   1  [printer uhci]
bash# 


thank you for your patience ...
if you have any ideas, please let me know. to finish up, here
is the /proc/bus/usb/devices:

bash# cat /proc/bus/usb/devices 
T:  Bus=02 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#=  8 Spd=12  MxCh= 2
B:  Alloc=  0/900 us ( 0%), #Int=  0, #Iso=  0
D:  Ver= 1.00 Cls=09(hub  ) Sub=00 Prot=00 MxPS= 8 #Cfgs=  1
P:  Vendor=0000 ProdID=0000 Rev= 0.00
S:  Product=USB UHCI-alt Root Hub
S:  SerialNumber=b000
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=   8 Ivl=255ms
T:  Bus=01 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#=  7 Spd=12  MxCh= 2
B:  Alloc=  0/900 us ( 0%), #Int=  0, #Iso=  0
D:  Ver= 1.00 Cls=09(hub  ) Sub=00 Prot=00 MxPS= 8 #Cfgs=  1
P:  Vendor=0000 ProdID=0000 Rev= 0.00
S:  Product=USB UHCI-alt Root Hub
S:  SerialNumber=b400
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=   8 Ivl=255ms
T:  Bus=01 Lev=01 Prnt=07 Port=01 Cnt=01 Dev#=  9 Spd=12  MxCh= 0
D:  Ver= 1.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS= 8 #Cfgs=  1
P:  Vendor=03f0 ProdID=0011 Rev= 1.00
S:  Manufacturer=Hewlett-Packa
S:  Product=OfficeJet G55
S:  SerialNumber=SGD05106RCVL
C:* #Ifs= 1 Cfg#= 1 Atr=00 MxPwr=  2mA
I:  If#= 0 Alt= 0 #EPs= 3 Cls=07(print) Sub=01 Prot=03 Driver=usblp
E:  Ad=01(O) Atr=02(Bulk) MxPS=  64 Ivl=  0ms
E:  Ad=81(I) Atr=02(Bulk) MxPS=  64 Ivl=  0ms
E:  Ad=82(I) Atr=03(Int.) MxPS=   8 Ivl=255ms
bash# 

thanks,

-c


__________________________________________________
Do You Yahoo!?
Yahoo! Auctions - buy the things you want at great prices
http://auctions.yahoo.com/

_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
http://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to