WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Configure Hp Officejet 4500 and HPLIP (solved)  (Read 14735 times)

Offline vinnie

  • Hero Member
  • *****
  • Posts: 1187
  • HandMace informatic works
Configure Hp Officejet 4500 and HPLIP (solved)
« on: December 24, 2011, 04:19:21 PM »
I bought this printer because it should be perfectly compatible with linux but I can not configure.
The package hplip description say:
Quote
howto:
                open http://localhost:631 in a browser
                click on "add printer" button and follow instructions
                choose a driver of the form "HP Officejet k80, hpcups 3.10.6 (color)"
                corresponding to a uri of the form..
                "hp:/usb/OfficeJet_K80?serial=ES0911401VOH"
                ..this should already be shown
                click on "print testpage" button to test
But it is unclear.

My road:
1)install hplip
2) launch cups (sudo /usr/local/etc/init.d/cups start)
3)http://localhost:631
  4)Click on "Adding Printers and Classes"
  5)Click on "add printer" request a user and password, I had to use "sudo passwd" to create the root password and access
  6) this is list showed list
Quote
Local Printers:    SCSI Printer
HP Officejet 4500 G510g-m (HP Officejet 4500 G510g-m)
HP Officejet 4500 G510g-m USB CN1A9G31YZ05CQ HPLIP (HP Officejet 4500 G510g-m)
Officejet 4500 G510g-m USB CN1A9G31YZ05CQ HP Fax HPLIP (HP Fax)
Discovered Network Printers:    
Other Network Printers:    AppSocket/HP JetDirect
Internet Printing Protocol (ipp)
Internet Printing Protocol (http)
LPD/LPR Host or Printer
i click on third voice "HP Officejet 4500 G510g-m USB CN1A9G31YZ05CQ HPLIP (HP Officejet 4500 G510g-m)" and continue, and again continue on next page
  7) i select firt autofinded voice "HP Officejet 4500 g510g-m, hpcups 3.11.5 (en)" and press "add printer"
  8)Set default option of print
  9)Select "Print text page", an item appears in the list immediately after select this item, but no printing is done.

Help me?
« Last Edit: December 25, 2011, 08:23:44 AM by vinnie »

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14817
Re: Configure Hp Officejet 4500 and HPLIP
« Reply #1 on: December 25, 2011, 12:43:30 AM »
Do you have ghostscript and ghostscript_common loaded?

What does the cups error log say (/var/log/cups/error_log)?

Offline vinnie

  • Hero Member
  • *****
  • Posts: 1187
  • HandMace informatic works
Re: Configure Hp Officejet 4500 and HPLIP
« Reply #2 on: December 25, 2011, 06:33:38 AM »
For ghostscript, yep, is a dependency of hplip.
For Errors:
Paste of html page: http://pastehtml.com/view/bihojeef7.html
error_log: http://pastebin.com/w2P4h7E8
and for completeness access_log http://pastebin.com/Z1krkbKY

Thanks Juan

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14817
Re: Configure Hp Officejet 4500 and HPLIP
« Reply #3 on: December 25, 2011, 06:58:36 AM »
I didn't see this error before:
Quote
"no profiles specified in PPD"

Can you confirm ghostscript AND ghostscript_common are installed?

Maybe you could change "LogLevel warn" to "LogLevel debug" in /usr/local/etc/cups/cupsd.conf, restart cups, try again and post the contents of error_log.

Offline vinnie

  • Hero Member
  • *****
  • Posts: 1187
  • HandMace informatic works
Re: Configure Hp Officejet 4500 and HPLIP
« Reply #4 on: December 25, 2011, 08:23:22 AM »
I'm sorry juan, seeing that ghostscript was a dependency of hplip I had not realized that ghostscript it was not.
Now work! :) very thank juan, I'll try scanning in the future, for now I just want to print  :P

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14817
Re: Configure Hp Officejet 4500 and HPLIP
« Reply #5 on: December 25, 2011, 08:40:06 AM »
I'll try scanning in the future

For future reference, it works fine for me with hplip_sane-2.7 and xsane - sane-backends should not be needed with hplip

Offline vinnie

  • Hero Member
  • *****
  • Posts: 1187
  • HandMace informatic works
Re: Configure Hp Officejet 4500 and HPLIP (solved)
« Reply #6 on: December 25, 2011, 10:21:07 AM »
Xsane work fine  ;D

Offline vinnie

  • Hero Member
  • *****
  • Posts: 1187
  • HandMace informatic works
