Vous n'êtes pas identifié.
Bonjour
J'ai une Debian 3.0 woody, une imprimante HP3820 qui fonctionnait
nickel sous Mandrake 8, 9 et 10 .. et la rien à faire...
Mon souci est le suivant : dans http://localhost:631/printers/hp3820
je vois apres installation
-----------------
Description:
Location:
Printer State: idle, accepting jobs.
Device URI: usb:/dev/usb/lp0
-----------------
J'imprime la page de test et j'ai
-----------------
Description:
Location:
Printer State: stopped, accepting jobs.
Device URI: usb:/dev/usb/lp0
-----------------
et le document de test est dans la queue d'impression
hp3820-56 Test Page 15k pending since Tue Nov 16 00:16:17
2004
Un lsusb me donne
-----------------
Bus 002 Device 002: ID 03f0:1904 Hewlett-Packard
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 1.10
bDeviceClass 0 Interface
bDeviceSubClass 0
bDeviceProtocol 0
bMaxPacketSize0 8
idVendor 0x03f0 Hewlett-Packard
idProduct 0x1904
bcdDevice 1.00
iManufacturer 1 Hewlett-Packard
iProduct 2 DeskJet 3820
iSerial 3 CN31J1917C18
bNumConfigurations 1
Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength 32
bNumInterfaces 1
bConfigurationValue 1
iConfiguration 0
bmAttributes 0xc0
Self Powered
MaxPower 2mA
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 0
bNumEndpoints 2
bInterfaceClass 7 Printer
bInterfaceSubClass 1 Printer
bInterfaceProtocol 2 Bidirectional
iInterface 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x81 EP 1 IN
bmAttributes 2
Transfer Type Bulk
Synch Type none
wMaxPacketSize 64
bInterval 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x02 EP 2 OUT
bmAttributes 2
Transfer Type Bulk
Synch Type none
wMaxPacketSize 64
bInterval 0
Language IDs: (length=4)
0409 English(US)
Un lsmod me donne :
------------------------
Module Size Used by Not tainted
printer 5632 0
n_hdlc 6016 1
ppp_synctty 4960 1
ppp_async 6464 0 (unused)
ppp_generic 18728 3 [ppp_synctty ppp_async]
slhc 4432 0 [ppp_generic]
parport_pc 25704 1 (autoclean)
lp 6912 0 (autoclean)
parport 21728 1 (autoclean) [parport_pc lp]
nls_cp437 4384 2 (autoclean)
ide-scsi 7488 0
tulip 37184 1
agpgart 29824 0 (unused)
nls_cp850 3616 0 (unused)
es1371 27840 0 (unused)
gameport 1308 0 [es1371]
ac97_codec 9568 0 [es1371]
soundcore 3236 4 [es1371]
binfmt_misc 5636 1
cpuid 1184 0 (unused)
apm 9148 0
keybdev 1664 0 (unused)
usbkbd 2848 0 (unused)
input 3072 0 [keybdev usbkbd]
usb-uhci 20708 0 (unused)
usbcore 48032 1 [printer usbkbd usb-uhci]
dpkg -l hpijs me donne :
------------------------
Nom Version Description
+++-==============-==============-============================================
ii hpijs 1.0.4-1 HP Inkjet Server - Ghostscript
driver for HP
dpkg --get-selections |grep cupsys me donne :
---------------------------------------------
Nom Version Description
+++-==============-==============-============================================
ii hpijs 1.0.4-1 HP Inkjet Server - Ghostscript
driver for HP
debian2004:/diskseb/homeseb# dpkg --get-selections |grep cupsys
cupsys install
cupsys-bsd install
cupsys-client install
cupsys-driver-gimpprint install
cupsys-pstoraster install
libcupsys2 install
libcupsys2-dev install
echo "je teste la connexion" > /dev/lp0 me donne :
Une page se charge dans l'imprimante ... (ouiiiiiiii elle fait du
bruit) et c'est tout... elle reste vierge et je doit presser le bouton
en facade pour la faire sortir
J'ai tenter de rebooter (c'est pour vous dire le désespoir)
d'imprimer depuis d'autre appli, openoofice, mozilla... rien ne se met
dans la queue de http://localhost:631........ pffffff
dpkg --get-selections |grep lp me donne :
-----------------------------------------
debhelper install
gnome-help install
kdewallpapers install
libslp1 install
lpr deinstall
Heu ?? C'est quoi ca ce deinstall ?
je fait alors
apt-get install lpr
Reading Package Lists... Done
Building Dependency Tree... Done
The following packages will be REMOVED:
cupsys-bsd
The following NEW packages will be installed:
lpr
0 packages upgraded, 1 newly installed, 1 to remove and 0 not
upgraded.
Need to get 0B/93.1kB of archives. After unpacking 156kB will be used.
Do you want to continue? [Y/n] y
dpkg : cupsys-bsd : problème de dépendance, mais suppression comme
demandé :
apsfilter dépend de lpr ; cependant :
Paquet lpr n'est pas installé.
Paquet cupsys-bsd qui fournit lpr doit être supprimé.
(Lecture de la base de données... 70088 fichiers et répertoires déjà
installés.)
Suppression de cupsys-bsd ...
Sélection du paquet lpr précédemment désélectionné.
(Lecture de la base de données... 70074 fichiers et répertoires déjà
installés.)
Dépaquetage de lpr (à partir de .../lpr_1%3a2000.05.07-4.3_i386.deb)
...
Paramétrage de lpr (2000.05.07-4.3) ...
Starting printer spooler: lpd.
Bon je sais pas si c'est une bétise.. je test
/etc/init.d/cupsys restart
La trace est du restart est :
E [16/Nov/2004:00:26:17 +0100] Scheduler shutting down due to SIGTERM.
I [16/Nov/2004:00:26:18 +0100] Listening to 0:631
I [16/Nov/2004:00:26:18 +0100] Configured for up to 100 clients.
I [16/Nov/2004:00:26:18 +0100] LoadPPDs: Read "/etc/cups/ppds.dat",
1057 PPDs...
I [16/Nov/2004:00:26:19 +0100] LoadPPDs: No new or changed PPDs...
Haaaaaaaaaaa.. pareil !
Voila.. vous savez tout... et moi plus rien :-(
Merci d'avance pour tout.
Sébastien Gamier
ps : Amusant de pouvoir faire un sondage.. allez hop je test. :cheesy:
Hors ligne
Les traces de log pour une tentative d'impression d'une page de test depuis http://localhost:631sont :
I [23/Nov/2004:08:29:40 +0100] Started "/usr/lib/cups/cgi-bin/jobs.cgi" (pid=1302)
I [23/Nov/2004:08:29:42 +0100] Started "/usr/lib/cups/cgi-bin/printers.cgi" (pid=1303)
I [23/Nov/2004:08:29:48 +0100] Started "/usr/lib/cups/cgi-bin/admin.cgi" (pid=1304)
I [23/Nov/2004:08:29:48 +0100] Saving printers.conf...
I [23/Nov/2004:08:29:48 +0100] Saving printers.conf...
I [23/Nov/2004:08:29:48 +0100] Printer 'hp3820' started by 'root'.
I [23/Nov/2004:08:29:52 +0100] Started "/usr/lib/cups/cgi-bin/jobs.cgi" (pid=1305)
I [23/Nov/2004:08:29:56 +0100] Started "/usr/lib/cups/cgi-bin/printers.cgi" (pid=1306)
I [23/Nov/2004:08:29:59 +0100] Started "/usr/lib/cups/cgi-bin/printers.cgi" (pid=1308)
I [23/Nov/2004:08:29:59 +0100] Job 61 queued on 'hp3820' by ''.
I [23/Nov/2004:08:29:59 +0100] Started filter /usr/lib/cups/filter/pstops (PID 1309) for job 61.
I [23/Nov/2004:08:29:59 +0100] Started filter /usr/lib/cups/filter/foomatic-rip (PID 1310) for job 61.
E [23/Nov/2004:08:29:59 +0100] PID 1310 stopped with status 22!
I [23/Nov/2004:08:29:59 +0100] Started backend /usr/lib/cups/backend/usb (PID 1311) for job 61.
I [23/Nov/2004:08:29:59 +0100] Saving printers.conf...
J'ai du cliquer sur le bouton "START PRINTER" (la ligne de 08:29:48)
j'ai ensuite fait "PRINT TEST PAGE" à 08:29:59, mais la je pense qu'il y a déja un problème car on ne sais pas QUI a lancé la demande (by.) ?
Les filtres démarrent et la... l'imprimante repasse en mode " Printer State: stopped, accepting jobs. " avec le status 22 à 08:29:59
Pas terrible .
J'essaye maintenant avec un utilisateur nommé 'foo' qui lancerait une impression du type
lp .tcshrc
cela me donne: request id is hp3820-64 (1 file(s))
et dans le log
I [23/Nov/2004:08:37:43 +0100] Printer 'hp3820' started by 'root'.
I [23/Nov/2004:08:42:43 +0100] Job 64 queued on 'hp3820' by 'foo'.
I [23/Nov/2004:08:42:43 +0100] Started filter /usr/lib/cups/filter/texttops (PID 1361) for job 64.I [23/Nov/2004:08:42:43 +0100] Started filter /usr/lib/cups/filter/pstops (PID 1362) for job 64.
I [23/Nov/2004:08:42:43 +0100] Started filter /usr/lib/cups/filter/foomatic-rip (PID 1363) for job 64.
E [23/Nov/2004:08:42:43 +0100] PID 1363 stopped with status 22!
I [23/Nov/2004:08:42:43 +0100] Started backend /usr/lib/cups/backend/usb (PID 1364) for job 64.
I [23/Nov/2004:08:42:43 +0100] Saving printers.conf...
Pas mieux.. ha si... on voit qui a fait la demande d'impression.
J'efface et remet mon imprimante, voici les logs :
I [23/Nov/2004:08:50:53 +0100] Printer 'hp3820' deleted by 'root'.
I [23/Nov/2004:08:50:53 +0100] Saving printers.conf...
Je choisi
DEVICE -> USB PRINTER #1(HP Deskjet 3820)
MAKE -> HP
MODEL -> HP Deskjet 3820 Foomatic/hpijs (recommended) (en)
Les logs me donnent après tout ca :
I [23/Nov/2004:08:53:10 +0100] Started "/usr/lib/cups/cgi-bin/admin.cgi" (pid=1428)
I [23/Nov/2004:08:53:28 +0100] Started "/usr/lib/cups/cgi-bin/admin.cgi" (pid=1429)
I [23/Nov/2004:08:54:21 +0100] Started "/usr/lib/cups/cgi-bin/admin.cgi" (pid=1430)
I [23/Nov/2004:08:54:21 +0100] Setting hp3820 device-uri to "usb:/dev/usb/lp0" (was "".)
I [23/Nov/2004:08:54:21 +0100] Setting hp3820 printer-is-accepting-jobs to 1 (was 0.)
I [23/Nov/2004:08:54:21 +0100] Setting hp3820 printer-state to 3 (was 5.)
I [23/Nov/2004:08:54:21 +0100] Saving printers.conf...
I [23/Nov/2004:08:54:21 +0100] New printer 'hp3820' added by 'root'.
L'imprimante est noté comme "Printer State: idle, accepting jobs."
Mais rien ne s'imprime a nouveau. Le job s'arrete 'with status 22'
Autre chose peut etre interressante
je demarre l'imprimante en root, puis je lance lp .tcshrc en foo
I [23/Nov/2004:09:04:11 +0100] Printer 'hp3820' started by 'root'.
I [23/Nov/2004:09:04:38 +0100] Job 71 queued on 'hp3820' by 'foo'.
I [23/Nov/2004:09:04:38 +0100] Started filter /usr/lib/cups/filter/texttops (PID 1527) for job 71.I [23/Nov/2004:09:04:38 +0100] Started filter /usr/lib/cups/filter/pstops (PID 1528) for job 71.
I [23/Nov/2004:09:04:38 +0100] Started filter /usr/lib/cups/filter/foomatic-rip (PID 1529) for job 71.
E [23/Nov/2004:09:04:38 +0100] PID 1529 stopped with status 22!
I [23/Nov/2004:09:04:38 +0100] Started backend /usr/lib/cups/backend/usb (PID 1530) for job 71.
I [23/Nov/2004:09:04:38 +0100] Saving printers.conf...
maintenant je redemarre l'imprmante- et je retente de redemarrer le job 71 j'obtient :
E [23/Nov/2004:09:07:04 +0100] restart_job: job #71 cannot be restarted - no files!
Si je fait depuis l'utilisateur foo
echo "je teste la connexion" > /dev/usb/lp0
j'obtient :
bash: /dev/usb/lp0: Permission non accordée
en root je regarde les droits
ls -all /dev/usb/lp0
crw-rw---- 1 root lp 180, 0 nov 15 23:16 /dev/usb/lp0
Je tente le tout je met chmod 777 /dev/usb/lp0
je refait echo "je teste la connexion" > /dev/usb/lp0
j'obtient : ..... une page blanche ! qu'il faut que je sorte de l'imprimante en appuyant sur le bouton sur le panneau de l'imprimante.
Rhaaaaaaaaa...
du coup je retente depuis l'admin cups avec 777 sur /dev/usb/lp0
bon c'est pareil.
dernière piste (vu sur cups.org)
If you encounter printing problems, the first thing you should do is set
the LogLevel parameter in /etc/cups/cupsd.conf to "debug" and restart
the cupsd process, usually with one of the following commands:
/etc/init.d/cups restart
/etc/rc.d/init.d/cups restart
/sbin/init.d/cups restart
Allons y je ne risque rien de toute facon :-)
La commande pour redemarrer chez moi est
/etc/init.d/cupsys restart
Je retente un 'print Test Page et j'obtient' :
D [23/Nov/2004:09:36:40 +0100] ReadClient() 2 GET /printers/hp3820?op=print-test-page HTTP/1.1
D [23/Nov/2004:09:36:40 +0100] CGI /usr/lib/cups/cgi-bin/printers.cgi started - PID = 1656
I [23/Nov/2004:09:36:40 +0100] Started "/usr/lib/cups/cgi-bin/printers.cgi" (pid=1656)
D [23/Nov/2004:09:36:40 +0100] SendCommand() 2 file=6
D [23/Nov/2004:09:36:40 +0100] AcceptClient() 5 from 127.0.0.1:631.
D [23/Nov/2004:09:36:40 +0100] ReadClient() 5 POST /printers/hp3820 HTTP/1.1
D [23/Nov/2004:09:36:40 +0100] print_job: request file type is application/postscript.
D [23/Nov/2004:09:36:40 +0100] check_quotas: requesting-user-name = ''
D [23/Nov/2004:09:36:40 +0100] print_job: requesting-user-name = ''
D [23/Nov/2004:09:36:40 +0100] Adding default job-sheets values "none,none"...
I [23/Nov/2004:09:36:40 +0100] Job 75 queued on 'hp3820' by ''.
D [23/Nov/2004:09:36:40 +0100] Job 75 hold_until = 0
D [23/Nov/2004:09:36:40 +0100] StartJob(75, 080abdf0)
D [23/Nov/2004:09:36:40 +0100] StartJob() id = 75, file = 0/1
D [23/Nov/2004:09:36:40 +0100] job-sheets=none,none
D [23/Nov/2004:09:36:40 +0100] banner_page = 0
D [23/Nov/2004:09:36:40 +0100] StartJob: argv = "hp3820","75","","Test Page","1","","/var/spool/cups/d00075-001"
D [23/Nov/2004:09:36:40 +0100] StartJob: envp[0]="PATH=/usr/lib/cups/filter:/bin:/usr/bin"
D [23/Nov/2004:09:36:40 +0100] StartJob: envp[1]="SOFTWARE=CUPS/1.1"
D [23/Nov/2004:09:36:40 +0100] StartJob: envp[2]="USER=root"
D [23/Nov/2004:09:36:40 +0100] StartJob: envp[3]="CHARSET=iso-8859-1"
D [23/Nov/2004:09:36:40 +0100] StartJob: envp[4]="LANG=c"
D [23/Nov/2004:09:36:40 +0100] StartJob: envp[5]="TZ=Europe/Paris"
D [23/Nov/2004:09:36:40 +0100] StartJob: envp[6]="PPD=/etc/cups/ppd/hp3820.ppd"
D [23/Nov/2004:09:36:40 +0100] StartJob: envp[7]="CUPS_SERVERROOT=/etc/cups"
D [23/Nov/2004:09:36:40 +0100] StartJob: envp[8]="RIP_MAX_CACHE=8m"
D [23/Nov/2004:09:36:40 +0100] StartJob: envp[9]="TMPDIR=/var/spool/cups/tmp"
D [23/Nov/2004:09:36:40 +0100] StartJob: envp[10]="CONTENT_TYPE=application/postscript"
D [23/Nov/2004:09:36:40 +0100] StartJob: envp[11]="DEVICE_URI=usb:/dev/usb/lp0"
D [23/Nov/2004:09:36:40 +0100] StartJob: envp[12]="PRINTER=hp3820"
D [23/Nov/2004:09:36:40 +0100] StartJob: envp[13]="CUPS_DATADIR=/usr/share/cups"
D [23/Nov/2004:09:36:40 +0100] StartJob: envp[14]="CUPS_FONTPATH=/usr/share/cups/fonts"
D [23/Nov/2004:09:36:40 +0100] StartJob: envp[15]=""
D [23/Nov/2004:09:36:40 +0100] StartJob: envp[16]=""
D [23/Nov/2004:09:36:40 +0100] StartJob: statusfds = 7, 8
D [23/Nov/2004:09:36:40 +0100] StartJob: filterfds[1] = 9, -1
D [23/Nov/2004:09:36:40 +0100] StartJob: filter = "/usr/lib/cups/filter/pstops"
D [23/Nov/2004:09:36:40 +0100] StartJob: filterfds[0] = 10, 11
D [23/Nov/2004:09:36:40 +0100] start_process("/usr/lib/cups/filter/pstops", bfff19ec, bffece9c, 9, 11, 8)
I [23/Nov/2004:09:36:40 +0100] Started filter /usr/lib/cups/filter/pstops (PID 1657) for job 75.
D [23/Nov/2004:09:36:40 +0100] StartJob: filter = "/usr/lib/cups/filter/foomatic-rip"
D [23/Nov/2004:09:36:40 +0100] StartJob: filterfds[1] = 9, 12
D [23/Nov/2004:09:36:40 +0100] start_process("/usr/lib/cups/filter/foomatic-rip", bfff19ec, bffece9c, 10, 12, 8)
I [23/Nov/2004:09:36:40 +0100] Started filter /usr/lib/cups/filter/foomatic-rip (PID 1658) for job 75.
D [23/Nov/2004:09:36:40 +0100] StartJob: backend = "/usr/lib/cups/backend/usb"
D [23/Nov/2004:09:36:40 +0100] StartJob: filterfds[0] = -1, 10
D [23/Nov/2004:09:36:40 +0100] start_process("/usr/lib/cups/backend/usb", bfff19ec, bffece9c, 9, 10, 8)
E [23/Nov/2004:09:36:40 +0100] PID 1658 stopped with status 22!
I [23/Nov/2004:09:36:40 +0100] Started backend /usr/lib/cups/backend/usb (PID 1659) for job 75.
D [23/Nov/2004:09:36:40 +0100] /usr/lib/cups/filter/foomatic-rip: Aucun fichier ou répertoire de ce type
D [23/Nov/2004:09:36:40 +0100] Page = 612x792; 18,36 to 594,783
D [23/Nov/2004:09:36:40 +0100] 0 %%BoundingBox: 0 0 612 792
D [23/Nov/2004:09:36:40 +0100] 0 %%Pages: 1
D [23/Nov/2004:09:36:40 +0100] 0 %%LanguageLevel: 1
D [23/Nov/2004:09:36:40 +0100] 0 %%DocumentData: Clean7Bit
D [23/Nov/2004:09:36:40 +0100] 0 %%DocumentSuppliedResources: procset testprint/1.0
D [23/Nov/2004:09:36:40 +0100] 0 %%DocumentNeededResources: font Helvetica Helvetica-Bold Times-Roman
D [23/Nov/2004:09:36:40 +0100] 0 %%Creator: Michael Sweet, Easy Software Products
D [23/Nov/2004:09:36:40 +0100] 0 %%CreationDate: May 11, 1999
D [23/Nov/2004:09:36:40 +0100] 0 %%Title: Test Page
D [23/Nov/2004:09:36:40 +0100] 0 %%EndComments
D [23/Nov/2004:09:36:40 +0100] 0 %%BeginProlog
D [23/Nov/2004:09:36:40 +0100] 0 %%BeginResource procset testprint 1.1 0
D [23/Nov/2004:09:36:40 +0100] 0 %%EndResource
D [23/Nov/2004:09:36:40 +0100] 0 %%EndProlog
D [23/Nov/2004:09:36:40 +0100] 0 %%Page: 1 1
D [23/Nov/2004:09:36:40 +0100] 0 %%Page: 1 1
D [23/Nov/2004:09:36:40 +0100] pw = 576.0, pl = 747.0
D [23/Nov/2004:09:36:40 +0100] PageLeft = 18.0, PageRight = 594.0
D [23/Nov/2004:09:36:40 +0100] PageTop = 783.0, PageBottom = 36.0
D [23/Nov/2004:09:36:40 +0100] PageWidth = 612.0, PageLength = 792.0
D [23/Nov/2004:09:36:40 +0100] 0 %%EOF
D [23/Nov/2004:09:36:40 +0100] Saw EOF!
D [23/Nov/2004:09:36:40 +0100] CloseClient() 5
D [23/Nov/2004:09:36:40 +0100] UpdateJob: job 75, file 0 is complete.
D [23/Nov/2004:09:36:40 +0100] StopJob: id = 75, force = 0
I [23/Nov/2004:09:36:40 +0100] Saving printers.conf...
D [23/Nov/2004:09:36:40 +0100] StopJob: printer state is 5
D [23/Nov/2004:09:36:54 +0100] mallinfo: arena = 374304, used = 314688, free = 59616
Il me semble donc qu'une des lignes interessantes est celle ci:
D [23/Nov/2004:09:36:40 +0100] /usr/lib/cups/filter/foomatic-rip: Aucun fichier ou répertoire de ce type
Un coup de google et je trouve une info comme quoi il manquerait des paquets foomatic
donc :
dpkg -l | grep foo
ii foomatic-bin 0.20020408-4 Printer/Driver database and print system - binaries
dpkg -l | grep ^ii | grep cups
ii cupsys 1.1.14-5woody10 Common UNIX Printing System(tm) - server
ii cupsys-client 1.1.14-5woody10 Common UNIX Printing System(tm) - client programs (S
ii cupsys-driver-gimp 4.2.0-4 gimp-print printer driver for CUPS
ii cupsys-pstoraster 1.1.14-5woody10 Common UNIX Printing System(tm) - pstoraster
ii kdelibs3-cups 2.2.2-13.woody.12 KDE print system (CUPS support)
ii libcupsys2 1.1.14-5woody10 Common UNIX Printing System(tm) - libs
ii libcupsys2-dev 1.1.14-5woody10 Common UNIX Printing System(tm) - development files
ii libqtcups-dev 2.0-4 Qt interface library for CUPS (development files)
ii libqtcups2 2.0-4 Qt interface library for CUPS
ii qtcups 2.0-4 Qt front-end for CUPS.
dpkg -l | grep ^ii | grep hpi
ii hpijs 1.0.4-1 HP Inkjet Server - Ghostscript driver for HP inkjets
J'en ai des choses :-)
Mais y a rien qui fonctionne !
J'ai trouvé que foomatic-filters
Provides foomatic-filters
Files /etc/foomatic
/etc/foomatic/filter.conf
/usr/bin/foomatic-gswrapper
/usr/bin/foomatic-rip
/usr/lib/cups
/usr/lib/cups/filter
-- >/usr/lib/cups/filter/foomatic-rip <--
/usr/share/doc/packages/foomatic-filters
/usr/share/doc/packages/foomatic-filters/COPYING
/usr/share/doc/packages/foomatic-filters/ChangeLog
/usr/share/doc/packages/foomatic-filters/README
/usr/share/doc/packages/foomatic-filters/TODO
/usr/share/doc/packages/foomatic-filters/USAGE
/usr/share/man/man1/foomatic-gswrapper.1.gz
/usr/share/man/man1/foomatic-rip.1.gz
je l'ai installé avec ./configure --prefix=/usr --sysconfdir=/etc; make; make install;
Mais cela me donne rien.
Voila les dernieres infos.
Merci d'avance.
Sébastien
Hors ligne
verifie bien que t'as un lien cupsomatic dans ton /usr/lib/cups/filter/ qui pointe vers foomatic-rip du même dossier
enfin sa doit être de ce style
11:32 waver@Jupiter /usr/lib/cups/filter% ll total 964K -rwxr-xr-x 1 root root 4,9K 2004-10-05 21:33 commandtocanon* -rwxr-xr-x 1 root root 5,5K 2004-10-05 21:33 commandtoepson* lrwxr-xr-x 1 root root 12 2004-10-22 23:24 cupsomatic -> foomatic-rip* lrwxr-xr-x 1 root root 25 2004-10-22 23:24 foomatic-rip -> ../../../bin/foomatic-rip* -rwxr-xr-x 1 root root 4,1K 2004-10-20 02:17 gziptoany* -rwxr-xr-x 1 root root 41K 2004-10-20 02:17 hpgltops* -rwxr-xr-x 1 root root 23K 2004-10-20 02:17 imagetops* -rwxr-xr-x 1 root root 56K 2004-10-20 02:17 imagetoraster* -rwxr-xr-x 1 root root 668K 2004-10-20 02:17 pdftops* -rwxr-xr-x 1 root root 34K 2004-10-20 02:17 pstops* -rwxr-xr-x 1 root root 1,9K 2004-08-01 08:25 pstopxl* -rwxr-xr-x 1 root root 1,9K 2004-08-01 08:25 pstoraster* -rwxr-xr-x 1 root root 7,6K 2004-10-20 02:17 rastertodymo* -rwxr-xr-x 1 root root 13K 2004-10-20 02:17 rastertoepson* -rwxr-xr-x 1 root root 9,8K 2004-10-20 02:17 rastertohp* -rwxr-xr-x 1 root root 21K 2004-10-05 21:33 rastertoprinter* -rwxr-xr-x 1 root root 36K 2004-10-20 02:17 texttops*
regarde aussi dans ce lien
Hors ligne
ls -all /usr/lib/cups/filter/
total 2132
drwxr-xr-x 2 root root 4096 nov 23 15:32 .
drwxr-xr-x 6 root root 4096 nov 14 14:56 ..
-rwxr-xr-x 1 root root 33887 avr 25 2002 _caduque_cupsomatic
-rwxr-xr-x 1 root root 4880 fév 17 2002 commandtocanon
-rwxr-xr-x 1 root root 5076 fév 17 2002 commandtoepson
lrwxrwxrwx 1 root root 33 nov 23 15:32 cupsomatic -> /usr/lib/cups/filter/foomatic-rip
lrwxrwxrwx 1 root root 40 nov 23 15:30 foomatic-rip -> /opt/foomatic-filters-3.0.2/foomatic-rip
-rwxr-xr-x 1 root root 39688 oct 19 15:23 hpgltops
-rwxr-xr-x 1 root root 19988 oct 19 15:23 imagetops
-rwxr-xr-x 1 root root 49064 oct 19 15:23 imagetoraster
-rwxr-xr-x 1 root root 995844 oct 19 15:23 pdftops
-rwxr-xr-x 1 root root 21416 oct 19 15:23 pstops
-rwxr-xr-x 1 root root 885224 oct 19 15:23 pstoraster
-rwxr-xr-x 1 root root 5888 oct 19 15:23 rastertodymo
-rwxr-xr-x 1 root root 11936 oct 19 15:23 rastertoepson
-rwxr-xr-x 1 root root 9732 oct 19 15:23 rastertohp
-rwxr-xr-x 1 root root 18100 fév 17 2002 rastertoprinter
-rwxr-xr-x 1 root root 34184 oct 19 15:23 texttops
J'avais déja un cupsomatic !! du coup je l'ai renommé en _caduque_cupsomatic.
J'ai fait les liens comme indiqués. et maintenant j'ai :
D [23/Nov/2004:15:40:32 +0100] ReadClient() 10 GET /printers/hp3820?op=print-test-page HTTP/1.1 D [23/Nov/2004:15:40:32 +0100] CGI /usr/lib/cups/cgi-bin/printers.cgi started - PID = 1521
I [23/Nov/2004:15:40:32 +0100] Started "/usr/lib/cups/cgi-bin/printers.cgi" (pid=1521)
D [23/Nov/2004:15:40:32 +0100] SendCommand() 10 file=13
D [23/Nov/2004:15:40:32 +0100] AcceptClient() 12 from 127.0.0.1:631.
D [23/Nov/2004:15:40:32 +0100] ReadClient() 12 POST /printers/hp3820 HTTP/1.1
D [23/Nov/2004:15:40:32 +0100] print_job: request file type is application/postscript.
D [23/Nov/2004:15:40:32 +0100] check_quotas: requesting-user-name = ''
D [23/Nov/2004:15:40:32 +0100] print_job: requesting-user-name = ''
D [23/Nov/2004:15:40:32 +0100] Adding default job-sheets values "none,none"...
I [23/Nov/2004:15:40:32 +0100] Job 79 queued on 'hp3820' by ''.
D [23/Nov/2004:15:40:32 +0100] Job 79 hold_until = 0
D [23/Nov/2004:15:40:32 +0100] StartJob(79, 080abdf0)
D [23/Nov/2004:15:40:32 +0100] StartJob() id = 79, file = 0/1
D [23/Nov/2004:15:40:32 +0100] job-sheets=none,none
D [23/Nov/2004:15:40:32 +0100] banner_page = 0
D [23/Nov/2004:15:40:32 +0100] StartJob: argv = "hp3820","79","","Test Page","1","","/var/spool/cups/d00079-001"
D [23/Nov/2004:15:40:32 +0100] StartJob: envp[0]="PATH=/usr/lib/cups/filter:/bin:/usr/bin"
D [23/Nov/2004:15:40:32 +0100] StartJob: envp[1]="SOFTWARE=CUPS/1.1"
D [23/Nov/2004:15:40:32 +0100] StartJob: envp[2]="USER=root"
D [23/Nov/2004:15:40:32 +0100] StartJob: envp[3]="CHARSET=iso-8859-1"
D [23/Nov/2004:15:40:32 +0100] StartJob: envp[4]="LANG=c"
D [23/Nov/2004:15:40:32 +0100] StartJob: envp[5]="TZ=Europe/Paris"
D [23/Nov/2004:15:40:32 +0100] StartJob: envp[6]="PPD=/etc/cups/ppd/hp3820.ppd"
D [23/Nov/2004:15:40:32 +0100] StartJob: envp[7]="CUPS_SERVERROOT=/etc/cups"
D [23/Nov/2004:15:40:32 +0100] StartJob: envp[8]="RIP_MAX_CACHE=8m"
D [23/Nov/2004:15:40:32 +0100] StartJob: envp[9]="TMPDIR=/var/spool/cups/tmp"
D [23/Nov/2004:15:40:32 +0100] StartJob: envp[10]="CONTENT_TYPE=application/postscript"
D [23/Nov/2004:15:40:32 +0100] StartJob: envp[11]="DEVICE_URI=usb:/dev/usb/lp0"
D [23/Nov/2004:15:40:32 +0100] StartJob: envp[12]="PRINTER=hp3820"
D [23/Nov/2004:15:40:32 +0100] StartJob: envp[13]="CUPS_DATADIR=/usr/share/cups"
D [23/Nov/2004:15:40:32 +0100] StartJob: envp[14]="CUPS_FONTPATH=/usr/share/cups/fonts"
D [23/Nov/2004:15:40:32 +0100] StartJob: envp[15]=""
D [23/Nov/2004:15:40:32 +0100] StartJob: envp[16]=""
D [23/Nov/2004:15:40:32 +0100] StartJob: statusfds = 14, 15
D [23/Nov/2004:15:40:32 +0100] StartJob: filterfds[1] = 16, -1
D [23/Nov/2004:15:40:32 +0100] StartJob: filter = "/usr/lib/cups/filter/pstops"
D [23/Nov/2004:15:40:32 +0100] StartJob: filterfds[0] = 17, 18
D [23/Nov/2004:15:40:32 +0100] start_process("/usr/lib/cups/filter/pstops", bfff19fc, bffeceac, 16, 18, 15)
I [23/Nov/2004:15:40:32 +0100] Started filter /usr/lib/cups/filter/pstops (PID 1522) for job 79.D [23/Nov/2004:15:40:32 +0100] StartJob: filter = "/usr/lib/cups/filter/foomatic-rip"
D [23/Nov/2004:15:40:32 +0100] StartJob: filterfds[1] = 16, 19
D [23/Nov/2004:15:40:32 +0100] start_process("/usr/lib/cups/filter/foomatic-rip", bfff19fc, bffeceac, 17, 19, 15)
I [23/Nov/2004:15:40:32 +0100] Started filter /usr/lib/cups/filter/foomatic-rip (PID 1523) for job 79.
D [23/Nov/2004:15:40:32 +0100] StartJob: backend = "/usr/lib/cups/backend/usb"
D [23/Nov/2004:15:40:32 +0100] StartJob: filterfds[0] = -1, 17
D [23/Nov/2004:15:40:32 +0100] start_process("/usr/lib/cups/backend/usb", bfff19fc, bffeceac, 16, 17, 15)
I [23/Nov/2004:15:40:32 +0100] Started backend /usr/lib/cups/backend/usb (PID 1524) for job 79. D [23/Nov/2004:15:40:32 +0100] Page = 595x842; 10,36 to 585,833
D [23/Nov/2004:15:40:32 +0100] 0 %%BoundingBox: 0 0 612 792
D [23/Nov/2004:15:40:32 +0100] 0 %%Pages: 1
D [23/Nov/2004:15:40:32 +0100] 0 %%LanguageLevel: 1
D [23/Nov/2004:15:40:32 +0100] 0 %%DocumentData: Clean7Bit
D [23/Nov/2004:15:40:32 +0100] 0 %%DocumentSuppliedResources: procset testprint/1.0
D [23/Nov/2004:15:40:32 +0100] 0 %%DocumentNeededResources: font Helvetica Helvetica-Bold Times-Roman
D [23/Nov/2004:15:40:32 +0100] 0 %%Creator: Michael Sweet, Easy Software Products
D [23/Nov/2004:15:40:32 +0100] 0 %%CreationDate: May 11, 1999
D [23/Nov/2004:15:40:32 +0100] 0 %%Title: Test Page
D [23/Nov/2004:15:40:32 +0100] 0 %%EndComments
D [23/Nov/2004:15:40:32 +0100] 0 %%BeginProlog
D [23/Nov/2004:15:40:32 +0100] 0 %%BeginResource procset testprint 1.1 0
D [23/Nov/2004:15:40:32 +0100] 0 %%EndResource
D [23/Nov/2004:15:40:32 +0100] 0 %%EndProlog
D [23/Nov/2004:15:40:32 +0100] 0 %%Page: 1 1
D [23/Nov/2004:15:40:32 +0100] 0 %%Page: 1 1
D [23/Nov/2004:15:40:32 +0100] pw = 575.6, pl = 797.0
D [23/Nov/2004:15:40:32 +0100] PageLeft = 9.7, PageRight = 585.3
D [23/Nov/2004:15:40:32 +0100] PageTop = 833.0, PageBottom = 36.0
D [23/Nov/2004:15:40:32 +0100] PageWidth = 595.0, PageLength = 842.0
D [23/Nov/2004:15:40:32 +0100] perl: warning: Setting locale failed.
D [23/Nov/2004:15:40:32 +0100] perl: warning: Please check that your locale settings:
D [23/Nov/2004:15:40:32 +0100] LANGUAGE = (unset),
D [23/Nov/2004:15:40:32 +0100] LC_ALL = (unset),
D [23/Nov/2004:15:40:32 +0100] LANG = "c"
D [23/Nov/2004:15:40:32 +0100] are supported and installed on your system.
D [23/Nov/2004:15:40:32 +0100] perl: warning: Falling back to the standard locale ("C").
D [23/Nov/2004:15:40:32 +0100] CloseClient() 12
D [23/Nov/2004:15:40:33 +0100] foomatic-rip version $Revision: 3.43.2.6 $ running...
D [23/Nov/2004:15:40:33 +0100] Parsing PPD file ...
D [23/Nov/2004:15:40:33 +0100] *cupsFilter: "application/vnd.cups-postscript 0 foomatic-rip"
D [23/Nov/2004:15:40:33 +0100] Added option ColorSpace
D [23/Nov/2004:15:40:33 +0100] Added option Resolution
D [23/Nov/2004:15:40:33 +0100] Added option PageSize
D [23/Nov/2004:15:40:33 +0100] Added option PageRegion
D [23/Nov/2004:15:40:33 +0100] Added option Model
D [23/Nov/2004:15:40:33 +0100] Added option PrintoutMode
D [23/Nov/2004:15:40:33 +0100] Added option ImageableArea
D [23/Nov/2004:15:40:33 +0100] Added option PaperDimension
D [23/Nov/2004:15:40:33 +0100] Added option Duplex
D [23/Nov/2004:15:40:33 +0100] Added option Quality
D [23/Nov/2004:15:40:33 +0100] Added option Font
D [23/Nov/2004:15:40:33 +0100] D [23/Nov/2004:15:40:33 +0100] Parameter Summary
D [23/Nov/2004:15:40:33 +0100] -----------------
D [23/Nov/2004:15:40:33 +0100] D [23/Nov/2004:15:40:33 +0100] Spooler: cups
D [23/Nov/2004:15:40:33 +0100] Printer: hp3820
D [23/Nov/2004:15:40:33 +0100] PPD file: /etc/cups/ppd/hp3820.ppd
D [23/Nov/2004:15:40:33 +0100] Printer model: HP DeskJet 3820 Foomatic/hpijs (recommended)
D [23/Nov/2004:15:40:33 +0100] Job title: Test Page
D [23/Nov/2004:15:40:33 +0100] File(s) to be printed:
D [23/Nov/2004:15:40:33 +0100] <STDIN>
D [23/Nov/2004:15:40:33 +0100] D [23/Nov/2004:15:40:33 +0100] D [23/Nov/2004:15:40:33 +0100] ================================================
D [23/Nov/2004:15:40:33 +0100] D [23/Nov/2004:15:40:33 +0100] File: <STDIN>
D [23/Nov/2004:15:40:33 +0100] D [23/Nov/2004:15:40:33 +0100] ================================================
D [23/Nov/2004:15:40:33 +0100] D [23/Nov/2004:15:40:33 +0100] Reading PostScript input ...
D [23/Nov/2004:15:40:33 +0100] --> This document is DSC-conforming!
D [23/Nov/2004:15:40:33 +0100] Found: %%BeginFeature: PrintoutMode Normal
D [23/Nov/2004:15:40:33 +0100] Option: PrintoutMode=Normal --> Setting option
D [23/Nov/2004:15:40:33 +0100] Found: %% FoomaticRIPOptionSetting: PrintoutMode=Normal
D [23/Nov/2004:15:40:33 +0100] Option: PrintoutMode=Normal --> Setting option
D [23/Nov/2004:15:40:33 +0100] Found: %%BeginFeature: Quality FromPrintoutMode
D [23/Nov/2004:15:40:33 +0100] Option: Quality=FromPrintoutMode --> Setting option
D [23/Nov/2004:15:40:33 +0100] Found: %% FoomaticRIPOptionSetting: Quality=@PrintoutMode
D [23/Nov/2004:15:40:33 +0100] Option: Quality=FromPrintoutMode --> Setting option
D [23/Nov/2004:15:40:33 +0100] Found: %%BeginFeature: PageSize A4
D [23/Nov/2004:15:40:33 +0100] Option: PageSize=A4 --> Setting option
D [23/Nov/2004:15:40:33 +0100] Found: %% FoomaticRIPOptionSetting: PageSize=A4
D [23/Nov/2004:15:40:33 +0100] Option: PageSize=A4 --> Setting option
D [23/Nov/2004:15:40:33 +0100] Found: %%BeginFeature: Duplex None
D [23/Nov/2004:15:40:33 +0100] Option: Duplex=None --> Setting option
D [23/Nov/2004:15:40:33 +0100] Found: %% FoomaticRIPOptionSetting: Duplex=None
D [23/Nov/2004:15:40:33 +0100] Option: Duplex=None --> Setting option
D [23/Nov/2004:15:40:33 +0100] D [23/Nov/2004:15:40:33 +0100] -----------
D [23/Nov/2004:15:40:33 +0100] Found: %%BeginProlog
D [23/Nov/2004:15:40:33 +0100] 0 %%EOF
D [23/Nov/2004:15:40:33 +0100] Saw EOF!
D [23/Nov/2004:15:40:33 +0100] Found: %%EndProlog
D [23/Nov/2004:15:40:33 +0100] D [23/Nov/2004:15:40:33 +0100] -----------
D [23/Nov/2004:15:40:33 +0100] New page: 1 1
D [23/Nov/2004:15:40:33 +0100] "Setup" section is missing, inserting it.
D [23/Nov/2004:15:40:33 +0100] Inserting PostScript code for CUPS' page accounting
D [23/Nov/2004:15:40:33 +0100] Inserting option code into "PageSetup" section.
D [23/Nov/2004:15:40:33 +0100] No page header or page header not DSC-conforming
D [23/Nov/2004:15:40:33 +0100] Stopping search for page header options
D [23/Nov/2004:15:40:33 +0100] Found:
D [23/Nov/2004:15:40:33 +0100] pageHeight sub % Move down...
D [23/Nov/2004:15:40:33 +0100] --> Output goes directly to the renderer now.
D [23/Nov/2004:15:40:33 +0100] D [23/Nov/2004:15:40:33 +0100] D [23/Nov/2004:15:40:33 +0100] Starting renderer
D [23/Nov/2004:15:40:33 +0100] renderer PID kid4=1526
D [23/Nov/2004:15:40:33 +0100] JCL: <job data>
D [23/Nov/2004:15:40:33 +0100] D [23/Nov/2004:15:40:33 +0100] renderer command: gs -q -dBATCH -dPARANOIDSAFER -dQUIET -dNOPAUSE -sDEVICE=ijs -sIjsServer=hpijs -sDeviceManufacturer="HEWLETT-PACKARD" -sDeviceModel="DESKJET 3820" -dDEVICEWIDTHPOINTS=595 -dDEVICEHEIGHTPOINTS=842 -dDuplex=false -r300 -sIjsParams=Quality:Quality=0,Quality:ColorMode=2,Quality:MediaType=0,Quality:PenSet=2 -dIjsUseOutputFD -sOutputFile=- -
D [23/Nov/2004:15:40:33 +0100] perl: warning: Setting locale failed.
D [23/Nov/2004:15:40:33 +0100] perl: warning: Please check that your locale settings:
D [23/Nov/2004:15:40:33 +0100] LANGUAGE = (unset),
D [23/Nov/2004:15:40:33 +0100] LC_ALL = (unset),
D [23/Nov/2004:15:40:33 +0100] LANG = "c"
D [23/Nov/2004:15:40:33 +0100] are supported and installed on your system.
D [23/Nov/2004:15:40:33 +0100] perl: warning: Falling back to the standard locale ("C").
D [23/Nov/2004:15:40:33 +0100] foomatic-gswrapper: gs '-dBATCH' '-dPARANOIDSAFER' '-dQUIET' '-dNOPAUSE' '-sDEVICE=ijs' '-sIjsServer=hpijs' '-sDeviceManufacturer=HEWLETT-PACKARD' '-sDeviceModel=DESKJET 3820' '-dDEVICEWIDTHPOINTS=595' '-dDEVICEHEIGHTPOINTS=842' '-dDuplex=false' '-r300' '-sIjsParams=Quality:Quality=0,Quality:ColorMode=2,Quality:MediaType=0,Quality:PenSet=2' '-dIjsUseOutputFD' '-sOutputFile=/dev/fd/3' '/dev/fd/0' 3>&1 1>&2
D [23/Nov/2004:15:40:33 +0100] unable to set DeviceModel=DESKJET 3820
D [23/Nov/2004:15:40:33 +0100] unable to set device=-1, err=16
D [23/Nov/2004:15:40:33 +0100] **** Unable to open the initial device, quitting.
D [23/Nov/2004:15:40:33 +0100] renderer return value: 255
D [23/Nov/2004:15:40:33 +0100] renderer received signal: 255
D [23/Nov/2004:15:40:33 +0100] Process dying with "The renderer command line returned an unrecognized error code 255.", exit stat: 1
D [23/Nov/2004:15:40:33 +0100] The renderer command line returned an unrecognized error code 255.
D [23/Nov/2004:15:40:33 +0100] D [23/Nov/2004:15:40:33 +0100] Closing renderer
D [23/Nov/2004:15:40:33 +0100] KID3 exited with status 1
D [23/Nov/2004:15:40:33 +0100] Renderer exit stat: 1
E [23/Nov/2004:15:40:33 +0100] PID 1523 stopped with status 1!
D [23/Nov/2004:15:40:33 +0100] Renderer process finished
D [23/Nov/2004:15:40:33 +0100] Killing process 1525 (KID3)
D [23/Nov/2004:15:40:33 +0100] Process dying with "Error closing renderer", exit stat: 1
D [23/Nov/2004:15:40:33 +0100] Error closing renderer
D [23/Nov/2004:15:40:33 +0100] unable to read client data err=-2
D [23/Nov/2004:15:40:33 +0100] tail process done writing data to STDOUT
D [23/Nov/2004:15:40:33 +0100] KID4 finished
D [23/Nov/2004:15:40:33 +0100] UpdateJob: job 79, file 0 is complete.
D [23/Nov/2004:15:40:33 +0100] CancelJob: id = 79
D [23/Nov/2004:15:40:33 +0100] StopJob: id = 79, force = 0
D [23/Nov/2004:15:40:33 +0100] StopJob: printer state is 3
Il me semble que la ligne
D [23/Nov/2004:15:40:33 +0100] **** Unable to open the initial device, quitting.
n'est pas bonne du tout :-(
Je trouve sur google qu'apparament cela viendrait d'un hpijs pas assez recent.
je regarde le mien
hpijs -h
Hewlett-Packard Co. Inkjet Server 1.0.4
Copyright (c) 2001-2002, Hewlett-Packard Co.
Houlala.. mais apt-get me dit que c'est le plus recent dispo.
Un coup d'oeil sur http://hpinkjet.sourceforge.net/ me montre que la derniere version est la 1.7.1
je recupere la nouvelle version http://prdownloads.sourceforge.net/hpin … z?download
je vire l'ancienne apt-get remove hpijs
et j'installe la nouvelle
# cd /opt # tar -zxvf hpijs-1.7.1.tar.gz # cd /opt/hpijs-1.7.1.tar.gz # ./configure # make # make install
hpijs -h
Hewlett-Packard Co. Inkjet Server 1.7.1
Copyright (c) 2001-2004, Hewlett-Packard Co.
Voila qui est mieux
Je redemarre a nouveau
/etc/init.d/cupsys restart
Print test page
:cheesy: ALLELUIA :cheesy:
ENFIN, je vois sortir une impression, couleur en plus, de cette satanée bourrique de HP3820
Merci beaucoup pour les infos.
J'espere que mes longs messages serviront à d'autres que moi.
Sébastien
Hors ligne
J'oses demander dès a présent que les données de log et compagnie soit affichés en commentaires SVP ?
Ca permet une meilleure lisibilité dans les posts.
Comment on fait ca ? (les commentaires)
En utilisant code par exemple ? C'est ca que tu veux dire ?
J'ai le sentiment de me faire taper sur les doigts .. :shock:
Sébastien
Hors ligne
De mettre en Quote les logs, je trouve ça bien plus lisible en fait.
Je gueules pas, je suggères :cheesy: