Thank you for your feedback

How to Scan Using XSANE in Linux Distributions via Inkjet S and Pro Series and Laser MFPs

Document ID:HO3617

Usergroup :External
06/03/14 Properties  


Scan; Linux; SANE; XSane; scanimage; scanadf; xscanimage; Linux OS; Perform scan; Inkjet AIO; Laser Multifunction printers; Products; USB-connected; Networked;



SANE stands for "Scanner Access Now Easy". It is an application programming interface (API) that provides standardized access to any raster image scanner hardware (i.e., flatbed scanner, handheld scanner, video- and still-cameras, etc.). The SANE API is public domain and its discussion and development is open to everyone. The current source code is written for UNIX (including GNU/Linux) and is available under the GNU General Public License (the SANE API is available to proprietary applications and back-ends).

SANE-compliant applications are applications that use one or more SANE modules to access a scanner or a camera. These are also referred to as SANE frontends. See this link for a list of currently available frontends.



NOTE: This procedure applies to both USB and Network-connected printers. Follow the steps below to scan using the Xsane app:

Step Action

Download the Scan driver for Linux based system from Lexmark Support website.

Note: Click here to view steps.


Install the driver on the system. For Debian-based systems, run the following command from the terminal:

sudo dpkg -i network-scan-linux-glibc2-x86.deb

Note: Where network-scan-linux-glibc2-x86.deb is the Scan driver for Debian-based systems.


Open XSane application (i.e., Scanner Tool).

Click Image to Enlarge

Note: After opening the app, it will search for compatible USB and Network scanning devices on the network.


Select your printer on the available devices list and click OK.

Click Image to Enlarge

Note: In this step, you may select either your USB or Network-connected device. In the event where only one scanning device is found on the network, XSane will proceed with this device as default.


Specify the necessary parameters you wish to set, then click Acquire preview in the Preview window or click Scan to initiate the scan process.

Click Image to Enlarge


The printer will submit a profile and will prompt you to follow instructions to complete your scan.

Click Image to Enlarge

Note: Certain network-capable models, specifically newer ones, will have an option to start the scan immediately via the Start Immediately tick box. Click here to view sample image.


Important Reminders on XSane scanning

  1. When scanning via ADF, select “Automatic Document Feeder” as the scan source and input the number of pages to scan from the ADF.
  2. When the document in the feeder has fewer than the input number of pages to scan, XSane will display a dialog stating that it has scanned 0 pages. This is a normal behavior as XSane resets its counter when handling such an error type. It would not proceed to scan from the flatbed.
  3. When Flatbed is selected as its scan source, XSane will not scan the ADF if there is paper in the feeder.
  4. When Flatbed is selected and number of pages is more than one, it will scan the Flatbed according to number of pages that are input.
  5. When using Openoffice to scan the ADF, it will not display any message when there is no paper in the feeder.
  6. When using xscanimage command to scan the ADF, it will display the message “Document feeder out of Documents” when there is no paper in the ADF.


Important reminders on scanimage, scanadf scanning

  1. When scanning, specify only the source as “Automatic Document Feeder”. XSane will scan all of the documents in the feeder. If there are no more documents in the feeder, it will not proceed to the flatbed.
  2. If the source specified is flatbed, it will infinitely scan the flatbed. This is a limitation.
  3. When scanning multiple documents, there is no need to input the number of pages to scan because XSane would automatically scan every page in the feeder.
  4. When using the scanimage command to scan, the ADF will display the message “Document feeder out of Documents” when there is no paper in the ADF.
  5. When using the scanadf command to scan the ADF, it will display the message “scanned 0 pages” when there is no paper in the ADF.
  6. When Flatbed is selected and the number of pages is more than one, it will scan the Flatbed according to number of pages that are input.


Important reminders on Openoffice using xscanimage scanning

  1. When scanning using ADF, it will only scan one page. The application is not designed to scan continuously.
  2. When scanning using ADF when there is no paper in the ADF, it will prompt a message that no documents are found in the feeder.


Still Need Help?

If you require additional assistance, please close this window and locate  Get In Touch with Lexmark! for contact information. NOTE: When calling for support, you will need your printer model/machine type and serial number (SN).

Please be near the products described in this article to expedite the support process and reduce call-back situations.


Please enter the email address you would like to send a copy of this page to.