Brother DCP J772DW will not print multiple copies in Duplex - Solved

Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
micksulley
Level 4
Level 4
Posts: 207
Joined: Fri Feb 14, 2014 11:32 am

Brother DCP J772DW will not print multiple copies in Duplex - Solved

Post by micksulley »

Running Mint 20.1 and iI have a Brother DCP J772DW printer
It will print duplex but although it allows me to select multiple copies it only prints one. It prints a multi page document in duplex fine, but only one copy no matter how many I select.

Any ideas?
system info

Code: Select all

System:    Kernel: 5.4.0-65-generic x86_64 bits: 64 compiler: gcc v: 9.3.0 Desktop: Cinnamon 4.6.7 
           wm: muffin dm: LightDM Distro: Linux Mint 20 Ulyana base: Ubuntu 20.04 focal 
Machine:   Type: Desktop Mobo: ASUSTeK model: P8Z77-V LX v: Rev X.0x serial: <filter> 
           BIOS: American Megatrends v: 2501 date: 07/21/2014 
Battery:   Device-1: hidpp_battery_0 model: Logitech Wireless Keyboard K270 serial: <filter> 
           charge: 100% (should be ignored) status: Discharging 
           Device-2: hidpp_battery_1 model: Logitech Wireless Mouse M315/M235 serial: <filter> 
           charge: 100% (should be ignored) status: Discharging 
CPU:       Topology: Quad Core model: Intel Core i7-3770K bits: 64 type: MT MCP arch: Ivy Bridge 
           rev: 9 L2 cache: 8192 KiB 
           flags: avx lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx bogomips: 56164 
           Speed: 2403 MHz min/max: 1600/3900 MHz Core speeds (MHz): 1: 2277 2: 3104 3: 3689 
           4: 2478 5: 2876 6: 2954 7: 2753 8: 2506 
Graphics:  Device-1: NVIDIA GF119 [GeForce GT 610] vendor: ASUSTeK driver: nouveau v: kernel 
           bus ID: 01:00.0 chip ID: 10de:104a 
           Display: x11 server: X.Org 1.20.9 driver: modesetting unloaded: fbdev,vesa 
           resolution: 1920x1200~60Hz 
           OpenGL: renderer: NVD9 v: 4.3 Mesa 20.2.6 direct render: Yes 
Audio:     Device-1: Intel 7 Series/C216 Family High Definition Audio vendor: ASUSTeK P8Z77-V LX 
           driver: snd_hda_intel v: kernel bus ID: 00:1b.0 chip ID: 8086:1e20 
           Device-2: NVIDIA GF119 HDMI Audio vendor: ASUSTeK driver: snd_hda_intel v: kernel 
           bus ID: 01:00.1 chip ID: 10de:0e08 
           Device-3: C-Media CM108 Audio Controller type: USB 
           driver: hid-generic,snd-usb-audio,usbhid bus ID: 3-3.2:4 chip ID: 0d8c:013c 
           Sound Server: ALSA v: k5.4.0-65-generic 
Network:   Device-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet 
           vendor: ASUSTeK P8 series driver: r8169 v: kernel port: d000 bus ID: 03:00.0 
           chip ID: 10ec:8168 
           IF: enp3s0 state: up speed: 1000 Mbps duplex: full mac: <filter> 
Drives:    Local Storage: total: 4.08 TiB used: 2.51 TiB (61.5%) 
           ID-1: /dev/sda vendor: Kingston model: SA400S37480G size: 447.13 GiB speed: 6.0 Gb/s 
           serial: <filter> 
           ID-2: /dev/sdb vendor: HGST (Hitachi) model: HDN726040ALE614 size: 3.64 TiB 
           speed: 6.0 Gb/s serial: <filter> 
Partition: ID-1: / size: 438.62 GiB used: 17.62 GiB (4.0%) fs: ext4 dev: /dev/sda5 
           ID-2: /home size: 3.58 TiB used: 2.49 TiB (69.5%) fs: ext4 dev: /dev/sdb1 
Sensors:   System Temperatures: cpu: 38.0 C mobo: N/A gpu: nouveau temp: 41 C 
           Fan Speeds (RPM): N/A 
