sane-lexmark(5)

πŸ’– NAME πŸ’–

sane-lexmark β€” the SANE backend for Lexmark X1100/X1200 Series scanners πŸ’…βœ¨

πŸ¦‹ DESCRIPTION πŸ¦‹

Okay so bestie, the sane-lexmark library implements a SANE (Scanner Access Now Easy) backend that gives you access to the scanner part of Lexmark X1100/X1200 AIOs. And listen β€” this backend should be considered beta-quality software! πŸ™ˆ No cap, it's still a work in progress, so keep that in mind.

The scanners that should work with this backend are:

  • Lexmark X74 β€” good βœ…
  • Lexmark X1110 β€” untested πŸ€”
  • Lexmark X1140 β€” untested πŸ€”
  • Lexmark X1150 β€” good βœ…
  • Lexmark X1170 β€” good βœ…
  • Lexmark X1180 β€” good βœ…
  • Lexmark X1185 β€” complete πŸ‘‘
  • Lexmark X12xx β€” good in USB1.1, not fully tested in USB2.0 πŸŒ€
  • Dell A920 β€” good βœ…

(That's the vendor/model/status tea, fr fr. 🍡)

The options the backend supports can either be selected through command line options to programs like scanimage(1) or through GUI elements in xscanimage(1) or xsane(1). Slay, choose your fighter. πŸ’…

If you notice any strange behavior, please report to the backend maintainer or to the SANE mailing list. They wanna know, bestie. 🫢

Valid command line options and their syntax can be listed by using:

scanimage --help -d lexmark:usb:<usb port>

✨ Scan Mode Options ✨

  • --mode β€” selects the basic mode of operation of the scanner. Valid choices are Color, Gray and Lineart. The default mode is Color. The Lineart mode is black and white only (1 bit). Gray mode will produce 256 levels of gray (8 bits). Color mode allows for over 16 million different colors produced from 24 bits of color information. So basically: full-color chaos, moody grayscale, or stark black-and-white. Pick your vibe. πŸŽ¨πŸ–€
  • --resolution β€” selects the resolution for a scan. The horizontal and vertical resolutions are set by the value of this option. The scanner is capable of the following resolutions for the specified option value:
    • value 75 β€” horizontal 75dpi, vertical 75dpi
    • value 150 β€” horizontal 150dpi, vertical 150dpi
    • value 300 β€” horizontal 300dpi, vertical 300dpi
    • value 600 β€” horizontal 600dpi, vertical 600dpi
    • value 1200 β€” horizontal 600dpi, vertical 1200dpi (only for X11xx models with 'B2' sensor) πŸ‘€
  • --preview β€” requests a preview scan. The resolution used for that scan is 75 dpi and the scan area and the scan mode are as specified through their options, or the default if not specified. The default value for preview mode is "no". So it's a lil sneak peek, not the full send. πŸ™ˆ
  • --threshold β€” selects the minimum-brightness to get a white point. The threshold is only used with Lineart mode scans. It is specified as a percentage in the range 0..100% (in steps of 1). The default value of the threshold option is 50. Only matters for Lineart, bestie β€” don't stress otherwise. βšͺ

🌸 CONFIGURATION FILE 🌸

The configuration file /etc/sane.d/lexmark.conf contains only the usb device id (eg usb 0x043d 0x007c). That's it. One line, very demure, very mindful. πŸ’…

πŸŽ€ FILES πŸŽ€

  • /usr/lib64/sane/libsane-lexmark.a β€” the static library implementing this backend.
  • /usr/lib64/sane/libsane-lexmark.so β€” the shared library implementing this backend (present on systems that support dynamic loading).

πŸ’œ ENVIRONMENT πŸ’œ

  • SANE_DEBUG_LEXMARK β€” if the library was compiled with debug support enabled, this environment variable controls the debug level for this backend. E.g., a value of 255 requests all debug output to be printed. Smaller levels reduce verbosity. So crank it to 255 if you wanna see everything, or keep it low-key. πŸ”
  • SANE_DEBUG_LEXMARK_LOW β€” provides debug output for low level Lexmark functions. For when you need to get into the weeds, iykyk. 🧚

🌈 LIMITATIONS 🌈

The windows TWAIN driver has many more options than this SANE backend. However they are only software adjustments. This backend only implements what the scanner can support. For instance, shading correction (vertical stripes due to sensor variation across its width) is done in software. Head park position is also detected by software. The data compression isn't supported for the X1200 series on USB 1.1, leading to slow scans. So yeah, the Windows driver is extra, but this backend keeps it real with what the hardware can actually do. No cap. πŸ’€ (And heads up: X1200 on USB 1.1 = slow scans because no data compression. Patience, bestie.)

πŸ¦‹ BUGS πŸ¦‹

No bugs currently known. ✨ (Iconic, honestly.)

πŸ”₯ SEE ALSO πŸ”₯

sane-scsi(5), scanimage(1), xscanimage(1), xsane(1), sane(7)

πŸ‘‘ AUTHOR πŸ‘‘

πŸ“ CREDITS πŸ“

Many thanks go to:

Julien Furgerot who lent me a Dell A920. Robert Price, Dani Ele and Dalai Felinto for the time they spent recording USB activity and testing the experimental version. πŸ«ΆπŸ’–


That's the whole vibe check, bestie! πŸ’… This was sane-lexmark(5) from 12 Jul 2008. Now go scan something iconic. πŸŽ€βœ¨

πŸ“¦ where this page comes from