Arch Linux 上の Brother HL-L2325DW プリンターは、ジョブが完了したと表示されているにもかかわらず印刷されません。

Arch Linux 上の Brother HL-L2325DW プリンターは、ジョブが完了したと表示されているにもかかわらず印刷されません。

タイトルの通り、プリンター (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)

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 がインストールされていることを確認しました。

$ 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管理タブから新しいプリンターを探してみると、

ここに画像の説明を入力してください

サブオプションをさまざまに組み合わせて、3 つのオプションすべてを試しました。他のオプションを試しても何も解決せず、プリンタはまったく動作しませんでした。ビープ音が鳴るのは、2 番目のオプションを選択した場合のみです。

すると次の画面が表示され、そこで「Brother」を選択して「続行」を押しました。

ここに画像の説明を入力してください

次に、モデルを選択するように求められました。私のプリンターに適合するオプションが 2 つあるようです。指定されたオプションではビープ音が鳴りますが、そこにリストされているもう 1 つのドライバー不要のオプションでは、ビープ音すら鳴りません。選択後、プリンターの追加を押しました。

ここに画像の説明を入力してください

次のページが表示されます:

ここに画像の説明を入力してください

「プリンター オプションの設定」をクリックすると、次の画面が表示されます。

ここに画像の説明を入力してください

デフォルトオプションの設定をクリックするとここに表示されます

ここに画像の説明を入力してください

ここで印刷しようとして、CUPS ローカルホスト サイトのジョブ ページに移動すると、次のような画面が表示されます。

ここに画像の説明を入力してください

完了と表示されますが、何も印刷されず、前に述べたようにプリンターがビープ音を鳴らすだけです。このプリンターは、Windows 上で問題なくネットワーク経由で正常に印刷します。

ここからどこへ進むべきかについて何かアドバイスはありますか?

ありがとう。

答え1

お使いのプリンターは IPP Everywhere または Airprint でサポートされているようです。つまり、明示的な ppd ファイルを提供する必要はありません。プリンターは、root として次のようなコマンドを使用してプリンターのセットアップを開始することで、それらを提供できます。

lpadmin -p AirPrint -E -v "ipp://10.0.xy/ipp/print" -m すべての場所

ここで、IPアドレスは、ローカルネットワーク上のプリンタに割り当てられているアドレスです。近年のプリンタのほとんどはこの設定モードをサポートしており、プリンタがサポートされているかどうかは、次のサイトで確認できます。https://openprinting.github.io/printers/

関連情報