Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Impossibile stampare con HP laserjet p1005 [RISOLTO]
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian)
View previous topic :: View next topic  
Author Message
MajinJoko
l33t
l33t


Joined: 20 Sep 2005
Posts: 639
Location: Bergamo / Verona

PostPosted: Tue Sep 16, 2008 4:58 pm    Post subject: Impossibile stampare con HP laserjet p1005 [RISOLTO] Reply with quote

'Sera a tutti,

scrivo perché ormai non so più dove sbattere la testa. Ho comprato oggi una stampante laser dell'hp, modello LaserJet P1005.
L'ho provata su Windows, quindi funziona.
Di solito stampo senza problemi sulla mia Hp Deskjet, quindi credo si possa dire che anche Cups e compagnia bella ci sono.

Ora, tento di installarla. Piango in turco e riesco ad installare sia i drivers di hplip che quelli consigliati di foo2zjs. In entrambi i casi la stampante viene riconosciuta, ma non stampa nulla, nemmeno la pagina di prova.

Ma andiamo con ordine.

Questo mi insospettisce:
Quote:
# hp-testpage --device=hp:/usb/HP_LaserJet_P1005?serial=BB0CJAM

HP Linux Imaging and Printing System (ver. 2.8.7)
Testpage Print Utility ver. 5.1

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.

warning: hp-testpage should not be run as root.
error: No printer queues found for device.

Strano, no? Se per test tengo spenta la stampante, il comando fallisce con l'errore "unable to communicate", quindi mi pare ben strano che a stampante accesa non trovi la coda di stampa. Difatti hp-levels riconosce correttamente il livello d'inchiostro.
Anzi, prima l'ha fatto (dicendomi correttamente il 100% del toner), mentre ora:
Quote:
# hp-levels

HP Linux Imaging and Printing System (ver. 2.8.7)
Supply Levels Utility ver. 1.3

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.

warning: hp-levels should not be run as root.

Choose device from probed devices connected on bus(es): usb,par,cups:

Num. Device-URI CUPS printer(s)
---- ------------------------------------------ ----------------------------
0 hp:/usb/Deskjet_3740?serial=TH49A110WG040Q Deskjet_3740
1 hp:/usb/HP_LaserJet_P1005?serial=BB0CJAM

Enter number 0...1 for device (q=quit, enter=last used device: hp:/usb/HP_LaserJet_P1005?serial=BB0CJAM) ?1
error: Channel write error
error: Error opening device (Device I/O error). Exiting.

Ma caspita! Ha funzionato qualche minuto fa! :evil:
Ecco, l'ho spenta, ho fermato cups, l'ho riaccesa e:
Quote:
# hp-levels

HP Linux Imaging and Printing System (ver. 2.8.7)
Supply Levels Utility ver. 1.3

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.

warning: hp-levels should not be run as root.
Using device: hp:/usb/HP_LaserJet_P1005?serial=BB0CJAM

Black toner cartridge
Part No.: 35A
Health: Good/OK

----------------------------------------------------------------
|//////////////////////////////////////////////////////////////| (approx. 100%)
----------------------------------------------------------------


Done.

Per controprova, ho avviato cups e ho riprovato il comando hp-levels. Stavolta ha funzionato! :?: :?:

Comunque. Passiamo alle cose serie. Installo la stampante tramite hp-setup. Esso crea una nuova stampante in cups:
Quote:
HP_LaserJet_P1005 Descrizione:
Posizione:
Marca e modello: HP LaserJet P1005 Foomatic/hpijs-ZJS (recommended)
Stato della stampante: in attesa, accetta operazioni, pubblicata.
URI del dispositivo: hp:/usb/HP_LaserJet_P1005?serial=BB0CJAM

Mando la stampa della pagina di prova, resta in attesa un pò e poi il documento sparisce dalla coda di cups senza che la stampante abbia fatto "bif!"..
In /var/log/messages non ci sono errori di sorta. Mentre questo è l'error_log di cups:
Quote:
I [16/Sep/2008:18:43:17 +0200] Started "/usr/libexec/cups/cgi-bin/printers.cgi" (pid=11782)
I [16/Sep/2008:18:43:17 +0200] [Job 283] Adding start banner page "none".
I [16/Sep/2008:18:43:17 +0200] [Job 283] Adding end banner page "none".
I [16/Sep/2008:18:43:17 +0200] [Job 283] File of type application/postscript queued by "root".
I [16/Sep/2008:18:43:17 +0200] [Job 283] Started filter /usr/libexec/cups/filter/pstops (PID 11783)
I [16/Sep/2008:18:43:17 +0200] [Job 283] Started filter /usr/libexec/cups/filter/foomatic-rip (PID 11784)
I [16/Sep/2008:18:43:17 +0200] [Job 283] Started backend /usr/libexec/cups/backend/hp (PID 11785)
I [16/Sep/2008:18:43:18 +0200] Started "/usr/libexec/cups/cgi-bin/printers.cgi" (pid=11795)
I [16/Sep/2008:18:43:28 +0200] Started "/usr/libexec/cups/cgi-bin/printers.cgi" (pid=11838)
I [16/Sep/2008:18:43:33 +0200] Started "/usr/libexec/cups/cgi-bin/printers.cgi" (pid=11839)
I [16/Sep/2008:18:43:34 +0200] Started "/usr/libexec/cups/cgi-bin/printers.cgi" (pid=11840)
I [16/Sep/2008:18:43:39 +0200] Started "/usr/libexec/cups/cgi-bin/printers.cgi" (pid=11849)
I [16/Sep/2008:18:43:43 +0200] [Job 283] Completed successfully.
I [16/Sep/2008:18:43:49 +0200] Started "/usr/libexec/cups/cgi-bin/printers.cgi" (pid=11851)
I [16/Sep/2008:18:43:55 +0200] Started "/usr/libexec/cups/cgi-bin/printers.cgi" (pid=11852)


