LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux Mint (https://www.linuxquestions.org/questions/linux-mint-84/)
-   -   Scanning not possible in Mint 19 Cinnamon but working in 18.3 Cinnamon?! (https://www.linuxquestions.org/questions/linux-mint-84/scanning-not-possible-in-mint-19-cinnamon-but-working-in-18-3-cinnamon-4175640483/)

stardustdk 10-16-2018 08:04 AM

Scanning not possible in Mint 19 Cinnamon but working in 18.3 Cinnamon?!
 
Hey all.

I have a Intel NUC installed with Linux Mint 19 Cinnamon, and almost everything here, including printing is possible on my HP Photosmart 6510 scanner/printer/copier etc.
The all-in-one machine is via Wi-Fi connected to the router.


I did search the Net for clues and tried everything I thought might help, nothing.
The PC can't even see the Photosmart when I try to scan??
But printing is working like a charm...??????

After tried everything I found, I tested a USB flash key with 18.3 Cinnamon and booted on that.
Scanning was working 100% like it used to.. (!)

So I am sure that it is a software problem.

Any suggestion - besides going back to 18.3?

If not I am going back, but that is to me a short time solution.

Thanks in advance.

Stardustdk/John

Habitual 10-16-2018 10:07 AM

First thought is the kernel is different, or hplip maybe isn't installed?
or something?
Following that hunch....

https://forums.linuxmint.com/viewtop...rt=20#p1049671 yaks about Mint 17 and "HP Photosmart 6510" twice with "3.16-series kernel"
Pjotr is a knowledgable contributor to the Linux Mint heritage.
His site is a pretty good one. Lots of tips. You can trust what he puts there.

Have you installed the hplip package?

Do scanners show up in http://localhost:631 ?

I googled "HP Photosmart 6510 wifi " and it offered up ePrint
Model B211a? The HP Photosmart 6510 e-All-in-One Printer - B211a? (also known as an "MFP", or multifunction printer)
Is so, even if not, I'd visit https://support.hp.com/us-en/drivers and see what's "new and improved"?
I'd connect it physically if I had to be in this situation. (for detection at https://support.hp.com/us-en/drivers)

That or master google.fu ;)

Good Luck.

hazel 10-16-2018 11:37 AM

HP All-in-1 printers use the hpaio driver for sane. This is part of hplip so sane doesn't provide it. If printing works, then presumably hplip is installed.

It's worth checking for hpaio using the locate command. There should be a sane module of that name in /usr/lib and a configuration file for it in /etc/sane.d.

I have found the debugging options in sane very useful for this kind of problem. There are man pages describing them. You can set debug levels for both the sane usb interface and the hpaio back end, and that will usually show where the problem is.

stardustdk 10-16-2018 02:16 PM

The scanners do not show in http://localhost:631/ and

locate hpaio gives this:
Quote:

/usr/lib/x86_64-linux-gnu/sane/libsane-hpaio.so.1
/usr/lib/x86_64-linux-gnu/sane/libsane-hpaio.so.1.0.0
/usr/share/doc/libsane-hpaio
/usr/share/doc/libsane-hpaio/changelog.Debian.gz
/usr/share/doc/libsane-hpaio/copyright
/usr/share/doc/libsane-hpaio/hpaio.desc.gz
/var/lib/dpkg/info/libsane-hpaio:amd64.conffiles
/var/lib/dpkg/info/libsane-hpaio:amd64.list
/var/lib/dpkg/info/libsane-hpaio:amd64.md5sums
/var/lib/dpkg/info/libsane-hpaio:amd64.shlibs
in /etc/sane.d

ls hp* gives this:

Quote:

hp3900.conf hp4200.conf hp5400.conf hp.conf hpsj5s.conf

hazel 10-17-2018 06:15 AM

Aha! You have the driver but no configuration file. Well, that is easily corrected.

First you will need to find the usb vendor and product numbers for your device. You can use the sane-find-scanner command for this, or you can look through the boot messages using dmesg. For example, my dmesg shows:
Code:

[    1.513059] usb 4-1: New USB device found, idVendor=04a9, idProduct=2220, bcd
Device= 1.00
[    1.513944] usb 4-1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[    1.514775] usb 4-1: Product: CanoScan
[    1.515604] usb 4-1: Manufacturer: Canon

For an HP scanner, the vendor code will be 0350.

Then, as root, create a file in /etc/sane.d called hpaio.conf and put the two usb numbers into it. I have one left over from an HP scanner that I got rid of and it reads:
Code:

#HP Photosmart C4700
usb 0x0350 0x7551

Your product number will be different of course. Also check that the file /etc/sane.d/dll.conf contains an entry for hpaio. If not, edit one in.

After that try again.

stardustdk 10-17-2018 07:18 AM

Thanks hazel :)

Now I need to make it work on my LAN (Wifi), because that I was used to that with 18.3 Cinnamon.

Normally the HP Photosmart is in another room, that is why.

Regards

John

hazel 10-17-2018 09:32 AM

I don't know what you have to put in hpaio.conf for a wifi connection, but other people here will.

You might find this useful too.

stardustdk 10-17-2018 10:59 AM

Thanks again :)

As your link among other says that since 2017 there has been some bugs regarding HP Scanners :(

From your link:

Quote:

sharing a network HP aio scanner is not possible due to bugs 807427 and 838212. Network scanners from other vendors might work in sharing mode though.

stardustdk 10-25-2018 10:44 AM

I have bought a new Brother all-in-one. Same result:
No scanning possible but prints are OK - in Linux Mint 19.
Besides Intel NUC I also have a Lenovo T500. That has the same problem.
My T61 with 18.3 and a laptop with Win 10 has no problems with scanning.
Both 18.3 and 19 are 64-bit Cinnamon

hazel 10-25-2018 11:09 AM

Yesterday I got an old Brother all-in-1 belonging to a friend to scan by creating a couple of symbolic links. Sane requires back-end driver libraries to be in /usr/lib/sane but the Brother installation script had put the library and its links somewhere else. I think it was /usr/lib/x86_64_gnu_linux/sane but I'm not sure now. Anyway, I left the actual library file where it was but duplicated the links, putting them where they belonged, and that was all that was necessary.

stardustdk 10-25-2018 11:28 AM

If you got a Brother all-in-one.
Please check this first:

[https://support.brother.com

I got updated *.DEB drivers there :)

Habitual 10-30-2018 11:40 AM

Hazel Rocks!


All times are GMT -5. The time now is 02:39 PM.