LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 02-03-2014, 08:36 AM   #1
Sefid par
Member
 
Registered: Jul 2013
Location: Iran, Shiraz
Distribution: Ubuntu
Posts: 130

Rep: Reputation: 26
Unable to print to printer. Please check device and try again.


I have HP Laserjet 1020 printer and added it by Printers - KDE Control module. It downloaded the driver.
Then I could print some papers.
After some days I tried to print with it; Notification said job completed, But nothing was printed.
I installed foo2js and tested again by adding printer from cups and choose foo2js for printer driver.
Again didn't print,
After that tested hp-setup, and got error:
Code:
error: Unable to communicate with device (code=12): hp:/usb/HP_LaserJet_1020?serial=JL00ZPV
error:  Unable to print to printer.  Please check device and try again.
Also I added my root user to 'lp' and 'sys' groups.

But again I got the same error.
How can I solve this?
 
Old 02-03-2014, 10:06 AM   #2
cwizardone
LQ Veteran
 
Registered: Feb 2007
Distribution: Slackware64-current with "True Multilib" and KDE4Town.
Posts: 9,097

Rep: Reputation: 7276Reputation: 7276Reputation: 7276Reputation: 7276Reputation: 7276Reputation: 7276Reputation: 7276Reputation: 7276Reputation: 7276Reputation: 7276Reputation: 7276
I had similar problem the other day and it wasn't until I ran the HP Device Manager that I found that, somehow, the printer had been turned "off."

You can also used
Quote:
localhost:631
in a browser to see what the settings are for your printer.
 
Old 02-03-2014, 10:17 AM   #3
qlue
Member
 
Registered: Aug 2009
Location: Umzinto, South Africa
Distribution: Crunchbangified Debian 8 (Jessie)
Posts: 747
Blog Entries: 1

Rep: Reputation: 172Reputation: 172
I've experienced similar issues with my HP LaserJet M1132 MP printer.
As near as I can figure it, the hplip software does not recognise the start-up state of a printer as an existing configuration. The printer always starts up in a 'factory fresh' state so that Windows will install and configure the printer if it isn't already installed and configured.

The Windows software automatically switches the printer to the 'ready' state, but Linux doesn't do this because it fails to recognise the printer. This happens because the printer identifies itself as a different device when you switch it on to when it's fully setup and configured.

So far, the only work-arounds that I have which seem to work are,

a) Connect printer to an always-on linux server and never turn either one off.

b) Re-install printer every time you want to use it.

c) Use Windows when you need to print something.


For me item 'a' is useless as I only print maybe once every six months. 'b' is way too much drama so I use 'c'

Note that the "driver" you download for you printer is actually the printer's firmware. It is because the print drivers are trying to communicate with firmware that has not been loaded that the printer fails to function correctly.
 
1 members found this post helpful.
Old 02-03-2014, 11:10 AM   #4
metaschima
Senior Member
 
Registered: Dec 2013
Distribution: Slackware
Posts: 1,982

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
All the aforementioned printers are listed as mostly working, or almost perfect:
http://www.openprinting.org/printer/HP/HP-LaserJet_1020
http://www.openprinting.org/printer/...onal_M1132_MFP

I also recommend using the CUPS web interface 'localhost:631' to configure printers. Never had any problems using this for any HP printer, and I have 5 different HP printers.
 
2 members found this post helpful.
Old 02-04-2014, 10:30 AM   #5
Paulo2
Member
 
Registered: Aug 2012
Distribution: Slackware64 15.0 (started with 13.37). Testing -current in a spare partition.
Posts: 928

Rep: Reputation: 515Reputation: 515Reputation: 515Reputation: 515Reputation: 515Reputation: 515
One more vote for printer off. This one I don't know how to handle
at command line, but if you have that HP icon near the clock,
go to Printer Control tab and see if printer is Started/Idle or Stopped.
If there is a cool round green plastic icon, this is not the problem.
If printer is stopped, the icon will be a yellow triangle.
(excuse me for gui description)
 
Old 02-04-2014, 02:49 PM   #6
titopoquito
Senior Member
 
Registered: Jul 2004
Location: Lower Rhine region, Germany
Distribution: Slackware64 14.2 and current, SlackwareARM current
Posts: 1,645

Rep: Reputation: 146Reputation: 146
Quote:
There's the cupsenable command.

cupsenable printer

starts a disabled printer (to find out the printername you can list your printers with lpstat -p or lpc status).
taken from http://superuser.com/questions/28039...m-command-line


As I have this problem only with a HP printer I prefer the HP tray icon to resume the printer (it gets stopped if I send a job to it and it is still switched off at that moment).
 
2 members found this post helpful.
Old 02-04-2014, 03:09 PM   #7
qlue
Member
 
Registered: Aug 2009
Location: Umzinto, South Africa
Distribution: Crunchbangified Debian 8 (Jessie)
Posts: 747
Blog Entries: 1

Rep: Reputation: 172Reputation: 172
Quote:
Originally Posted by metaschima View Post
All the aforementioned printers are listed as mostly working, or almost perfect:
http://www.openprinting.org/printer/HP/HP-LaserJet_1020
http://www.openprinting.org/printer/...onal_M1132_MFP

I also recommend using the CUPS web interface 'localhost:631' to configure printers. Never had any problems using this for any HP printer, and I have 5 different HP printers.
I decided to revisit this issue and ran hp-check from the command line. It informed me that there were unmet dependencies.

