Scanning with a multifunction printer

I have a multifunction printer - HP Deskjet 2540. For those who don’t know this printer it prints, scan and photocopies (a combination of the other two functions).
I have set up printing and that works fine.
The problem I have is that I don’t know how to set up scanning for this printer. I did try running Scanlite (included with OpenSuse) but this said it couldn’t find any SANE device. I checked the SANE website and, although there are many HP devices listed as being supported, all of those devices are sole-function scanners rather then multifunction printers.

At this point I am flummoxed. Can anyone give me some pointers as to how I can get my printer to scan.

Thank you

PS. The printer scans quite happily under Windows using the HP utility but this is a Windows-specific utility.

With the printer power turned on, open Yast/Scanner. Click on Add. Once the scanner is identified, click on edit. Choose the appropriate driver. There’s only one that covers most hp multipurpose inkjets, I think something like hpaio or something like that.

Once this finishing working, reboot the computer and the scanner hopefully will be working.

I hope that makes sense. And I hope I’m not telling you something you already know or have tried.

Further to the above advice, check that you are using the HPLIP driver (and associated ‘hp’ backend) for printing. The ‘hpaio’ scanner backend relies on that to function.

This output of the following command will confirm that to us

lpstat -t

Enclose the output posted here within CODE tags (refer to the’#’ button in the forum editor).

Also, if this is a USB-connected device, make sure that the user is a member of the ‘lp’ group for r/w access to the scanner interface.

https://en.opensuse.org/SDB:Configuring_Scanners#USB_scanner_access_permissions_via_udev

If it happens to be a network device, I blogged on setting up a couple of my HP devices for both printing AND scanning. This has worked for many years for different openSUSE versions where I documented this with openSUSE-12.1 (although it worked with earlier openSUSEs) and more recently works with LEAP-15.1 (I have not yet tried LEAP-15.2)

You will need to scroll down to read the scanning part. The later link (for the HP Premium 309) is likely easier to follow.

I note that I adopted the exact same technique back in April of this year, with a Brother printer/scanner. So this technique is not just for HP devices.

Thanks for all your help.
iamjiwjr pointed me in the right direction - I hadn’t thought of yast. My printer model doesn’t appear in the list that appears so the guidance to use the common one was appreciated.
Folllowed the instructions as given and all worked exactly as predicted.

In answer to other questions I am using this on a network rather than with a direct connection with a USB cable.
I am using the hplib driver - I installed that when setting up printing.

Many thanks for all your help. It is greatly appreciated.

Thanks for the update.

For others who may come searching, this is a good openSUSE reference…
https://en.opensuse.org/SDB:How_to_set-up_a_HP_printer

There is definitely an HP driver for the 2540 in openSUSE; it is at /usr/share/cups/model/manufacturer-PPDs/hplip/hp-deskjet_2540_series.ppd.gz.