Ethernet Printer will not scan (Lexmark platinum pro 905)

Hello ;=)

I’m trying to have my Ethernet Lexmark Platinum pro 905 printer being able to scan from openSUSE 42.1 Leap.
It does work from windows but under linux skanlite and xsane do not see the scanner (both tell me thay can’t find the scanner).
(print and copy are ok, but scanning is not for device is not seen by scanning softs :expressionless: )

I installed this driver from driverscollection.com : lexmark-inkjet-legacy-wJRE-1.0-1.x86_64.rpm.sh

I’m using static ip, which should help. Is Ethernet connection disturbing skanlite or xsane ?

How can i solve this ?

Hopefully xsane’s help gives me various options for peripheral not being detected, i’m thus investigating these :

1- no device supported by sane, how do i see which devices are supported ?
http://www.sane-project.org/sane-backends-1.0.24.html#S-LEXMARK shows a figure but only usb interface … i’m i stuck when using ethernet interface ?

2- supported devices are busy , ho do i see scanner or device state ? (cups status says Idle , does it suffice ?)

3-permissionsfor the device file do not allow to use it, try as root
what shall i try then ?

4-backend is not loaded by sane (man sane-dll)
still looking at this, but i have none dll.conf in /usr/lib64/sane.
i have /etc/sane.d/dll.conf which contains : lexmark, LexmarkLegacy_1_0_0, Lexmark_1_0_0, lexmark_nscan

do i need to add /etc/sane.d/dll.d file ? with which backend ?

5- backend is not configured correctly (man sane-“backendname”)
no clue how to be sure it is ok here.

6- more than one version is installed :
is this being the problem ?
i have this :

> rpm -qa | grep sane
xsane-0.998-25.2.x86_64
sane-backends-autoconfig-1.0.24-3.7.x86_64
sane-backends-32bit-1.0.24-3.7.x86_64
libksane0-15.08.3-1.1.x86_64
hplip-sane-3.15.11-132.1.x86_64
sane-backends-1.0.24-3.7.x86_64

With the help from someone on irc i also tried other ways but still ko :

  • adding static ip in config files https://wiki.archlinux.org/index.php/SANE#Accessing_your_scanner_from_a_remote_workstation
  • i tried various drivers from lexmark ( lexmark-printer-utility-1.0-1.x86_64,network-scan-linux-glibc2-x86_64, lexmark-PPD-Files-LMAD4-1.0-1.x86_64).
    They offer 2015 driver versions but either i can’t print (cups says a file is missing ) , or i have a network scan driver that is not able to see the scan device (after adding static ip it says ip or host is wrong from xsane and skanlite).
    is the last one (ppd) useful ? I haven’t tried it yet.
    I went back to the legacy driver, it at least allows me to print and copy.

Thanks :wink:

Here’s what i have :

zypper info xsane
Chargement des données du dépôt...
Lecture des paquets installés...


Informations sur package xsane :
--------------------------------
Dépôt : oss
Nom : xsane
Version : 0.998-25.2
Arch : x86_64
Fabricant : openSUSE
Installé : Oui


> ls -al /usr/lib/sane/ | grep lexmark
lrwxrwxrwx   1 root root     67 30 déc.  16:02 libsane-LexmarkLegacy_1_0_0.so -> /usr/local/lexmark/legacy/lib/libsane-LexmarkLegacy_1_0_0.so.1.0.18
lrwxrwxrwx   1 root root     67 30 déc.  16:02 libsane-LexmarkLegacy_1_0_0.so.1 -> /usr/local/lexmark/legacy/lib/libsane-LexmarkLegacy_1_0_0.so.1.0.18
lrwxrwxrwx   1 root root     67 30 déc.  16:02 libsane-LexmarkLegacy_1_0_0.so.1.0.18 -> /usr/local/lexmark/legacy/lib/libsane-LexmarkLegacy_1_0_0.so.1.0.18
lrwxrwxrwx   1 root root     25 12 nov.  18:51 libsane-lexmark.so.1 -> libsane-lexmark.so.1.0.24
-rwxr-xr-x   1 root root 100856 25 oct.  13:58 libsane-lexmark.so.1.0.24
fabrice@openSUSE421:~> ls -al /usr/lib64/sane/ | grep lexmark
lrwxrwxrwx   1 root root     67 30 déc.  16:02 libsane-LexmarkLegacy_1_0_0.so -> /usr/local/lexmark/legacy/lib/libsane-LexmarkLegacy_1_0_0.so.1.0.18
lrwxrwxrwx   1 root root     67 30 déc.  16:02 libsane-LexmarkLegacy_1_0_0.so.1 -> /usr/local/lexmark/legacy/lib/libsane-LexmarkLegacy_1_0_0.so.1.0.18
lrwxrwxrwx   1 root root     67 30 déc.  16:02 libsane-LexmarkLegacy_1_0_0.so.1.0.18 -> /usr/local/lexmark/legacy/lib/libsane-LexmarkLegacy_1_0_0.so.1.0.18
lrwxrwxrwx   1 root root     25 12 nov.  18:51 libsane-lexmark.so.1 -> libsane-lexmark.so.1.0.24
-rwxr-xr-x   1 root root 102080 25 oct.  13:56 libsane-lexmark.so.1.0.24

     

   > scanimage -L

        No scanners were identified. If you were expecting something different,
        check that the scanner is plugged in, turned on and detected by the
        sane-find-scanner tool (if appropriate). Please read the documentation
        which came with this software (README, FAQ, manpages).



        > sane-find-scanner

          # sane-find-scanner will now attempt to detect your scanner. If the
          # result is different from what you expected, first make sure your
          # scanner is powered up and properly connected to your computer.

          # No SCSI scanners found. If you expected something different, make sure that
          # you have loaded a kernel SCSI driver for your SCSI adapter.

        could not open USB device 0x1d6b/0x0002 at 002:001: Access denied (insufficient permissions)
        could not open USB device 0x1d6b/0x0002 at 001:001: Access denied (insufficient permissions)
        could not open USB device 0x1d6b/0x0003 at 004:001: Access denied (insufficient permissions)
        could not open USB device 0x1ea7/0x0026 at 003:003: Access denied (insufficient permissions)
        could not open USB device 0x046d/0xc318 at 003:002: Access denied (insufficient permissions)
        could not open USB device 0x1d6b/0x0002 at 003:001: Access denied (insufficient permissions)
          # No USB scanners found. If you expected something different, make sure that
          # you have loaded a kernel driver for your USB host controller and have setup
          # the USB system correctly. See man sane-usb for details.

          # Not checking for parallel port scanners.

          # Most Scanners connected to the parallel port or other proprietary ports
          # can't be detected by this program.

          # You may want to run this program as root to find all devices. Once you
          # found the scanner devices, be sure to adjust access permissions as
          # necessary.


  



        ... in root  :



        # scanimage -L                                                                                                                                                                                                                
                                                                                                                                                                                                                                                    
        No scanners were identified. If you were expecting something different,                                                                                                                                                                     
        check that the scanner is plugged in, turned on and detected by the                                                                                                                                                                         
        sane-find-scanner tool (if appropriate). Please read the documentation                                                                                                                                                                      
        which came with this software (README, FAQ, manpages).  


                                                                                                                                                                                            
         # sane-find-scanner                                                                                                                                                                                                           
                                                                                                                                                                                                                                                    
          # sane-find-scanner will now attempt to detect your scanner. If the                                                                                                                                                                       
          # result is different from what you expected, first make sure your                                                                                                                                                                        
          # scanner is powered up and properly connected to your computer.                                                                                                                                                                          
                                                                                                                                                                                                                                                    
          # No SCSI scanners found. If you expected something different, make sure that                                                                                                                                                             
          # you have loaded a kernel SCSI driver for your SCSI adapter.                                                                                                                                                                             
                                                                                                                                                                                                                                                    
          # No USB scanners found. If you expected something different, make sure that                                                                                                                                                              
          # you have loaded a kernel driver for your USB host controller and have setup                                                                                                                                                             
          # the USB system correctly. See man sane-usb for details.                                                                                                                                                                                 
                                                                                                                                                                                                                                                    
          # Not checking for parallel port scanners.                                                                                                                                                                                                
                                                                                                                                                                                                                                                    
          # Most Scanners connected to the parallel port or other proprietary ports                                                                                                                                                                 
          # can't be detected by this program.



I don’t like your chances with such an old model.

I installed this driver from driverscollection.com : lexmark-inkjet-legacy-wJRE-1.0-1.x86_64.rpm.sh

I had a quick look at the configuration files for that driver, but it only seem to relate to USB-attached devices.

With the help from someone on irc i also tried other ways but still ko :

  • adding static ip in config files https://wiki.archlinux.org/index.php/SANE#Accessing_your_scanner_from_a_remote_workstation
  • i tried various drivers from lexmark ( lexmark-printer-utility-1.0-1.x86_64,network-scan-linux-glibc2-x86_64, lexmark-PPD-Files-LMAD4-1.0-1.x86_64).
    They offer 2015 driver versions but either i can’t print (cups says a file is missing ) , or i have a network scan driver that is not able to see the scan device (after adding static ip it says ip or host is wrong from xsane and skanlite).
    is the last one (ppd) useful ? I haven’t tried it yet.
    I went back to the legacy driver, it at least allows me to print and copy.

The printer and scanner drivers are completely separate, and the ppd relates to printing only. I was also going to suggest trying the more recent ‘network-scan-linux’ package, but see that you already gave it a go. Hard to say whether the Pro 905 model would be supported by it though.

FWIW, I did find this guide when using the newer lexmark_nscan backend

http://www.lexmark.com/publications/pdfs/network_scan_drivers/v8956339_en.pdf

BTW, did you try tunring the firewall off before attempting to scan?

sudo systemctl stop SuSEfirewall2.service

Is the scanner then detected by your preferred scanner utility?

Hi :wink:

Thank you for your answer.

Actually i did not stop entirely the firewall but i had opened some tcp ports (9761:9760) in the firewall, but i did stop completly now, and still can’t have the device recognised after i install the network driver (rpm -ivh network-scan-linux-glibc2-x86_64.rpm).
I don’t get why after adding static ip of the printer xsane/skanlite does not see it.
xsane actually says that “the peripheral is not compatible with the scanner, choose another scanner/peripheral”

Now from the manual i see this part which seems to relate to the problem :

SANE does not recognize the network scan driver
SANE-compliant applications such XSane and scanadf access the scanner through SANE.

Make sure:
•The scan driver is installed in the /usr/lib/sane directory.

i have no /usr/lib/sane dir so far, how do i make sure the driver is installed there ?

•The scan driver device file exists.
well it does, i installed it :smiley:

• The scan driver is listed in the /etc/sane.d/dll.conf file.
*i have lexmark backend there, what more is needed ? *

•‘lexmark_nscan’ is listed in the /etc/sane.d/dll.conf file and
no ‘#’ is typed before it.
*yes, it’s at the end of the file, see below
*
• The SANE installation is using the directory structure /usr/lib/sane and /etc/sane.d/.
how do i check this for sure ?

Troubleshooting
19

For some SANE installations, you may need to set the LD_LIBRARY_PATH:
1
Open a terminal window, and then type
export LD_LIBRARY_PATH=/usr/lib
.
2
Press
Enter
.

i have this :



> sudo systemctl stop SuSEfirewall2.service
root's password:
fabrice@openSUSE421:~> sudo systemctl status SuSEfirewall2.service  
SuSEfirewall2.service - SuSEfirewall2 phase 2
   Loaded: loaded (/usr/lib/systemd/system/SuSEfirewall2.service; enabled)
   Active: inactive (dead) since mer. 2016-01-06 08:40:40 CET; 20s ago
  Process: 3483 ExecStop=/usr/sbin/SuSEfirewall2 systemd_stop (code=exited, status=0/SUCCESS)
  Process: 1961 ExecStart=/usr/sbin/SuSEfirewall2 boot_setup (code=exited, status=0/SUCCESS)
 Main PID: 1961 (code=exited, status=0/SUCCESS)

