Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
hpoj - HP OfficeJet - howto
View unanswered posts
View posts from last 24 hours

Goto page 1, 2  Next  
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks
View previous topic :: View next topic  
Author Message
zion1459
Tux's lil' helper
Tux's lil' helper


Joined: 12 Mar 2003
Posts: 146

PostPosted: Sun Jul 20, 2003 3:32 pm    Post subject: hpoj - HP OfficeJet - howto Reply with quote

I just installed hpoj and got my HP PSC 750 working.. I can now print and scan images in linux! :)

however it took me a couple of hours... the packages needed to make the officejets work are masked and with good reason since they don't work without a doing a couple of tricks.. I just thought I'd post what I did to make my setup work (this is also included on http://hpoj.sourceforge.net in the docs... but reading this should be quicker ;) )


ok, now in your kenel make sure u have usb configured correctly and that u have usb printer support and usb scanner support as modules... just build the other usb support into the kernel (makes it easier).

first emerge xsane, sane-backends.... then emerge hpoj (which will need hpij emerged too.. u have to do this manually as this currently also is masked)

if u're using gentoo-sources as kernel u'll have to download a new printer.c from the hpoj website... simply follow the instructions in the readme to install it.

once that done u can now go setup CUPS :) when selecting USB printer u will see your officeJet :D sweeet!

now to the scanning part.
this took me a while to figure out... the funny thing is that scanning is properly installed already except for one thing... .
edit /etc/sane.d/dll.conf
and add "hpoj" to the list

now do a
scanimage --list-devices
and voila! ur scanner should show! :) now u scan all u want using xsane's nice gui :)

hope this helps other HP OfficeJet users :) or at least saves them some time hehe.

regards zion1459
_________________
an it harm none, do as ye will.
Back to top
View user's profile Send private message
yatesco
Tux's lil' helper
Tux's lil' helper


Joined: 17 May 2002
Posts: 113
Location: England

PostPosted: Sun Nov 02, 2003 8:50 pm    Post subject: psc 2115 also works Reply with quote

my hp psc 2115 also works, although I figured it out before I read this post ;)

https://forums.gentoo.org/viewtopic.php?p=623267#623267
_________________
Truth lasts longer than lip service

yatesco.blogspot.com
http://homepage.ntlworld.com/colin.yates/
Back to top
View user's profile Send private message
elyre_elan
n00b
n00b


Joined: 31 May 2003
Posts: 51
Location: Colorado, USA

PostPosted: Sat Nov 29, 2003 8:16 pm    Post subject: Reply with quote

I finally got my HP PSC 2210xi all-in-one to work for printing, scanning and photo card. Thanks to everyone who has given their help and advice through the forums. If anyone is interested, a most excellent document can be found at http://hpoj.sourceforge.net/doc.shtml.

The following are my notes I keep in my little binder. My brain can't remember anything for any length of time. :?

HP PSC 2210xi all-in-one

References

See the docs under the appropriate driver. Look at http://hpoj.sourceforge.net/doc.shtml
The look at the documentation listed under the driver that has been installed, i.e. hpoj-0.91. This document also provides a wealth of troubleshooting tips!

Pertinent Files
/etc/sane.d/dll.conf ? sane backends configuration file. Ensure hpoj is uncommented
/etc/cups/ppd/*.ppd ? cups ppd definition files

Devices
/dev/usb/lp0 ? the actual device location using devfsd

Kernel dependencies
usbcore
hotplug
usb-uhci or usb-ohci
usb-storage

Gentoo dependencies
cups
hpijs
hpoj
ghostscript
sane-backends
sane-frontends
xsane

Steps

1)Ensure the kernel and gentoo dependencies are met by compiling the kernel with the options listed and emerging the above items.
2)Run
Code:
ptal-init setup
This will establish your device. Follow the instructions.
3)Enter
Code:
rc-update add hpoj default

4)Test connectivity by entering the following:
Code:
ptal-devid mlc:usb:PSC_2200_Series
. You should see a display that prints out information regarding the device.
5)Restart CUPS-
Code:
/etc/init.d/cupsd restart
or
Code:
killall -HUP /usr/sbin/cupsd

6)Enter the CUPS web interface http://127.0.0.1:631.
7)Add printer by doing the following:
a) Click on printers
b) Click on the button <Add printer>
c) Enter the name such as hp_psc_2210xi_all-in-one
d) location and description are optional. Click continue.
e) For device, look under the PTAL descriptor and select that one. Click continue.
f) Select HP for make and click continue
g) Select <HP NewDeskjet Series CUPS v1.1 (en)>. Click continue. Then select printers and choose the printer just established and print a test page.
8)Enter the file /etc/sane.d/dll.conf and ensure that the line <hpoj> is uncommented.
9)At this point, check to see if SANE can find the device. From the command line enter
Code:
scanimage -L
If it finds the device, GREAT!. If not, try unplugging the scanner, wait ten seconds and plug it back in. This is necessary if the scanner was previously connected to a windows box.
10)Now test the scanner by entering
Code:
scanimage --test
. It should provide some feedback giving us a warm and fuzzy.
11)Now try xsane as a non-root user. Use the test page that you got from testing the printer to see if it will scan.
12)You may need to change the date. Try
Code:
xojpanel
from the command line to see what is displayed. Then enter
Code:
ptal-hp clock -set
. Give it a minute and you should see the clock change. This is really important before reading from the media card below.
13)Finally, the HP psc 2210xi supports reading directly from a media card. Mount the card by entering as root on the command line:
Code:
mount -t vfat /dev/sda1 /mnt/photo
. It may take a couple of tries for this to work. Note that your sda number may be different if you have other usb mass storage devices loaded. Once it does, voila!, you can read from the card!
14)NOTE: For some reason, even if the date is set correctly on the printer, the date of my mount point is 1969 and permissions are only allowed for root. Even if I touch the directory at that point, it still will not chmod correctly. When umount is invoked, the underlying directory is referenced correctly. If anyone has a cure for this problem, let me know...

Hopefully, this helps someone. 8)
_________________
SCO has performed an illegal operation error and will be shut down.
Back to top
View user's profile Send private message
ian!
Bodhisattva
Bodhisattva


Joined: 25 Feb 2003
Posts: 3829
Location: Essen, Germany

PostPosted: Sat Nov 29, 2003 10:05 pm    Post subject: Reply with quote

Moved to 'Documentation, Tips & Tricks'.
_________________
"To have a successful open source project, you need to be at least somewhat successful at getting along with people." -- Daniel Robbins
Back to top
View user's profile Send private message
smukec
n00b
n00b


Joined: 06 Dec 2003
Posts: 59
Location: Slovenia

PostPosted: Wed Apr 07, 2004 1:06 pm    Post subject: Reply with quote

I'm having problems scanning.
The printer works correctly.

sane-find-scanner finds the device, xojpanel also works. But scanimage not.
See output:
Code:
root # sane-find-scanner
 
  # No SCSI scanners found. If you expected something different, make sure that
  # you have loaded a SCSI driver for your SCSI adapter.
 
found USB scanner (vendor=0x03f0 [Hewlett-Packard], product=0x2811 [PSC 2100 Series]) at libusb:002:003
  # Your USB scanner was (probably) detected. It may or may not be supported by
  # SANE. Try scanimage -L and read the backend's manpage.
 
  # Scanners connected to the parallel port or other proprietary ports can't be
  # detected by this program.

Code:
root # scanimage -L
No scanners were identified. If you were expecting something different,
check that the scanner is plugged in, turned on and detected by the
sane-find-scanner tool (if appropriate). Please read the documentation
which came with this software (README, FAQ, manpages).


While unpluging/pluging the USB the following came out:
Code:
ptal-mlcd: ERROR at ExMgr.cpp:3165, dev=<mlc:usb:PSC_2100_Series@/dev/usb/lp0>, pid=3356, e=19, t=1081342790
llioSubprocess: llioWrite returns -1, expected=6!
 
ptal-mlcd: ERROR at ExMgr.cpp:2820, dev=<mlc:usb:PSC_2100_Series@/dev/usb/lp0>, pid=3349, e=11, t=1081342790
llioService: fdRead returns 0, expected=6!
 
ptal-mlcd: ERROR at ExMgr.cpp:871, dev=<mlc:usb:PSC_2100_Series@/dev/usb/lp0>, pid=3349, e=11, t=1081342790
exClose(reason=0x0010)


Any idea?
Back to top
View user's profile Send private message
dmoulton
n00b
n00b


Joined: 07 Jul 2003
Posts: 72
Location: Somewhere in the Rockies

PostPosted: Wed Apr 07, 2004 3:59 pm    Post subject: Reply with quote

smukec wrote:
I'm having problems scanning.
The printer works correctly.


This is an all-in-one device, right? I don't own this one but I have another HP all in one (6110xi). I had more or less this same problem.

Even though the printer is working, I would recommend running ptal-init setup again. Make sure you are using the ptal device for the printer. I found that until I did that, the only way I could make the scanner work was by uninstalling hpijs. This of course made the printer not work. I remember that cups allowed me to use the printer via usb or ptal. Choosing ptal allowed both scanner and printer to function.

BTW, I still get a similar error :

Code:
ptal-mlcd: ERROR at ExMgr.cpp:3165, dev=<mlc:usb:PSC_2100_Series@/dev/usb/lp0>, pid=3356, e=19, t=1081342790
llioSubprocess: llioWrite returns -1, expected=6!


but things seem to work fine. If anyone knows what it is, I'd like to know too.

dm
Back to top
View user's profile Send private message
koenvl
n00b
n00b


Joined: 08 Jan 2004
Posts: 13
Location: Brussels, Belgium

PostPosted: Thu Apr 08, 2004 11:45 pm    Post subject: Reply with quote

I just tried to install my PSC 1110 as described above but it won't work. Print jobs are moved to "completed jobs" without actually being printed and xsane doesn't find the scanner.

Maybe this will help :
Code:
koen@system koen $ ptal-devid mlc:usb:psc_1100_series
MFG:Hewlett-Packard;MDL:psc 1100 series;CMD:LDL,MLC,PML,DYN;CLS:PRINTER;1284.4DL:4d,4e,1;SN:MY39PF821DB0;S:0380008000820000002c1480061c2500055;


Can someone help me out here please?



Greetz,

Koen
Back to top
View user's profile Send private message
smukec
n00b
n00b


Joined: 06 Dec 2003
Posts: 59
Location: Slovenia

PostPosted: Fri Apr 09, 2004 6:48 am    Post subject: Reply with quote

I managed to print, but can't set printing quality. Not DPI, printing quality(Best, Normal, Fast Draft) as available on a comercial OS.

To work trough CUPS i had to start cups after ptal(see).
I'm not sure this will help you, because my print jobs were just waiting in queue and the printer was not detected("...not connected, retry in 30 seconds...")

Scanner still dead.
Back to top
View user's profile Send private message
koenvl
n00b
n00b


Joined: 08 Jan 2004
Posts: 13
Location: Brussels, Belgium

PostPosted: Fri Apr 09, 2004 8:48 am    Post subject: Reply with quote

Tnx! Ptal was being loaded before CUPS but I had to use the right PPD, that's all. It's a pity that one cannot print with the color cartridge and the B/W-cartridge at the same time 'though. There are 7 printout modes: draft color, draft grayscale, normal color, normal grayscale, high quality color, high quality grayscale and photo for printing on photo paper. I use the printer driver from http://www.linuxprinting.org/show_printer.cgi?recnum=HP-PSC_1110.

Scanning is still dead too.



Many thanks,

Koen



Correction: Okay, it is actually possible to use the two cartridges at the same time but it is quite slow even in 300 dpi.
Back to top
View user's profile Send private message
smukec
n00b
n00b


Joined: 06 Dec 2003
Posts: 59
Location: Slovenia

PostPosted: Fri Apr 09, 2004 9:02 am    Post subject: Reply with quote

Where can you set the print mode?

In the printer(HP PSC 2110) properties(in OpenOffice) I can set:
- Color/grayscale
- Postscript Level: dflt/1/2
- Color depth: 8/24
and additionaly on the properties list:
- Manual feed T/F
- Resolution 72...2400

But this seems to be generic settings for all printers the same.
Back to top
View user's profile Send private message
koenvl
n00b
n00b


Joined: 08 Jan 2004
Posts: 13
Location: Brussels, Belgium

PostPosted: Fri Apr 09, 2004 9:11 am    Post subject: Reply with quote

I use CUPS and setup my printout modes with CUPS' browser interface at http://127.0.0.1:631/. Go to 'printers' and click on 'configure printer'.
Back to top
View user's profile Send private message
smukec
n00b
n00b


Joined: 06 Dec 2003
Posts: 59
Location: Slovenia

PostPosted: Fri Apr 09, 2004 10:46 am    Post subject: Reply with quote

koenvl wrote:
I use CUPS and setup my printout modes with CUPS' browser interface at http://127.0.0.1:631/. Go to 'printers' and click on 'configure printer'.


Ok, but this requires users to go to printers administration.
I was thinking about setting this within the print dialog.
Back to top
View user's profile Send private message
koenvl
n00b
n00b


Joined: 08 Jan 2004
Posts: 13
Location: Brussels, Belgium

PostPosted: Fri Apr 09, 2004 12:04 pm    Post subject: Reply with quote

smukec wrote:
koenvl wrote:
I use CUPS and setup my printout modes with CUPS' browser interface at http://127.0.0.1:631/. Go to 'printers' and click on 'configure printer'.


Ok, but this requires users to go to printers administration.
I was thinking about setting this within the print dialog.


I've setup my printer different times in CUPS with different configurations (BW, BW draft, color, color draft). I gave them obvious names and descriptions. Then I can select the print modus of my choice in the print dialog. I know it's a simple workaround but I haven't looked any futher yet.

Hope it helps

The scanner part still does not work. I get exactly the same error as smukec earlier. sane-find-scanner finds the device but scanimage not. Does anyone know something about this problem. Maybe this extra info will ring a bell for some. Hope so anywayz!

Code:
root@system koen # scanimage -d hpoj:mlc:usb:psc_1100_series --test
scanimage: open of device hpoj:mlc:usb:psc_1100_series failed: Device busy



greetz,

Koen
Back to top
View user's profile Send private message
derk
Guru
Guru


Joined: 10 Mar 2003
Posts: 347
Location: St Thomas Ontario

PostPosted: Fri Apr 09, 2004 9:21 pm    Post subject: Reply with quote

you may have to try .. hpoj-cvs see Hp's hpoj website on how to access.
Back to top
View user's profile Send private message
freebaseh
n00b
n00b


Joined: 31 Jan 2003
Posts: 28

PostPosted: Tue May 25, 2004 6:17 pm    Post subject: Reply with quote

scanning works perfecly but printing i cant get to work when i browse cups interface i get ptal-mlcd: ERROR at ExMgr.cpp:2525, dev=<mlc:usb:psc_1200_series>, pid=10652, e=11, t=1085515885
Couldn't find device!

i have no real idea why it shows like that
Back to top
View user's profile Send private message
derk
Guru
Guru


Joined: 10 Mar 2003
Posts: 347
Location: St Thomas Ontario

PostPosted: Tue May 25, 2004 6:33 pm    Post subject: Reply with quote

check the order that hpoj and cupsd are started .. if hpoj starts after cupsd then cupsd can not find the device node .. a simple restart of the cupsd daemon "/etc/init.d/cupsd restart" should allow you to print if that is the case.

.. also try rerunning the ptal-init setup script to check if recent changes/updates have taken effect. Although if scanning works that is probably not the problem.

How are you browsing cups? With it's web interface or some other tool such as the kde printmanager?

Make sure you've installed the PPD files when installing hpijs/cups/foomatic by setting the USE="ppds" flag in /etc/make.conf before compiling.
Back to top
View user's profile Send private message
bouriquo
Guru
Guru


Joined: 29 May 2004
Posts: 304
Location: Collonges (01)

PostPosted: Mon Jun 07, 2004 7:46 am    Post subject: Reply with quote

Hi

I want now, if I must install also hpoj for my PSC 2110 for scanning with xsane or, if the driver hpijs that I had installed before can work also

Thanks
Back to top
View user's profile Send private message
derk
Guru
Guru


Joined: 10 Mar 2003
Posts: 347
Location: St Thomas Ontario

PostPosted: Mon Jun 07, 2004 6:36 pm    Post subject: Reply with quote

to Bouriquo the answer is yes they will work together
Back to top
View user's profile Send private message
heeckhau
n00b
n00b


Joined: 19 Mar 2003
Posts: 31
Location: Gent, Belgium

PostPosted: Mon Jun 07, 2004 7:56 pm    Post subject: Reply with quote

The same approach also works for the HP laserjet 3020 (http://users.pandora.be/EuphonicWizard/gentoo/)
Back to top
View user's profile Send private message
EDinATL
n00b
n00b


Joined: 13 Mar 2004
Posts: 10

PostPosted: Wed Jun 09, 2004 8:20 pm    Post subject: OfficeJet 6100 works great Reply with quote

Scanning and Printing works great on VMWare no less! Using latest hpoj, sane and whatever is the current cups. Only thing I wish I could get working is the Point and Print functionality, as I tried packaging the drivers using the method found in cups documentation and got heavily burnt out after many unsuccessful attempts at it.

Still stuck at that point, but printing through samba works great when I tell windows it's a deskjet 990c.

Thank god I don't have to stay stuck in windows for scanning though.
Back to top
View user's profile Send private message
nitroburn
n00b
n00b


Joined: 26 Jan 2004
Posts: 32

PostPosted: Tue Jul 13, 2004 10:56 pm    Post subject: yeah Reply with quote

thanks for the help! got my officejet 5510 working! I love it! Print, scan, fax, copy!!! muhahahahahahahahahahahahahahaha

I love you guys!!! :D
Back to top
View user's profile Send private message
chrisdupre
Tux's lil' helper
Tux's lil' helper


Joined: 30 May 2003
Posts: 120

PostPosted: Mon Jul 19, 2004 10:38 pm    Post subject: Reply with quote

nitroburn,
Could you please explain how you got this to work "exactly". I'm new to Gentoo Linux and I'm thinking of getting this all-in-one (HP 5510) at Circuit City. Just tell me what to compile or modularize in the kernel and some steps please.

Thanks nitroburn,
Chris Dupre' :mrgreen:
Back to top
View user's profile Send private message
Rainmaker
Veteran
Veteran


Joined: 12 Feb 2004
Posts: 1650
Location: /home/NL/ehv/

PostPosted: Tue Jul 27, 2004 3:37 pm    Post subject: Reply with quote

I got a officejet via a jetdirect pro box... How can I get scanning working? Printing works fine, but with cups, I don't have a officeject driver... Am I missing something here?
_________________
If you can't dazzle them with brilliance, baffle them with bullshit.
Back to top
View user's profile Send private message
crazy-bee
Apprentice
Apprentice


Joined: 03 Jan 2003
Posts: 170

PostPosted: Wed Sep 01, 2004 4:52 pm    Post subject: Reply with quote

Cheers! Gentoo forums do rule :-)

edit /etc/sane.d/dll.conf
and add "hpoj" to the list

saved my day after I went almost mad :-)
Back to top
View user's profile Send private message
Moeller
n00b
n00b


Joined: 20 Jul 2004
Posts: 5
Location: Denmark

PostPosted: Sat Nov 13, 2004 10:15 am    Post subject: ptal-mlcd: ERROR Reply with quote

smukec wrote:
Quote:
ptal-mlcd: ERROR at ExMgr.cpp:3165, dev=<mlc:usb:PSC_2100_Series@/dev/usb/lp0>, pid=3356, e=19, t=1081342790
llioSubprocess: llioWrite returns -1, expected=6!

Had the same problem. Solved it by removeing everything in the /etc /sane.d/dll.conf except hpoj.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks All times are GMT
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum