Fix for USB scanner not working on LM20 that worked on LM19

Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
User avatar
xenopeek
Level 25
Level 25
Posts: 29615
Joined: Wed Jul 06, 2011 3:58 am

Fix for USB scanner not working on LM20 that worked on LM19

Post by xenopeek »

There have been a number of reports from users that upgraded from LM19 to LM20 (or from Ubuntu 18.04 to Ubuntu 20.04) and found their USB connected scanner to no longer work. A common possible solution appears to be to remove the package ippusbxd. ippusbxd was supposed to allow driverless printing and scanning but it doesn't work with a number of printers, such as from HP: https://bugs.launchpad.net/hplip/+bug/1871011

If you are in a similar situation try removing that package. You can do so through Synaptic Package Manager or from terminal with command: apt purge ippusbxd

If that doesn't solve your scanner issue please make a new topic in this forum for further help.
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
Image
asinoro
Level 6
Level 6
Posts: 1285
Joined: Mon Feb 12, 2018 11:43 am

Re: Fix for scanner not working on LM20 that worked on LM19

Post by asinoro »

@xenopeek, I often do this mistake when I write to new users I forgot the sudo, because I use the root terminal.

Code: Select all

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

Re: Fix for scanner not working on LM20 that worked on LM19

Post by brian_p »

xenopeek wrote: Mon Sep 07, 2020 4:35 am There have been a number of reports from users that upgraded from LM19 to LM20 (or from Ubuntu 18.04 to Ubuntu 20.04) and found their scanner to no longer work.
This issue concerns USB connected modern devices only. It may be useful to read the IPP-over-USB sections at

https://wiki.debian.org/CUPSDriverlessPrinting

Vendor (Brother, Canon, HP etc) printer and scanner drivers will not work when the IPP-over-USB protocol is being used.

A common possible solution appears to be to remove the package ippusbxd. ippusbxd was supposed to allow driverless printing and scanning but it doesn't work with a number of printers, such as from HP: https://bugs.launchpad.net/hplip/+bug/1871011

If you are in a similar situation try removing that package. You can do so through Synaptic Package Manager or from terminal with command: apt purge ippusbxd
Users who wish to see driverless printing and scanning driverless restored to their machines can replace ippusbxd with ipp-usb. This may be obtained from

https://github.com/alexpevzner/sane-airscan

A direct link to the required file is

https://download.opensuse.org/repositor ... .04/amd64/

It is strongly suggested a user obtains and installs sane-airscan from the same place.

ipp-usb and sane-airscan are part of Debian and will soon be shipped by Ubuntu. Both have enjoyed great success when installed by Mint users from Alexander Pevzner's archive.
--
Brian.
User avatar
trytip
Level 14
Level 14
Posts: 5367
Joined: Tue Jul 05, 2016 1:20 pm

Re: Fix for scanner not working on LM20 that worked on LM19

Post by trytip »

asinoro wrote: Mon Sep 07, 2020 6:03 am @xenopeek, I often do this mistake when I write to new users I forgot the sudo, because I use the root terminal.

Code: Select all

sudo apt purge ippusbxd
sudo is no longer required with apt. if you apt update it's the same as if you used sudo
Image
asinoro
Level 6
Level 6
Posts: 1285
Joined: Mon Feb 12, 2018 11:43 am

Re: Fix for scanner not working on LM20 that worked on LM19

Post by asinoro »

trytip wrote: Mon Sep 07, 2020 7:27 am
asinoro wrote: Mon Sep 07, 2020 6:03 am @xenopeek, I often do this mistake when I write to new users I forgot the sudo, because I use the root terminal.

Code: Select all

sudo apt purge ippusbxd
sudo is no longer required with apt. if you apt update it's the same as if you used sudo
This is correct, I didn't know it!
User avatar
xenopeek
Level 25
Level 25
Posts: 29615
Joined: Wed Jul 06, 2011 3:58 am

Re: Fix for scanner not working on LM20 that worked on LM19

Post by xenopeek »

asinoro wrote: Mon Sep 07, 2020 6:03 am@xenopeek, I often do this mistake when I write to new users I forgot the sudo, because I use the root terminal.
On Linux Mint the apt command has always been a wrapper around the many different commands related to APT package management and it invokes sudo itself when needed. Type apt on the terminal without any arguments to get a full list.
brian_p wrote: Mon Sep 07, 2020 7:01 am This issue concerns USB connected modern devices only. It may be useful to read the IPP-over-USB sections at

https://wiki.debian.org/CUPSDriverlessPrinting

Vendor (Brother, Canon, HP etc) printer and scanner drivers will not work when the IPP-over-USB protocol is being used.
Thanks for that clarification. I've updated the topic subject.
Image
DisturbedDragon
Level 5
Level 5
Posts: 574
Joined: Mon Oct 29, 2012 6:29 pm
Location: Texas

Re: Fix for scanner not working on LM20 that worked on LM19

Post by DisturbedDragon »


Users who wish to see driverless printing and scanning driverless restored to their machines can replace ippusbxd with ipp-usb. This may be obtained from

https://github.com/alexpevzner/sane-airscan

A direct link to the required file is

https://download.opensuse.org/repositor ... .04/amd64/

It is strongly suggested a user obtains and installs sane-airscan from the same place.

ipp-usb and sane-airscan are part of Debian and will soon be shipped by Ubuntu. Both have enjoyed great success when installed by Mint users from Alexander Pevzner's archive.
Thank you for this! Network scanning has been broken more often than not for my older Samsung M2870FW with Simple Scan. My newer Canon PIXMA was always seen but is not my primary device used. Issues arose in Mint 19 off and on then persisted in Mint 20, I bought VueScan years ago since it always works for both with zero issues. Simple/Document scanner does now recognize my Samsung and Canon network scanners.

Side note for those with older Samsung devices. This was shortly after HP acquired Samsung printer division. When I updated the proprietary print/scanner drivers my printer started printing so many pages of rubbish symbols. I removed and added the printer several times using IPP like I always had before with the same result. Installed again this time using HP Jet Direct printing is flawless.
Last edited by DisturbedDragon on Mon Sep 07, 2020 10:52 am, edited 1 time in total.
AMD Ryzen 9 5950X 16C/32T | MSI MPG x570 Gaming Plus | 2TB Mushkin Pilot-E NVMe | 1TB Crucial P1 NVMe | 2x 2TB Inland Gen4 NVMe | 32GB Trident Z DDR4 3600 | Nvidia RTX4090 | Fedora 39 Cinnamon | Linux Mint 21.3 Cinnamon | Kernel 5.15.x lowlatency
brian_p
Level 9
Level 9
Posts: 2702
Joined: Thu Jan 17, 2019 9:20 am
Location: UK

Re: Fix for scanner not working on LM20 that worked on LM19

Post by brian_p »

DisturbedDragon wrote: Mon Sep 07, 2020 8:58 am Simple/Document scanner does now recognize my Samsung and Cannon network scanners.
Very pleasing that scanning works well for you with sane-airscan. I would be interested in the outputs for both devices given by

Code: Select all

scanimage -L
and

Code: Select all

airscan-discover
--
Brian.
DisturbedDragon
Level 5
Level 5
Posts: 574
Joined: Mon Oct 29, 2012 6:29 pm
Location: Texas

Re: Fix for scanner not working on LM20 that worked on LM19

Post by DisturbedDragon »

brian_p wrote: Mon Sep 07, 2020 9:58 am
DisturbedDragon wrote: Mon Sep 07, 2020 8:58 am Simple/Document scanner does now recognize my Samsung and Cannon network scanners.
Very pleasing that scanning works well for you with sane-airscan. I would be interested in the outputs for both devices given by

Code: Select all

scanimage -L
and

Code: Select all

airscan-discover
Obliged to give that info.

Code: Select all

scanimage -L
device `escl:https://192.168.9.31:443' is a ESCL Canon TR4500 series SSL flatbed scanner
device `escl:http://192.168.9.31:80' is a ESCL Canon TR4500 series flatbed scanner
device `airscan:w3:CANON INC. TR4500 series' is a WSD CANON INC. TR4500 series WSD network scanner
device `airscan:e0:Canon TR4500 series' is a eSCL Canon TR4500 series eSCL network scanner
device `airscan:w2:Samsung Electronics Co., Ltd. M267x 287x Series' is a WSD Samsung Electronics Co., Ltd. M267x 287x Series WSD network scanner

Code: Select all

airscan-discover
[devices]
  CANON INC. TR4500 series = http://192.168.9.31:80/wsd/scanservice.cgi, WSD
  CANON INC. TR4500 series = http://[fe80::9e32:ceff:fe87:7270%252]:80/wsd/scanservice.cgi, WSD
  Canon TR4500 series = http://192.168.9.31:80/eSCL/, eSCL
  Canon TR4500 series = https://192.168.9.31:443/eSCL/, eSCL
  Samsung M267x 287x Series (SEC001599E842C8) = http://192.168.9.32:8018/wsd/scan, WSD
AMD Ryzen 9 5950X 16C/32T | MSI MPG x570 Gaming Plus | 2TB Mushkin Pilot-E NVMe | 1TB Crucial P1 NVMe | 2x 2TB Inland Gen4 NVMe | 32GB Trident Z DDR4 3600 | Nvidia RTX4090 | Fedora 39 Cinnamon | Linux Mint 21.3 Cinnamon | Kernel 5.15.x lowlatency
brian_p
Level 9
Level 9
Posts: 2702
Joined: Thu Jan 17, 2019 9:20 am
Location: UK

Re: Fix for USB scanner not working on LM20 that worked on LM19

Post by brian_p »

Thank you. May I impose on you with another query? Do both these commands give you scanning with the Canon?

Code: Select all

simple-scan "airscan:w3:CANON INC. TR4500 series"

Code: Select all

simple-scan "airscan:e0:Canon TR4500 series"
--
Brian.
DisturbedDragon
Level 5
Level 5
Posts: 574
Joined: Mon Oct 29, 2012 6:29 pm
Location: Texas

Re: Fix for USB scanner not working on LM20 that worked on LM19

Post by DisturbedDragon »

brian_p wrote: Mon Sep 07, 2020 10:44 am Thank you. May I impose on you with another query? Do both these commands give you scanning with the Canon?

Code: Select all

simple-scan "airscan:w3:CANON INC. TR4500 series"

Code: Select all

simple-scan "airscan:e0:Canon TR4500 series"
Both commands do open Document Scanner with the Canon selected. Scanning does commence when initiated with the scan button.
AMD Ryzen 9 5950X 16C/32T | MSI MPG x570 Gaming Plus | 2TB Mushkin Pilot-E NVMe | 1TB Crucial P1 NVMe | 2x 2TB Inland Gen4 NVMe | 32GB Trident Z DDR4 3600 | Nvidia RTX4090 | Fedora 39 Cinnamon | Linux Mint 21.3 Cinnamon | Kernel 5.15.x lowlatency
brian_p
Level 9
Level 9
Posts: 2702
Joined: Thu Jan 17, 2019 9:20 am
Location: UK

Re: Fix for USB scanner not working on LM20 that worked on LM19

Post by brian_p »

DisturbedDragon wrote: Mon Sep 07, 2020 10:50 am
Both commands do open Document Scanner with the Canon selected. Scanning does commence when initiated with the scan button.
Thank you again. In keeping with the subject title of this thread, it would be as well to highlight that, provided ipp-usb is installed, sane-airscan should scan successfully with these devices on USB.
--
Brian.
pzz

Re: Fix for USB scanner not working on LM20 that worked on LM19

Post by pzz »

Hi DisturbedDragon,

> device `airscan:w3:CANON INC. TR4500 series' is a WSD CANON INC. TR4500 series WSD network scanner
> device `airscan:e0:Canon TR4500 series' is a eSCL Canon TR4500 series eSCL network scanner

In theory, sane-airscan should merge these two entries (because it's the same device), but it didn't. I want to look to this issue. May I ask you to run yet another experiment?

Code: Select all

airscan-discover -t
It will create a file airscan-discover-zeroconf.log in the current directory. Please, send me this file either by e-mail (pzz@apevzner.com), or attach it here
DisturbedDragon
Level 5
Level 5
Posts: 574
Joined: Mon Oct 29, 2012 6:29 pm
Location: Texas

Re: Fix for USB scanner not working on LM20 that worked on LM19

Post by DisturbedDragon »

pzz,

Requested file created and uploaded.

https://gofile.io/d/HIjtvR
AMD Ryzen 9 5950X 16C/32T | MSI MPG x570 Gaming Plus | 2TB Mushkin Pilot-E NVMe | 1TB Crucial P1 NVMe | 2x 2TB Inland Gen4 NVMe | 32GB Trident Z DDR4 3600 | Nvidia RTX4090 | Fedora 39 Cinnamon | Linux Mint 21.3 Cinnamon | Kernel 5.15.x lowlatency
Fizz
Level 5
Level 5
Posts: 523
Joined: Mon Jul 15, 2019 8:17 am

Re: Fix for USB scanner not working on LM20 that worked on LM19

Post by Fizz »

I too am having an issue.

I have a Canon MG5720 printer/scanner, which used to work fine under Mint 19. I am now on Mint 20 and having issues.

The scanner works fine on my laptop, which is connecting to it via wi-fi. My desktop machine is connected via usb directly. When i start Document Scanner, it searches and finds the scanner. But when i hit the Scan button, i get an error "Failed to scan. Unable to connect to scanner." If it was unable to connect then how did it find it in the first place?

I have tried the recommendations above, removing ippusbxd and installing ipp-usb and sane-airscan. But the behavior is unchanged. Any advice? Thanks!


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

Re: Fix for USB scanner not working on LM20 that worked on LM19

Post by brian_p »

Fizz wrote: Wed Sep 09, 2020 1:40 pm The scanner works fine on my laptop, which is connecting to it via wi-fi. My desktop machine is connected via usb directly. When i start Document Scanner, it searches and finds the scanner. But when i hit the Scan button, i get an error "Failed to scan. Unable to connect to scanner." If it was unable to connect then how did it find it in the first place?
Give what you get for

Code: Select all

systemctl list-units "ipp-usb*" | grep service

Code: Select all

lsusb -v | grep -A 3 bInterfaceClass.*7
--
Brian.
Fizz
Level 5
Level 5
Posts: 523
Joined: Mon Jul 15, 2019 8:17 am

Re: Fix for USB scanner not working on LM20 that worked on LM19

Post by Fizz »

brian_p wrote: Wed Sep 09, 2020 6:16 pm Give what you get for

Code: Select all

systemctl list-units "ipp-usb*" | grep service
For the first, it tells me

Code: Select all

ipp-usb.service loaded activating start start Daemon for IPP over USB printer support

Code: Select all

lsusb -v | grep -A 3 bInterfaceClass.*7
And this one returns

Code: Select all

can't get debug descriptor: Resource temporarily unavailable
      bInterfaceClass         7 Printer
      bInterfaceSubClass      1 Printer
      bInterfaceProtocol      2 Bidirectional
      iInterface              0 
--
      bInterfaceClass         7 Printer
      bInterfaceSubClass      1 Printer
      bInterfaceProtocol      4 
      iInterface              0 
can't get debug descriptor: Resource temporarily unavailable
--
      bInterfaceClass         7 Printer
      bInterfaceSubClass      1 Printer
      bInterfaceProtocol      4 
      iInterface              0 
can't get device qualifier: Resource temporarily unavailable
can't get debug descriptor: Resource temporarily unavailable
can't get debug descriptor: Resource temporarily unavailable
can't get device qualifier: Resource temporarily unavailable
can't get debug descriptor: Resource temporarily unavailable
can't get debug descriptor: Resource temporarily unavailable
can't get device qualifier: Resource temporarily unavailable
can't get debug descriptor: Resource temporarily unavailable
-Fizz
brian_p
Level 9
Level 9
Posts: 2702
Joined: Thu Jan 17, 2019 9:20 am
Location: UK

Re: Fix for USB scanner not working on LM20 that worked on LM19

Post by brian_p »

Thanks. The second output has
bInterfaceProtocol 4
This shows that the device understands the IPP-over-USB protocol. The first output is what should be obtained when ipp-usb has been activated correctly after the device is plugged in. sane-airscan should work.

Give what you get for

Code: Select all

scanimage -L

Code: Select all

airscan-discover
--
Brian.
Fizz
Level 5
Level 5
Posts: 523
Joined: Mon Jul 15, 2019 8:17 am

Re: Fix for USB scanner not working on LM20 that worked on LM19

Post by Fizz »

brian_p wrote: Wed Sep 09, 2020 9:05 pm

Code: Select all

scanimage -L
This one gives:

Code: Select all

device `pixma:04A9178E_505AAC' is a CANON Canon PIXMA MG5700 Series multi-function peripheral
device `escl:http://127.0.0.1:60000' is a ESCL  (USB) flatbed scanner
device `airscan:e0: (USB)' is a eSCL  (USB) eSCL network scanner

Code: Select all

airscan-discover
And this one gives:

Code: Select all

[devices]
   (USB) = http://127.0.0.1:60000/eSCL/, eSCL
  Canon MG5700 series = http://192.168.1.8:80/wsd/scanservice.cgi, WSD
-Fizz
brian_p
Level 9
Level 9
Posts: 2702
Joined: Thu Jan 17, 2019 9:20 am
Location: UK

Re: Fix for USB scanner not working on LM20 that worked on LM19

Post by brian_p »

device `airscan:e0: (USB) is a eSCL (USB)' eSCL network scanner
This does not look right. I'd expect the device format to have the format:

Code: Select all

airscan:e0: DNS-SD_NAME_OF_DEVICE (USB)
Have you adjusted the MG5720's Bonjour Name via its web interface? Do you get scanning with

Code: Select all

simple-scan "airscan:e0: (USB)"
Please give the output of

Code: Select all

avahi-browse -rt _ipp._tcp
--
Brian.
Locked

Return to “Printers & Scanners”