You are not logged in.

#1 2010-09-28 20:42:11

jboons
Member
Registered: 2010-09-25
Posts: 37

[Solved] Can't recognize my printer

I have a USB HP Deskjet 460 printer. I'm trying to get Arch to recognize it but I can't seem to do it. I followed all of the instructions on the CUPS ArchWiki to no avail. Anything you know to help me?

Last edited by jboons (2010-10-05 01:03:15)

Offline

#2 2010-09-28 20:48:38

lilsirecho
Veteran
Registered: 2003-10-24
Posts: 5,000

Re: [Solved] Can't recognize my printer

Perhaps google the printer model and get a suitable driver for linux...............


Prediction...This year will be a very odd year!
Hard work does not kill people but why risk it: Charlie Mccarthy
A man is not complete until he is married..then..he is finished.
When ALL is lost, what can be found? Even bytes get lonely for a little bit!     X-ray confirms Iam spineless!

Offline

#3 2010-09-28 20:53:23

jboons
Member
Registered: 2010-09-25
Posts: 37

Re: [Solved] Can't recognize my printer

lilsirecho wrote:

Perhaps google the printer model and get a suitable driver for linux...............

Like I said, I followed the CUPS ArchWiki, and obviously one of the steps would be to find and download a driver. I downloaded hplip.

Offline

#4 2010-09-28 21:24:04

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,062

Re: [Solved] Can't recognize my printer

Okay, So I assume you are using hplip?
What happened with blacklisting/not blacklisting usblp?

What does it say when you plug in the USB cable and the look at the last couple dozen lines of dmesg?


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

#5 2010-09-28 22:09:09

jboons
Member
Registered: 2010-09-25
Posts: 37

Re: [Solved] Can't recognize my printer

It wouldn't work with or without usblp blacklisted.

This is my dmesg without usblp blacklisted:

# dmesg
...
Adding 976508k swap on /dev/sda6.  Priority:-1 extents:1 across:976508k 
scsi 6:0:0:0: Direct-Access     HP       Deskjet 460      1.00 PQ: 0 ANSI: 2
sd 6:0:0:0: Attached scsi generic sg2 type 0
sd 6:0:0:0: [sdb] Attached SCSI removable disk
r8169 0000:06:00.0: eth0: link down
NET: Registered protocol family 10
lo: Disabled Privacy Extensions
ADDRCONF(NETDEV_UP): eth0: link is not ready
ADDRCONF(NETDEV_UP): wlan0: link is not ready
CE: hpet increased min_delta_ns to 7500 nsec
CE: hpet increased min_delta_ns to 11250 nsec
CE: hpet increased min_delta_ns to 16875 nsec
ADDRCONF(NETDEV_UP): wlan0: link is not ready
r8169 0000:06:00.0: eth0: link down
ADDRCONF(NETDEV_UP): eth0: link is not ready
ADDRCONF(NETDEV_UP): wlan0: link is not ready
wlan0: direct probe to 00:24:6c:bf:ee:20 (try 1)
wlan0: direct probe to 00:24:6c:bf:ee:20 (try 1)
wlan0: direct probe to 00:24:6c:c0:09:71 (try 1)
wlan0: direct probe to 00:24:6c:c0:09:71 (try 2)
wlan0: direct probe responded
wlan0: authenticate with 00:24:6c:c0:09:71 (try 1)
wlan0: authenticated
wlan0: associate with 00:24:6c:c0:09:71 (try 1)
wlan0: associate with 00:24:6c:c0:09:71 (try 2)
wlan0: RX AssocResp from 00:24:6c:c0:09:71 (capab=0x401 status=0 aid=1)
wlan0: associated
ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
fuse init (API version 7.14)
wlan0: no IPv6 routers present
usb 7-2: USB disconnect, address 2
usblp0: removed
usb 7-2: new full speed USB device using uhci_hcd and address 3
usblp0: USB Bidirectional printer dev 3 if 0 alt 0 proto 2 vid 0x03F0 pid 0x1312
scsi7 : usb-storage 7-2:1.1
scsi 7:0:0:0: Direct-Access     HP       Deskjet 460      1.00 PQ: 0 ANSI: 2
sd 7:0:0:0: Attached scsi generic sg2 type 0
sd 7:0:0:0: [sdb] Attached SCSI removable disk
usb 7-2: USB disconnect, address 3
usblp0: removed
usb 7-2: new full speed USB device using uhci_hcd and address 4
usblp0: USB Bidirectional printer dev 4 if 0 alt 0 proto 2 vid 0x03F0 pid 0x1312
scsi8 : usb-storage 7-2:1.1
scsi 8:0:0:0: Direct-Access     HP       Deskjet 460      1.00 PQ: 0 ANSI: 2
sd 8:0:0:0: Attached scsi generic sg2 type 0
sd 8:0:0:0: [sdb] Attached SCSI removable disk

