Problème avec imprimante

12 replies [Last post]
shokin
Offline
Joined: 03/01/2013

Salut à toutes et à tous,

J'ai une imprimante Hewlett-Packard HP LaserJet Professional M1212nf MFP.

Je l'avais utilisée avec Ubuntu et Mint, mais je crois ne l'avoir jamais essayée avec Trisquel.

Quand je la branche à l'ordinateur, elle est bien détectée. Mais elle n'imprime pas :

Quand je regarde les paramètres, pour État de l'imprimante, c'est marqué :

Inactif - /usr/lib/cups/filter/hpcups failed

Il y a bien un fichier /usr/lib/cups/filter/hpcups .

Qu'en fais-je ?

Magic Banana

I am a member!

Offline
Joined: 07/24/2010

Je viens d'essayer d'"ajouter" ton imprimante (depuis l'utilitaire GNOME du même nom). En sélectionnant ton modèle, on peut lire, dans l'encart permettant le choix du pilote :

  • HP LaserJet Profesional m1212nf MFP, hpcup, requires proprietary plugin [en]
  • HP LaserJet Profesional m1212nf MFP, hpijs, requires proprietary plugin [en]

Bref, pas de solution, sauf à travailler soit pour la libération du plugin (un travail politique auprès de HP) soit pour son remplacement par une alternative libre (un travail technique).

shokin
Offline
Joined: 03/01/2013

Ah ! okay ! Il faudrait que je me procure une imprimante libre qui ne requiert pas de plugins propriétaires mais uniquement des plugins libres ?

Par exemples celles sur Think Penguin ? Bon, il y en a une laser mais elle est couleur (or j'utilise rarement la couleur donc opte plutôt pour des laser noir-blanc).

Ou y a-t-il une liste des imprimantes compatibles avec Trisquel ?

Magic Banana

I am a member!

Offline
Joined: 07/24/2010

Tu veux une imprimante HP. Pas vraiment besoin de l'acheter sur ThinkPenguin. Le processus de vérification de son fonctionnement avec Trisquel n'est pas trop compliqué : https://trisquel.info/fr/forum/h-node#comment-24649

shokin
Offline
Joined: 03/01/2013

Ah ! okay ! Chris indique une liste hplip. Celle que j'ai est donc compatible avec le driver HPLIP.

Bon, dans le gestionnaire de paquets Synaptic, je vois que j'ai hplip 3.12.2-1 ubuntu3.1+6.0trisquel4 . Et l'imprimante m1212nf (c'est une laser noir-blanc) supporte au minimum : 3.10.4 . Mais il dit :

There are multiple versions of these printers. Not all are supported by the same HPLIP version. If you order one particular model you are likely to end up with a printer that does not work with the version of the distribution you are using.

Mais il semble encourager ThinkPenguin car ils sont expérimentés dans ces questions de compatibilité.

Faudra-t-il que je participe au projet h-node pour spécifier l'imprimante m1212nf ?

Bon, imprimer chez moi n'est pas urgent. Je peux sans autres envisager chez ThinkPenguin plusieurs choses en même temps. De plus, si je vais à Londres, Twickenham n'est pas si loin (il y a des trains de Londres à Twickenham) et passer chez Gluglug par la même occasion (à Londres aussi).

Magic Banana

I am a member!

Offline
Joined: 07/24/2010

Indiquer dans h-node que ton modèle d'imprimante ne fonctionne pas pourrait en effet être utile à d'autres utilisateurs.

nmrk.n
Offline
Joined: 11/01/2013

Qu'est-ce qui se passe si tu lances :

$ sudo hp-setup

?

shokin
Offline
Joined: 03/01/2013

asfreeas@asfreeas-Aspire-E1-571:~$ sudo hp-setup
[sudo] password for asfreeas:

HP Linux Imaging and Printing System (ver. 3.12.2)
Printer/Fax Setup Utility ver. 9.0

Copyright (c) 2001-9 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: Qt/PyQt 4 initialization failed.
error: hp-setup requires GUI support (try running with --qt3). Also, try using interactive (-i) mode.
asfreeas@asfreeas-Aspire-E1-571:~$

nmrk.n
Offline
Joined: 11/01/2013

Bonjour,

Lance le avec le paramètre i et note.

sudo hp-setup -i pour voir où ça pose question.

Lance hp-check -t et donne la sortie.

Lorsque tu as essayé l'installation de l'imprimante autrement que avec hp-setup est-ce que

cups
cups-filters
hplip
cups
openprinting-ppds

etc. (en bref une ribambelle de paquets qui concernent l'impression en général et celle sous HP en particulier)

ont bien été installés ?

merci.

shokin
Offline
Joined: 03/01/2013

asfreeas@asfreeas-Aspire-E1-571:~$ sudo hp-setup -i
[sudo] password for asfreeas:

HP Linux Imaging and Printing System (ver. 3.12.2)
Printer/Fax Setup Utility ver. 9.0

Copyright (c) 2001-9 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.

(Note: Defaults for each question are maked with a '*'. Press to accept the default.)

--------------------------------
| SELECT CONNECTION (I/O) TYPE |
--------------------------------

Num Connection Description
Type
-------- ---------- ----------------------------------------------------------
0* usb Universal Serial Bus (USB)
1 net Network/Ethernet/Wireless (direct connection or JetDirect)
2 par Parallel Port (LPT:)

Enter number 0...2 for connection type (q=quit, enter=usb*) ? 0*
error: Please enter a number between 0 and 2, or "q" to quit.

Enter number 0...2 for connection type (q=quit, enter=usb*) ? 0

Using connection type: usb

error: No device selected/specified or that supports this functionality.
asfreeas@asfreeas-Aspire-E1-571:~$ hp-check -t

HP Linux Imaging and Printing System (ver. 3.12.2)
Dependency/Version Check Utility ver. 14.3

Copyright (c) 2011-14 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.

Note: hp-check can be run in three modes:
1. Compile-time check mode (-c or --compile): Use this mode before compiling the HPLIP supplied tarball (.tar.gz or .run) to determine if the proper dependencies are installed to successfully
compile HPLIP.
2. Run-time check mode (-r or --run): Use this mode to determine if a distro supplied package (.deb, .rpm, etc) or an already built HPLIP supplied tarball has the proper dependencies installed
to successfully run.
3. Both compile- and run-time check mode (-b or --both) (Default): This mode will check both of the above cases (both compile- and run-time dependencies).

Saving output in log file: hp-check.log

Initializing. Please wait...

---------------
| SYSTEM INFO |
---------------

Basic system information:
Linux asfreeas-Aspire-E1-571 3.2.0-60-generic #0trisquel1 SMP Fri Mar 7 04:19:02 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux

Distribution:
unknown 0.0

Checking Python version...
OK, version 2.7.3 installed

Checking PyQt 4.x version...
error: NOT FOUND OR FAILED TO LOAD!

Checking for CUPS...
Status: scheduler is running
warning: Version: (cups-config) Not available. Unable to determine installed version of CUPS.)
error_log is set to level: warn

Checking for dbus/python-dbus...
dbus daemon is running.
python-dbus version: 1.0.0

------------------------------------
| COMPILE AND RUNTIME DEPENDENCIES |
------------------------------------

note: To check for compile-time only dependencies, re-run hp-check with the -c parameter (ie, hp-check -c).
note: To check for run-time only dependencies, re-run hp-check with the -r parameter (ie, hp-check -r).

Checking for dependency: CUPS - Common Unix Printing System...
OK, found.

Checking for dependency: CUPS DDK - CUPS driver development kit...
warning: NOT FOUND! This is an OPTIONAL/RUNTIME ONLY dependency. Some HPLIP functionality may not function properly.

Checking for dependency: CUPS devel- Common Unix Printing System development files...
error: NOT FOUND! This is a REQUIRED/COMPILE TIME ONLY dependency. Please make sure that this dependency is installed before installing or running HPLIP.

Checking for dependency: CUPS image - CUPS image development files...
error: NOT FOUND! This is a REQUIRED/COMPILE TIME ONLY dependency. Please make sure that this dependency is installed before installing or running HPLIP.

Checking for dependency: DBus - Message bus system...
OK, found.

Checking for dependency: gcc - GNU Project C and C++ Compiler...
OK, found.

Checking for dependency: GhostScript - PostScript and PDF language interpreter and previewer...
OK, found.

Checking for dependency: libcrypto - OpenSSL cryptographic library...
OK, found.

Checking for dependency: libjpeg - JPEG library...
error: NOT FOUND! This is a REQUIRED dependency. Please make sure that this dependency is installed before installing or running HPLIP.

Checking for dependency: libnetsnmp-devel - SNMP networking library development files...
error: NOT FOUND! This is a REQUIRED dependency. Please make sure that this dependency is installed before installing or running HPLIP.

Checking for dependency: libpthread - POSIX threads library...
OK, found.

Checking for dependency: libtool - Library building support services...
error: NOT FOUND! This is a REQUIRED/COMPILE TIME ONLY dependency. Please make sure that this dependency is installed before installing or running HPLIP.

Checking for dependency: libusb - USB library...
error: NOT FOUND! This is a REQUIRED dependency. Please make sure that this dependency is installed before installing or running HPLIP.

Checking for dependency: make - GNU make utility to maintain groups of programs...
OK, found.

Checking for dependency: PIL - Python Imaging Library (required for commandline scanning with hp-scan)...
OK, found.

Checking for dependency: PolicyKit - Administrative policy framework...
OK, found.

Checking for dependency: PyQt 4 DBus - DBus Support for PyQt4...
error: NOT FOUND! This is a REQUIRED/RUNTIME ONLY dependency. Please make sure that this dependency is installed before installing or running HPLIP.

Checking for dependency: Python DBus - Python bindings for DBus...
OK, found.

Checking for dependency: Python devel - Python development files...
OK, found.

Checking for dependency: Python libnotify - Python bindings for the libnotify Desktop notifications...
OK, found.

Checking for dependency: Python XML libraries...
OK, found.

Checking for dependency: Python 2.3 or greater - Required for fax functionality...
OK, found.

Checking for dependency: Python 2.2 or greater - Python programming language...
OK, found.

Checking for dependency: Reportlab - PDF library for Python...
OK, found.

Checking for dependency: SANE - Scanning library...
OK, found.

Checking for dependency: SANE - Scanning library development files...
error: NOT FOUND! This is a REQUIRED/COMPILE TIME ONLY dependency. Please make sure that this dependency is installed before installing or running HPLIP.

Checking for dependency: scanimage - Shell scanning program...
warning: NOT FOUND! This is an OPTIONAL/RUNTIME ONLY dependency. Some HPLIP functionality may not function properly.

Checking for dependency: xsane - Graphical scanner frontend for SANE...
warning: NOT FOUND! This is an OPTIONAL/RUNTIME ONLY dependency. Some HPLIP functionality may not function properly.

----------------------
| HPLIP INSTALLATION |
----------------------

Currently installed HPLIP version...
HPLIP 3.12.2 currently installed in '/usr/share/hplip'.

Current contents of '/etc/hp/hplip.conf' file:
# hplip.conf. Generated from hplip.conf.in by configure.

[hplip]
version=3.12.2

[dirs]
home=/usr/share/hplip
run=/var/run
ppd=/usr/share/ppd/hplip/HP
ppdbase=/usr/share/ppd/hplip
doc=/usr/share/doc/hplip-doc/HTML
icon=no
cupsbackend=/usr/lib/cups/backend
cupsfilter=/usr/lib/cups/filter
drv=/usr/share/cups/drv

# Following values are determined at configure time and cannot be changed.
[configure]
network-build=yes
pp-build=yes
gui-build=yes
scanner-build=yes
fax-build=yes
dbus-build=yes
cups11-build=no
doc-build=yes
shadow-build=no
hpijs-install=yes
foomatic-drv-install=yes
foomatic-ppd-install=yes
foomatic-rip-hplip-install=no
hpcups-install=yes
cups-drv-install=yes
cups-ppd-install=no
internal-tag=3.12.2
restricted-build=no
ui-toolkit=qt4
qt3=no
qt4=yes
policy-kit=yes
hpijs-only-build=no
lite-build=no
udev-acl-rules=yes
hpcups-only-build=no
hpijs-only-build=no

Current contents of '/var/lib/hp/hplip.state' file:
# hplip.state - HPLIP runtime persistent variables.

[plugin]
installed=0
eula=0

Current contents of '~/.hplip/hplip.conf' file:
[installation]
date_time = 25. 04. 14 06:13:04
version = 3.12.2

--------------------------
| DISCOVERED USB DEVICES |
--------------------------

No devices found.

---------------------------------
| INSTALLED CUPS PRINTER QUEUES |
---------------------------------

HP-LaserJet-Professional-M1212nf-MFP
------------------------------------
Type: Unknown
Device URI: usb://HP/LaserJet%20Professional%20M1212nf%20MFP?serial=000000000QJ2078SPR1a
PPD: /etc/cups/ppd/HP-LaserJet-Professional-M1212nf-MFP.ppd
PPD Description: HP LaserJet Professional m1212nf MFP, hpcups 3.12.2, requires proprietary plugin
Printer status: printer HP-LaserJet-Professional-M1212nf-MFP is idle. enabled since ven 25 avr 2014 06:10:12 CEST
warning: Printer is not HPLIP installed. Printers must use the hp: or hpfax: CUPS backend to function in HPLIP.

----------------------
| SANE CONFIGURATION |
----------------------

'hpaio' in '/etc/sane.d/dll.conf'...
'hpaio' in '/etc/sane.d/dll.d/hplip'...
OK, found. SANE backend 'hpaio' is properly set up.

Checking output of 'scanimage -L'...
error: scanimage not found.

---------------------
| PYTHON EXTENSIONS |
---------------------

Checking 'cupsext' CUPS extension...
OK, found.

Checking 'pcardext' Photocard extension...
OK, found.

Checking 'hpmudext' I/O extension...
OK, found.

Checking 'scanext' SANE scanning extension...
OK, found.

-----------------
| USB I/O SETUP |
-----------------

Checking for permissions of USB attached printers...

HP Device 0x52a at 002:007:
Device URI: hp:/usb/HP_LaserJet_Professional_M1212nf_MFP?serial=000000000QJ2078SPR1a

HP Linux Imaging and Printing System (ver. 3.12.2)
System Tray Status Service ver. 2.0

Copyright (c) 2001-9 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: Qt/PyQt 4 initialization failed.
error: hp-systray requires Qt4 GUI and DBus support. Exiting.
warning: Unable to connect to dbus. Is hp-systray running?
error: Unsupported model: HP_LaserJet_Professional_M1212nf_MFP

---------------
| USER GROUPS |
---------------

asfreeas adm dialout cdrom sudo dip plugdev lpadmin sambashare

error: User needs to be member of group 'lp' to enable print, scan & fax.
User member of group 'lpadmin'.

-----------
| SUMMARY |
-----------

error: 13 errors and/or warnings.

Please refer to the installation instructions at:
http://hplip.sourceforge.net/install/index.html

Done.
asfreeas@asfreeas-Aspire-E1-571:~$

nmrk.n
Offline
Joined: 11/01/2013

Une petite remarque :

Lorsqu'il y a beaucoup de lignes il est préférable de les copier dans un fichier et de joindre celui-ci en cliquant sur "Fichiers attachés" en bas à gauche de la fenêtre d'édition des messages, en l'occurrence avec l'extension txt. Tu peux modifier ton message ci-dessus.

Il y a des fichiers qui te manquent et qui peuvent être indispensables ce qui m'étonne vu que les paquetages sont dans les dépôts et qu'ils ont été installés pour ma HP.

Pour ma part j'ai :

"error: 15 errors and/or warnings."

et tout fonctionne (multifonctions) sauf peut-être le fax que je n'ai pas essayé.

Est-ce que l'imprimante était branchée quand tu as lancé hp-setup ?

Lors de certaines installations il faut d'abord lancer l'installation et ensuite attendre que les paquets nécessaires soient installés et ne brancher que lorsque le programme le demande.

Est-ce que python-qt4-dbus est installé ?

Est-ce que tu lances hp-setup dans une console graphique ?

" error: No device selected/specified or that supports this functionality. "

C'est bizarre ! ?

merci.

Un fichier attaché. Les erreurs de ton hp-setup.

AttachmentSize
hp-setup_shokin_erreurs.txt 6.86 KB
nmrk.n
Offline
Joined: 11/01/2013

Bonjour,

Vu que certains messages semblent faire référence à la nécessité de code non libre pour ton imprimante tu devrais peut-être interroger directement HP par courriel pour en avoir le cœur net.

Peut-être qu'une solution existe que l'on ne comprend pas.

Tu peux essayer l'adresse ci-dessous ou le lien contact sur leur site.

boutique-hpfrance at hp.com

http://www8.hp.com/fr/fr/support.html

Personnellement je les avait interrogés avant d'acheter la HP OfficeJet 6500A Plus qui m'a été conseillée par un mec très sympa (peut-être un coup de chance), elle ressemble extérieurement à la tienne, elle fonctionne sous Trisquel (wifi en l'occurence).

La seule chose que j'ai eu à faire dans hp-setup c'est de rentrer son adresse ip locale wifi.

merci.

nmrk.n
Offline
Joined: 11/01/2013

Essaye en connectant ton imprimante en réseau plutôt qu'en usb.