[sane-devel] sane-find-scanner finds Canon Canoscan N24OU, scanimage -L does not

Terry Spearman tnspearman at twc.com
Sun Nov 18 18:46:48 GMT 2018


I had it, and I lost it.

 

After BR, Louis wrote:

 

"If /usr/lib64/sane is empty you probbly don;t have
sane-backends-drivers-scanners installed: yum install
sane-backends-drivers-scanners should solve your problem...."

 

I followed his advice, ran "yum install sane-backends-drivers-scanners" and
scanimage -L detected my Canon Canoscan N124OU.  I left things alone for a
couple of weeks, and when I came back to it I'm now back to getting "no
scanners were identified".  (Incidentally, I'm signed on as root).  The only
thing I did in the interim was move my home directory from the SSD, where
Linux lives, to the RAID, which is much bigger.  It's hard to see how that
would effect scanimage, but what so I know? FWIW, I'm pretty sure I got all
the hidden files, etc, moved to the new location and got all the ownership
and permissions the same as they were in the old location, which I have not
deleted.

 

logging in as root and typing "scanimage -L" gives me, after a very long
time, "device 'plustek:libusb:001:002 is a Canon CanoScan N1240U/LiDE30
flatbed scanner"

 

sane-find-scanner still gives me:

found USB scanner (vendor=0x04a5 [Canon], product=0x220e [Canoscan] ) at
libusb:001:002

 

Following debugging suggestions from:

 

https://www.unix.com/man-page/centos/7/sane/

 

I ran "export SANE_DEBUG_DLL=128"

 

Now scanimage -L gives me

 

[sanei_debug] Setting debug level of dll to 128.

[dll] sane_init: SANE dll backend version 1.0.13 from sane-backends 1.0.24

[dll] sane_init/read_dlld: attempting to open directory './dll.d'

[dll] sane_init/read_dlld: attempting to open directory '/etc/sane.d/dll.d'

[dll] sane_init/read_dlld: using config directory '/etc/sane.d/dll.d'

[dll] sane_init/read_dlld: done.

[dll] sane_init/read_config: reading dll.conf

[dll] add_backend: adding backend 'net'

[dll] add_backend: adding backend 'plustek'

[dll] sane_get_devices

[dll] load: searching backend 'plustek' in 'usr/lib64/sane'

[dll] load: trying to load 'usr/lib64/sane/libsane-plustek.so.1'

[dll] load: dlopen()ing 'usr/lib64/sane/libsane-plustek.so.1'

[dll] init: initializing backend 'plustek'

[dll] init: backend 'plustek' is version 1.0.0

[dll] load: searching backend 'net' in 'usr/lib64/sane'

[dll] load: trying to load 'usr/lib64/sane/libsane-net.so.1'

[dll] load: dlopen()ing 'usr/lib64/sane/libsane-net.so.1'

[dll] init: initializing backend 'net'

[dll] init: backend 'net' is version 1.0.24

[dll] sane_get_devices: found 0 devices

 

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).

[dll] sane_exit: exiting

[dll] sane_exit: calling backend 'plustek's exit function

[dll] sane_exit: calling backend 'net's exit function

[dll] sane_exit: finished

 

Investigating:

I can't find  a directory ./dll.d

The directory /etc/sane.d/dll.d exists, but appears to be empty

There is a dll.conf file in /etc/sane.d, which has everything in it
commented out except 'net' and 'plustek'

/usr/lib64/sane does contain a libsane-plustek.so.1, as well as a
libsane-plustek.so and a libsane-plustek.so.1.0.24

/usr/lib64/sane does contain a libsane-net.so.1, as well as a libsane-net.so
and a libsane-net.so.1.0.24

It's interesting that even though there are .so, .so.1 and .so.1.0.24
versions of both plustek and net, with net it seems that the 1.0.24 version
is loaded whereas with plustek it's the 1.0.0 version. 

 

At a later time I rebooted and logged on with my usual user log on and
repeated the process, and pot something different:

 

[sanei_debug] Setting debug level of dll to 128.

[dll] sane_init: SANE dll backend version 1.0.13 from sane-backends 1.0.24

[dll] sane_init/read_dlld: attempting to open directory './dll.d'

[dll] sane_init/read_dlld: attempting to open directory '/etc/sane.d/dll.d'

[dll] sane_init/read_dlld: using config directory '/etc/sane.d/dll.d'

[dll] sane_init/read_dlld: done.

[dll] sane_init/read_config: reading dll.conf

[dll] add_backend: adding backend 'net'

[dll] add_backend: adding backend 'plustek'

[dll] sane_get_devices

[dll] load: searching backend 'plustek' in 'usr/lib64/sane'

[dll] load: trying to load 'usr/lib64/sane/libsane-plustek.so.1'

[dll] load: dlopen()ing 'usr/lib64/sane/libsane-plustek.so.1'

[dll] init: initializing backend 'plustek'

[dll] init: backend 'plustek' is version 1.0.0

[dll] load: searching backend 'net' in 'usr/lib64/sane'

[dll] load: trying to load 'usr/lib64/sane/libsane-net.so.1'

[dll] load: dlopen()ing 'usr/lib64/sane/libsane-net.so.1'

[dll] init: initializing backend 'net'

[dll] init: backend 'net' is version 1.0.24

[dll] sane_get_devices: found 1 devices

[dll] sane_open: trying to open 'plustek:libusb:001:002'

[dll] sane_open: open sucessful

[dll] sane_get_option_descriptor(handle=0x55ae00675b00,option=0)

[dll]
sane_control_option(handle=0x55ae00675b00,option=0,value=0x7ffc9c3ccb1c,info
=(nil)

[dll] sane_get_option_descriptor(handle=0x55ae00675b00,option=1)

[dll] sane_get_option_descriptor(handle=0x55ae00675b00,option=2)

[dll] sane_get_option_descriptor(handle=0x55ae00675b00,option=3)

[dll] sane_get_option_descriptor(handle=0x55ae00675b00,option=4)

[dll] sane_get_option_descriptor(handle=0x55ae00675b00,option=5)

[dll] sane_get_option_descriptor(handle=0x55ae00675b00,option=6)

[dll] sane_get_option_descriptor(handle=0x55ae00675b00,option=7)

[dll] sane_get_option_descriptor(handle=0x55ae00675b00,option=8)

[dll] sane_get_option_descriptor(handle=0x55ae00675b00,option=9)

[dll] sane_get_option_descriptor(handle=0x55ae00675b00,option=1)

[dll] sane_get_option_descriptor(handle=0x55ae00675b00,option=1)

[dll] sane_get_option_descriptor(handle=0x55ae00675b00,option=1)

[dll] sane_get_option_descriptor(handle=0x55ae00675b00,option=1)

[dll] sane_get_option_descriptor(handle=0x55ae00675b00,option=1)

[dll] sane_get_option_descriptor(handle=0x55ae00675b00,option=1)

[dll] sane_get_option_descriptor(handle=0x55ae00675b00,option=1)

[dll] sane_get_option_descriptor(handle=0x55ae00675b00,option=1)

[dll] sane_get_option_descriptor(handle=0x55ae00675b00,option=1)

[dll] sane_get_option_descriptor(handle=0x55ae00675b00,option=1)

[dll] sane_get_option_descriptor(handle=0x55ae00675b00,option=1)

[dll] sane_get_option_descriptor(handle=0x55ae00675b00,option=1)

[dll] sane_get_option_descriptor(handle=0x55ae00675b00,option=1)

[dll] sane_get_option_descriptor(handle=0x55ae00675b00,option=1)

[dll] sane_get_option_descriptor(handle=0x55ae00675b00,option=1)

[dll] sane_get_option_descriptor(handle=0x55ae00675b00,option=1)

[dll] sane_get_option_descriptor(handle=0x55ae00675b00,option=1)

 

Rebooting the server, logging on as root, and running

export SANE_DEBUG_PLUSTEK=128

then running scanimage -L gives me a lot of output that rapidly scrolls off
screen, before slowing down to what appears to be the important stuff

.

.

.

[plustek] pos_shading_y  : -1

[plustek] neg_x    : 0

[plustek] neg_y   : 0

[plustek] neg_shading_y  : -1

q[plustek] tpa _x    :0

[plustek] tpa _y    :0

[plustek] tpa _shading_y    :-1

[plustek] red gain : -1

[plustek] green gain : -1

[plustek] blue gain   :  -1

[plustek] red offset  :  -1

[plustek] green offset  :  -1

[plustek] blue offset  :  -1

[plustek] red lampoff   : -1

[plustek] green lampoff   : -1

[plustek] blue lampoff   : -1

[plustek] red Gamma : 1.00

[plustek] green Gamma : 1.00

[plustek] blue Gamma : 1.00

[plustek] gray Gamma : 1.00

[plustek] ------------------------------------

[plustek] usbdev_open(libusb:001:002,0x04A9-0x220E) - 0x564f6b8573a0

[plustek] Vendor ID=0x4a9, Product ID=0x220E

[plustek] usbio_DetectLM983x

[plustek] usbio_DetectLM983x

 

[plustek] Device WAF   :0x00004002

[plustek] transferrate : 1000000 Bytes/s

 

[plustek] Calibration file-names set to:

[plustek] >/root/.sane/Canon_CanoScan_N12

[plustek] root sane

[plustek] * PL=295, coeffsize=216, scaler=3

[plustek] * PauseLimit=2 [0x4e] = 0x01, [0x4f] = 0x01

[plustek] * Scansteps=80 (10*1200/150)

[plustek] usb_set_ScanParameters().

[plustek] Scanner not ready!!!

[plustek] UIO Error

[plustek] UIO Error

[plustek] usbdev_GetCaps()

[plustek] Scanner Information:

[plustek] Vendor  :  Canon

[plustek] Model   : CanoScan N1240U/LIDE30

[plustek] Flags :  0x00000000

[plustek] drvclose()

[plustek] usbDev_stopScan

[plustek] usbDev_ScanEnd(), start =0, park=0

[plustek] UIO Error

[plustek] usbDev_close()

[plustek] attach: model = > CanoScan N1240U/LIDE30<

[plustek] sane_get_devices (0x7ffdeece7bc0, 0)

device 'plustek:libusb:001:002" is a Canon CanoScan N1240U/LIDE30 flatbed
scanner

[plustek] sane_exit

[plustek] Shutdown called (dev->fd=-1, libusb:001:002)

[plustek] Waiting for scanner-ready...

[plustek] Scanner not ready!!!

[plustek] Switching lamp off...

[plustek] LAMP-STATUS:  0x00000000 (off)

[plustek] LAMP-STATUS:  0x00000000 (off)

[plustek] Lamp-Timer stopped

 

 

Running "scanimage -d test -T" gives me all "PASS"

Running "scanimage -d plustek -T" gives me similar to above up to

[plustek] usbio_DetectLM983x

then

[plustek] * could not read version register!

[plustek] open failed: -1

[plustek] sane_open -

scanimage: open of device plustek failed: Invalid argument

[plustek] sane_exit

 

Tried renaming /usr/lib64/sane/libsane-plustek.so to
/usr/lib64/sane/xlibsane-plustek.so

cp /usr/lib64/sane/libsane-plustek.so /usr/lib64/sane/xlibsane-plustek.so

rm /usr/lib64/sane/libsane-plustek.so.1 

 

Tried renaming /usr/lib64/sane/libsane-plustek.so.1 to
/usr/lib64/sane/xlibsane-plustek.so.1

cp /usr/lib64/sane/libsane-plustek.so.1 to
/usr/lib64/sane/xlibsane-plustek.so.1

rm /usr/lib64/sane/libsane-plustek.so.1

 

Running "scanimage -d plustek -T" gives

scanimage: open of device plustek failed: invalid argument

 

Note: there is no /usb in /proc/bus

 

 

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/sane-devel/attachments/20181118/43911622/attachment-0001.html>


More information about the sane-devel mailing list