Nothing about a printer shows up with usblp blacklisted.

Last edited by jboons (2010-09-28 22:14:13)

Offline

#6 2010-09-28 22:24:39

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,062

Re: [Solved] Can't recognize my printer

Okay, that looks promising.  What happens when you run hp-setup?   (BTW.. it needs Xorg)


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

#7 2010-09-28 23:21:50

jboons
Member
Registered: 2010-09-25
Posts: 37

Re: [Solved] Can't recognize my printer

[root@lappy ~]# hp-setup
+ hp-setup

HP Linux Imaging and Printing System (ver. 3.10.6)
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.

I have Xorg up to date.

Edit #1: I went and installed pyqt4, working on it now... Will update when I've solved it. Or if I need more help. tongue

Edit #2: Weird, it doesn't recognize a ppd for my printer. I can manually select one, but then when I continue it errs and crashes. I checked "Print Test Page" though, and something printed. Very strange.

Here's my error log:

[root@lappy ~]# tail -f /var/log/cups/error_log
+ tail -f /var/log/cups/error_log
W [28/Sep/2010:20:28:34 -0400] IP lookup failed - connection from localhost closed!
W [28/Sep/2010:20:28:56 -0400] IP lookup failed - connection from localhost closed!
W [28/Sep/2010:20:28:56 -0400] IP lookup failed - connection from localhost closed!
W [28/Sep/2010:20:28:56 -0400] IP lookup failed - connection from localhost closed!
W [28/Sep/2010:20:28:56 -0400] IP lookup failed - connection from localhost closed!
W [28/Sep/2010:20:28:56 -0400] IP lookup failed - connection from localhost closed!
W [28/Sep/2010:20:28:56 -0400] IP lookup failed - connection from localhost closed!
W [28/Sep/2010:20:28:56 -0400] IP lookup failed - connection from localhost closed!
W [28/Sep/2010:20:28:56 -0400] IP lookup failed - connection from localhost closed!
W [28/Sep/2010:20:28:56 -0400] IP lookup failed - connection from localhost closed!

Actually, more specifically:

D [28/Sep/2010:20:46:26 -0400] Report: clients=0
D [28/Sep/2010:20:46:26 -0400] Report: jobs=0
D [28/Sep/2010:20:46:26 -0400] Report: jobs-active=0
D [28/Sep/2010:20:46:26 -0400] Report: printers=0
D [28/Sep/2010:20:46:26 -0400] Report: printers-implicit=0
D [28/Sep/2010:20:46:26 -0400] Report: stringpool-string-count=124
D [28/Sep/2010:20:46:26 -0400] Report: stringpool-alloc-bytes=4016
D [28/Sep/2010:20:46:26 -0400] Report: stringpool-total-bytes=3056
W [28/Sep/2010:20:46:26 -0400] IP lookup failed - connection from localhost closed!
W [28/Sep/2010:20:46:26 -0400] IP lookup failed - connection from localhost closed!
W [28/Sep/2010:20:46:26 -0400] IP lookup failed - connection from localhost closed!
W [28/Sep/2010:20:46:26 -0400] IP lookup failed - connection from localhost closed!
W [28/Sep/2010:20:46:26 -0400] IP lookup failed - connection from localhost closed!
W [28/Sep/2010:20:46:26 -0400] IP lookup failed - connection from localhost closed!
W [28/Sep/2010:20:46:26 -0400] IP lookup failed - connection from localhost closed!
W [28/Sep/2010:20:46:26 -0400] IP lookup failed - connection from localhost closed!
W [28/Sep/2010:20:46:43 -0400] IP lookup failed - connection from localhost closed!
W [28/Sep/2010:20:46:43 -0400] IP lookup failed - connection from localhost closed!

Last edited by jboons (2010-09-29 00:47:18)

Offline

#8 2010-09-30 16:36:03

jboons
Member
Registered: 2010-09-25
Posts: 37

Re: [Solved] Can't recognize my printer

Bump. Please halp.

Offline

#9 2010-09-30 18:11:58

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,062

Re: [Solved] Can't recognize my printer

Sorry.  I did not see your edit on 2010-09-28 at 17:47.  It appears that a mere edit does not trigger the notification mechanism; I was waiting for your next post, which turned out to be the bump.

Did hp-setup do anything for you?

As to ppd(s), foomatic provides several addition for HPs:

extra/foomatic-db 4.0.5_20100816-1 [installed]
    Foomatic - The collected knowledge about printers, drivers, and driver options in XML files,
    used by foomatic-db-engine to generate PPD files.
extra/foomatic-db-engine 4.0.5_20100816-1 [installed]
    Foomatic - Foomatic's database engine generates PPD files from the data in Foomatic's XML
    database. It also contains scripts to directly generate print queues and handle jobs.
extra/foomatic-db-nonfree 4.0.5_20100816-1 [installed]
    Foomatic - database extension consisting of manufacturer-supplied PPD files released under
    non-free licenses
extra/foomatic-filters 4.0.5_20100816-1 [installed]
    Foomatic - Filter scripts used by the printer spoolers to convert the incoming PostScript data
    into the printer's native format.
jboons wrote:

I checked "Print Test Page" though, and something printed.

Did the Test Print page print, or did it print giberish?

As to the errors you posted, I've no clue; but lets explore those later if need be.


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

#10 2010-09-30 20:20:41

jboons
Member
Registered: 2010-09-25
Posts: 37

Re: [Solved] Can't recognize my printer

ewaller wrote:

Sorry.  I did not see your edit on 2010-09-28 at 17:47.  It appears that a mere edit does not trigger the notification mechanism; I was waiting for your next post, which turned out to be the bump.

Did hp-setup do anything for you?

As to ppd(s), foomatic provides several addition for HPs:

extra/foomatic-db 4.0.5_20100816-1 [installed]
    Foomatic - The collected knowledge about printers, drivers, and driver options in XML files,
    used by foomatic-db-engine to generate PPD files.
extra/foomatic-db-engine 4.0.5_20100816-1 [installed]
    Foomatic - Foomatic's database engine generates PPD files from the data in Foomatic's XML
    database. It also contains scripts to directly generate print queues and handle jobs.
extra/foomatic-db-nonfree 4.0.5_20100816-1 [installed]
    Foomatic - database extension consisting of manufacturer-supplied PPD files released under
    non-free licenses
extra/foomatic-filters 4.0.5_20100816-1 [installed]
    Foomatic - Filter scripts used by the printer spoolers to convert the incoming PostScript data
    into the printer's native format.
jboons wrote:

I checked "Print Test Page" though, and something printed.

Did the Test Print page print, or did it print giberish?

As to the errors you posted, I've no clue; but lets explore those later if need be.

Yeah, hp-setup loads fine, but it doesn't recognize a PPD for my printer. I can manually select one, however. So I choose "hp-deskjet_460-hpijs.ppd.gz," press okay, and I get the error I showed before. "Printer queue failed, please restart CUPS and try again."

Also, the test page printed a little heart twice: ♥.

Offline

#11 2010-10-04 00:12:54

jboons
Member
Registered: 2010-09-25
Posts: 37

Re: [Solved] Can't recognize my printer

Bump.

Offline

#12 2010-10-04 19:27:32

Leonid.I
Member
From: Aethyr
Registered: 2009-03-22
Posts: 999

Re: [Solved] Can't recognize my printer


Arch Linux is more than just GNU/Linux -- it's an adventure
pkill -9 systemd

Offline

#13 2010-10-04 19:48:52

jboons
Member
Registered: 2010-09-25
Posts: 37

Re: [Solved] Can't recognize my printer

I don't think so:

[tom@lappy 003]$ ls -l /dev/bus/usb/007/002
+ ls --color=auto -l /dev/bus/usb/007/002
crw-rw-r--+ 1 root lp 189, 769 Oct  4 15:48 /dev/bus/usb/007/002

Offline

#14 2010-10-04 21:14:56

Leonid.I
Member
From: Aethyr
Registered: 2009-03-22
Posts: 999

Re: [Solved] Can't recognize my printer

Fine then.

I'm confused with your 1st post. See, the printer should not be confused with a SCSI dev... I really don't think that you should have usblp loaded, since cups is supposed to use libusb. This is not only specific to Arch (http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=545288) and is a feature of cups 1.4.x. So I would rmmod usblp.

Also, where does this hp-xxxx thing come from? I understand hplip being the driver lib (in fact, I am using it myself), but configuration must be done through cups. So, stop using hp-setup and browse to http://localhost:631 in your favorite browser. What does it show, when you try to install a new printer?


Arch Linux is more than just GNU/Linux -- it's an adventure
pkill -9 systemd

Offline

#15 2010-10-04 21:17:53

jboons
Member
Registered: 2010-09-25
Posts: 37

Re: [Solved] Can't recognize my printer

Leonid.I wrote:

Fine then.

I'm confused with your 1st post. See, the printer should not be confused with a SCSI dev... I really don't think that you should have usblp loaded, since cups is supposed to use libusb. This is not only specific to Arch (http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=545288) and is a feature of cups 1.4.x. So I would rmmod usblp.

Also, where does this hp-xxxx thing come from? I understand hplip being the driver lib (in fact, I am using it myself), but configuration must be done through cups. So, stop using hp-setup and browse to http://localhost:631 in your favorite browser. What does it show, when you try to install a new printer?

When I connect to localhost:631 I get "Oops! Google Chrome could not connect to localhost:631"

Also, hp-setup uses CUPS, or else I wouldn't be getting a CUPS error when I try to use it.

Offline

#16 2010-10-04 21:56:53

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,062

Re: [Solved] Can't recognize my printer

I'm still pondering this problem.  Leonid.I, the hplip package is provided by HP and does a pretty good job of automatically installing the printer for cups, monitors expendables, and integrates fax and sane functions for multifunction printers.

jboons, Did you have a chance to look at the foomatic ppd / drivers?
I still don't understand the errors you reported.  Does Cups work with any other printers?  If you have no other priinter, does it work with virtual printers (like pdf output generators)?


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

#17 2010-10-04 23:11:30

Leonid.I
Member
From: Aethyr
Registered: 2009-03-22
Posts: 999

Re: [Solved] Can't recognize my printer

ewaller wrote:

I'm still pondering this problem.  Leonid.I, the hplip package is provided by HP and does a pretty good job of automatically installing the printer for cups, monitors expendables, and integrates fax and sane functions for multifunction printers.

Yeah, "hp-setup loads fine, but it doesn't recognize a PPD for my printer." sounds reassuring smile Especially because of this http://www.openprinting.org/printer/HP/HP-DeskJet_460.

All I wanted is see what CUPS is saying... It is not localhost:631, but

http://localhost:631

because CUPS by default listens to port 631. I am puzzled since the above discussion involves HPIJS driver, while it should have been HPLIP. Also, which foomatic packages do you have installed?


Arch Linux is more than just GNU/Linux -- it's an adventure
pkill -9 systemd

Offline

#18 2010-10-04 23:19:06

jboons
Member
Registered: 2010-09-25
Posts: 37

Re: [Solved] Can't recognize my printer

ewaller wrote:

I'm still pondering this problem.  Leonid.I, the hplip package is provided by HP and does a pretty good job of automatically installing the printer for cups, monitors expendables, and integrates fax and sane functions for multifunction printers.

jboons, Did you have a chance to look at the foomatic ppd / drivers?
I still don't understand the errors you reported.  Does Cups work with any other printers?  If you have no other priinter, does it work with virtual printers (like pdf output generators)?

Well, I don't know much about the foomatic drivers but I don't think any of them support my printer (HP Deskjet 460).

I just installed cups-pdf and CUPS doesn't recognize it when I try finding it on http://localhost:631. So CUPS doesn't recognize my printer, but hp-setup does... but when I continue on with hp-setup I get a weird localhost warning in my /var/log/cups/error_log: "IP lookup failed - connection from localhost closed!"

There are only a few instances of this error on the internet that I could find from googling, and none of them have proven useful.

Edit: I was choosing drivers from the directory it defaulted to, which is why I confused you by mentioning HPIJS drivers. Here are the foomatic PPDs for HP that I have:

[root@lappy ~]# ls /usr/share/cups/model/foomatic-db-ppds/HP
HP_DesignJet_1050C_PS3.ppd.gz    HP_Designjet_5000_PS3.ppd.gz
HP_DesignJet_1055CM_PS3.ppd.gz    HP_Designjet_5500_PS3.ppd.gz
HP_DesignJet_2500CP_PS3.ppd.gz    HP_Designjet_800_PS3.ppd.gz
HP_DesignJet_3500CP_PS3.ppd.gz    hp_officejet_9100_series.ppd.gz

Last edited by jboons (2010-10-04 23:26:20)

Offline

#19 2010-10-05 01:03:02

jboons
Member
Registered: 2010-09-25
Posts: 37

Re: [Solved] Can't recognize my printer

Update! Well, I can now print. I'm not sure exactly what did it, although I do know for a fact that my cupsd.conf contained something like this:

...
# Restrict access to the server...
# By default only localhost connections are possible
<Location />
   Order allow,deny
</Location>

# Restrict access to the admin pages...
<Location /admin>
   # Encryption disabled by default
   #Encryption Required
   Order allow,deny
</Location>

# Restrict access to configuration files...
<Location /admin/conf>
   AuthType Basic
   Require user @SYSTEM
   Order allow,deny
</Location>
...

I added "Allow From localhost" to each of these. After I performed that step, rebooted, and tried again, CUPS worked fine.

So, I'm not exactly sure where I solved my problem, but I think what I just explained might have done the trick. Thanks for all the help guys!

Offline

#20 2010-10-10 19:52:52

jimbok
Member
Registered: 2009-09-17
Posts: 51

Re: [Solved] Can't recognize my printer

Just had the same problem.  hp-setup, ran as a regular user, probably doesn't have permissions to create a printer queue.  Couldn't seem to run hp-setup as root though.  I just added the hp-setup command to my sudoer files and voila.


Registered Linux User #402088

Offline

Board footer

Powered by FluxBB