从 22.04 开始,Brother HL-L2350DW 可使用 IPP 进行无驱动打印

从 22.04 开始,Brother HL-L2350DW 可使用 IPP 进行无驱动打印

Brother HL-L2350DW 专为智能手机而设计,开箱即用,我可以在 Pixel 7 上打印。想知道是否可以利用 Ubuntu 桌面环境中手机上使用的无线打印接口 (IPP)。似乎应该不太难。

在亚马逊网站上,有帖子建议他们让基本打印功能在 Linux 中运行。以下是 DB87 的回复。

开箱即用,我能够成功安装驱动程序并从我家的两个 Mac 10.10 和 10.11 设备进行无线打印。但是,尝试设置 Google Cloud Print 时却屡屡失败。我也无法在 Linux 桌面(Manjaro 4.19.13)上无线安装打印机。我尝试从 Mac、Linux 和 Windows 上的 Chrome 浏览器的设置菜单中注册 Google Cloud Print。我也尝试通过 Brother Web 界面进行注册。如果您不断被要求按 OK 进行注册,并且收到“无法连接到 Google。请检查您的网络”错误消息,则需要更新固件。更新后,我的 Google Cloud Print 和 Linux 驱动程序问题都消失了。对于 Manjaro,我使用的是 AUR 中的 brother-hll2350dw 驱动程序 v4.0.0-1。对于 Google 云打印,您需要通过打印机的 IP 登录(默认密码为“initpass”),转到网络 > 协议并单击 Google 云打印的“高级设置”,然后按照说明进行注册。我很幸运有一台开箱即用的计算机成功连接,以便更新固件。如果您没有无需固件更新即可连接的计算机,我不确定您将如何更新固件。也许直接通过 USB 连接可以避免连接问题。就打印而言,这是一款便宜、快速的单色激光打印机。它可以满足我的所有需求,而且看起来做工精良。这是一款五星级打印机,除了连接问题和开箱即用固件更新外,在我看来,这让它只能打四星。

@brian_p 建议的输出

james@james-NUC7i5DNHE:~$ lpstat -l -e
Brother_HL_L2350DW_series network none ipp://Brother%20HL-L2350DW%20series._ipp._tcp.local/
Brother_MFC_L2740DW_series network none ipp://Brother%20MFC-L2740DW%20series._ipp._tcp.local/
CUPS-BRF-Printer-HL permanent ipp://localhost/printers/CUPS-BRF-Printer-HL cups-brf:/
CUPS-BRF-Printer-MFC permanent ipp://localhost/printers/CUPS-BRF-Printer-MFC cups-brf:/

请注意,当我打开 wifi 后使用“设置”>“打印机”部分添加打印机时,出现“添加新打印机失败”对话框。

顺便说一下,我有两台 IPP 打印机,我可以轻松地从我的 pixel 7 打印到它们。当我在 ubuntu 操作系统上搜索打印机时,它似乎找到了它们,但在尝试查找它们的驱动程序时却出现错误。真扫兴。我会附上一张屏幕截图。

检测我的兄弟 IPP 打印机的屏幕截图

无法找到合适的驱动程序

我运行了以下命令,测试打印命令显示目标不接受作业。

james@james-NUC7i5DNHE:~$ systemctl stop cups-browsed
james@james-NUC7i5DNHE:~$ sudo apt purge cups-browsed
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following package was automatically installed and is no longer required:
  libllvm13
Use 'sudo apt autoremove' to remove it.
The following packages will be REMOVED:
  cups-browsed*
0 upgraded, 0 newly installed, 1 to remove and 6 not upgraded.
After this operation, 387 kB disk space will be freed.
Do you want to continue? [Y/n] y
(Reading database ... 236183 files and directories currently installed.)
Removing cups-browsed (1.28.15-0ubuntu1.2) ...
Processing triggers for man-db (2.10.2-1) ...
(Reading database ... 236171 files and directories currently installed.)
Purging configuration files for cups-browsed (1.28.15-0ubuntu1.2) ...
james@james-NUC7i5DNHE:~$ lpstat -l -e
Brother_HL_L2350DW_series network none ipp://Brother%20HL-L2350DW%20series._ipp._tcp.local/
james@james-NUC7i5DNHE:~$ lp -d Brother_HL_L2350DW_series /etc/nsswitch.conf
lp: Destination "Brother_HL_L2350DW_series" is not accepting jobs.

使用队列添加测试:

james@james-NUC7i5DNHE:~$ lpadmin -p L2350DW -v "ipp://Brother%20HL-L2350DW%20series._ipp._tcp.local/" -E -m everywhere
james@james-NUC7i5DNHE:~$ lp -d L2350DW /etc/nsswitch.conf
request id is L2350DW-15 (1 file(s))

因此错误反馈通过 GUI 弹出窗口传来: 在此处输入图片描述

答案1

CUPS 和 Pixel 7 将打印机检测为

Brother_HL_L2350DW_series

并具有 URI

ipp://Brother%20HL-L2350DW%20series._ipp._tcp.local/

因此,两者都知道打印机的名称及其位置。

使用 停止 cups-browsed。CUPSsystenctl stop cups-browsed不需要它,Pixel 7 也不使用它。如果下面的方法有效(而且应该有效),我建议apt purge cups-browsed

检查打印机是否仍被枚举lpstat -l -e。它应该显示在 Firefox 等应用程序的打印对话框中。使用

lp -d Brother_HL_L2350DW_series /etc/nsswitch.conf

A永恒的队列可以设置为

lpadmin -p L2350DW -v "URI" -E -m everywhere

当然,用上面的 URI 代替。用 进行测试lp -d L2350DW /etc/nsswitch.conf

答案2

最后给支持人员发了一封电子邮件,他们让我了解了 CUPS 的 Web 配置实用程序。事实证明,我们可以配置 CUPS 进行 IPP 打印,而无需输入打印机的 IP 地址,这是最理想的,因为当打印机离开并重新加入网络时,打印机的 IP 可能会发生变化。打印机现在工作得很好!

我添加打印机的步骤:

  1. 转到 localhost:631/printers (可能需要登录)
  2. 选择“管理”选项卡
  3. 在“打印机”下选择“添加打印机”
  4. 它展示了我两个兄弟的:
    • Brother HL-L2350DW系列(免驱动)(Brother HL-L2350DW系列)
    • Brother MFC-L2740DW系列(无驱动)(Brother MFC-L2740DW系列)
  5. 选择您的打印机
  6. 选择继续在此处输入图片描述
  7. 选择型号在此处输入图片描述
  8. 选择“添加打印机”

应该添加打印机,可以打印测试页。 在此处输入图片描述 在此处输入图片描述

相关内容