C6180 colors off

Asked by tony gomes

Printer prints psycodelic colors even on the test page. Prints fine from the windows computers on the network.
HPLIP version 3.11.1

PCLinuxOS

Question information

Language:
English Edit question
Status:
Answered
For:
HPLIP Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
goutam kodu (goutam-hplip) said :
#1

Hi,

Please can you post us the output of hp-check -t command.

Thanks,
Goutam Kodu

Revision history for this message
tony gomes (tgomes) said :
#2

p-check[1271]: info: :
Initializing. Please wait...
PCLinuxOS

2010

scheduler is running

Linux localhost.localdomain 2.6.33.5-pclos1.bfs #1 SMP PREEMPT Sun May 30 02:37:14 CDT 2010 i686 i686 i386 GNU/Linux

hp-check[1271]: info: :
hp-check[1271]: info: :---------------
hp-check[1271]: info: :| SYSTEM INFO |
hp-check[1271]: info: :---------------
hp-check[1271]: info: :
hp-check[1271]: info: :Basic system information:
hp-check[1271]: info: :Linux localhost.localdomain 2.6.33.5-pclos1.bfs #1 SMP PREEMPT Sun May 30 02:37:14 CDT 2010 i686 i686 i386 GNU/Linux
hp-check[1271]: info: :
hp-check[1271]: info: :Distribution:
hp-check[1271]: info: :pclinuxos 2010
hp-check[1271]: info: :
hp-check[1271]: info: :Checking Python version...
hp-check[1271]: info: :OK, version 2.6.6 installed
hp-check[1271]: info: :
hp-check[1271]: info: :Checking PyQt 4.x version...
hp-check[1271]: info: :OK, version 4.8.2 installed.
hp-check[1271]: info: :
hp-check[1271]: info: :Checking for CUPS...
hp-check[1271]: info: :Status: scheduler is running
warning: Version: (cups-config) Not available. Unable to determine installed version of CUPS.)
warning: /etc/cups/cupsd.conf file not found or not accessible.
hp-check[1271]: info: :
hp-check[1271]: info: :Checking for dbus/python-dbus...
hp-check[1271]: info: :dbus daemon is running.
hp-check[1271]: info: :python-dbus version: 0.83.2
hp-check[1271]: info: :
hp-check[1271]: info: :
hp-check[1271]: info: :------------------------------------
hp-check[1271]: info: :| COMPILE AND RUNTIME DEPENDENCIES |
hp-check[1271]: info: :------------------------------------
hp-check[1271]: info: :
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).
hp-check[1271]: info: :
hp-check[1271]: info: :Checking for dependency: CUPS - Common Unix Printing System...
hp-check[1271]: info: :OK, found.
hp-check[1271]: info: :
hp-check[1271]: info: :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.
hp-check[1271]: info: :
hp-check[1271]: info: :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.
hp-check[1271]: info: :
hp-check[1271]: info: :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.
hp-check[1271]: info: :
hp-check[1271]: info: :Checking for dependency: DBus - Message bus system...
hp-check[1271]: info: :OK, found.
hp-check[1271]: info: :
hp-check[1271]: info: :Checking for dependency: gcc - GNU Project C and C++ Compiler...
error: NOT FOUND! This is a REQUIRED/COMPILE TIME ONLY dependency. Please make sure that this dependency is installed before installing or running HPLIP.
hp-check[1271]: info: :
hp-check[1271]: info: :Checking for dependency: GhostScript - PostScript and PDF language interpreter and previewer...
hp-check[1271]: info: :OK, found.
hp-check[1271]: info: :
hp-check[1271]: info: :Checking for dependency: libcrypto - OpenSSL cryptographic library...
hp-check[1271]: info: :OK, found.
hp-check[1271]: info: :
hp-check[1271]: info: :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.
hp-check[1271]: info: :
hp-check[1271]: info: :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.
hp-check[1271]: info: :
hp-check[1271]: info: :Checking for dependency: libpthread - POSIX threads library...
hp-check[1271]: info: :OK, found.
hp-check[1271]: info: :
hp-check[1271]: info: :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.
hp-check[1271]: info: :
hp-check[1271]: info: :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.
hp-check[1271]: info: :
hp-check[1271]: info: :Checking for dependency: make - GNU make utility to maintain groups of programs...
hp-check[1271]: info: :OK, found.
hp-check[1271]: info: :
hp-check[1271]: info: :Checking for dependency: PIL - Python Imaging Library (required for commandline scanning with hp-scan)...
hp-check[1271]: info: :OK, found.
hp-check[1271]: info: :
hp-check[1271]: info: :Checking for dependency: PolicyKit - Administrative policy framework...
hp-check[1271]: info: :OK, found.
hp-check[1271]: info: :
hp-check[1271]: info: :Checking for dependency: PyQt 4 DBus - DBus Support for PyQt4...
hp-check[1271]: info: :OK, found.
hp-check[1271]: info: :
hp-check[1271]: info: :Checking for dependency: Python DBus - Python bindings for DBus...
hp-check[1271]: info: :OK, found.
hp-check[1271]: info: :
hp-check[1271]: info: :Checking for dependency: Python devel - Python 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.
hp-check[1271]: info: :
hp-check[1271]: info: :Checking for dependency: Python libnotify - Python bindings for the libnotify Desktop notifications...
warning: NOT FOUND! This is an OPTIONAL/RUNTIME ONLY dependency. Some HPLIP functionality may not function properly.
hp-check[1271]: info: :
hp-check[1271]: info: :Checking for dependency: Python XML libraries...
hp-check[1271]: info: :OK, found.
hp-check[1271]: info: :
hp-check[1271]: info: :Checking for dependency: Python 2.3 or greater - Required for fax functionality...
hp-check[1271]: info: :OK, found.
hp-check[1271]: info: :
hp-check[1271]: info: :Checking for dependency: Python 2.2 or greater - Python programming language...
hp-check[1271]: info: :OK, found.
hp-check[1271]: info: :
hp-check[1271]: info: :Checking for dependency: Reportlab - PDF library for Python...
hp-check[1271]: info: :OK, found.
hp-check[1271]: info: :
hp-check[1271]: info: :Checking for dependency: SANE - Scanning library...
hp-check[1271]: info: :OK, found.
hp-check[1271]: info: :
hp-check[1271]: info: :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.
hp-check[1271]: info: :
hp-check[1271]: info: :Checking for dependency: scanimage - Shell scanning program...
hp-check[1271]: info: :OK, found.
hp-check[1271]: info: :
hp-check[1271]: info: :Checking for dependency: xsane - Graphical scanner frontend for SANE...
hp-check[1271]: info: :OK, found.
hp-check[1271]: info: :
hp-check[1271]: info: :
hp-check[1271]: info: :----------------------
hp-check[1271]: info: :| HPLIP INSTALLATION |
hp-check[1271]: info: :----------------------
hp-check[1271]: info: :
hp-check[1271]: info: :
hp-check[1271]: info: :Currently installed HPLIP version...
hp-check[1271]: info: :HPLIP 3.11.1 currently installed in '/usr/share/hplip'.
hp-check[1271]: info: :
hp-check[1271]: info: :Current contents of '/etc/hp/hplip.conf' file:
hp-check[1271]: info: :# hplip.conf. Generated from hplip.conf.in by configure.