janv. 06 08:33:49 openSUSE421 SuSEfirewall2[1990]: Setting up rules from /etc/sysconfig/SuSEfirewall2 ...
janv. 06 08:33:49 openSUSE421 SuSEfirewall2[2008]: using default zone 'ext' for interface wlan0
janv. 06 08:33:49 openSUSE421 SuSEfirewall2[1961]: SuSEfirewall2: Warning: config 'kde-connect' not available
fabrice@openSUSE421:~> skanlite            
fabrice@openSUSE421:~> xsane
fabrice@openSUSE421:~> su -
Mot de passe : 
openSUSE421:~ # skanlite
Connecting to deprecated signal QDBusConnectionInterface::serviceOwnerChanged(QString,QString,QString)
kbuildsycoca4 running...
kbuildsycoca4(3625)/kdecore (services) KServicePrivate::init: The desktop entry file "/usr/share/applications/YaST2/printer.desktop" has Type= "Application" but also has a X-KDE-Library key. This works for now, but makes user-preference handling difficult, so support for this might be removed at some point. Consider splitting it into two desktop files. 
"KConfigIni: In file /tmp/kde-root/kconf_updatekk3628.tmp, line 1: " Invalid entry (missing '=') 


openSUSE421:~ # xsane

 # rpm -ivh network-scan-linux-glibc2-x86_64.rpm
Preparing...                          ################################# [100%]

--------------------------
Installing network-scan ...
--------------------------
Please remember to review the license agreement before
using this software.
Updating / installing...
   1:lexmark-network-scan-1.6.0-1     ################################# [100%]
   -- Updating symbolic links


EU waste electronics information                                                                                                                           
********************************                                                                                                                           
                                                                                                                                                           
The WEEE logo signifies specific recycling programs and procedures for                                                                                     
electronic products in countries of the European Union. We encourage                                                                                       
the recycling of our products. If you have further questions about                                                                                         
recycling options in European Union countries, please refer to the                                                                                         
document listed below.                                                                                                                                     
                                                                                                                                                                                                                                            
  /usr/local/lexmark/docs/EU_Waste_Electronic_Information.pdf                                                                                                                                                                               
                                                                                                                                                                                                                                            
*******************************                                                                                                                                                                                                             
                                                                                                                                                                                                                                            
    Notes:                                                                                                                                                                                                                                  
      a.  A complete user guide is available in HTML format.                                                                                                                                                                                
                                                                                                                                                                                                                                            
          /usr/lexscan/docs/ug/en/index.html                                                                                                                                                                                                
                                                                                                                                                                                                                                            
      b.  If your system has an enabled firewall, the driver may                                                                                                                                                                            
          not function correctly.  You can either disable your firewall                                                                                                                                                                     
          or open the required scanning ports; tcp:9751-9760.  See the                                                                                                                                                                      
          user guide for more details.                                                                                                                                                                                                      
               #now firewall is off                                                                                                                                                                                                                             
      c.  If your system is already USB-connected to the scanner before                                                                                                                                                                     
          installation was completed, this application may not function                                                                                                                                                                     
          correctly.  Please detach and re-attach the USB cable.                                                                                                                                                                            
              # here i'm safe as using Ethernet ;=)                                                                                                                                                                                                                              
      d.  Log off, and then log on to your computer before scanning from                                                                                                                                                                    
          the device.                                                                                                                                                                                                                       
                 # mamamia, this i forgot    , i'm going to try and add here if it helps.                                                                                                                                                                                                                       
Installation Complete.                                                                                                                                                                                                                      
                                                                                                                                                                                                                                            
openSUSE421:/home/fabrice/Téléchargements/informatique/imprimante # exit                                                                                                                                                                    
logout                                                                                                                                                                                                                                      
fabrice@openSUSE421:~> skanlite    


 
                                                                                                                                                                                                        
fabrice@openSUSE421:~> scanimage -L                                                                                                                                                                                                         
device `lexmark_nscan:libnet/SPECIFY_DEVICE' is a Lexmark Network Scanner   

# is this the actual scanner name ? 
                                                                                                                                                                
fabrice@openSUSE421:~> ls /usb/lib/sane
ls: impossible d'accéder à /usb/lib/sane: Aucun fichier ou dossier de ce type (translation : can't access, no file nor dir of this type)


fabrice@openSUSE421:~> cat  /etc/sane.d/dll.conf 
# enable the next line if you want to allow access through the network:
#net
#abaton
#agfafocus
#apple
#avision
#artec
#artec_eplus48u
#as6e
#bh
#canon
#canon630u
#canon_dr
#canon_pp
#cardscan
#coolscan
#coolscan2
#coolscan3
#dc25
#dc210
#dc240
#dell1600n_net
#dmc
#epjitsu
#epson
#epson2
#fujitsu
#gphoto2
#genesys
#gt68xx
#hp
#hp3900
#hpsj5s
#hp3500
#hp4200
#hp5400
#hp5590
#hpljm1005
#hs2p
#ibm
#kodak
#kodakaio
#kvs1025
#kvs20xx
#leo
lexmark
#ma1509
#magicolor
#matsushita
#microtek
#microtek2
#mustek
#mustek_pp
#mustek_usb
#mustek_usb2
#nec
#niash
#p5
#pie
#pint
#pixma
#plustek
#plustek_pp
#pnm
#qcam
#ricoh
#rts8891
#s9036
#sceptre
#sharp
#sm3600
#sm3840
#snapscan
#sp15c
#st400
#stv680
#tamarack
#teco1
#teco2
#teco3
#test
#u12
#umax
#umax_pp
#umax1220u
#v4l
#xerox_mfp
LexmarkLegacy_1_0_0
Lexmark_1_0_0
lexmark_nscan


fabrice@openSUSE421:~> whereis network-scan-linux-glibc2
network-scan-linux-glibc2:



Well, maybe the driver is not compatible with your device. The only Linux driver explicitly listed by Lexamekr for that model is supplied by ‘lexmark-scan-legacy’ but that does not seem to have network support.

Now from the manual i see this part which seems to relate to the problem :

SANE does not recognize the network scan driver
SANE-compliant applications such XSane and scanadf access the scanner through SANE.

Make sure:
•The scan driver is installed in the /usr/lib/sane directory.

i have no /usr/lib/sane dir so far, how do i make sure the driver is installed there ?
Yes, you should have. For example, I installed the RPM and get

# ls -l /usr/lib/sane/libsane-lexmark_nscan*
lrwxrwxrwx 1 root root 70 Jan  6 16:27 /usr/lib/sane/libsane-lexmark_nscan.so -> /usr/local/lexmark/unix_scan_drivers/lib/sane/libsane-lexmark_nscan.so
lrwxrwxrwx 1 root root 72 Jan  6 16:27 /usr/lib/sane/libsane-lexmark_nscan.so.1 -> /usr/local/lexmark/unix_scan_drivers/lib/sane/libsane-lexmark_nscan.so.1
lrwxrwxrwx 1 root root 77 Jan  6 16:27 /usr/lib/sane/libsane-lexmark_nscan.so.1.0.16 -> /usr/local/lexmark/unix_scan_drivers/lib/sane/libsane-lexmark_nscan.so.1.0.16

also linked in the /usr/lib64/sane/ directory as well

•The scan driver device file exists.
well it does, i installed it :smiley:

• The scan driver is listed in the /etc/sane.d/dll.conf file.
*i have lexmark backend there, what more is needed ? *
Well, maybe the driver is simply not compatible with this hardware. The Pro 905 existed before this driver was written, and vendors frequently drop support for legacy models. You could contact Lexmark for support, but I wouldn’t realistically expect muvh by way of assistance. They will want to encourage you to buy a new model. HP and Brother are typically better supported by the respective manufacturers when it comes to Linux.

AS long as the proprietary driver is declared in /etc/sane.d/dll.conf (as you’ve mentioned it is), the driver is located in the expected location (it is for me), and it is compatible (who knows?) then all should be well. However, I’m not sure that the last obvious requirement is met. :slight_smile:

                                                                                                                                                                                                        
fabrice@openSUSE421:~> scanimage -L                                                                                                                                                                                                         
device `lexmark_nscan:libnet/SPECIFY_DEVICE' is a Lexmark Network Scanner

Well, that looks encouraging. I don’t know what the 'SPECIFY_DEVICE is about though.

                                                                                                                                                                
fabrice@openSUSE421:~> ls /usb/lib/sane
ls: impossible d'accéder à /usb/lib/sane: Aucun fichier ou dossier de ce type (translation : can't access, no file nor dir of this type)

Use one of these instead

ls -la /usr/lib/sane
dir /usr/lib/sane

I just ran ‘scanimage -L’ without any network-attached scanner being present. I get the same result as you did…

