You are not logged in.
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
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
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
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
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
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
[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.
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
Bump. Please halp.
Offline
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.
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
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
Bump.
Offline
Device node perms?
http://wiki.archlinux.org/index.phpCUPS … gutenprint
Arch Linux is more than just GNU/Linux -- it's an adventure
pkill -9 systemd
Offline
Device node perms?
http://wiki.archlinux.org/index.phpCUPS … gutenprint
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
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
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
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
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 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
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
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
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