[hplip]
version=3.11.1

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

# 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=no
foomatic-ppd-install=no
foomatic-rip-hplip-install=no
hpcups-install=yes
cups-drv-install=yes
cups-ppd-install=yes
internal-tag=3.11.1.19
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

hp-check[1271]: info: :
hp-check[1271]: info: :Current contents of '/var/lib/hp/hplip.state' file:
hp-check[1271]: info: :# hplip.state - HPLIP runtime persistent variables.

[plugin]
installed=0
eula=0

hp-check[1271]: info: :
hp-check[1271]: info: :Current contents of '~/.hplip/hplip.conf' file:
hp-check[1271]: info: :[last_used]
printer_name = Photosmart_C6100_2
working_dir = .
device_uri = "hp:/net/Photosmart_C6100_series?zc=HP9414FA"

[commands]
scan = /usr/bin/xsane -V %SANE_URI%

[installation]
date_time = 05/02/11 13:04:29
version = 3.11.1.19

[settings]
systray_messages = 0
systray_visible = 0

[fax]
email_address =
voice_phone =

[refresh]
rate = 30
enable = false
type = 1

[polling]
enable = false
device_list =
interval = 5

hp-check[1271]: info: :
hp-check[1271]: info: :--------------------------
hp-check[1271]: info: :| DISCOVERED USB DEVICES |
hp-check[1271]: info: :--------------------------
hp-check[1271]: info: :
hp-check[1271]: info: :No devices found.
hp-check[1271]: info: :
hp-check[1271]: info: :---------------------------------
hp-check[1271]: info: :| INSTALLED CUPS PRINTER QUEUES |
hp-check[1271]: info: :---------------------------------
hp-check[1271]: info: :
hp-check[1271]: info: :
hp-check[1271]: info: :Photosmart_C6100
hp-check[1271]: info: :----------------
hp-check[1271]: info: :Type: Printer
hp-check[1271]: info: :Device URI: hp:/net/Photosmart_C6100_series?zc=HP9414FA
hp-check[1271]: info: :PPD: /etc/cups/ppd/Photosmart_C6100.ppd
hp-check[1271]: info: :PPD Description: HP Photosmart c6100 Series, hpcups 3.10.9
hp-check[1271]: info: :Printer status: printer Photosmart_C6100 is idle. enabled since Sun 01 May 2011 07:23:51 AM EDT
hp-check[1271]: info: :Communication status: Good
hp-check[1271]: info: :
hp-check[1271]: info: :Photosmart_C6100_2
hp-check[1271]: info: :------------------
hp-check[1271]: info: :Type: Printer
hp-check[1271]: info: :Device URI: hp:/net/Photosmart_C6100_series?zc=HP9414FA
hp-check[1271]: info: :PPD: /etc/cups/ppd/Photosmart_C6100_2.ppd
hp-check[1271]: info: :PPD Description: HP Photosmart c6100 Series, hpcups 3.11.1
hp-check[1271]: info: :Printer status: printer Photosmart_C6100_2 is idle. enabled since Sun 01 May 2011 07:35:00 AM EDT
 ready to print
hp-check[1271]: info: :Communication status: Good
hp-check[1271]: info: :
hp-check[1271]: info: :Photosmart_C6100_fax
hp-check[1271]: info: :--------------------
hp-check[1271]: info: :Type: Fax
hp-check[1271]: info: :Device URI: hpfax:/net/Photosmart_C6100_series?zc=HP9414FA
hp-check[1271]: info: :PPD: /etc/cups/ppd/Photosmart_C6100_fax.ppd
hp-check[1271]: info: :PPD Description: HP Fax hpcups
hp-check[1271]: info: :Printer status: printer Photosmart_C6100_fax now printing Photosmart_C6100_fax-44. enabled since Sun 01 May 2011 09:41:11 AM EDT
 Rendering completed
hp-check[1271]: info: :Communication status: Good
hp-check[1271]: info: :
hp-check[1271]: info: :Photosmart_C6100_fax_2
hp-check[1271]: info: :----------------------
hp-check[1271]: info: :Type: Fax
hp-check[1271]: info: :Device URI: hpfax:/net/Photosmart_C6100_series?zc=HP9414FA
hp-check[1271]: info: :PPD: /etc/cups/ppd/Photosmart_C6100_fax_2.ppd
hp-check[1271]: info: :PPD Description: HP Fax hpcups
hp-check[1271]: info: :Printer status: printer Photosmart_C6100_fax_2 is idle. enabled since Sun 01 May 2011 07:32:21 AM EDT
hp-check[1271]: info: :Communication status: Good
hp-check[1271]: info: :
hp-check[1271]: info: :
hp-check[1271]: info: :----------------------
hp-check[1271]: info: :| SANE CONFIGURATION |
hp-check[1271]: info: :----------------------
hp-check[1271]: info: :
hp-check[1271]: info: :'hpaio' in '/etc/sane.d/dll.conf'...
hp-check[1271]: info: :OK, found. SANE backend 'hpaio' is properly set up.
hp-check[1271]: info: :
hp-check[1271]: info: :Checking output of 'scanimage -L'...
hp-check[1271]: info: :device `hpaio:/net/Photosmart_C6100_series?zc=HP9414FA' is a Hewlett-Packard Photosmart_C6100_series all-in-one

hp-check[1271]: info: :
hp-check[1271]: info: :---------------------
hp-check[1271]: info: :| PYTHON EXTENSIONS |
hp-check[1271]: info: :---------------------
hp-check[1271]: info: :
hp-check[1271]: info: :Checking 'cupsext' CUPS extension...
hp-check[1271]: info: :OK, found.
hp-check[1271]: info: :
hp-check[1271]: info: :Checking 'pcardext' Photocard extension...
hp-check[1271]: info: :OK, found.
hp-check[1271]: info: :
hp-check[1271]: info: :Checking 'hpmudext' I/O extension...
hp-check[1271]: info: :OK, found.
hp-check[1271]: info: :
hp-check[1271]: info: :Checking 'scanext' SANE scanning extension...
hp-check[1271]: info: :OK, found.
hp-check[1271]: info: :
hp-check[1271]: info: :
hp-check[1271]: info: :
hp-check[1271]: info: :---------------
hp-check[1271]: info: :| USER GROUPS |
hp-check[1271]: info: :---------------
hp-check[1271]: info: :
hp-check[1271]: info: :tony lp floppy cdrom cdwriter audio video dialout users lpadmin polkituser fuse

hp-check[1271]: info: :
hp-check[1271]: info: :-----------
hp-check[1271]: info: :| SUMMARY |
hp-check[1271]: info: :-----------
hp-check[1271]: info: :
error: 11 errors and/or warnings.
hp-check[1271]: info: :
hp-check[1271]: info: :Please refer to the installation instructions at:
hp-check[1271]: info: :http://hplip.sourceforge.net/install/index.html

hp-check[1271]: info: :
hp-check[1271]: info: :Done.

Revision history for this message
tony gomes (tgomes) said :
#3

I also checked hp-check -t on the second linux machine on my network. It has the same printing issue and the output is identical.

Revision history for this message
goutam kodu (goutam-hplip) said :
#4

Hi,

Please check the ghostscript(gs) version that is installed in your system. The same you can find using
$gs --version command , if gs version is 9.00 then please install the latest ghostscript version. And apply the below patch on HPCupsFilter.cpp file in the HPLIP source directory and do make and make install.

Index: HPCupsFilter.cpp
===================================================================
--- HPCupsFilter.cpp (revision 14595)
+++ HPCupsFilter.cpp (working copy)
@@ -699,10 +699,18 @@
             if (b != 0 && b != 0xFF) {

 #ifdef __linux
- rgb[0] -= (255 - b);
- rgb[1] -= (255 - b);
- rgb[2] -= (255 - b);
-
+ // rgb[0] -= (255 - b);
+ // rgb[1] -= (255 - b);
+ // rgb[2] -= (255 - b);
+ int cr,cg,cb;
+ cr = rgb[0] - (int)(255 - b);
+ rgb[0] = cr >= 0 ? cr : 0;
+
+ cg = rgb[1] - (int)(255 - b);
+ rgb[1] = cg >= 0 ? cg : 0;
+
+ cb = rgb[2] - (int)(255 - b);
+ rgb[2] = cb >= 0 ? cb : 0;
 #else // This alternate path is for Mac....

                 rgb[0] &= b;
@@ -710,8 +718,10 @@
                 rgb[2] &= b;
 #endif
             }
            else
                kVal |= (b == 0) ? pixel_value[k] : 0;
             rgb += 3;
             if (k == 7) {
                 *black++ = kVal;

---------------------------------------------------------------------------------------------------------

Please let us know on the same.

Thanks,
Goutam Kodu

Revision history for this message
tony gomes (tgomes) said :
#5

gs version is 9.02

Not sure where to find the HPLIP source directory. It was installed with synaptic through the PClinuxOS repositories.

Any hints as to where it might live??

Thanks for your patients with this,
Tony

Revision history for this message
goutam kodu (goutam-hplip) said :
#6

Hi,

That patch was only if the distro was shipped with gs 9.00. https://bbs.archlinux.org/viewtopic.php?id=107261,say that ghostscript caused the problem. As your distro is shipped with gs 9.02 that should be fine.

Please download the latest hplip-3.11.3a tar file from http://hplipopensource.com/hplip-web/gethplip.html and install it using the instructions provided at http://hplipopensource.com/hplip-web/install/manual/distros/pclinuxos.html

Let us know if the print test page still has inverted colors on the latest hplip-3.11.3a. If yes, then apply the above patch on hplip-3.11.3a/prnt/hpcups/HPCupsFilter.cpp file and do make and make install. Let us know if it is the same even after the patch.

Thanks & Regards,
Goutam Kodu

Revision history for this message
tony gomes (tgomes) said :
#7

found 3.11.3a in the repositories this morning. Installed it that way and still the same colors.

Still looking for the file to install the patch though.

Thanks,
Tony

Revision history for this message
goutam kodu (goutam-hplip) said :
#8

Hi,

Please can you download the latest hplip tar package from http://hplipopensource.com/hplip-web/gethplip.html and follow the instructions provided at http://hplipopensource.com/hplip-web/install/manual/distros/pclinuxos.html to install it.

The hplip tar package contains the source files on extraction you can find the HPCupsFilter.cpp file in prnt/hpcups folder . Apply the patch and run "make" and su -c"make install"

Thanks,
Goutam Kodu

Revision history for this message
tony gomes (tgomes) said :
#9

Does the patch replace the original file completely or is there a specific insertion point?

Thanks,
Tony

Revision history for this message
goutam kodu (goutam-hplip) said :
#10

Hi,

Just replace the lines containing this

 rgb[0] -= (255 - b);
 rgb[1] -= (255 - b);
 rgb[2] -= (255 - b);

in function void HPCupsFilter::extractBlackPixels(cups_page_header2_t *cups_header, BYTE *kRaster, BYTE *rgbRaster) in file print/HPCupsFilter.cpp with the below lines

int cr,cg,cb;
cr = rgb[0] - (int)(255 - b);
rgb[0] = cr >= 0 ? cr : 0;
cg = rgb[1] - (int)(255 - b);
rgb[1] = cg >= 0 ? cg : 0;
cb = rgb[2] - (int)(255 - b);
rgb[2] = cb >= 0 ? cb : 0;

Thanks,
Goutam Kodu

Can you help with this problem?

Provide an answer of your own, or ask tony gomes for more information if necessary.

To post a message you must log in.