kuzmin-no / Brother_DCP-T426W

"Creating" a macOS driver and adding support of AirPrint™ and IPP Everywhere™ for the budget printer Brother DCP-T426W
1 stars 0 forks source link

"Creating" a macOS driver and adding support of AirPrint™ and IPP Everywhere™ for the budget printer Brother DCP-T426W

The Brother DCP-T426W is an affordable ink tank printer that lacks native macOS drivers. Brother recommends using their iPrint&Scan software for macOS compatibility. Additionally, this model does not support AirPrint. We will attempt to resolve these issues.

The drivers are the easiest part to address. We can use drivers from the Brother DCP-T425W or DCP-T400 models and download the driver package from the Brother website: https://www.brother.cn/project/d2/Brother_PrinterDrivers_Inkjet19_101.dmg

If your inner perfectionist prefers a tailored solution, we can easily 'create' a driver specifically for the DCP-T426W.

  1. Let's download the driver package from the provided link https://www.brother.cn/project/d2/Brother_PrinterDrivers_Inkjet19_101.dmg
wget https://www.brother.cn/project/d2/Brother_PrinterDrivers_Inkjet19_101.dmg
  1. Extract the contents of the Brother_PrinterDrivers_Inkjet19_101.dmg file using 7z:
7z x Brother_PrinterDrivers_Inkjet19_101.dmg
  1. Inside, you'll find the package file Brother_PrinterDrivers_Inkjet19.pkg. Extract its contents:
mkdir drivers && xar -x -f Brother_PrinterDrivers_Inkjet19.pkg -C ./drivers
  1. In the folder drivers/Brother_PrinterDrivers_Inkjet19.pkg, locate the file named Payload and extract it as well:
tar zxvf Payload
  1. In the folder Library/Printers/PPDs/Contents/Resources you will find the driver files, decompress them:
gzip -d *.gz
  1. When comparing the files for the DCP-T42x models, we will find that they are identical except for the model name in fields such as Product, 1284DeviceID, NickName:
diff Brother\ DCP-T420W\ CUPS Brother\ DCP-T425W\ CUPS
diff Brother\ DCP-T425W\ CUPS Brother\ DCP-T428W\ CUPS
  1. We can now create a driver file specifically for the DCP-T426W model:
sed 's/DCP-T428W/DCP-T426W/g' Brother\ DCP-T428W\ CUPS > Brother\ DCP-T426W\ CUPS
  1. Let's create the PPD file, as it will be needed later for OpenPrinting CUPS:
cp Brother\ DCP-T426W\ CUPS Brother_DCP-T426W.ppd
  1. Create an archive of the newly created driver:
gzip Brother\ DCP-T426W\ CUPS
  1. You can then install the driver from the command line:
sudo cp ./Brother\ DCP-T426W\ CUPS.gz /Library/Printers/PPDs/Contents/Resources
  1. and find it listed under Printer Software:

    Printer Software window

  2. To add support for AirPrint™ and IPP Everywhere™, you need to install OpenPrinting CUPS on a Raspberry Pi, Docker container, or any Linux system of your choice. You will need to configure it as described below and use the Brother_DCP-T426W.ppd file created in Step 8.

As a result, we have a macOS driver and support of AirPrint™ and IPP Everywhere™, allowing printing from an iPhone or iPad without the need for the Brother iPrint&Scan app. The driver and PPD file can be found in the drivers folder.