Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 10 Mar 2022 01:55:44 +0800
From:      Archimedes Gaviola <archimedes.gaviola@gmail.com>
To:        freebsd-arm@freebsd.org
Subject:   Raspberry Pi 3B USB Printing Issue
Message-ID:  <CAJFbk7EzSfPNbaGxiweKrivwNrKXCPVzA1b7_=0_bTvbs8oBow@mail.gmail.com>

next in thread | raw e-mail | index | archive | help
--00000000000032685a05d9cccf8d
Content-Type: text/plain; charset="UTF-8"

Hi,

I have an Epson printer connected to one of the USB ports of my RPi 3B. The
printer is detected as a ugen(4) driver and then I have a text file -
myfile3.txt which contains 10 lines of repeating sentences.

freebsd@generic:~ % dmesg | grep EPSON
ugen1.4: <EPSON EPSON UB-U03II> at usbus1

freebsd@generic:~ % cat myfile3.txt
The quick brown fox jumps over the lazy dog.
The quick brown fox jumps over the lazy dog.
The quick brown fox jumps over the lazy dog.
The quick brown fox jumps over the lazy dog.
The quick brown fox jumps over the lazy dog.
The quick brown fox jumps over the lazy dog.
The quick brown fox jumps over the lazy dog.
The quick brown fox jumps over the lazy dog.
The quick brown fox jumps over the lazy dog.
The quick brown fox jumps over the lazy dog.

freebsd@generic:~ % cat myfile3.txt  > /dev/usb/1.4.1

I print the file successfully through device file redirection with cat
command as described above. However, there were times that printing seemed
to suspend and withhold especially when my RPi 3B system got idle for some
period of time. Suspended or withhold in such a way that out of the 10
lines there were only 2-3 lines to be printed in the paper. So, the only
remedy I have for now is to reboot the system to be able to get back to
normal printing. I'm using the 14.0-CURRENT #0 main-n253384-45c23c2608e:
Thu Feb 24 09:18:58 UTC 2022 and my RPi 4B does not manifest this behavior
using this same 14.0-CURRENT version. Any idea what's going on?

I found these sysctl knobs thinking if some tweaks would help but not sure
what are the exact settings beyond these defaults.

hw.usb.timings.port_resume_delay: 40
hw.usb.timings.port_powerup_delay: 300
hw.usb.timings.port_reset_recovery: 10
hw.usb.timings.port_root_reset_delay: 200
hw.usb.timings.port_reset_delay: 50

(Resend this message without dmesg and sysctl outputs as files are quite
big, sorry I didn't notice it.)

Thanks,
Archimedes

--00000000000032685a05d9cccf8d
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">
<div dir=3D"ltr"><div></div><div>Hi,</div><div><br></div><div>I have an Eps=
on printer
 connected to one of the USB ports of my RPi 3B. The printer is detected=20
as a ugen(4) driver and then I have a text file - myfile3.txt which=20
contains 10 lines of repeating sentences. <br></div><div><br></div><div>fre=
ebsd@generic:~ % dmesg | grep EPSON<br>ugen1.4: &lt;EPSON EPSON UB-U03II&gt=
; at usbus1</div><div><br></div><div>freebsd@generic:~ % cat myfile3.txt<br=
>The quick brown fox jumps over the lazy dog.<br>The quick brown fox jumps =
over the lazy dog.<br>The quick brown fox jumps over the lazy dog.<br>The q=
uick brown fox jumps over the lazy dog.<br>The quick brown fox jumps over t=
he lazy dog.<br>The quick brown fox jumps over the lazy dog.<br>The quick b=
rown fox jumps over the lazy dog.<br>The quick brown fox jumps over the laz=
y dog.<br>The quick brown fox jumps over the lazy dog.<br>The quick brown f=
ox jumps over the lazy dog.</div><div><br></div><div>
freebsd@generic:~ % cat myfile3.txt=C2=A0 &gt; /dev/usb/1.4.1

</div><div><br></div><div>I print the file successfully through device=20
file redirection with cat command as described above. However, there=20
were times that printing seemed to suspend and withhold especially when=20
my RPi 3B system got idle for some period of time. Suspended or withhold
 in such a way that out of the 10 lines there were only 2-3 lines to be=20
printed in the paper. So, the only remedy I have for now is to reboot=20
the system to be able to get back to normal printing. I&#39;m using the=20
14.0-CURRENT #0 main-n253384-45c23c2608e: Thu Feb 24 09:18:58 UTC 2022



 and my RPi 4B does not manifest this behavior using this same=20
14.0-CURRENT

version.=20
Any idea what&#39;s going on?<br></div><div><br></div><div>I found these sy=
sctl knobs thinking if some tweaks would help but not sure what are the exa=
ct settings beyond these defaults.<br></div><div><br></div><div>hw.usb.timi=
ngs.port_resume_delay: 40<br>hw.usb.timings.port_powerup_delay: 300<br>hw.u=
sb.timings.port_reset_recovery: 10<br>hw.usb.timings.port_root_reset_delay:=
 200<br>hw.usb.timings.port_reset_delay: 50</div><div><br></div><div></div>=
<div></div><div>(Resend this message without dmesg and sysctl outputs as fi=
les are quite big, sorry I didn&#39;t notice it.)<br></div><div><br></div><=
div>Thanks,</div><div>Archimedes</div></div></div>

--00000000000032685a05d9cccf8d--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAJFbk7EzSfPNbaGxiweKrivwNrKXCPVzA1b7_=0_bTvbs8oBow>