Arch Linux 上的 Brother HL-L2325DW 列印機無法列印,儘管顯示作業已完成

Arch Linux 上的 Brother HL-L2325DW 列印機無法列印,儘管顯示作業已完成

如標題所示,我的印表機(A Brother HL-L2325DW)無法列印。收到我的列印作業後,它會向我發出幾次蜂鳴聲,並且 CUPS 表示列印作業已完成,但除了幾聲蜂鳴聲之外,沒有任何反應。

我已經做了拱門維基建議。我已經安裝了 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)

杯子也已啟用:

$ 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。

$ 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 Arch Wiki 頁面上的主機名稱解析步驟

$ 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 安裝了印表機驅動程式:

$ 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 管理標籤中我找到了新印表機,它顯示

在此輸入影像描述

我已經嘗試了所有三個選項,使用了子選項的各種組合。我嘗試過的所有其他選項都無濟於事——印表機根本不工作。只有當我選擇第二個選項時才會發出蜂鳴聲。

這將我帶到了以下螢幕,我在其中選擇了 Brother,然後點擊繼續:

在此輸入影像描述

然後我被要求選擇型號。似乎有兩個選項適合我的印表機。指示的選項讓我發出蜂鳴聲,那裡列出的另一個無人駕駛選項甚至沒有給我那麼多。做出選擇後,我點擊新增印表機。

在此輸入影像描述

我被帶到以下頁面:

在此輸入影像描述

點擊“設定印表機選項”將我帶到這裡:

在此輸入影像描述

點擊“設定預設選項”即可到達這裡

在此輸入影像描述

現在,如果我嘗試列印並前往 CUPS 本機主機網站上的作業頁面,我會看到以下內容:

在此輸入影像描述

它顯示已完成,但沒有列印任何內容,我只是讓印表機發出蜂鳴聲,就像我之前提到的那樣。這台印表機可以在 Windows 上成功地透過網路列印,沒有任何麻煩。

關於從這裡去哪裡有什麼建議嗎?

謝謝。

答案1

看起來您的印表機支援 IPP 無處不在或 Airprint - 這意味著您不需要提供顯式 ppd 文件,因為印表機可以透過使用以下命令啟動印表機設定來提供它們:

lpadmin -p AirPrint -E -v "ipp://10.0.xy/ipp/print" -m 無所不在

其中 IP 位址是指派給本機網路上印表機的位址。近年來大多數印表機都支援這種設定模式,您可以在以下網址檢查您的印表機是否支援:https://openprinting.github.io/printers/

相關內容