Arch Linux 环境下 Brother HL-L2325DW 打印机显示任务完成却无法打印的问题求助
就像标题说的,我没法让我的 Brother HL-L2325DW 打印机正常工作。每次发送打印任务后,打印机只会嗡嗡响几声,CUPS那边明明显示任务已经完成,但除了那几声蜂鸣之外,纸一点动静都没有,完全没打印出东西。
下面是我已经尝试过的所有操作,还是没解决问题,想问问大家有没有后续排查的方向?
我已经做过的配置步骤
安装并启用CUPS
我严格按照Arch Wiki的指引装了CUPS相关组件,用pacman -Ss cups查了下,必要的包都已经安装了:
$ pacman -Ss cups extra/apcupsd 3.14.14-7 Power mangement and controlling most of APC's UPS models extra/bluez-cups 5.73-4 CUPS printer backend for Bluetooth printers extra/cups 1:2.4.7-2 [installed] OpenPrinting CUPS - daemon package extra/cups-browsed 2.0.0-2 a helper daemon to browse the network for remote CUPS queues and IPP network printers extra/cups-filters 2.0.0-1 [installed] OpenPrinting CUPS Filters extra/cups-pdf 3.0.1-7 PDF printer for cups extra/cups-pk-helper 0.2.7-1 A helper that makes system-config-printer use PolicyKit extra/libcups 1:2.4.7-2 [installed] OpenPrinting CUPS - client libraries and headers extra/libcupsfilters 2.0.0-1 [installed] OpenPrinting CUPS Filters - contains all the code of the filters of the former cups-filters package as library functions extra/pappl 1.4.6-1 a simple C-based framework/library for developing CUPS Printer Applications extra/python-pycups 2.0.1-6 Python bindings for libcups extra/splix 2.0.0-20 CUPS drivers for SPL (Samsung Printer Language) printers extra/system-config-printer 1.5.18-2 A CUPS printer configuration tool and status applet multilib/lib32-libcups 2.4.7-1 [installed] The CUPS Printing System - client libraries (32-bit)
而且CUPS服务也已经启用并正常运行了,用systemctl status cups查的状态如下:
$ systemctl status cups ● cups.service - CUPS Scheduler Loaded: loaded (/usr/lib/systemd/system/cups.service; enabled; preset: disabled) Active: active (running) since Mon 2024-03-25 01:23:40 CDT; 8h ago TriggeredBy: ● cups.socket ○ cups.path Docs: man:cupsd(8) Main PID: 196807 (cupsd) Status: "Scheduler is running..." Tasks: 1 (limit: 19027) Memory: 4.9M (peak: 21.2M) CPU: 1.139s CGroup: /system.slice/cups.service └─196807 /usr/bin/cupsd -l Mar 25 01:23:40 arch systemd[1]: Starting CUPS Scheduler... Mar 25 01:23:40 arch systemd[1]: Started CUPS Scheduler.
配置Avahi实现自动发现
为了让系统能自动找到这台网络打印机,我装了Avahi,包状态是这样的:
$ pacman -Ss avahi extra/avahi 1:0.8+r194+g3f79789-1 [installed] Service Discovery for Linux using mDNS/DNS-SD (compatible with Bonjour) extra/pacredir 0.4.7-2 redirect pacman requests, assisted by avahi service discovery
还按照Avahi的Wiki指引改了/etc/nsswitch.conf的主机名解析配置,现在文件内容是:
$ cat /etc/nsswitch.conf # Name Service Switch configuration file. # See nsswitch.conf(5) for details. passwd: files systemd group: files [SUCCESS=merge] systemd shadow: files systemd gshadow: files systemd publickey: files hosts: mymachines mdns_minimal [NOTFOUND=return] resolve [!UNAVAIL=return] files myhostname dns networks: files protocols: files services: files ethers: files rpc: files netgroup: files
安装对应型号的驱动
我从AUR上装了专门针对HL-L2325DW的CUPS驱动,用yay -Ss查的状态如下:
$ yay -Ss brother-hll2325dw aur/brother-hll2325dw 4.0.0-1 (+0 0.00) (Installed) Brother HL-L2325DW CUPS driver (based on Brother's rpm package)
CUPS里的打印机配置过程
我打开CUPS的本地管理页面,去添加新打印机,页面里显示了三个可用的选项:
我把这三个选项的各种子组合都试了一遍,大部分情况下打印机连响都不响,只有选第二个选项的时候,打印机才会发出那几声蜂鸣。
选第二个选项之后,进入厂商选择页面,我选了Brother然后点继续:
接下来是型号选择,有两个和我的打印机匹配的选项:选指定的那个会让打印机蜂鸣,另一个标注“无驱动”的选项连蜂鸣都没有。我选了前者之后点击添加打印机:
之后进入了打印机的基本配置页面:
点“Set Printer Options”进入选项设置页面,设置完后点“Set Default Options”,进入默认选项确认页面:
现在每次我发送打印任务,CUPS的任务页面都会显示任务已完成,但打印机就是不干活,只有几声蜂鸣。这台打印机在Windows下连网打印完全没问题,一点麻烦都没有,到Arch这边就卡住了。
有没有大佬能给我指条路,接下来该查哪里?谢谢大家!
备注:内容来源于stack exchange,提问作者Dargscisyhp