Repos:     No active apt repos in: /etc/apt/sources.list 
           Active apt repos in: /etc/apt/sources.list.d/google-chrome.list 
           1: deb [arch=amd64] http: //dl.google.com/linux/chrome/deb/ stable main
           Active apt repos in: /etc/apt/sources.list.d/linuxgndu-sqlitebrowser-focal.list 
           1: deb http: //ppa.launchpad.net/linuxgndu/sqlitebrowser/ubuntu focal main
           Active apt repos in: /etc/apt/sources.list.d/official-package-repositories.list 
           1: deb http: //www.mirrorservice.org/sites/packages.linuxmint.com/packages ulyana main upstream import backport
           2: deb http: //archive.ubuntu.com/ubuntu focal main restricted universe multiverse
           3: deb http: //archive.ubuntu.com/ubuntu focal-updates main restricted universe multiverse
           4: deb http: //archive.ubuntu.com/ubuntu focal-backports main restricted universe multiverse
           5: deb http: //security.ubuntu.com/ubuntu/ focal-security main restricted universe multiverse
           6: deb http: //archive.canonical.com/ubuntu/ focal partner
           Active apt repos in: /etc/apt/sources.list.d/sane-project-sane-git-focal.list 
           1: deb http: //ppa.launchpad.net/sane-project/sane-git/ubuntu focal main
           Active apt repos in: /etc/apt/sources.list.d/serge-rider-dbeaver-ce-focal.list 
           1: deb http: //ppa.launchpad.net/serge-rider/dbeaver-ce/ubuntu focal main
           Active apt repos in: /etc/apt/sources.list.d/signal-xenial.list 
           1: deb [arch=amd64] https: //updates.signal.org/desktop/apt xenial main
Info:      Processes: 257 Uptime: 5h 44m Memory: 15.59 GiB used: 5.95 GiB (38.2%) Init: systemd 
           v: 245 runlevel: 5 Compilers: gcc: 9.3.0 alt: 8/9 Client: Unknown python3.8 client 
           inxi: 3.0.38 
Thanks
Mick
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 5 times in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
brian_p
Level 9
Level 9
Posts: 2702
Joined: Thu Jan 17, 2019 9:20 am
Location: UK

Re: Brother DCP J772DW will not print multiple copies in Duplex

Post by brian_p »

You will have a PPD for the printer in etc/cups/ppd. Get its name. I will call it BROTHER_PPD. You substitute the correct filename, of course.

Give the outputs of

Code: Select all

sudo grep "PCFileName" /etc/cups/ppd/BROTHER_PPD

Code: Select all

sudo grep "NickName" /etc/cups/ppd/BROTHER_PPD

Code: Select all

sudo grep "cupsManualCopies" /etc/cups/ppd/BROTHER_PPD
--
Brian.
micksulley
Level 4
Level 4
Posts: 207
Joined: Fri Feb 14, 2014 11:32 am

Re: Brother DCP J772DW will not print multiple copies in Duplex

Post by micksulley »

Here is the output

Code: Select all

mick@Mint20Desk:~$ sudo grep "PCFileName" /etc/cups/ppd/Brother_DCP_J772DW.ppd
[sudo] password for mick:         
*PCFileName: "drvless.ppd"
mick@Mint20Desk:~$ sudo grep "NickName" /etc/cups/ppd/Brother_DCP_J772DW.ppd
*NickName: "Brother DCP-J772DW, driverless, cups-filters 1.27.4"
*ShortNickName: "Brother DCP-J772DW"
mick@Mint20Desk:~$ sudo grep "cupsManualCopies" /etc/cups/ppd/Brother_DCP_J772DW.ppd
*cupsManualCopies: true
mick@Mint20Desk:~$ 


brian_p
Level 9
Level 9
Posts: 2702
Joined: Thu Jan 17, 2019 9:20 am
Location: UK

Re: Brother DCP J772DW will not print multiple copies in Duplex

Post by brian_p »

micksulley wrote: Fri Feb 05, 2021 6:39 pm Here is the output

Code: Select all

mick@Mint20Desk:~$ sudo grep "cupsManualCopies" /etc/cups/ppd/Brother_DCP_J772DW.ppd
*cupsManualCopies: true
mick@Mint20Desk:~$ 


Edit Brother_DCP_J772DW.ppd to have

Code: Select all

*cupsManualCopies: True
--
Brian.
micksulley
Level 4
Level 4
Posts: 207
Joined: Fri Feb 14, 2014 11:32 am

Re: Brother DCP J772DW will not print multiple copies in Duplex

Post by micksulley »

Done that and it works perfectly!
Many thanks
brian_p
Level 9
Level 9
Posts: 2702
Joined: Thu Jan 17, 2019 9:20 am
Location: UK

Re: Brother DCP J772DW will not print multiple copies in Duplex

Post by brian_p »

The issue is a bug in cups-filters, fixed in a later version. Please edit the subject header to have [SOLVED].
--
Brian.
brian_p
Level 9
Level 9
Posts: 2702
Joined: Thu Jan 17, 2019 9:20 am
Location: UK

Re: Brother DCP J772DW will not print multiple copies in Duplex - [SOLVED]

Post by brian_p »

There is a possible glitch:

If cups-browsed refreshes the queues it knows about (which I think it does every 24 hours), it will regenerate the PPD and return True to true. The solution is to set up a manual queue with

Code: Select all

lpadmin -p PRINTER_NAME -v "$(driverless)" -E -m driverless:"$(driverless)"
PRINTER_NAME can be anything you want. cups-browsed is now unwanted, so it could be removed:

Code: Select all

apt purge cups-browsed
--
Brian.
micksulley
Level 4
Level 4
Posts: 207
Joined: Fri Feb 14, 2014 11:32 am

