When I bought my Laserjet 1200SE about a year ago, FreeBSD wasn't capable of
using its USB interface. I see no indication that this has changed. Is
anybody working on this as a personal project? Is there any general
progress on it?
Basically, parallel printing 50MB Postscript files is killing me. I think
I'm going to have to give in and move the Printer onto a Linux workstation
unless somebody knows something I don't.
Kirk Strauser
"94 outdated ports on the box,
94 outdated ports.
Portupgrade one, an hour 'til done,
82 outdated ports on the box."
> -------------------------------------------------------------------------- <
發信人: dwhite@gumbysoft.com (Doug White), 看板: FB_stable
標 題: Re: HP Laserjet 1200 on USB
發信站: NCTU CSIE FreeBSD Server (Sat Sep 20 00:14:26 2003)
轉信站: ptt!FreeBSD.csie.NCTU!not-for-mail
On Fri, 19 Sep 2003, Kirk Strauser wrote:
> When I bought my Laserjet 1200SE about a year ago, FreeBSD wasn't capable of
> using its USB interface. I see no indication that this has changed. Is
> anybody working on this as a personal project? Is there any general
> progress on it?
Something wrong with ulpt?
> Basically, parallel printing 50MB Postscript files is killing me. I think
> I'm going to have to give in and move the Printer onto a Linux workstation
> unless somebody knows something I don't.
Oh not you too with this 'fix it' bribe.
Get a jetdirect card.
--
Doug White | FreeBSD: The Power to Serve
dwhite@gumbysoft.com | www.FreeBSD.org
> -------------------------------------------------------------------------- <
發信人: des@des.no (Dag-Erling Sm鷨grav), 看板: FB_stable
標 題: Re: HP Laserjet 1200 on USB
發信站: NCTU CSIE FreeBSD Server (Sat Sep 20 01:31:11 2003)
轉信站: ptt!FreeBSD.csie.NCTU!not-for-mail
Doug White <dwhite@gumbysoft.com> writes:
> On Fri, 19 Sep 2003, Kirk Strauser wrote:
> > When I bought my Laserjet 1200SE about a year ago, FreeBSD wasn't capab=
le of
> > using its USB interface. I see no indication that this has changed. Is
> > anybody working on this as a personal project? Is there any general
> > progress on it?
> Something wrong with ulpt?
Something wrong with USB support in general. My USB mouse works fine,
but nothing else I've tried does.
DES
> -------------------------------------------------------------------------- <
發信人: kirk@strauser.com (Kirk Strauser), 看板: FB_stable
標 題: Re: HP Laserjet 1200 on USB
發信站: NCTU CSIE FreeBSD Server (Sat Sep 20 03:41:13 2003)
轉信站: ptt!FreeBSD.csie.NCTU!not-for-mail
At 2003-09-19T16:35:14Z, Doug White <dwhite@gumbysoft.com> writes:
> Something wrong with ulpt?
Yes, at least in conjunction with that particular printer. I'm not
well-versed enough in the subject to really understand the problem, but I
think it has something to do with mode detection.
> Oh not you too with this 'fix it' bribe.
It wasn't a bribe. It was more of a statement of "geez, I'd really prefer
not to have to reconfigure my network's printing setup".
> Get a jetdirect card.
Out of curiosity, would there be any advantage to that over, say, building a
little and cheap Linux box as a dedicated print server?
=2D-=20
Kirk Strauser
--=-=-=
Content-Type: application/pgp-signature
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (GNU/Linux)
iD8DBQA/a2Aq5sRg+Y0CpvERAli9AJ4/AefYRiwpAMlAh27PkJzyyWEeywCeOloA
4uuXiwMCmbzxOlw3kU/S4xA=
=bDSJ
-----END PGP SIGNATURE-----
--=-=-=--
> -------------------------------------------------------------------------- <
發信人: pir@pir.net (Peter Radcliffe), 看板: FB_stable
標 題: Re: HP Laserjet 1200 on USB
發信站: NCTU CSIE FreeBSD Server (Sat Sep 20 03:41:13 2003)
轉信站: ptt!FreeBSD.csie.NCTU!not-for-mail
Kirk Strauser <kirk@strauser.com> probably said:
> Out of curiosity, would there be any advantage to that over, say, building a
> little and cheap Linux box as a dedicated print server?
Possibly cheaper, less power to run, fewer moving parts to fail, no OS
to keep updated ... the list is long.
I bought a printserver for my laserjet that plugs directly into the
parallel port of the printer (no parallel cables needed), powered by a
wall wart, speaks lpd (etc), configuration via telnet, for about $7
via ebay.
P.
--
pir
_______________________________________________
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org"
> -------------------------------------------------------------------------- <
發信人: edwin@mavetju.org (Edwin Groothuis), 看板: FB_stable
標 題: Re: HP Laserjet 1200 on USB
發信站: NCTU CSIE FreeBSD Server (Sat Sep 20 11:01:12 2003)
轉信站: ptt!FreeBSD.csie.NCTU!not-for-mail
On Fri, Sep 19, 2003 at 11:30:32AM -0500, Kirk Strauser wrote:
> When I bought my Laserjet 1200SE about a year ago, FreeBSD wasn't capable of
> using its USB interface. I see no indication that this has changed. Is
> anybody working on this as a personal project? Is there any general
> progress on it?
On 4.8:
Sep 20 13:41:12 k7 /kernel: ugen0: HewLett Packard HP LaserJet 1200, rev 1.10/1.00, addr 2
Edwin
--
Edwin Groothuis | Personal website: http://www.mavetju.org
edwin@mavetju.org | Weblog: http://www.mavetju.org/weblog/weblog.php
_______________________________________________
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org"
> -------------------------------------------------------------------------- <
發信人: edwin@mavetju.org (Edwin Groothuis), 看板: FB_stable
標 題: Re: HP Laserjet 1200 on USB
發信站: NCTU CSIE FreeBSD Server (Sat Sep 20 11:01:12 2003)
轉信站: ptt!FreeBSD.csie.NCTU!not-for-mail
On Sat, Sep 20, 2003 at 01:42:56PM +1000, Edwin Groothuis wrote:
> On Fri, Sep 19, 2003 at 11:30:32AM -0500, Kirk Strauser wrote:
> > When I bought my Laserjet 1200SE about a year ago, FreeBSD wasn't capable of
> > using its USB interface. I see no indication that this has changed. Is
> > anybody working on this as a personal project? Is there any general
> > progress on it?
>
> On 4.8:
>
> Sep 20 13:41:12 k7 /kernel: ugen0: HewLett Packard HP LaserJet 1200, rev 1.10/1.00, addr 2
(with which I wanted to say: no change, still doesn't work)
Edwin
--
Edwin Groothuis | Personal website: http://www.mavetju.org
edwin@mavetju.org | Weblog: http://www.mavetju.org/weblog/weblog.php
_______________________________________________
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org"
> -------------------------------------------------------------------------- <
發信人: ianjhart@ntlworld.com (ian j hart), 看板: FB_stable
標 題: Re: HP Laserjet 1200 on USB
發信站: NCTU CSIE FreeBSD Server (Sat Sep 20 20:04:25 2003)
轉信站: ptt!FreeBSD.csie.NCTU!not-for-mail
On Saturday 20 September 2003 4:51 am, Edwin Groothuis wrote:
> On Sat, Sep 20, 2003 at 01:42:56PM +1000, Edwin Groothuis wrote:
> > On Fri, Sep 19, 2003 at 11:30:32AM -0500, Kirk Strauser wrote:
> > > When I bought my Laserjet 1200SE about a year ago, FreeBSD wasn't
> > > capable of using its USB interface. I see no indication that this has
> > > changed. Is anybody working on this as a personal project? Is there
> > > any general progress on it?
> >
> > On 4.8:
> >
> > Sep 20 13:41:12 k7 /kernel: ugen0: HewLett Packard HP LaserJet 1200,
> > rev 1.10/1.00, addr 2
>
> (with which I wanted to say: no change, still doesn't work)
>
> Edwin
1)
This is from a previous MFC of usb code (might wrap).
http://docs.FreeBSD.org/cgi/getmsg.cgi?fetch=543161+0+/usr/local/www/db/text/2002/freebsd-stable/20021117.freebsd-stable
Since you have ugen0 it wasn't commited/was reverted.
2)
What makes you think USB will be faster? The bottleneck is almost certainly
the print engine. esp. in graphics mode.
3)
Even if you use Linux you'll need specific kernel revisions or patches.See
hpoj (on sourceforge).
HTH
--
ian j hart
Quoth the raven, bite me!
Salem Saberhagen (Episode LXXXI: The Phantom Menace)
_______________________________________________
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org"
> -------------------------------------------------------------------------- <
發信人: kirk@strauser.com (Kirk Strauser), 看板: FB_stable
標 題: Re: HP Laserjet 1200 on USB
發信站: NCTU CSIE FreeBSD Server (Sat Sep 20 21:15:08 2003)
轉信站: ptt!FreeBSD.csie.NCTU!not-for-mail
--=-=-=
Content-Transfer-Encoding: quoted-printable
At 2003-09-20T12:40:02Z, ian j hart <ianjhart@ntlworld.com> writes:
> 2)
> What makes you think USB will be faster? The bottleneck is almost certain=
ly=20
> the print engine. esp. in graphics mode.
It currently takes about 5 minutes to transfer a 20MB file to my printer
which has 64MB of memory. Printing starts within 5-10 seconds of the upload
being completed. If the parallel port is in interrupt mode, CPU is pegged
to 100% the whole time. In polled mode, CPU usage drops, but the printing
time doesn't decrease (and the ``parallel'' process is running the whole
time). That's what made me think that the parallel port is probably the
bottleneck.
=2D-=20
Kirk Strauser
--=-=-=
Content-Type: application/pgp-signature
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (GNU/Linux)
iD8DBQA/bFfi5sRg+Y0CpvERAngcAJ96w+9YG6jlqhDJ1nue85IWBUAv8wCfdDZs
PuXpMUcNwC1MZ+RAqGjLDdQ=
=EEZJ
-----END PGP SIGNATURE-----
--=-=-=--
> -------------------------------------------------------------------------- <
發信人: ianjhart@ntlworld.com (ian j hart), 看板: FB_stable
標 題: Re: HP Laserjet 1200 on USB
發信站: NCTU CSIE FreeBSD Server (Sat Sep 20 21:58:29 2003)
轉信站: ptt!FreeBSD.csie.NCTU!not-for-mail
On Saturday 20 September 2003 2:36 pm, Kirk Strauser wrote:
> At 2003-09-20T12:40:02Z, ian j hart <ianjhart@ntlworld.com> writes:
> > 2)
> > What makes you think USB will be faster? The bottleneck is almost
> > certainly the print engine. esp. in graphics mode.
>
> It currently takes about 5 minutes to transfer a 20MB file to my printer
> which has 64MB of memory.
So you have extra RAM then.
> Printing starts within 5-10 seconds of the upload being completed.
Q. How much of the 5 mins is data transfer, and how much is "printer busy"=
=20
(rendering)?
A. Nobody knows :)
Only when USB works will we know. We could test under Windows I suppose**
> If the parallel port is in interrupt mode, CPU is
> pegged to 100% the whole time. In polled mode, CPU usage drops, but the
> printing time doesn't decrease (and the ``parallel'' process is running t=
he
> whole time). That's what made me think that the parallel port is probably
> the bottleneck.
Perhaps IEEE1284 support needs "tweaking".
What's your data? One 20Mb graphic is different to a 20Mb "text" document.
As a point of reference here is what we have.
Win95 clients with PS driver -> K6II500 servers running samba + cups -> sto=
ck=20
1200's (ie. 8Mb)
A page of text takes about a minute, graphics about 3. MS Word will let you=
=20
add a border made up of replicated images. A large graphic plus a border ca=
n=20
take 20 mins+.
Now this could easily be the client software/driver, but public opinion see=
ms=20
to be that these printers are slow on graphics. **again
Just my 2c.
=2D-=20
ian j hart
Quoth the raven, bite me!
Salem Saberhagen (Episode LXXXI: The Phantom Menace)
**Personally I don't care. It's a "real" PS and text printer for ~=A3200. I=
work=20
at a school, cost is a primary consideration.
_______________________________________________
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org"
> -------------------------------------------------------------------------- <
發信人: kirk@strauser.com (Kirk Strauser), 看板: FB_stable
標 題: Re: HP Laserjet 1200 on USB
發信站: NCTU CSIE FreeBSD Server (Sat Sep 20 21:58:29 2003)
轉信站: ptt!FreeBSD.csie.NCTU!not-for-mail
--=-=-=
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: quoted-printable
At 2003-09-20T14:51:19Z, ian j hart <ianjhart@ntlworld.com> writes:
> Q. How much of the 5 mins is data transfer, and how much is "printer busy"
> (rendering)?
> A. Nobody knows :)
I've been going on the assumption that the server uploads the whole file,
then the printer begins to render it. I also realize that my assumption may
be complete incorrect.
> Only when USB works will we know. We could test under Windows I suppose**
Actually, I'd say that Linux is the next effort. I'm not so curious that
I'd put a Windows machine on my LAN just to test my printer. :)
> Perhaps IEEE1284 support needs "tweaking".
Perhaps. I also tried using lptcontrol to set "extended" mode, but that
didn't work at all. Literally. I'd print something, the light on the
printer would begin to flash, then it would stop; there were no error
messages in the CUPS logs.
> What's your data? One 20Mb graphic is different to a 20Mb "text" document.
20MB graphics. Here's what I was doing that really brought this to light:
1) Created a 30" x 24" 300DPI canvas in The GIMP.
2) Generated some really large text.
3) Used the "Resize canvas" to slice the image into 8" x 10" pages and
printed them individually.
The page files were the 20MB files that I was referring to. Although they
were graphic, I think they were basically bitmaps that wouldn't require too
much computation.
> As a point of reference here is what we have.
>
> Win95 clients with PS driver -> K6II500 servers running samba + cups -> s=
tock=20
> 1200's (ie. 8Mb)
> A page of text takes about a minute,
Seriously? I bought the printer to run off 20-30 page Word documents that
are emailed to me semi-weekly. The elapsed time from when I click "Print"
in OpenOffice to when the first page begins to appear is about 10 seconds if
the printer's not already warmed up, or 5 seconds otherwise. The whole job
runs at the advertised 12PPM or so.
> Now this could easily be the client software/driver, but public opinion
> seems to be that these printers are slow on graphics. **again
Nuts. Well, at least I don't find myself doing this too often. I guess
I'll just put up with the 5-10 minutes per page wait.
> **Personally I don't care. It's a "real" PS and text printer for ~=A3200.=
I
> work at a school, cost is a primary consideration.
It's still a great printer. As you said, the price is *definitely* right.
The output is spectacular, the toner is cheap, and text output flies. Were
it not for this snag, I'd say it's the perfect printer.
=2D-=20
Kirk Strauser
--=-=-=
Content-Type: application/pgp-signature
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (GNU/Linux)
iD8DBQA/bGya5sRg+Y0CpvERAgNQAJ9kyjbcAcvqiNZdTqOkYPUbp2xtZwCgk04/
57BWsmwoeGRdnTl3hl4Cto0=
=2kou
-----END PGP SIGNATURE-----
--=-=-=--
> -------------------------------------------------------------------------- <
發信人: des@des.no (Dag-Erling Sm鷨grav), 看板: FB_stable
標 題: Re: HP Laserjet 1200 on USB
發信站: NCTU CSIE FreeBSD Server (Sat Sep 20 23:22:14 2003)
轉信站: ptt!FreeBSD.csie.NCTU!not-for-mail
ian j hart <ianjhart@ntlworld.com> writes:
> On Saturday 20 September 2003 2:36 pm, Kirk Strauser wrote:
> > It currently takes about 5 minutes to transfer a 20MB file to my printer
> > which has 64MB of memory.
> > Printing starts within 5-10 seconds of the upload being completed.
> Q. How much of the 5 mins is data transfer, and how much is "printer busy=
"=20
> (rendering)?
> A. Nobody knows :)
20 MB in five minutes is very close to the maximum transfer rate
across a paralell port (~80 kBps).
DES
--=20
Dag-Erling Sm=F8rgrav - des@des.no
_______________________________________________
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org"
> -------------------------------------------------------------------------- <
發信人: lyndon@orthanc.ab.ca (Lyndon Nerenberg), 看板: FB_stable
標 題: Re: HP Laserjet 1200 on USB
發信站: NCTU CSIE FreeBSD Server (Sun Sep 21 00:26:42 2003)
轉信站: ptt!FreeBSD.csie.NCTU!not-for-mail
On Fri, 19 Sep 2003, Kirk Strauser wrote:
> When I bought my Laserjet 1200SE about a year ago, FreeBSD wasn't capable of
> using its USB interface. I see no indication that this has changed. Is
> anybody working on this as a personal project? Is there any general
> progress on it?
I was never able to get mine working under 4.X (4.7 was the last I tried).
Under 5.1 it works flawlessly:
FreeBSD gandalf.orthanc.ab.ca 5.1-CURRENT FreeBSD 5.1-CURRENT #1: Mon Aug
25 16:03:55 MDT 2003
Perhaps not the answer you wanted, but at least you know there is hope.
(Maybe you can install 5.1 on a spare junker.)
> Basically, parallel printing 50MB Postscript files is killing me.
--lyndon
The longest UNIX error code is ENAMETOOLONG.
_______________________________________________
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org"
> -------------------------------------------------------------------------- <
發信人: truckman@FreeBSD.org (Don Lewis), 看板: FB_stable
標 題: Re: HP Laserjet 1200 on USB
發信站: NCTU CSIE FreeBSD Server (Sun Sep 21 00:55:11 2003)
轉信站: ptt!FreeBSD.csie.NCTU!not-for-mail
On 20 Sep, Kirk Strauser wrote:
> At 2003-09-20T14:51:19Z, ian j hart <ianjhart@ntlworld.com> writes:
>> What's your data? One 20Mb graphic is different to a 20Mb "text" document.
>
> 20MB graphics. Here's what I was doing that really brought this to light:
>
> 1) Created a 30" x 24" 300DPI canvas in The GIMP.
> 2) Generated some really large text.
> 3) Used the "Resize canvas" to slice the image into 8" x 10" pages and
> printed them individually.
>
> The page files were the 20MB files that I was referring to. Although they
> were graphic, I think they were basically bitmaps that wouldn't require too
> much computation.
Are the Postscript files being sent to the printer still 300 DPI after
all the manipulation? When I use xsane in "Copy" mode, the resulting
Postscript files end up with an odd resolution which is painfully slow
to print on my Ethernet-connected HP LaserJet 4000 which has to resample
the bitmap to convert it to device resolution.
It might also speed things up if you can convert the data to monochrome
from either grayscale or RGB. I didn't see any obvious ways to do this
when printing from GIMP, but you could save the file in some format
compatible with netpbm, and use that to do the conversion. At that
point converting the data to HP LaserJet format before printing becomes
a possibility, which is likely to be a faster way to print bitmap data
than printing PostScript.
This doesn't solve you USB problem, though.
_______________________________________________
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org"
> -------------------------------------------------------------------------- <
發信人: ianjhart@ntlworld.com (ian j hart), 看板: FB_stable
標 題: Re: HP Laserjet 1200 on USB
發信站: NCTU CSIE FreeBSD Server (Sun Sep 21 02:54:35 2003)
轉信站: ptt!FreeBSD.csie.NCTU!not-for-mail
On Saturday 20 September 2003 4:03 pm, Dag-Erling Sm=F8rgrav wrote:
> ian j hart <ianjhart@ntlworld.com> writes:
> > On Saturday 20 September 2003 2:36 pm, Kirk Strauser wrote:
> > > It currently takes about 5 minutes to transfer a 20MB file to my
> > > printer which has 64MB of memory.
> > > Printing starts within 5-10 seconds of the upload being completed.
> >
> > Q. How much of the 5 mins is data transfer, and how much is "printer
> > busy" (rendering)?
> > A. Nobody knows :)
>
> 20 MB in five minutes is very close to the maximum transfer rate
> across a paralell port (~80 kBps).
>
> DES
I had 1Mb/s in my head. That's ~50% faster than that.
Theoretical vs. real world?
=2D-=20
ian j hart
Quoth the raven, bite me!
Salem Saberhagen (Episode LXXXI: The Phantom Menace)
_______________________________________________
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org"
> -------------------------------------------------------------------------- <
發信人: mvh@ix.netcom.com (Mike Harding), 看板: FB_stable
標 題: Re: HP Laserjet 1200 on USB
發信站: NCTU CSIE FreeBSD Server (Sun Sep 21 08:58:57 2003)
轉信站: ptt!FreeBSD.csie.NCTU!not-for-mail
Thanks! I was never able to get DMA to work with my printer...
Note that the ppc manpage, and the LINT file, don't mention drq at
all! And lptcontl -e didn't indicate any problems either - it just
indicated 'polled' mode.
Somebody should update the ppc manpage, at least...
X-Original-To: mvh@localhost
Date: Sat, 20 Sep 2003 20:10:26 +0100 (BST)
From: Andrew Gordon <arg-bsd@arg.me.uk>
X-X-Sender: freebsd@server.arg.sj.co.uk
Cc: freebsd-stable@freebsd.org
Sender: owner-freebsd-stable@freebsd.org
X-Spam-Status: No, hits=3D-6.2 required=3D5.0
tests=3DAWL,BAYES_01,EMAIL_ATTRIBUTION,IN_REP_TO,QUOTED_EMAIL_TEXT,
RCVD_IN_OSIRUSOFT_COM,REFERENCES,REPLY_WITH_QUOTES
version=3D2.55
X-Spam-Level:=20
X-Spam-Checker-Version: SpamAssassin 2.55 (1.174.2.19-2003-05-19-exp)
On Sat, 20 Sep 2003, Dag-Erling [iso-8859-1] Sm=F8rgrav wrote:
>
> 20 MB in five minutes is very close to the maximum transfer rate
> across a paralell port (~80 kBps).
You can do much better than that in ECP mode - I use it to transfer
2Mbit/sec video to a piece of custom hardware hung of the parallel por=
t
(standard drivers at the FreeBSD end), so I'm getting over 250KByte/se=
c.
However, the GENERIC kernel isn't configured for this - you need to ad=
d
the DRQ setting:
device ppc0 at isa? irq 7 drq 3
and make sure that the BIOS is configured to match. After that,
lptcontrol -e engages DMA-driven printing, with much greater speed and
lower CPU utilisation.
_______________________________________________
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.o=
rg"
_______________________________________________
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org"
> -------------------------------------------------------------------------- <
發信人: Holger.Kipp@alogis.com (Holger Kipp), 看板: FB_stable
標 題: Re: HP Laserjet 1200 on USB
發信站: NCTU CSIE FreeBSD Server (Sun Sep 21 17:15:56 2003)
轉信站: ptt!FreeBSD.csie.NCTU!not-for-mail
On Fri, Sep 19, 2003 at 07:50:15PM +0200, Dag-Erling Sm鷨grav wrote:
> Doug White <dwhite@gumbysoft.com> writes:
> > On Fri, 19 Sep 2003, Kirk Strauser wrote:
> > > When I bought my Laserjet 1200SE about a year ago, FreeBSD wasn't capable of
> > > using its USB interface. I see no indication that this has changed. Is
> > > anybody working on this as a personal project? Is there any general
> > > progress on it?
> > Something wrong with ulpt?
>
> Something wrong with USB support in general. My USB mouse works fine,
> but nothing else I've tried does.
I do have two USB-mice here. One is a cheapo Typhoon 40150 stream optical mouse
which works as expected (but afaik only since I last cvsupped). The other is
a hama 49154 discovery wheelmouse optical, which gives the following:
Sep 21 11:09:39 katrin /kernel: ums1: vendor 0x062a product 0x0000, rev 1.10/2.04, addr 2, iclass 3/1
Sep 21 11:09:44 katrin /kernel: device_probe_and_attach: ums1 attach returned 6
Sep 21 11:09:49 katrin /kernel: ugen0: vendor 0x062a product 0x0000, rev 1.10/2.04, addr 2
Sep 21 11:09:54 katrin /kernel: ugen0: setting configuration index 0 failed
Sep 21 11:09:54 katrin /kernel: device_probe_and_attach: ugen0 attach returned 6
The epson perfection scanner 1260 works without problems, but initialisation
must be done via Linux or Windows, and it shouldn't be switched off afterwards.
Call that strange!
My 6-in-1 cardreader makes no problems, at least with MS and SD/MMS-Cards
(USB-support works like a charm for about 2 months I guess). It would be
good to move this out of the kernel, though, as the floppy-disk-problem(tm)
got me there as well (removing the card without thinking, and I had it
mounted rw, resulting in a kernel panic). Is there no way to prevent this?
Interestingly, if I try to attach the 6-in-1 cardreader to the port where
I tried the hama USB mouse, I get:
Sep 21 11:25:28 katrin /kernel: uhub2: port error, restarting port 1
Sep 21 11:25:44 katrin /kernel: uhub2: device problem, disabling port 1
Sep 21 11:25:55 katrin /kernel: uhub2: port error, restarting port 1
Sep 21 11:26:11 katrin /kernel: uhub2: device problem, disabling port 1
Sep 21 11:26:35 katrin /kernel: uhub2: device problem, disabling port 2
Sep 21 11:28:49 katrin /kernel: uhub2: port error, restarting port 1
Sep 21 11:29:05 katrin /kernel: uhub2: device problem, disabling port 1
(usually it works on uhub2, both port 1 and 2). Using a different uhub:
Sep 21 11:29:18 katrin /kernel: umass0: ICSI IC1100 V2.5B, rev 1.10/2.5b, addr 3
Sep 21 11:29:18 katrin /kernel: da0 at umass-sim0 bus 0 target 0 lun 0
Sep 21 11:29:18 katrin /kernel: da0: <ICSI IC1100 CF 2.5B> Removable Direct Access SCSI-0 device
Sep 21 11:29:18 katrin /kernel: da0: 650KB/s transfers
Sep 21 11:29:18 katrin /kernel: da0: Attempt to query device size failed: NOT READY, Medium not presen
This is all on 4.9-PRERELEASE from Sep. 14 2003. So USB support is getting
better (thanx a lot to everyone who contributed!), but it is still some way
to go (imho).
Regards,
Holger
_______________________________________________
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org"
> -------------------------------------------------------------------------- <
發信人: kirk@strauser.com (Kirk Strauser), 看板: FB_stable
標 題: Re: HP Laserjet 1200 on USB
發信站: NCTU CSIE FreeBSD Server (Mon Sep 22 00:52:49 2003)
轉信站: ptt!FreeBSD.csie.NCTU!not-for-mail
--=-=-=
Content-Transfer-Encoding: quoted-printable
At 2003-09-20T16:57:18Z, Lyndon Nerenberg <lyndon@orthanc.ab.ca> writes:
> I was never able to get mine working under 4.X (4.7 was the last I tried).
> Under 5.1 it works flawlessly:
I *knew* that was too good to be true when I read it, but I had to try it
anyway.
I was wrong. It worked perfectly from the moment I plugged the printer's
USB cable in. I switch CUPS to print to USB printer #1 (no reset) and my
print times went down significantly and my CPU utilization dropped to
near-zero.
Wow, I've had my happy discovery for the day. Thanks a million!
=2D-=20
Kirk Strauser
--=-=-=
Content-Type: application/pgp-signature
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (GNU/Linux)
iD8DBQA/bfJ85sRg+Y0CpvERAqE3AJ9Te8DYgK3t3RahCVQMLsJKXW6KpACfXen+
lK8FbX9GUGzulARX8MeUuUE=
=7EIq
-----END PGP SIGNATURE-----
--=-=-=--
> -------------------------------------------------------------------------- <
發信人: ianjhart@ntlworld.com (ian j hart), 看板: FB_stable
標 題: Re: HP Laserjet 1200 on USB
發信站: NCTU CSIE FreeBSD Server (Mon Sep 22 04:58:26 2003)
轉信站: ptt!FreeBSD.csie.NCTU!not-for-mail
On Sunday 21 September 2003 7:48 pm, Kirk Strauser wrote:
> At 2003-09-20T16:57:18Z, Lyndon Nerenberg <lyndon@orthanc.ab.ca> writes:
> > I was never able to get mine working under 4.X (4.7 was the last I
> > tried). Under 5.1 it works flawlessly:
>
> I *knew* that was too good to be true when I read it, but I had to try it
> anyway.
>
> I was wrong. It worked perfectly from the moment I plugged the printer's
> USB cable in. I switch CUPS to print to USB printer #1 (no reset) and my
> print times went down significantly and my CPU utilization dropped to
> near-zero.
>
> Wow, I've had my happy discovery for the day. Thanks a million!
Just for the record, how long to print your 20MB graphic?
--
ian j hart
Quoth the raven, bite me!
Salem Saberhagen (Episode LXXXI: The Phantom Menace)
_______________________________________________
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org"
> -------------------------------------------------------------------------- <
發信人: ticso@cicely12.cicely.de (Bernd Walter), 看板: FB_stable
標 題: Re: HP Laserjet 1200 on USB
發信站: NCTU CSIE FreeBSD Server (Mon Sep 22 20:38:07 2003)
轉信站: ptt!FreeBSD.csie.NCTU!not-for-mail
--aM3YZ0Iwxop3KEKx
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
On Fri, Sep 19, 2003 at 11:30:32AM -0500, Kirk Strauser wrote:
> When I bought my Laserjet 1200SE about a year ago, FreeBSD wasn't capable of
> using its USB interface. I see no indication that this has changed. Is
> anybody working on this as a personal project? Is there any general
> progress on it?
>
> Basically, parallel printing 50MB Postscript files is killing me. I think
> I'm going to have to give in and move the Printer onto a Linux workstation
> unless somebody knows something I don't.
-stable stumbles over 1284 mode if the printer lists it as the first
alternative.
For -current this is not a problem.
I have a patch for -stable to switch to a working alternative somewhere
around - I hope that the attached is the right one...
--
B.Walter BWCT http://www.bwct.de
ticso@bwct.de info@bwct.de
--aM3YZ0Iwxop3KEKx
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="ulpt-2.diff"
--- ulpt.c.orig Fri May 2 15:50:58 2003
+++ ulpt.c Fri May 2 15:56:40 2003
@@ -174,7 +174,8 @@
id->bInterfaceClass == UICLASS_PRINTER &&
id->bInterfaceSubClass == UISUBCLASS_PRINTER &&
(id->bInterfaceProtocol == UIPROTO_PRINTER_UNI ||
- id->bInterfaceProtocol == UIPROTO_PRINTER_BI))
+ id->bInterfaceProtocol == UIPROTO_PRINTER_BI ||
+ id->bInterfaceProtocol == UIPROTO_PRINTER_1284))
return (UMATCH_IFACECLASS_IFACESUBCLASS_IFACEPROTO);
return (UMATCH_NONE);
}
@@ -183,79 +184,63 @@
{
USB_ATTACH_START(ulpt, sc, uaa);
usbd_device_handle dev = uaa->device;
+
+ usb_config_descriptor_t *cdesc;
+
usbd_interface_handle iface = uaa->iface;
- usb_interface_descriptor_t *id = usbd_get_interface_descriptor(iface);
+ usb_interface_descriptor_t *ifcd = usbd_get_interface_descriptor(iface);
+ usb_interface_descriptor_t *id, *iend;
char devinfo[1024];
usb_endpoint_descriptor_t *ed;
usbd_status err;
+ u_int8_t epcount;
+ int i, altno;
DPRINTFN(10,("ulpt_attach: sc=%p\n", sc));
usbd_devinfo(dev, 0, devinfo);
USB_ATTACH_SETUP;
- printf("%s: %s, iclass %d/%d\n", USBDEVNAME(sc->sc_dev),
- devinfo, id->bInterfaceClass, id->bInterfaceSubClass);
- /* Figure out which endpoint is the bulk out endpoint. */
- ed = usbd_interface2endpoint_descriptor(iface, 0);
- if (ed == NULL)
- goto nobulk;
- if (UE_GET_DIR(ed->bEndpointAddress) != UE_DIR_OUT ||
- (ed->bmAttributes & UE_XFERTYPE) != UE_BULK) {
- /* In case we are using a bidir protocol... */
- ed = usbd_interface2endpoint_descriptor(iface, 1);
- if (ed == NULL)
- goto nobulk;
- if (UE_GET_DIR(ed->bEndpointAddress) != UE_DIR_OUT ||
- (ed->bmAttributes & UE_XFERTYPE) != UE_BULK)
- goto nobulk;
- }
- sc->sc_bulk = ed->bEndpointAddress;
- DPRINTFN(10, ("ulpt_attach: bulk=%d\n", sc->sc_bulk));
-
- sc->sc_iface = iface;
- err = usbd_interface2device_handle(iface, &sc->sc_udev);
- if (err) {
- sc->sc_dying = 1;
- USB_ATTACH_ERROR_RETURN;
- }
- sc->sc_ifaceno = id->bInterfaceNumber;
-
-#if 0
-/*
- * This code is disabled because for some mysterious reason it causes
- * printing not to work. But only sometimes, and mostly with
- * UHCI and less often with OHCI. *sigh*
- */
- {
- usb_config_descriptor_t *cd = usbd_get_config_descriptor(dev);
- usb_device_request_t req;
- int len, alen;
-
- req.bmRequestType = UT_READ_CLASS_INTERFACE;
- req.bRequest = UR_GET_DEVICE_ID;
- USETW(req.wValue, cd->bConfigurationValue);
- USETW2(req.wIndex, id->bInterfaceNumber, id->bAlternateSetting);
- USETW(req.wLength, sizeof devinfo - 1);
- err = usbd_do_request_flags(dev, &req, devinfo, USBD_SHORT_XFER_OK,
- &alen);
- if (err) {
- printf("%s: cannot get device id\n", USBDEVNAME(sc->sc_dev));
- } else if (alen <= 2) {
- printf("%s: empty device id, no printer connected?\n",
- USBDEVNAME(sc->sc_dev));
- } else {
- /* devinfo now contains an IEEE-1284 device ID */
- len = ((devinfo[0] & 0xff) << 8) | (devinfo[1] & 0xff);
- if (len > sizeof devinfo - 3)
- len = sizeof devinfo - 3;
- devinfo[len] = 0;
- printf("%s: device id <", USBDEVNAME(sc->sc_dev));
- ieee1284_print_id(devinfo+2);
- printf(">\n");
- }
- }
+ cdesc = usbd_get_config_descriptor(dev);
+ if (cdesc == NULL) {
+ printf("%s: failed to get configuration descriptor\n",
+ USBDEVNAME(sc->sc_dev));
+ USB_ATTACH_ERROR_RETURN;
+ }
+ iend = (usb_interface_descriptor_t *)
+ ((char *)cdesc + UGETW(cdesc->wTotalLength));
+#ifdef DIAGNOSTIC
+ if (ifcd < (usb_interface_descriptor_t *)cdesc ||
+ ifcd >= iend)
+ panic("ulpt: iface desc out of range\n");
#endif
-
+ /* Step through all the descriptors looking for bidir mode */
+ for (id = ifcd, altno = 0;
+ id < iend;
+ id = (void *)((char *)id + id->bLength)) {
+ if (id->bDescriptorType == UDESC_INTERFACE &&
+ id->bInterfaceNumber == ifcd->bInterfaceNumber) {
+ if (id->bInterfaceClass == UICLASS_PRINTER &&
+ id->bInterfaceSubClass == UISUBCLASS_PRINTER &&
+ id->bInterfaceProtocol == UIPROTO_PRINTER_BI) {
+ DPRINTF(("ulpt_attach: set altno = %d\n", altno));
+ err = usbd_set_interface(iface, altno);
+ if (err == 0) {
+ printf("%s: %s, iclass %d/%d-%d(%d)\n", USBDEVNAME(sc->sc_dev),
+ devinfo, id->bInterfaceClass, id->bInterfaceSubClass,
+ id->bInterfaceNumber+id->bAlternateSetting, id->bInterfaceProtocol);
+ epcount = 0;
+ (void)usbd_endpoint_count(iface, &epcount);
+ for (i = 0; i < epcount; i++) {
+ ed = usbd_interface2endpoint_descriptor(iface, i);
+ if (ed != NULL) {
+ if (UE_GET_DIR(ed->bEndpointAddress) == UE_DIR_OUT &&
+ (ed->bmAttributes & UE_XFERTYPE) == UE_BULK) {
+ sc->sc_bulk = ed->bEndpointAddress;
+ DPRINTFN(10, ("ulpt_attach: bulk=%d\n", sc->sc_bulk));
+ sc->sc_iface = iface;
+ err = usbd_interface2device_handle(iface, &sc->sc_udev);
+ if (err == 0) {
+ sc->sc_ifaceno = id->bInterfaceNumber;
#if defined(__FreeBSD__)
sc->dev = make_dev(&ulpt_cdevsw, device_get_unit(self),
UID_ROOT, GID_OPERATOR, 0644, "ulpt%d", device_get_unit(self));
@@ -263,10 +248,17 @@
device_get_unit(self)|ULPT_NOPRIME,
UID_ROOT, GID_OPERATOR, 0644, "unlpt%d", device_get_unit(self));
#endif
-
USB_ATTACH_SUCCESS_RETURN;
-
- nobulk:
+ }
+ }
+ }
+ }
+ }
+ }
+ altno++;
+ }
+ }
+ id = ifcd; /* not found, use original */
printf("%s: could not find bulk endpoint\n", USBDEVNAME(sc->sc_dev));
sc->sc_dying = 1;
USB_ATTACH_ERROR_RETURN;
--aM3YZ0Iwxop3KEKx
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
_______________________________________________
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org"
--aM3YZ0Iwxop3KEKx--