Re: Configure Hp Officejet 4500 and HPLIP (solved)
« Reply #7 on: December 25, 2011, 11:09:19 AM »
Uhm, I sang victory too soon, I have a strange problem.
I can only print in black and white, even though I tell to print in color, instead if using the printer as a copier does not have this problem

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14817
Re: Configure Hp Officejet 4500 and HPLIP (solved)
« Reply #8 on: December 25, 2011, 12:36:47 PM »
It's maybe fixable using the cups browser interface - administration -> set default options

Otherwise perhaps a bug?

Offline vinnie

  • Hero Member
  • *****
  • Posts: 1187
  • HandMace informatic works
Re: Configure Hp Officejet 4500 and HPLIP (solved)
« Reply #9 on: December 25, 2011, 01:28:33 PM »
i don't have "set default options" in amministration bun in page of printer (like previous html paste), in drop-down menu.
But the setting the setting is configured to work in color.
I hope this is not a bug, but for now I just need the black.
You think it is problem of cups, ghostscript or hplip?

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14817
Re: Configure Hp Officejet 4500 and HPLIP (solved)
« Reply #10 on: December 26, 2011, 02:20:53 AM »
You think it is problem of cups, ghostscript or hplip?

If you've confirmed that the printer is indeed set to print in colour in the cups browser interface, then I would recommend checking the hplip bug listing first.

Offline vinnie

  • Hero Member
  • *****
  • Posts: 1187
  • HandMace informatic works
Re: Configure Hp Officejet 4500 and HPLIP (solved)
« Reply #11 on: December 26, 2011, 08:47:42 AM »
I open a bug https://bugs.launchpad.net/hplip/+bug/908740 but I do not think that I will receive  response (looking at the rate of response).
In the meantime I tried to compile newest hplip and I did with the dependencies in the repository.
I use this configure command:
Code: [Select]
./configure --prefix=/usr/local --with-
cupsbackenddir=/usr/local/lib/cups/backend --with-icondir=/usr/local/share/appli
cations --with-cupsfilterdir=/usr/local/lib/cups/filter --disable-network-build
After make install and run hp-setup -i (qt gui not work) and copy the libhpmud libraries in /usr/lib/ (strangely otherwise not found) the software can configure the printer but does not print.
Code: [Select]
hp-testpage -i
warning: python-dbus not installed.

HP Linux Imaging and Printing System (ver. 3.11.12)
Testpage Print Utility ver. 6.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.

Using printer: Officejet_4500_G510g-m

Printing test page to printer Officejet_4500_G510g-m...
lpr: Unsupported format 'application/postscript'!
error: Print command failed with exit code 256!
Test page has been sent to printer.

note: If an error occured, or the test page failed to print, refer to the HPLIP website
note: at: http://hplip.sourceforge.net for troubleshooting and support.


Done.

you use to compile scripts? I would like to try some new versinoe of hplip

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14817
Re: Configure Hp Officejet 4500 and HPLIP (solved)
« Reply #12 on: December 26, 2011, 09:49:59 AM »
I also see a problem in that I can only print in greyscale from the printer server - since I have not changed printer nor cups/hplip recently, this would tend to indicate a problem with ghostscript which was updated recently.

Looking at these two bugs, there could well be an issue with ghostscript

http://bugs.ghostscript.com/show_bug.cgi?id=692750
http://bugs.ghostscript.com/show_bug.cgi?id=692441

Edit: client machines using local windows drivers can print in colour...
« Last Edit: December 26, 2011, 10:06:02 AM by Juanito »

Offline vinnie

  • Hero Member
  • *****
  • Posts: 1187
  • HandMace informatic works
Re: Configure Hp Officejet 4500 and HPLIP (solved)
« Reply #13 on: December 26, 2011, 10:49:46 AM »
juan, is possible to exhume the old gs 9.0 from the repository in any way? repositories are stored the old packages?

P.s. i download previous version with 3.0 repo from http://distro.ibiblio.org/tinycorelinux/3.x/tcz/
I will try and I'll let you know
« Last Edit: December 26, 2011, 11:17:06 AM by vinnie »

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14817
Re: Configure Hp Officejet 4500 and HPLIP (solved)
« Reply #14 on: December 26, 2011, 01:08:30 PM »
We could do that, but other users had problems printing pdf files using ghostcript-9.00, so it's a kind of a toss-up between printing in greyscale or not printing at all.

I'll try to do some more testing first..