Non sapendo più cosa fare qui, ho provato con i driver foo2xqx, consigliati per questa stampante. Li ho installati a mano (sul sito http://foo2xqx.rkkda.com/ sconsigliano di utilizzare il pacchetto per gentoo), ho seguito la guida e infatti quando aggiungo la stampante in cups posso selezionare il driver "HP laserjet p1005 Foomatic/foo2xqx". Lo seleziono, finisco l'installazione e lancio la solita pagina di test.
L'unica riga che trovo in /var/log/messages è
Quote:
Sep 16 18:49:56 Onizuka foo2xqx-wrapper: foo2xqx-wrapper -r1200x600 -p9 -s7 -m1 -d1 -n1

Solo che ora la pagina resta in coda in eterno e nell'error_log di cups vedo decine di righe così:
Quote:
I [16/Sep/2008:18:50:11 +0200] Started "/usr/libexec/cups/cgi-bin/printers.cgi" (pid=12172)
I [16/Sep/2008:18:50:11 +0200] Started "/usr/libexec/cups/cgi-bin/printers.cgi" (pid=12173)
I [16/Sep/2008:18:50:12 +0200] Started "/usr/libexec/cups/cgi-bin/printers.cgi" (pid=12174)
I [16/Sep/2008:18:50:12 +0200] Started "/usr/libexec/cups/cgi-bin/printers.cgi" (pid=12175)
I [16/Sep/2008:18:50:12 +0200] Started "/usr/libexec/cups/cgi-bin/printers.cgi" (pid=12176)
I [16/Sep/2008:18:50:12 +0200] Started "/usr/libexec/cups/cgi-bin/printers.cgi" (pid=12177)
I [16/Sep/2008:18:50:12 +0200] Started "/usr/libexec/cups/cgi-bin/printers.cgi" (pid=12178)
I [16/Sep/2008:18:50:12 +0200] Started "/usr/libexec/cups/cgi-bin/printers.cgi" (pid=12179)

Mentre mi trovo in questo stato, se lancio hp-testpage ottengo:
#
Quote:
hp-testpage --device=hp:/usb/HP_LaserJet_P1005?serial=BB0CJAM

HP Linux Imaging and Printing System (ver. 2.8.7)
Testpage Print Utility ver. 5.1

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.

warning: hp-testpage should not be run as root.
error: Device busy: hp:/usb/HP_LaserJet_P1005?serial=BB0CJAM
error: Unable to print to printer. Please check device and try again.

Finalmente, in /var/log/messages ottengo un errore:
Quote:
Sep 16 18:50:48 Onizuka HP_LaserJet_P1005?serial=BB0CJAM: io/hpmud/musb.c 1335: unable to write data hp:/usb/HP_LaserJet_P1005?serial=BB0CJAM: 45 second io timeout
Sep 16 18:51:33 Onizuka HP_LaserJet_P1005?serial=BB0CJAM: io/hpmud/musb.c 1335: unable to write data hp:/usb/HP_LaserJet_P1005?serial=BB0CJAM: 45 second io timeout
Sep 16 18:52:18 Onizuka HP_LaserJet_P1005?serial=BB0CJAM: io/hpmud/musb.c 1335: unable to write data hp:/usb/HP_LaserJet_P1005?serial=BB0CJAM: 45 second io timeout
Sep 16 18:53:03 Onizuka HP_LaserJet_P1005?serial=BB0CJAM: io/hpmud/musb.c 1335: unable to write data hp:/usb/HP_LaserJet_P1005?serial=BB0CJAM: 45 second io timeout


Infine, annullo la stampa, riapro nuovamente hp-testpage e..
Quote:
# hp-testpage --device=hp:/usb/HP_LaserJet_P1005?serial=BB0CJAM

HP Linux Imaging and Printing System (ver. 2.8.7)
Testpage Print Utility ver. 5.1

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.

warning: hp-testpage should not be run as root.

Printing test page to printer Laser...
Test page has been sent to printer.

Ma ovviamente non accade nulla.


Io sono davvero alla frutta. So che da regole del forum avrei dovuto trattare il problema di ognuno dei due drivers in due thread differenti, ma non vorrei che le cose fossero legate, e così posso fornirvi un quadro più completo. Spero possiate aiutarmi. Io per ora posso limitarmi a fare qualche danza propiziatoria. Ma, fra le altre cose, non è nemmeno un bello spettacolo..

Grazie a chiunque mi aiuti fin d'ora,
Michele


edit: sto seguendo questa pagina: http://gentoo-wiki.com/HP_LaserJet_1020
In pratica, prima durante l'installazione di foo2xqx non davo il comando "make install-hotplug".
Tuttavia non ho ottenuto nulla.
O meglio, ho "notato" che /dev/usb/lp0 dopo un pò sparisce senza motivo :!:
Questo il finale di /var/log/messages dopo che tento una stampa:
Quote:
Sep 16 20:01:10 Onizuka usblp0: nonzero write bulk status received: -108
Sep 16 20:01:10 Onizuka /etc/hotplug/usb/hpljP1005: foo2zjs: ... download failed.
Sep 16 20:01:10 Onizuka usblp0: removed
Sep 16 20:01:11 Onizuka foo2xqx-wrapper: foo2xqx-wrapper -r1200x600 -p9 -s7 -m1 -d1 -n1

Ho controllato etc/hotplug/usb/hpljP1005, la parte interessante è:
Quote:
log "loading HP LaserJet $MODEL firmware $fw to $_dev ..."
# There is a timeout problem with udev and FC4, so spin it off.
(
if cat $fw > $_dev; then
log "... download successful."
else
log "... download failed."
fi
) &
return 0

Quindi non carica il firmware.. infatti quando appena acceso tento il comando
Code:
# cat /usr/share/foo2xqx/firmware/sihpP1005.dl > /dev/usb/lp0
(come da wiki) ottengo:
Quote:
# cat /usr/share/foo2xqx/firmware/sihpP1005.dl > /dev/usb/lp0
-su: /dev/usb/lp0: Dispositivo o risorsa occupata


sempre più buio totale.
_________________
[(.. watashi wa Urumi Kanzaki ga suki da ..)]


Last edited by MajinJoko on Thu Sep 18, 2008 8:29 pm; edited 1 time in total
Back to top
View user's profile Send private message
GoraNz
Apprentice
Apprentice


Joined: 27 Jul 2008
Posts: 181
Location: Latina, Pisa

PostPosted: Wed Sep 17, 2008 7:12 pm    Post subject: Reply with quote

ciao io avevo un problema simile con la mia stampante hp laserjet un pò piu datata della tua. ho risolto in questo modo: ho installato i driver foo2zjs come dalle istruzioni del sito http://foo2zjs.rkkda.com/. dato che era una stampante usb ho tenuto conto soprattutto del comando make install-hotplug che come ho visto hai fatto anche tu, dopo ho installato i driver hplip e ho gestito la stampante da interfaccia grafica, dove come driver ho scelto quello nella directory scaricata del driver foo2zjs e tutto è andato ok. diciamo che da quello che mi hai detto te il problema è un pò diverso ma vorrei sapere alcune cose: il make install-hotplug ti va senza problemi? dopo che ti da quel
Code:
Sep 16 20:01:10 Onizuka /etc/hotplug/usb/hpljP1005: foo2zjs: ... download failed.
Sep 16 20:01:10 Onizuka usblp0: removed
hai controllato nel dmesg se ti dice qualcosa a proposito di questo "scollegamento" inspiegabile? ultima cosa anche se banale quando dai il
Code:
./getweb 1005
te lo fa senza problemi oppure ti da qualche errore? o semplicemente non l'hai fatto e lo lasci fare al cups quando addi la stampante?
Back to top
View user's profile Send private message
MajinJoko
l33t
l33t


Joined: 20 Sep 2005
Posts: 639
Location: Bergamo / Verona

PostPosted: Thu Sep 18, 2008 8:29 pm    Post subject: Reply with quote

Ciao e grazie per la risposta!

Intanto ho RISOLTO. Sono impazzito per venirne a capo, ma in pratica la soluzione consiste nell'eliminare le regole di udev aggiunte dagli hplip. I driver foo2xqx hanno la loro regola di udev per inviare il firmware. In pratica quest'ultima andava in timeout perché prima veniva eseguita una regola di hplip che falliva. Da lì nascevano poi tutti i miei problemi.

Quote:
il make install-hotplug ti va senza problemi?

Sì. O meglio, ha preteso delle estensioni di Vi, ma installato Vim tramite portage poi sono riuscito ad eseguire il comando.

Grazie mille per la risposta. Tutto è bene quel che finisce bene (peccato per la mia testa :D)
_________________
[(.. watashi wa Urumi Kanzaki ga suki da ..)]
Back to top
View user's profile Send private message
GoraNz
Apprentice
Apprentice


Joined: 27 Jul 2008
Posts: 181
Location: Latina, Pisa

PostPosted: Sun Sep 21, 2008 12:15 am    Post subject: Reply with quote

apposto allora immaginavo ci fosse qualche conflitto però pensavo piu in qualche cosa nell'installazione perchè come ti avevo detto a me i problemi sono sorti li :wink: cmq meno male tutto ok
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum