From nobody Wed Mar 09 17:55:44 2022 X-Original-To: freebsd-arm@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id C6C8D19F1763 for ; Wed, 9 Mar 2022 17:56:03 +0000 (UTC) (envelope-from archimedes.gaviola@gmail.com) Received: from mail-ed1-x52c.google.com (mail-ed1-x52c.google.com [IPv6:2a00:1450:4864:20::52c]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4KDKcg0PV4z4nTB for ; Wed, 9 Mar 2022 17:56:03 +0000 (UTC) (envelope-from archimedes.gaviola@gmail.com) Received: by mail-ed1-x52c.google.com with SMTP id g3so3939120edu.1 for ; Wed, 09 Mar 2022 09:56:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:from:date:message-id:subject:to; bh=dxyAlQyF00wtG3FrFbPYRTNEBsaubyHj1CShVwixHgg=; b=JWJMsdqVWSo7Au1dU5Lzfj+4E+URGBOdPpsn1x0EC0KWIIQjUxJ7LyILI7XwWms9uv xhHfjiuRcJ7mQZnK6CEVby03Tbz51bvvhrzPHjL9BKrRT9mxgBaRLN9jLXv7o9fAiGqT iT+CblLUqN3KmHiYYN0G8Gwlnx/SYHEHCkFxeVeCZngoyXPAPahaK0BOAKLUPtxB9Zbw gf0ygdxIR0h+EnvXMbO9o0+WmGE+MF0ZWB0Xn4uZ6bFAPIWkDFIA864m8GOg0nC7YNdw j1D6kB71PID4cFO9YAjIq6YTYm/ikvCUiqf6GdjCY0eXCZA6BuFN95HyjWrY2e8RSuIb xRiQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=dxyAlQyF00wtG3FrFbPYRTNEBsaubyHj1CShVwixHgg=; b=55wiZsuK1d+/tiFqBH8bMu/G4XlBc1FmcWS3qBvbxqhy79kGWxdolt/mUMuf+Thedy c5dA4g2c8BCQefYKoSMCnPPTvU9P/iFEl5fWIZUcjDXmPGn47iF7jcpNAch0rtPOe1dP g6FuXBhKN5j/aPTq03z70bS5DsPFJdkbA+CSHysJj/veQl3L8N5dz0RIy6fgQFoclPuR w6eIMksbG7YdI4JHdhDVH1+tbMBdR+Omsv0IxrpRJGcIyakIdj7V43m7noRboBktBGDt xucMbrhsTbHHqSt1HnGzr3FepXdQOjbhtNS7rekD8mkLeXQlaOHAprj/DCssUmQAwpXO smAA== X-Gm-Message-State: AOAM53225lmt44cM8lh8kH12V2mr9zc2jEpB8HuIm61G/uZ2wq+erHlZ /7RqNa5pE01dNjsqxONDCZXdazdNSG58H8BgI4GcPKlRT4IP1w== X-Google-Smtp-Source: ABdhPJwzZJkkn+kD5cakDmRzRZ+h/6TU+LUcTtUE4GiLP4pBr1UpV2k2JIf3rnTxpM4wdPfL4CXUzBLbYN7qsPoGhj8= X-Received: by 2002:a05:6402:5cb:b0:415:e04a:5230 with SMTP id n11-20020a05640205cb00b00415e04a5230mr642203edx.352.1646848556294; Wed, 09 Mar 2022 09:55:56 -0800 (PST) List-Id: Porting FreeBSD to ARM processors List-Archive: https://lists.freebsd.org/archives/freebsd-arm List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-arm@freebsd.org MIME-Version: 1.0 From: Archimedes Gaviola Date: Thu, 10 Mar 2022 01:55:44 +0800 Message-ID: Subject: Raspberry Pi 3B USB Printing Issue To: freebsd-arm@freebsd.org Content-Type: multipart/alternative; boundary="00000000000032685a05d9cccf8d" X-Rspamd-Queue-Id: 4KDKcg0PV4z4nTB X-Spamd-Bar: - Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20210112 header.b=JWJMsdqV; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of archimedesgaviola@gmail.com designates 2a00:1450:4864:20::52c as permitted sender) smtp.mailfrom=archimedesgaviola@gmail.com X-Spamd-Result: default: False [-2.00 / 15.00]; FREEMAIL_FROM(0.00)[gmail.com]; R_SPF_ALLOW(-0.20)[+ip6:2a00:1450:4000::/36]; TO_DN_NONE(0.00)[]; MID_RHS_MATCH_FROMTLD(0.00)[]; DKIM_TRACE(0.00)[gmail.com:+]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; TAGGED_FROM(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-0.996]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20210112]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-arm@freebsd.org]; RCPT_COUNT_ONE(0.00)[1]; NEURAL_SPAM_SHORT(1.00)[1.000]; RCVD_IN_DNSWL_NONE(0.00)[2a00:1450:4864:20::52c:from]; MLMMJ_DEST(0.00)[freebsd-arm]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[] X-ThisMailContainsUnwantedMimeParts: N --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: 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
Hi,

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.

fre= ebsd@generic:~ % dmesg | grep EPSON
ugen1.4: <EPSON EPSON UB-U03II>= ; at usbus1

freebsd@generic:~ % cat myfile3.txtThe 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 q= uick brown fox jumps over the lazy dog.
The quick brown fox jumps over t= he lazy dog.
The quick brown fox jumps over the lazy dog.
The quick b= rown fox jumps over the lazy dog.
The quick brown fox jumps over the laz= y dog.
The quick brown fox jumps over the lazy dog.
The quick brown f= ox jumps over the lazy dog.

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

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'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's going on?

I found these sy= sctl knobs thinking if some tweaks would help but not sure what are the exa= ct settings beyond these defaults.

hw.usb.timi= ngs.port_resume_delay: 40
hw.usb.timings.port_powerup_delay: 300
hw.u= sb.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 fi= les are quite big, sorry I didn't notice it.)

<= div>Thanks,
Archimedes
--00000000000032685a05d9cccf8d--