However, to fix them it required the non-existent root password.

This is what I did instead. (note, running these things as root is generally not recommended)

I logged into root using;
Code:
sudo -i
I then ran;
Code:
hp-check
When it asked to fix the problems I entered 'y' for yes.

Then it launched a gui to download and install the module for my printer.

This appears to resolve the issue for me.
It appears that when hplip was installed, some dependencies were not.
The strange part being that it ran fine the first time.

P.S: What username and password does the cups browser interface require?
 
1 members found this post helpful.
Old 02-04-2014, 03:54 PM   #8
metaschima
Senior Member
 
Registered: Dec 2013
Distribution: Slackware
Posts: 1,982

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
Quote:
Originally Posted by qlue View Post
This appears to resolve the issue for me.
It appears that when hplip was installed, some dependencies were not.
The strange part being that it ran fine the first time.

P.S: What username and password does the cups browser interface require?
The username is 'root', the password is the root password. However, I would like to find a way to let users login to it.

This is on Slackware ?

I don't even run the hp programs, I just use the CUPS interface and everything works. The only thing to make sure is that you select the printer with the serial number in the description. This is required on some HP multifunction printers, otherwise they won't scan.
 
Old 02-04-2014, 06:51 PM   #9
Paulo2
Member
 
Registered: Aug 2012
Distribution: Slackware64 15.0 (started with 13.37). Testing -current in a spare partition.
Posts: 928

Rep: Reputation: 515Reputation: 515Reputation: 515Reputation: 515Reputation: 515Reputation: 515
Quote:
Originally Posted by titopoquito View Post
taken from http://superuser.com/questions/28039...m-command-line


As I have this problem only with a HP printer I prefer the HP tray icon to resume the printer (it gets stopped if I send a job to it and it is still switched off at that moment).
Thanks it works, and as man-page says, printer name is not case sensitive.
 
Old 02-09-2014, 12:32 PM   #10
Sefid par
Member
 
Registered: Jul 2013
Location: Iran, Shiraz
Distribution: Ubuntu
Posts: 130

Original Poster
Rep: Reputation: 26
Thanks all,
I tried hp-check,
It sais:
Code:
warning:  distro is not found in AUTH_TYPES
also I tried with '-c' option.
Seems it tries to install hplip 3.13.10

It takes a while without any output!

Edit:
As I have Slackware 14.01, I have hplip 3.13.10 already installed.

Last edited by Sefid par; 02-09-2014 at 12:37 PM.
 
Old 02-09-2014, 01:34 PM   #11
tronayne
Senior Member
 
Registered: Oct 2003
Location: Northeastern Michigan, where Carhartt is a Designer Label
Distribution: Slackware 32- & 64-bit Stable
Posts: 3,541

Rep: Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065
That message about AUTH_TYPES can be ignored (it has to do with HPLIP checking for updates which you don't want to do).

I would suggest that you take the printer system back to infancy; open CUPS in a browser and delete any existing printer entries for that printer (you don't configure an H-P printer in CUPS, that is done for you by hp-setup).

If your printer is a combination printer/scanner, make sure that your user account (and any user accounts that use the printer or scanner) are in the lp and scanner groups.

Open a terminal window and execute hp-setup. You will, as you've discovered, need the root password (userid and password are case-sensitive; it's root and whatever password).

As you step through hp-setup, you'll identify the connection (USB? Ethernet?) and hp-setup will find the printer and identify the printer for you. You want to add a short name for the printer, say, laserjet or something similar (you'll use that name for printing with the command line, for example).

I have an H-P Business Inkjet 2280tn that is connected via Ethernet and an H-P Photosmart C4680 connected via USB both were added with hp-setup and have worked just fine through a number of upgrades to hp-setup; it'll work if you let it, eh?

Take the recommended settings (they typically work fine); hp-setup "knows" the proper pre- and post processing settings for every printer (and other devices) H-P makes, trust it to make the best choice.

HPLIP has been included with Slackware for some years and it kept up-to-date when H-P releases a new version (as you noted, the current version in 14.1 is 3.13.10).

The one last step (and really the only thing you want to do with CUPS is open a browser and go to http://localhost:631. Click on the printer name (that you added; e.g., laserjet, then click on Administration and Set as Server Default. That way, you can simply
Code:
man -t ls | lp
and get a pretty-print manual page without having to define the printer name to lp.

Hope this helps some.
 
1 members found this post helpful.
Old 02-09-2014, 02:10 PM   #12
Sefid par
Member
 
Registered: Jul 2013
Location: Iran, Shiraz
Distribution: Ubuntu
Posts: 130

Original Poster
Rep: Reputation: 26
@tronayne:
Your solution worked fine.
After a week, Now I can print

Of course as glue says, I choose option b and reinstall printer every time I need it.

Last edited by Sefid par; 02-14-2014 at 02:08 AM.
 
  


Reply

Tags
printer installation



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Lexmark 9300 printer - ubuntu 10.4 - unable to print rjakes Linux - Hardware 2 07-23-2010 07:06 AM
Unable to print to shared printer... jim_naisium Slackware 1 07-26-2007 08:50 PM
Unable to print if using lp and sending printer control codes andyfosl Linux - Enterprise 0 01-31-2006 04:57 AM
Unable to print to a Windows SMB printer from Linux jomy Linux - Networking 3 02-22-2005 07:47 AM
Unable to print to Samba printer from WinXP TSloth Linux - Networking 3 02-06-2005 05:13 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 08:50 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration