LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 01-11-2015, 11:49 PM   #1
greeder
Member
 
Registered: Sep 2014
Posts: 31

Rep: Reputation: Disabled
Question Microtek scanner works, but colors are wrong.


I have a Microtek Imagemaker 4800 connected to a Dell Optiplex GX620 running Xubuntu (Which Xubuntu? That's a good question. How do I find out?). Anyway, the scanner works, sort-of, the scans are way too dark. Two programs; Xsane and Simple Scan produce identical results. The avalable image correction controls on both programs don't seem to have the range to correct image.
A few things:
The Imagemaker 4800 is one of the few SANE supported Microtek Scanners. but it reports as 3840 and uses the SM-3840 SANE backend. Acording to the SANE website.
When I look at /usr/lib/sane I see:

gordon@gordon-OptiPlex-GX620:/usr/lib/sane$ ls
libsane-hpaio.so.1 libsane-hpaio.so.1.0.0

Looks like I have the wrong SANE backend?? is this possible?? Or am I looking in the wrong place??

And then there is this:
gordon@gordon-OptiPlex-GX620:~$ scanimage -L
device `sm3840:libusb:003:002' is a Microtek ScanMaker 4800 flatbed scanner

That seems to say that the sm3840 backend is being used (Where is it??)
Does the SANE backend or applications have a config file that can be edited to adjust the scan settings to get a good scan??
I'm a bit confused here. Any help is apprieciated.
 
Old 01-12-2015, 12:25 AM   #2
ferrari
LQ Guru
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 5,805

Rep: Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140
Quote:
(Which Xubuntu? That's a good question. How do I find out?).
You could use
Code:
cat /etc/os-release
Quote:
The Imagemaker 4800 is one of the few SANE supported Microtek Scanners. but it reports as 3840 and uses the SM-3840 SANE backend.
The scanner chipset (check 'lsusb') is explcitly listed in /etc/sane.d/sm3840.conf, and that probably determines how the device is reported
Code:
# usb vendor product
# Microtek ScanMaker 3840 ID
usb 0x05da 0x30d4
# Microtek ScanMaker 4800 ID
usb 0x05da 0x30cf
Quote:
Looks like I have the wrong SANE backend?? is this possible?? Or am I looking in the wrong place??
I doubt that. If the correct backend didn't exist, you'd get no communication with the scanner. (If a 64-bit system, did you check /usr/lib64/sane/ as well?)

More info via
Code:
man sane-sm3840
For local scanners, udev rules help identify the scanner hardware and the correct SANE backend is used when the frontend is launched. Usually, /etc/sane.d/dll.conf should contain the uncommented backend entry as well.

Last edited by ferrari; 01-12-2015 at 12:26 AM.
 
Old 01-12-2015, 12:35 AM   #3
ferrari
LQ Guru
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 5,805

Rep: Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140
Quote:
Anyway, the scanner works, sort-of, the scans are way too dark. Two programs; Xsane and Simple Scan produce identical results. The avalable image correction controls on both programs don't seem to have the range to correct image.
If you believe that the driver is not operating optimally with respect to controlling the brightness or contrast, then I would consider reporting a bug with the SANE developers

http://www.sane-project.org/bugs.html
 
Old 01-12-2015, 10:25 PM   #4
greeder
Member
 
Registered: Sep 2014
Posts: 31

Original Poster
Rep: Reputation: Disabled
Thank's ferrari,
/etc/os-release reports:
NAME="Ubuntu"
VERSION="14.04.1 LTS, Trusty Tahr"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 14.04.1 LTS"
VERSION_ID="14.04"

I don't seem to have a usr/lib64 directory.

/etc/sane.d/dll.d contains a file called hplip.
etc/sane.d contains a butt load of conf files named after various scanners. Included are two microtek.conf files as well as the sm3840.conf file.
I don't see where there is anything that controls which SANE backend to load.

Um... What does this mean??
"For local scanners, udev rules help identify the scanner hardware and the correct SANE backend"
 
Old 01-13-2015, 03:34 AM   #5
ferrari
LQ Guru
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 5,805

Rep: Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140
Quote:
/etc/sane.d/dll.d contains a file called hplip.
The hplip backend is for supporting a number of HP devices - not relevant to you here. (It will have been added as part of HPLIP printer software installation.) The /etc/sane.d/dll.conf file is used to list backends (scanner drivers) that can be dynamically loaded on demand. However, most backends are pre-loaded as part of the SANE libary build, so do not have to be listed here. (Often, proprietary driver entries are added here explicitly to make sure they are loaded when required.)

More info
Code:
man sane-dll
Quote:
Um... What does this mean??
"For local scanners, udev rules help identify the scanner hardware and the correct SANE backend"
Well, udev is the device manager for the Linux kernel, and used to recognise hardware, and create device nodes, set environment variables etc. As part of this, there are large sets of rules to handle various types of hardware - the system rules are located in /usr/lib/udev/rules.d/, including rules for supported scanners. Amongst the scanner rules, your model is listed with an entry that looks similar to this
Code:
# Microtek ScanMaker 3840
ATTRS{idVendor}=="05da", ATTRS{idProduct}=="30d4", ENV{libsane_matched}="yes"
Anyway, you already reported that your scanner is working, just not producing the results that you'd like, hence my suggestion to submit a bug report.
 
Old 01-14-2015, 06:31 PM   #6
greeder
Member
 
Registered: Sep 2014
Posts: 31

Original Poster
Rep: Reputation: Disabled
Ok,
Thanks for your patients. I'm really trying to learn what's going on here, not just find some magic that makes things better. Thus, a nice detour through the SANE and UDEV documentation.
In any case, It does seem that the sm3840 backend is loaded as some sort of default process and is not done explicitly by a rule or user setting. It was probably done as part of the Unbuntu instal process. I'm looking into this (that need to understand).
Anyway, Ill take your suggestion to file a bug with the Sane project. But I doubt they will take much intrest in this old scanner.
 
Old 01-14-2015, 09:10 PM   #7
ferrari
LQ Guru
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 5,805

Rep: Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140
Quote:
In any case, It does seem that the sm3840 backend is loaded as some sort of default process and is not done explicitly by a rule or user setting.
The udev rule is used to recognise the device as a scanner. That's what the 'ENV{libsane_matched}="yes"' assignment key does. When the front-end is run, SANE uses the device chipset to identify the correct SANE backend. That's why no user configuration is needed (for local scanners already supported by SANE).

Last edited by ferrari; 01-14-2015 at 09:11 PM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Brother MFC on 64 current: Scanner works, printer uses wrong connection gargamel Slackware 0 03-07-2010 02:51 AM
Microtek V6USL scanner help with 2.6 kernel don355 Linux - Hardware 0 01-01-2006 05:51 PM
microtek 5800. scanner driver gulfcoastdave Linux - Hardware 0 05-15-2005 03:37 PM
Microtek scanner concerns Rick069 Linux - Hardware 1 03-10-2005 07:42 AM
Suse 9.2 Microtek x6 usb scanner not working doobers SUSE / openSUSE 0 02-06-2005 10:08 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 04:11 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration