LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 05-21-2008, 08:41 AM   #1
bpoint
LQ Newbie
 
Registered: May 2008
Posts: 10

Rep: Reputation: 0
Unhappy CUPS and hplip madness...


Hello all,

I've been attempting to get CUPS, hplip, foomatic, and SANE setup on my NAS box for a few months now, trying various different things, yet nothing seems to work. If I started describing the what I've done from the start, this post would be so long that no one would read it. So here's a quick rundown...

The printer I have is an HP PSC 2355 "all-in-one" with scanning ability, connected via USB. It is supported through the HP PSC 2350 Foomatic/hpijs driver.

I currently see four problems:

1) CUPS refuses to print anything. Sending a test page through the admin interface adds the job to the queue, but no error message is generated, and the job just sits there doing nothing.

2) The hplip tools work to some degree. I can use hp-probe, hp-info, hp-levels (which properly reports the ink levels), and hp-align (which properly prints an alignment page). hp-print and hp-testpage look like they send the job to CUPS, but again the job just sits there and never prints.

3) I must run the hplip tools as root, or else I get this error:
Code:
error: Unable to communicate with device (code=12): hp:/usb/PSC_2350_series?serial=MY563F10J6KJ
4) Trying to scan with "scanimage -L" gives an error that SANE couldn't find the device, however running "sane-find-scanner" properly finds the device on the attached USB port.

To me, it sounds like that the USB communication is working correctly (the hplip tools work), but there is a permission problem somewhere that is not allowing non-root users to access the USB interface. I'm assuming this is probably also why CUPS never gets anywhere.

I'm currently using the latest version of everything (CUPS-1.4svn-r7582, hplip-2.8.5, foomatic-3.0.2), but I've been trying earlier versions as well (CUPS-1.3.5, hplip-2.7.12) with no success. Everything is built from source tarballs, since the Linux installed on my NAS box does not have any kind of package management.

Any tips or suggestions would be greatly appreciated -- hopefully before I go bald from pulling out all of my hair. If anyone wants to see any log files, please ask and I will post them.

Thanks!
 
Old 05-21-2008, 11:52 AM   #2
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Debian "Jessie"
Posts: 6,033

Rep: Reputation: 371Reputation: 371Reputation: 371Reputation: 371
Welcome to LQ!
I'd start by looking at permissions & groups.
I don't know what variant of linux you are running on your NAS, but it may be fairly simple if all it was designed for is running NAS (="Network Attached Storage", No?)
What are the permissions, owner & group of the device /dev/lp (or whatever you printer is detected as)?
What groups are you a member of?

Quote:
sane-find-scanner" properly finds the device on the attached USB port.
Again, what are the permissions / owner / group of the scanner, and what groups are you in?

I need to be a member of plugdev lpadmin and scanner (amongst others) for my system to work, but your distro's setup may be entirely different.
 
Old 05-21-2008, 12:27 PM   #3
bpoint
LQ Newbie
 
Registered: May 2008
Posts: 10

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by tredegar View Post
Welcome to LQ!
Thanks!

Quote:
Originally Posted by tredegar View Post
I'd start by looking at permissions & groups.
I don't know what variant of linux you are running on your NAS, but it may be fairly simple if all it was designed for is running NAS (="Network Attached Storage", No?)
The actual Linux variant is listed as "hardhat". It is a NAS box, but I'd like to make a print server out of it as well, since it has a single USB port.

I should mention it already functions as a mail server (qmail+SpamAssassin+courier-imap), and a web/svn server (apache+php+mysql) all built from source tarballs and installed by myself, so I know my way around the box. However, this is my first attempt at doing any kind of printing on Linux, so I'm a bit lost.

Quote:
Originally Posted by tredegar View Post
What are the permissions, owner & group of the device /dev/lp (or whatever you printer is detected as)?
What groups are you a member of?
It seems I have no /dev/lp device. I don't know if this is a problem or not, but I do have a few similar devices:

Code:
root@kuro-box:/dev# ls -la lp*
crw-rw-r--    1 root     lp         6,   0 Oct 19  2002 lp0
crw-rw-r--    1 root     lp         6,   1 Oct 19  2002 lp1
crw-rw-r--    1 root     lp         6,   2 Oct 19  2002 lp2
root@kuro-box:/dev/usb# ls -la
total 8
drwxr-xr-x    2 root     root         4096 May 12  2003 ./
drwxrwxr-x    4 root     root         4096 Feb 29 08:11 ../
crw-rw-rw-    1 root     lp       180,   0 Apr 11  2002 lp0
crw-rw-rw-    1 root     lp       180,   1 Apr 11  2002 lp1
crw-rw-rw-    1 root     lp       180,   2 Apr 11  2002 lp2
[...repeated up to lp9...]
crw-------    1 root     root     180,  48 Apr 11  2002 scanner0
crw-------    1 root     root     180,  49 Apr 11  2002 scanner1
crw-------    1 root     root     180,  50 Apr 11  2002 scanner2
[...repeated up to scanner9...]
Quote:
Originally Posted by tredegar View Post
Again, what are the permissions / owner / group of the scanner, and what groups are you in?

I need to be a member of plugdev lpadmin and scanner (amongst others) for my system to work, but your distro's setup may be entirely different.
The current groups I am in:
Code:
bpoint@kuro-box:~$ groups
users lp nogroup spam cvs svn
I originally wasn't in the lp group, but adding myself to it and then trying hp-levels from a non-root account didn't seem to have any affect.

Any suggestions?
 
Old 05-21-2008, 12:32 PM   #4
bpoint
LQ Newbie
 
Registered: May 2008
Posts: 10

Original Poster
Rep: Reputation: 0
Just a quick followup...

I noticed the /dev/usb/scanner[0-9] permissions were set as 600, so I tried setting them to 666 and changing the group to lp.

There is still no change -- "sane-find-scanner" works, but "scanimage -L" says no scanner could be found.
 
Old 05-21-2008, 01:34 PM   #5
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Debian "Jessie"
Posts: 6,033

Rep: Reputation: 371Reputation: 371Reputation: 371Reputation: 371
Yours is a USB printer, and I am not sure how you have USB set up.
I use udev for USB devices and it creates mountpoints dynamically as things are plugged in and detected.
udev also assigns group, ownership and permissions to the device when it is created.
Any changes you make (eg chmod 666 /dev/lp0) will not survive a reboot, or re-plugging, so it is best to make sure you are in the right groups.
If you want your printer or scanner always to be mounted to a known location, you'll need to write some udev rules (See here:
http://www.reactivated.net/writing_udev_rules.html

You need to find out where your printer is being mounted, it may be at /dev/lp0
You then need to do a ls -l /dev/lp0 to see the group and permissions
Same for your scanner (mine turns up at /dev/bus/usb/003/002 ) and there's no symlink to something pretty like /dev/scanner

Code:
tredegar@home:/$ sane-find-scanner
found USB scanner (vendor=0x055f, product=0x021f [USB Scanner], chip=GT-6816) at libusb:003:002
tredegar@home:/$ ls -l /dev/bus/usb/003/002
crw-rw-r-- 1 root scanner 189, 257 2008-05-21 18:07 /dev/bus/usb/003/002
tredegar@home:/$ ls -l /dev/lp0
crw-rw---- 1 root lp 6, 0 2008-05-21 17:43 /dev/lp0
It is possible that you need to be in some other group(s) for you to be able to administrate the printer or scanner.
The groups I am in are
Code:
tredegar@home:/$ groups
tredegar adm dialout cdrom floppy audio dip video plugdev lpadmin scanner admin
The available groups are:
Code:
tredegar@home:/$ cat /etc/group
root:x:0:
daemon:x:1:
bin:x:2:
sys:x:3:
adm:x:4:tredegar
tty:x:5:
disk:x:6:
lp:x:7:cupsys
mail:x:8:
news:x:9:
uucp:x:10:
man:x:12:
proxy:x:13:
kmem:x:15:
dialout:x:20:cupsys,tredegar
fax:x:21:
voice:x:22:
cdrom:x:24:haldaemon,tredegar
floppy:x:25:haldaemon,tredegar
tape:x:26:
sudo:x:27:
audio:x:29:tredegar
dip:x:30:tredegar
www-data:x:33:
backup:x:34:
operator:x:37:
list:x:38:
irc:x:39:
src:x:40:
gnats:x:41:
shadow:x:42:
utmp:x:43:
video:x:44:tredegar
sasl:x:45:
plugdev:x:46:haldaemon,tredegar
staff:x:50:
games:x:60:
users:x:100:
nogroup:x:65534:
dhcp:x:101:
syslog:x:102:
klog:x:103:
crontab:x:104:
ssh:x:105:
lpadmin:x:106:tredegar
messagebus:x:107:
haldaemon:x:108:
slocate:x:109:
scanner:x:110:cupsys,tredegar
tredegar:x:1000:
admin:x:111:tredegar
saned:x:112:
The ones in red are the ones I think you should look especially carefully at.

Quote:
I noticed the /dev/usb/scanner[0-9] permissions were set as 600, so I tried setting them to 666 and changing the group to lp.
Noooo!, the scanner needs to be in the group scanner, as do you. And remember what I said about udev above. Changes you make are transient

Your problem is that this is a "DIY" installation (and all credit to you for having got this far without resorting to LQ!).
Modern distros all set up the required groups and permissions when you install something. But you have to sort all this out yourself.

HTH
 
Old 05-21-2008, 03:00 PM   #6
bpoint
LQ Newbie
 
Registered: May 2008
Posts: 10

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by tredegar View Post
Yours is a USB printer, and I am not sure how you have USB set up.
I use udev for USB devices and it creates mountpoints dynamically as things are plugged in and detected.
I'm not completely sure I even have USB set up properly myself...

Unfortunately, I cannot use udev since it requires a 2.6 kernel. My 2.4.17 kernel is burned into EEPROM, and I'd rather avoid reflashing it.

Quote:
Originally Posted by tredegar View Post
You need to find out where your printer is being mounted, it may be at /dev/lp0
You then need to do a ls -l /dev/lp0 to see the group and permissions
Same for your scanner (mine turns up at /dev/bus/usb/003/002 ) and there's no symlink to something pretty like /dev/scanner
Doing an lsusb gives me:
Code:
root@kuro-box:~# /usr/sbin/lsusb 
Bus 003 Device 001: ID 0000:0000  
Bus 002 Device 001: ID 0000:0000  
Bus 002 Device 002: ID 03f0:4911 Hewlett-Packard 
Bus 001 Device 001: ID 0000:0000
I don't have a /bus/usb directory in /dev, but I do have one in /proc:
Code:
root@kuro-box:/proc/bus/usb/002# ls -la
total 1
dr-xr-xr-x    1 root     root            0 Feb 29 08:11 ./
dr-xr-xr-x    1 root     root            0 Feb 29 08:11 ../
-rw-r--r--    1 root     root           18 May 21 18:23 001
-rw-r--r--    1 root     root           18 May 21 21:24 002
...I presume this is it? Maybe?

I doubt that any of the /dev/lp* devices actually point to the printer, since they have a device node of 6 (parallel port), and my NAS box doesn't even have parallel port hardware on it.

SANE gives this (rather lengthy) output to me:
Code:
bpoint@kuro-box:~$ sane-find-scanner 

  # sane-find-scanner will now attempt to detect your scanner. If the
  # result is different from what you expected, first make sure your
  # scanner is powered up and properly connected to your computer.

  # No SCSI scanners found. If you expected something different, make sure that
  # you have loaded a kernel SCSI driver for your SCSI adapter.
  # Also you need support for SCSI Generic (sg) in your operating system.
  # If using Linux, try "modprobe sg".

found USB scanner (vendor=0x03f0, product=0x4911) at libusb:002:002
  # Your USB scanner was (probably) detected. It may or may not be supported by
  # SANE. Try scanimage -L and read the backend's manpage.

  # Not checking for parallel port scanners.

  # Most Scanners connected to the parallel port or other proprietary ports
  # can't be detected by this program.

  # You may want to run this program as root to find all devices. Once you
  # found the scanner devices, be sure to adjust access permissions as
  # necessary.
It does seem to find my USB printer/scanner, even as non-root.

Quote:
Originally Posted by tredegar View Post
It is possible that you need to be in some other group(s) for you to be able to administrate the printer or scanner.
After looking over your /etc/group, I noticed a few things:

1) I don't have a cupsys user. cupsd is running as root, but seems to spawn processes as daemon (the perl processes that were started when I tried to print a test page, they stay hung and never go anywhere -- there are also a few other hung processes, like python and ghostscript):

Code:
root@kuro-box:/mnt/home/bpoint# ps aux | grep cups
root     14163  1.2  3.6  6204 2276 ?        S    May21   5:25 /usr/sbin/cupsd
daemon   14761  0.0  1.1  8180  724 ?        S    May21   0:03 /usr/bin/perl /usr/lib/cups/filter/foomatic-rip 13 bpoint x 1 media=Letter sides=one-sided finishings=3 number-up=1 job-uuid=urn:uuid:6ff202f8-a16e-3130-605b-3c9730ebde4a
daemon   14767  0.0  1.1  8180  724 ?        S    May21   0:00 /usr/bin/perl /usr/lib/cups/filter/foomatic-rip 13 bpoint x 1 media=Letter sides=one-sided finishings=3 number-up=1 job-uuid=urn:uuid:6ff202f8-a16e-3130-605b-3c9730ebde4a
daemon   14768  0.0  1.1  8180  720 ?        S    May21   0:00 /usr/bin/perl /usr/lib/cups/filter/foomatic-rip 13 bpoint x 1 media=Letter sides=one-sided finishings=3 number-up=1 job-uuid=urn:uuid:6ff202f8-a16e-3130-605b-3c9730ebde4a
root     18168  2.0  0.8  1608  544 pts/0    S    03:48   0:00 grep cups
2) I don't have an lpadmin or scanner group.

3) I don't have a plugdev group (is this part of udev?).

Quote:
Originally Posted by tredegar View Post
Noooo!, the scanner needs to be in the group scanner, as do you. And remember what I said about udev above. Changes you make are transient
Heheh, ok well, I'll change the permissions back.

Remember my printer is an "all-in-one" device -- the scanner is built into it. So putting the scanner device into the scanner group would effectively put the printer into the same group as well.

Quote:
Originally Posted by tredegar View Post
Your problem is that this is a "DIY" installation (and all credit to you for having got this far without resorting to LQ!).
Modern distros all set up the required groups and permissions when you install something. But you have to sort all this out yourself.
I don't have a problem with doing things myself. It's just that the CUPS installation documentation is severely lacking. I did Google a bit and found some similar posts regarding unable to print over USB, but either they're unanswered or they don't have the same problem as I do.

But anyway, any other suggestions?
 
Old 05-21-2008, 03:16 PM   #7
bpoint
LQ Newbie
 
Registered: May 2008
Posts: 10

Original Poster
Rep: Reputation: 0
I probably should have posted this earlier, but this is what /var/log/messages looks like, when I reconnect the USB connection and turn the printer on:

Code:
May 22 04:11:33 kuro-box kernel: hub.c: new USB device 00:0e.1-1, assigned address 3 
May 22 04:11:33 kuro-box kernel: printer.c: usblp0: USB Bidirectional printer dev 3 if 1 alt 0 proto 2 vid 0x03F0 pid 0x4911 
May 22 04:11:33 kuro-box murasaki.usb[18336]: beep is defined as "off"
May 22 04:11:33 kuro-box murasaki.usb[18336]: usb device is added
May 22 04:11:33 kuro-box murasaki.usb[18336]: vendor:0x3f0 product:0x4911 Dclass:0x0 Dsubclass:0x0 Dprotocol:0x0 Iclass:0xff Isubclass:0xcc Iprotocol:0x0
May 22 04:11:33 kuro-box murasaki.usb[18336]: MATCH(printer) -> match_flags:0x183 vendor:0x3f0 product:0x4911 Dclass:0x0 Dsubclass:0x0 Dprotocol:0x0 Iclass:0xff Isubclass:0xcc Iprotocol:0x0
And this gets spit out when I send a test page to print through the CUPS web administation interface:
Code:
May 22 04:12:15 kuro-box PSC_2350_series?serial=MY563F10J6KJ: io/hpmud/musb.c 135: unable get_string_descriptor -1: Operation not permitted 
May 22 04:12:15 kuro-box PSC_2350_series?serial=MY563F10J6KJ: io/hpmud/musb.c 603: invalid product id string ret=-1 
May 22 04:12:15 kuro-box PSC_2350_series?serial=MY563F10J6KJ: io/hpmud/musb.c 1058: unable to open hp:/usb/PSC_2350_series?serial=MY563F10J6KJ 
May 22 04:12:15 kuro-box PSC_2350_series?serial=MY563F10J6KJ: prnt/backend/hp.c 675: INFO: open device failed; will retry in 30 seconds... 
May 22 04:12:23 kuro-box hpijs: io/hpmud/musb.c 135: unable get_string_descriptor -1: Operation not permitted 
May 22 04:12:23 kuro-box hpijs: io/hpmud/musb.c 603: invalid product id string ret=-1 
May 22 04:12:23 kuro-box hpijs: io/hpmud/musb.c 1058: unable to open hp:/usb/PSC_2350_series?serial=MY563F10J6KJ
Again, "Operation not permitted" looks like some program doesn't have proper access to the USB port...
 
Old 05-22-2008, 01:51 PM   #8
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Debian "Jessie"
Posts: 6,033

Rep: Reputation: 371Reputation: 371Reputation: 371Reputation: 371
Quote:
not completely sure I even have USB set up properly myself...
I'm I fear you are setting yourself an impossible task here, but I'll help as I can.
Quote:
Unfortunately, I cannot use udev since it requires a 2.6 kernel. My 2.4.17 kernel is burned into EEPROM,
Oh.
Quote:
Doing an lsusb gives me:
Bus 002 Device 002: ID 03f0:4911 Hewlett-Packard
...I presume this is it? Maybe?
Yes, that is it. And sane-find-scanner can see it too. But not much else it seems.
Quote:
I don't have a /bus/usb directory in /dev, but I do have one in /proc:
I don't think that helps. Even with my 2.6 kernel, I don't think I have a /dev/scanner entry created for me (no scanner to check with at the moment)
Quote:
I doubt that any of the /dev/lp* devices actually point to the printer, since they have a device node of 6 (parallel port), and my NAS box doesn't even have parallel port hardware on it.
Then they are not what you are looking for.
Quote:
found USB scanner (vendor=0x03f0, product=0x4911) at libusb:002:002
sane-find-scanner (as the user bpoint) found the scanner But scanimage can't find / use it.
Quote:
1) I don't have a cupsys user.
2) I don't have an lpadmin or scanner group.
I think you'll need these.
Quote:
3) I don't have a plugdev group (is this part of udev?).
udev maybe, but I think it is required for hal
Quote:
Remember my printer is an "all-in-one" device -- the scanner is built into it. So putting the scanner device into the scanner group would effectively put the printer into the same group as well.
Yes, but all-in-one printers are seen as separate USB devices: One for printer, one for scanner etc.

Your /var/log/messages is interesting. Is a device called usblp0 created somewhere in /dev/ ?

Quote:
Again, "Operation not permitted" looks like some program doesn't have proper access to the USB port...
Yes, we are back at "permissions"

A big part of your problem is that you are using a 2.4 kernel. I never managed to get anything USB working properly on a 2.4 kernel, apart from a USB memory stick, and that only after reading /var/log/messages and manually mounting it every time, which is why I was so pleased to see 2.6 with hal and udev come along.

Maybe you could find some pointers by searching for how to set up cups and a scanner for something like "Linux from Scratch" (AKA LFS) with a 2.4 kernel.

But, I suspect you are setting yourself a difficult task: Persuading a NAS server to be a print server as well, when the installed OS is non-standard, and an "old" kernel is asking for grief and a major headaches.

Is this really worth the time and effort?
 
