Newsgroup: it.comp.os.linux.sys
Titolo: stampante usb

Sto tentando disperatamente di fare andare la stampante usb sotto 
linux, adesso che ci sono degli ottimi driver per le epson mi 
piacerebbe attaccare stabilmente la stampante alla macchina linux, ma 
non funziona. 
 
Il supporto usb del kernel 2.4 e' attivo, infatti si legge:
 
kernel: uhci.c: root-hub INT complete: port1: 80 port2: 93 data: 4
kernel: hub.c: USB new device connect on bus1/2, assigned device 
number 2
kernel: printer.c: usblp0: USB Bidirectional printer dev 2 if 0 alt 0
 
Poi ho creato il file /dev/usb/lp0 come da istruzioni a 
www.linux-usb.org
, ho modificato il printcap in modo da puntare a quel
file, pero' quando lancio lpd leggo:
 
Jan 14 15:11:25 voyager lpd[170]: unknown printer: ^I^I^I^I
 
Non riesco a stampare in nessun modo, nemmeno copiando direttamente il
file sul device. 
 
come posso fare? cosa sbaglio? (Ho una debian 2.2 e una epson stylus 
photo 750)
-- 

 photo 750)
Sto sempre cercando di indagare, ma non capisco. Ho attivato il file 
system per l'usb, ecco cosa dice:
voyager:/proc/bus/usb# cat devices
T:  Bus=01 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.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=5000
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=01 Port=01 Cnt=01 Dev#=  2 Spd=12  MxCh= 0
D:  Ver= 1.00 Cls=07(print) Sub=01 Prot=02 MxPS=64 #Cfgs=  1
P:  Vendor=04b8 ProdID=0001 Rev= 1.00
S:  Manufacturer=EPSON
S:  Product=USB Printer
C:* #Ifs= 1 Cfg#= 1 Atr=40 MxPwr=  2mA
I:  If#= 0 Alt= 0 #EPs= 2 Cls=07(print) Sub=01 Prot=02 Driver=usblp
E:  Ad=01(O) Atr=02(Bulk) MxPS=  64 Ivl=  0ms
E:  Ad=82(I) Atr=02(Bulk) MxPS=  64 Ivl=  0ms
La stampante mi sembra perfettamente riconosciuta. Pero' non riesco a 
stampare.
Confermate che un "echo ciao > /dev/usb/lp0" dovrebbe stampare 
qualcosa? A me non fa nulla.
Ho anche attivato l'opzione di debug nella compilazione della parte 
usb del kernel, ecco cosa dice all'avvio il sistema:
Jan 15 22:03:54 voyager kernel: usb.c: registered new driver usbdevfs
Jan 15 22:03:54 voyager kernel: usb.c: registered new driver hub
Jan 15 22:03:54 voyager kernel: uhci.c: USB UHCI at I/O 0x5000, IRQ 11
Jan 15 22:03:54 voyager kernel: uhci.c: detected 2 ports
Jan 15 22:03:54 voyager kernel: usb.c: new USB bus registered, 
assigned bus numb
er 1
Jan 15 22:03:54 voyager kernel: usb.c: kmalloc IF c11ea480, numif 1
Jan 15 22:03:54 voyager kernel: usb.c: new device strings: Mfr=0, 
Product=2, Ser
ialNumber=1
Jan 15 22:03:54 voyager kernel: usb.c: USB device number 1 default 
language ID 0
x0
Jan 15 22:03:54 voyager kernel: Product: USB UHCI-alt Root Hub
Jan 15 22:03:54 voyager kernel: SerialNumber: 5000
Jan 15 22:03:54 voyager kernel: hub.c: USB hub found
Jan 15 22:03:54 voyager kernel: hub.c: 2 ports detected
Jan 15 22:03:54 voyager kernel: hub.c: standalone hub
Jan 15 22:03:54 voyager kernel: hub.c: ganged power switching
Jan 15 22:03:54 voyager kernel: hub.c: global over-current protection
Jan 15 22:03:54 voyager kernel: hub.c: power on to power good time: 
2ms
Jan 15 22:03:54 voyager kernel: hub.c: hub controller current 
requirement: 0mA
Jan 15 22:03:54 voyager kernel: hub.c: port removable status: RR
Jan 15 22:03:54 voyager kernel: hub.c: local power source is good
Jan 15 22:03:54 voyager kernel: hub.c: no over-current condition 
exists
Jan 15 22:03:54 voyager kernel: hub.c: enabling power on all ports
Jan 15 22:03:54 voyager kernel: usb.c: hub driver claimed interface 
c11ea480
Jan 15 22:03:54 voyager kernel: usb.c: call_policy add, num 1 -- no FS
yet
Jan 15 22:03:54 voyager kernel: usb.c: registered new driver usblp
Jan 15 22:03:54 voyager kernel: uhci.c: root-hub INT complete: port1: 
80 port2:
93 data: 4
Jan 15 22:03:54 voyager kernel: hub.c: port 2 connection change
Jan 15 22:03:54 voyager kernel: hub.c: port 2, portstatus 101, change 
1, 12 Mb/s
Jan 15 22:03:54 voyager kernel: hub.c: port 2, portstatus 103, change 
0, 12 Mb/s
Jan 15 22:03:54 voyager kernel: hub.c: USB new device connect on 
bus1/2, assigne
d device number 2
Jan 15 22:03:54 voyager kernel: usb.c: kmalloc IF c11ea640, numif 1
Jan 15 22:03:54 voyager kernel: usb.c: new device strings: Mfr=1, 
Product=2, Ser
ialNumber=0
Jan 15 22:03:54 voyager kernel: usb.c: USB device number 2 default 
language ID 0
x409
Jan 15 22:03:54 voyager kernel: Manufacturer: EPSON
Jan 15 22:03:54 voyager kernel: Product: USB Printer
Jan 15 22:03:54 voyager kernel: printer.c: usblp0: USB Bidirectional 
printer dev
 2 if 0 alt 0
Jan 15 22:03:54 voyager kernel: usb.c: usblp driver claimed interface 
c11ea640
Jan 15 22:03:54 voyager kernel: usb.c: kusbd: /sbin/hotplug add 2
Jan 15 22:03:54 voyager kernel: usb.c: kusbd policy returned 
0xfffffffe
lpd comunque continua a segnalare errore: Jan 15 22:20:15 voyager 
lpd[275]: unknown printer: ^I^I^I^I
Se anche avessi configurato male /etc/printcap, comunque dovrei poter 
scrivere "a mano" sul device, no?
--