Re: Brother DCP J772DW will not print multiple copies in Duplex

Post by micksulley »

Yes I can confirm that it has changed back to 'true'

I tried to follow your instructions but I don't think it has worked, this is what I see -

Code: Select all

mick@Mint20Desk:~$ lpadmin -p Brother_DCP_J772DW -v "$(driverless)" -E -m driverless:"$(driverless)"
lpadmin: Printer drivers are deprecated and will stop working in a future version of CUPS.
lpadmin: Unable to open PPD "/tmp/00c5e60201bfd": Missing PPD-Adobe-4.x header on line 0.
mick@Mint20Desk:~$ 
Is there something else I need to do?
brian_p
Level 9
Level 9
Posts: 2702
Joined: Thu Jan 17, 2019 9:20 am
Location: UK

Re: Brother DCP J772DW will not print multiple copies in Duplex

Post by brian_p »

micksulley wrote: Sun Feb 07, 2021 5:55 am Yes I can confirm that it has changed back to 'true'

I tried to follow your instructions but I don't think it has worked, this is what I see -

Code: Select all

mick@Mint20Desk:~$ lpadmin -p Brother_DCP_J772DW -v "$(driverless)" -E -m driverless:"$(driverless)"
lpadmin: Printer drivers are deprecated and will stop working in a future version of CUPS.
lpadmin: Unable to open PPD "/tmp/00c5e60201bfd": Missing PPD-Adobe-4.x header on line 0.
mick@Mint20Desk:~$ 
Is there something else I need to do?
From basics:

Code: Select all

driverless
gives you a URI to substitute in the next command:

Code: Select all

lpadmin -p Brother_DCP_J772DW -v "URI" -E -m driverless:"URI"
--
Brian.
micksulley
Level 4
Level 4
Posts: 207
Joined: Fri Feb 14, 2014 11:32 am

Re: Brother DCP J772DW will not print multiple copies in Duplex

Post by micksulley »

Thanks, I have done that. I'll check again tomorrow to confirm that is has worked
Mick
micksulley
Level 4
Level 4
Posts: 207
Joined: Fri Feb 14, 2014 11:32 am

Re: Brother DCP J772DW will not print multiple copies in Duplex

Post by micksulley »

Just checked again and it has changed back to 'true' rather than 'True' and has stopped working again.
What can I do to fix it? How does it regenerate the file?
brian_p
Level 9
Level 9
Posts: 2702
Joined: Thu Jan 17, 2019 9:20 am
Location: UK

Re: Brother DCP J772DW will not print multiple copies in Duplex

Post by brian_p »

micksulley wrote: Mon Feb 08, 2021 8:21 am Just checked again and it has changed back to 'true' rather than 'True' and has stopped working again.
What can I do to fix it? How does it regenerate the file?
This could be because you gave the queue the same name as used by cups-browsed, so it is still managing the queue. As advised earlier, remove it from the system.
--
Brian.
micksulley
Level 4
Level 4
Posts: 207
Joined: Fri Feb 14, 2014 11:32 am

Re: Brother DCP J772DW will not print multiple copies in Duplex - Solved

Post by micksulley »

Just tested this again and I can confirm that it is fixed. Thanks for the help.
Mick
Zed66
Level 1
Level 1
Posts: 3
Joined: Thu Nov 26, 2020 9:26 pm

Re: Brother DCP J772DW will not print multiple copies in Duplex - Solved

Post by Zed66 »

Brian YOU ARE THE MAN!!!
Thankyou so much for solving a problem that has been vexing me for months.
Epson ET-2750
CKSGeek
Level 1
Level 1
Posts: 3
Joined: Tue Jul 26, 2022 11:26 pm

Re: Brother DCP J772DW will not print multiple copies in Duplex - Solved

Post by CKSGeek »

Hi All,

I feel dirty posting this - but maybe it will help someone... I tried all the above and simply couldn't make it work on our systems. In the end, out of frustration I have added a cronjob to the root user to search and replace the text in the PPD file changing the required value from "true" to "True". Anyway - it's a dirty hack to fix the problem and it certainly has it's limitations, but it worked for us.

To do this, go to the folder /etc/cups/ppd and note the name of the PPD file that you want to change. In our case it was HP-OfficeJet-Pro-9020.ppd

Then edit the root crontab :

Code: Select all

sudo crontab -e
and insert the line:

Code: Select all

*/10 * * * * sed -i 's/\*cupsManualCopies\:\ true/\*cupsManualCopies\:\ True/g' /etc/cups/ppd/HP-OfficeJet-Pro-9020.ppd
This will search the file and replace the value every 10 minutes in case it has been refreshed. We figured that 10 minutes was a good compromise, but you can refresh at a frequency of your choosing.

Remember to replace the PPD file name with the one relating to your printer of course!

I know it's not elegant - and I am happy to hear where it may cause problems but for now it is a working solution.
Just this geek...
Locked

Return to “Printers & Scanners”