Old 05-22-2008, 02:56 PM   #9
bpoint
LQ Newbie
 
Registered: May 2008
Posts: 10

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by tredegar View Post
I'm I fear you are setting yourself an impossible task here, but I'll help as I can.
Thanks, your patience is much appreciated.

Quote:
Originally Posted by tredegar View Post
Yes, that is it. And sane-find-scanner can see it too. But not much else it seems.
Let's put SANE off for now. I think that once I can get CUPS to start printing properly then SANE will quickly fall into place later.

Quote:
Originally Posted by tredegar View Post
Quote:
Originally Posted by bpoint View Post
1) I don't have a cupsys user.
2) I don't have an lpadmin or scanner group.
I think you'll need these.
I can add them, but I don't think it would really make a difference. I don't see anything in /var/log/messages that shows that they are being requested and not found. I could be wrong though...

Quote:
Originally Posted by tredegar View Post
Your /var/log/messages is interesting. Is a device called usblp0 created somewhere in /dev/ ?
No, I don't have a /dev/usblp0 device. However, I decided to try something different:

Code:
bpoint@kuro-box:~$ cat testprint 
echo "Hello World^L" > /dev/usb/lp0
bpoint@kuro-box:~$ ./testprint
bpoint@kuro-box:~$
Running the above script successfully printed out the words "Hello World" on a sheet of paper -- and it worked as both root and non-root.

I believe I can now say the USB functionality is working just fine, and the problem here is CUPS's communication with the USB interface, for whatever reason...

Quote:
Originally Posted by tredegar View Post
A big part of your problem is that you are using a 2.4 kernel.
Hopefully the above test I just did proves that a 2.4 kernel can still do USB.

Quote:
Originally Posted by tredegar View Post
Maybe you could find some pointers by searching for how to set up cups and a scanner for something like "Linux from Scratch" (AKA LFS) with a 2.4 kernel.
Not a bad idea. Since I've started to be able to narrow the problem down to CUPS, I might try posting on their forums... but I don't think I'll get much of a response.

Quote:
Originally Posted by tredegar View Post
But, I suspect you are setting yourself a difficult task: Persuading a NAS server to be a print server as well, when the installed OS is non-standard, and an "old" kernel is asking for grief and a major headaches.

Is this really worth the time and effort?
The challenge is the best part of it!

I'm still open to other suggestions/tests, but if you've run out of ideas, that's fine. I appreciate what you've been able to help me out with so far.

And I'll go see if maybe I can figure out just where CUPS is misbehaving at...
 
Old 05-23-2008, 11:53 AM   #10
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Debian "Jessie"
Posts: 6,033

Rep: Reputation: 371Reputation: 371Reputation: 371Reputation: 371
Quote:
echo "Hello World^L" > /dev/usb/lp0
Well, at least you know where your printer is now, and USB is working fine. When you last tried to set up cups, where did you tell it to find your printer? Perhaps you just said "USB", and it found it. It has been a while since I last used cups, as everything is working at the moment.
Quote:
The challenge is the best part of it!
I understand.
Quote:
And I'll go see if maybe I can figure out just where CUPS is misbehaving at...
Maybe your version of cups is too new for a 2.4 kernel? I know it shouldn't make any difference, but ...
<Visits the attic to boot an ancient PC: Kernel is 2.4.21 cups is 1.1.19>
And there are a couple of potential trip-points eg. Make sure the printer is set as the defult, and "enabled".
 
Old 10-22-2008, 10:11 AM   #11
John Lumby
LQ Newbie
 
Registered: Oct 2008
Posts: 11

Rep: Reputation: 0
I had the same troubles.

Regarding inability to print, I found the answer here:

http://www.mail-archive.com/hplip-he.../msg03847.html

the method is :

run lsusb and find your printer -- which you did let's suppose it shows
Bus 0WX Device 0YZ: ID ????:???? Hewlett-Packard
the usb dirname and filename 0WX and 0YZ are significant
then chmod 666 /proc/bus/usb/0WX/0YZ

You even noticed that you had this usb subdirectory in /proc but I guess didn't think it relevant. It is!