No manual entry for lexmark_nscan
dmartin@linux-hi6j:~> scanimage -L
device `lexmark_nscan:libnet/SPECIFY_DEVICE' is a Lexmark Network Scanner

So now I understand that this is just the due to the ‘lexmark_nscan’ backend being active, but not finding any any compatible scanner.

i did not look well enough in lib/sane
i was looking for lexmark as 1st word

i have this too :

> ls -l /usr/lib/sane/libsane-lexmark_nscan*
lrwxrwxrwx 1 root root 70  4 janv. 15:30 /usr/lib/sane/libsane-lexmark_nscan.so -> /usr/local/lexmark/unix_scan_drivers/lib/sane/libsane-lexmark_nscan.so
lrwxrwxrwx 1 root root 72  4 janv. 15:30 /usr/lib/sane/libsane-lexmark_nscan.so.1 -> /usr/local/lexmark/unix_scan_drivers/lib/sane/libsane-lexmark_nscan.so.1
lrwxrwxrwx 1 root root 77  4 janv. 15:30 /usr/lib/sane/libsane-lexmark_nscan.so.1.0.16 -> /usr/local/lexmark/unix_scan_drivers/lib/sane/libsane-lexmark_nscan.so.1.0.16

ls -la /usr/lib/sane
....
lrwxrwxrwx   1 root root     67  5 janv. 10:17 libsane-LexmarkLegacy_1_0_0.so -> /usr/local/lexmark/legacy/lib/libsane-LexmarkLegacy_1_0_0.so.1.0.18
lrwxrwxrwx   1 root root     67  5 janv. 10:17 libsane-LexmarkLegacy_1_0_0.so.1 -> /usr/local/lexmark/legacy/lib/libsane-LexmarkLegacy_1_0_0.so.1.0.18
lrwxrwxrwx   1 root root     67  5 janv. 10:17 libsane-LexmarkLegacy_1_0_0.so.1.0.18 -> /usr/local/lexmark/legacy/lib/libsane-LexmarkLegacy_1_0_0.so.1.0.18
lrwxrwxrwx   1 root root     70  4 janv. 15:30 libsane-lexmark_nscan.so -> /usr/local/lexmark/unix_scan_drivers/lib/sane/libsane-lexmark_nscan.so
lrwxrwxrwx   1 root root     72  4 janv. 15:30 libsane-lexmark_nscan.so.1 -> /usr/local/lexmark/unix_scan_drivers/lib/sane/libsane-lexmark_nscan.so.1
lrwxrwxrwx   1 root root     77  4 janv. 15:30 libsane-lexmark_nscan.so.1.0.16 -> /usr/local/lexmark/unix_scan_drivers/lib/sane/libsane-lexmark_nscan.so.1.0.16
lrwxrwxrwx   1 root root     25 12 nov.  18:51 libsane-lexmark.so.1 -> libsane-lexmark.so.1.0.24
-rwxr-xr-x   1 root root 100856 25 oct.  13:58 libsane-lexmark.so.1.0.24


i’m now thinking that scan driver is not compatible with my “old” printer. It’s not that old though. I remember scanning with this printer but not if i was in usb or Ethernet (it has both available) .
By the way it works under windows.

i’m now thinking that scan driver is not compatible with my “old” printer. It’s not that old though.

‘Old’ is a subjective term, but sadly vendors often generate obsolescence by limiting or removing driver support.

I remember scanning with this printer but not if i was in usb or Ethernet (it has both available) .

Almost certainly it was via USB. The ‘lexmarklegacy_1_0_0’ and ‘lexmarklegacy_2_0_0’ backends are used for this.

By the way it works under windows.

As I expected. :slight_smile:

I guess you could consider using VM with Windows installed as a guest for scanner access. More convenient than dual-booting IMHO.

Hi,

I didn’t read the whole threadt but I just want to give this link
might give some light.
http://support.lexmark.com/index?modifiedDate=06%2F03%2F14&page=content&actp=LIST_RECENT&id=HO3617&locale=en&userlocale=EN_US

H conram. I have already looked at that page, and it contains essentially the same information as the PDF I linked to earlier in this thread. The real issue is that the backend provided by this package does not appear to support older Lexmark models. The Pro 905 does have a legacy backend available, but it doesn’t seem to be network-aware.

:wink:

THanks for your help.