To get the scanner working, I found I had to tell scanimage the device explicitly like so -- for me
scanimage [--format=tiff] \
-d "hpaio:/usb/officejet_d_series?serial=SG28N520B3RQ"

the hpaio is the sane-hpaio backend from hplip and for the part following the :/usb/, substitute the name in the error message, so in your case I think it would be
-d "hpaio:/usb/PSC_2350_series?serial=MY563F10J6KJ"

hp-probe, which you mentioned, also may tell you the device uri except that it shows it as
hp:/usb/xxxx
and if you use this as uri, change the hp: to hpaio:
 
Old 10-22-2008, 02:41 PM   #12
Shadow_7
Senior Member
 
Registered: Feb 2003
Distribution: debian
Posts: 1,554

Rep: Reputation: 239Reputation: 239Reputation: 239
It may not apply in your case, but hplip and friends have dependencies not actively installed when they are installed (depending on your distro).

gs-esp
pnm2ppa

And probably many others I'm not recalling off the top of my head. It could be that you have everything right, you're just missing some supporting libs. I had a similar issue as yours with one of my HP printers. Which got fixed when I installed a supporting lib not marked as a dependency. It was hinted at in /var/log/* (dmesg / messages?) or some localhost:631 log / status page. It was quite a while ago. And was not easily identified.
 
Old 10-23-2008, 01:08 AM   #13
bpoint
LQ Newbie
 
Registered: May 2008
Posts: 10

Original Poster
Rep: Reputation: 0
It's been a while since I've replied to this thread, but I'll summarize what I know and what I've found out in the meantime.

CUPS actually has been working just fine from the start. If I set the printer driver to use the usb:/ driver instead of the hp:/ one, I don't have any problems with printing. Since I discovered this, I left it as-is since I was able to print, and I haven't needed to scan anything since then.

So the problem was with hplip, in my case.

John: I actually tried chmod 666'ing the /proc/bus/usb driver. It didn't have any affect, and what's worse is when the printer is switched off and back on, it's assigned a different address (instead of 002:001 the next time it becomes 002:002, and so on...), and the new address has the default permissions (644, I think) set again. Even if the chmod did temporarily solve the permissions problem, it wouldn't be an ideal situation.

The hpaio:/ driver is new to me, however, so I will give that a try. Plus it seems hplip has had a few version updates since this old post. Maybe whatever it was has been fixed already.

Shadow_7: There's no package management on my NAS box, so I do everything by hand. I've already made sure all of the necessary dependencies are installed, though.
 
Old 10-31-2008, 06:03 PM   #14
John Lumby
LQ Newbie
 
Registered: Oct 2008
Posts: 11

Rep: Reputation: 0
re the chmod problem with the printer address changing on every plug :

If you have hotplug(*),
You can call a script from /etc/hotplug/usb.agent to do something like(**)
[ "${DEVICE}" = /proc/bus/usb/* ] && chmod 0666 ${DEVICE}

but if that didn't work for you , then I suppose only of adademic interest

(*) better to use udev rules but that didn't work for me - not invoked for my printer

(**) I had trouble using the ${DEVICE} exported by hotplug and just checked all devices in /proc/bus/usb/device for a match on
$(egrep -e "^T:.*Bus=.*Dev#|Manufacturer=Hewlett-Packard" /proc/bus/usb/devices);
 
  


Reply

Tags
cups, hplip


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
hplip not showing up in CUPS walterbyrd Linux - Software 7 11-09-2013 02:59 PM
HP Photosmart C6280 + CUPS 1.3.4 + HPLIP 2.7.12 works, problem with margins jelaiwang Slackware 7 02-15-2008 09:47 PM
Cups & Hplip double sided printing MartyMcFly Linux - Hardware 6 04-07-2007 01:48 PM
[SOLVED] HP960c Deskjet -- should I use CUPS or HPLIP? MBA Whore Linux - Hardware 2 12-23-2006 09:44 PM
CUPS/HPLIP vs Kernel-2.4.18-14 aka Shiva Red Hat 1 05-08-2006 03:29 PM


All times are GMT -5. The time now is 03:46 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration