Difficulty getting scanner to work with Debian

Getting your soundcard to work, using Debian on non-i386 hardware, etc

Re: Difficulty getting scanner to work with Debian

Postby FreewheelinFrank » 2017-07-05 05:23

The latest version will very likely depend on the latest version of other libraries and not work.

As we have a report that simple-scan can work on your system and with your scanner, a better idea is to work out why it isn't.

You could post the output of

Code: Select all
$ simple-scan -d


with the scanner connected and on.
User avatar
FreewheelinFrank
 
Posts: 247
Joined: 2010-06-07 16:59

Re: Difficulty getting scanner to work with Debian

Postby Yuhan » 2017-07-05 16:47

Okay...how's this?

[+0.00s] DEBUG: simple-scan.vala:596: Starting Simple Scan 3.14.0, PID=7468
[+0.00s] DEBUG: Connecting to session manager
[+0.05s] DEBUG: ui.vala:1878: Loading state from /home/yuhan/.cache/simple-scan/state
[+0.05s] DEBUG: ui.vala:1859: Restoring window to 2560x1360 pixels
[+0.05s] DEBUG: autosave-manager.vala:64: Loading autosave information
[+0.05s] DEBUG: autosave-manager.vala:259: Waiting to autosave...
[+0.12s] DEBUG: scanner.vala:1446: sane_init () -> SANE_STATUS_GOOD
[+0.12s] DEBUG: scanner.vala:1452: SANE version 1.0.24
[+0.12s] DEBUG: scanner.vala:1513: Requesting redetection of scan devices
[+0.12s] DEBUG: scanner.vala:802: Processing request
[+0.18s] DEBUG: autosave-manager.vala:281: Autosaving book information
[+0.23s] DEBUG: ui.vala:1969: Saving state to /home/yuhan/.cache/simple-scan/state
[+4.03s] DEBUG: scanner.vala:338: sane_get_devices () -> SANE_STATUS_GOOD
[+4.03s] DEBUG: scanner.vala:350: Device: name="genesys:libusb:001:008" vendor="Canon" model="LiDE 110" type="flatbed scanner"
[+4.26s] DEBUG: autosave-manager.vala:195: Deleting autosave records
[+4.26s] DEBUG: scanner.vala:1586: Stopping scan thread
[+4.26s] DEBUG: scanner.vala:802: Processing request
[+4.26s] DEBUG: scanner.vala:1597: sane_exit ()

This was the result of simple-scan -d
Yuhan
 
Posts: 20
Joined: 2017-05-11 12:48

Re: Difficulty getting scanner to work with Debian

Postby FreewheelinFrank » 2017-07-05 20:25

Did you click on the 'scan' button before closing the program?

That is pretty much the output I get (different scanner name) running simple-scan -d and closing simple scan when it appears, rather than clicking the scan button when simple-scan appears.

Run simple-scan -d again but be sure to click the scan button, then post the output, if you didn't before.
User avatar
FreewheelinFrank
 
Posts: 247
Joined: 2010-06-07 16:59

Re: Difficulty getting scanner to work with Debian

Postby Yuhan » 2017-07-06 00:43

Okay...I did simple-scan -d and hit scan (it still said "Failed to Scan") and this was the output:

'Disable interpolation' type=bool size=4 cap=,soft-select,soft-detect
[+6.05s] DEBUG: scanner.vala:737: Description: When using high resolutions where the horizontal resolution is smaller than the vertical resolution this disables horizontal interpolation.
[+6.05s] DEBUG: scanner.vala:884: sane_get_option_descriptor (33)
[+6.05s] DEBUG: scanner.vala:734: Option 33: name='color-filter' title='Color filter' type=string size=6 values=["Red", "Green", "Blue"] cap=,soft-select,soft-detect
[+6.05s] DEBUG: scanner.vala:737: Description: When using gray or lineart this option selects the used color.
[+6.05s] DEBUG: scanner.vala:884: sane_get_option_descriptor (34)
[+6.05s] DEBUG: scanner.vala:734: Option 34: name='calibration-file' title='Calibration file' type=string size=4096 cap=,soft-select,soft-detect,advanced
[+6.05s] DEBUG: scanner.vala:737: Description: Specify the calibration file to use
[+6.05s] DEBUG: scanner.vala:884: sane_get_option_descriptor (35)
[+6.05s] DEBUG: scanner.vala:734: Option 35: name='(null)' title='Sensors' type=group size=0 cap=,advanced
[+6.05s] DEBUG: scanner.vala:737: Description: Scanner sensors and buttons
[+6.05s] DEBUG: scanner.vala:884: sane_get_option_descriptor (36)
[+6.05s] DEBUG: scanner.vala:734: Option 36: name='scan' title='Scan button' type=bool size=4 cap=,hard-select,soft-detect,advanced
[+6.05s] DEBUG: scanner.vala:737: Description: Scan button
[+6.05s] DEBUG: scanner.vala:884: sane_get_option_descriptor (37)
[+6.05s] DEBUG: scanner.vala:734: Option 37: name='file' title='File button' type=bool size=4 cap=,hard-select,soft-detect,advanced
[+6.05s] DEBUG: scanner.vala:737: Description: File button
[+6.05s] DEBUG: scanner.vala:884: sane_get_option_descriptor (38)
[+6.05s] DEBUG: scanner.vala:734: Option 38: name='email' title='Email button' type=bool size=4 cap=,hard-select,soft-detect,advanced
[+6.05s] DEBUG: scanner.vala:737: Description: Email button
[+6.05s] DEBUG: scanner.vala:884: sane_get_option_descriptor (39)
[+6.05s] DEBUG: scanner.vala:734: Option 39: name='copy' title='Copy button' type=bool size=4 cap=,hard-select,soft-detect,advanced
[+6.05s] DEBUG: scanner.vala:737: Description: Copy button
[+6.05s] DEBUG: scanner.vala:884: sane_get_option_descriptor (40)
[+6.05s] DEBUG: scanner.vala:734: Option 40: name='page-loaded' title='Page loaded' type=bool size=4 cap=,inactive
[+6.05s] DEBUG: scanner.vala:737: Description: Page loaded
[+6.05s] DEBUG: scanner.vala:884: sane_get_option_descriptor (41)
[+6.05s] DEBUG: scanner.vala:734: Option 41: name='ocr' title='OCR button' type=bool size=4 cap=,inactive
[+6.05s] DEBUG: scanner.vala:737: Description: OCR button
[+6.05s] DEBUG: scanner.vala:884: sane_get_option_descriptor (42)
[+6.05s] DEBUG: scanner.vala:734: Option 42: name='power' title='Power button' type=bool size=4 cap=,inactive
[+6.05s] DEBUG: scanner.vala:737: Description: Power button
[+6.05s] DEBUG: scanner.vala:884: sane_get_option_descriptor (43)
[+6.05s] DEBUG: scanner.vala:734: Option 43: name='extra' title='Extra button' type=bool size=4 cap=,inactive
[+6.05s] DEBUG: scanner.vala:737: Description: Extra button
[+6.05s] DEBUG: scanner.vala:884: sane_get_option_descriptor (44)
[+6.05s] DEBUG: scanner.vala:734: Option 44: name='need-calibration' title='Need calibration' type=bool size=4 cap=,inactive
[+6.05s] DEBUG: scanner.vala:737: Description: The scanner needs calibration for the current settings
[+6.05s] DEBUG: scanner.vala:884: sane_get_option_descriptor (45)
[+6.05s] DEBUG: scanner.vala:734: Option 45: name='(null)' title='Buttons' type=group size=0 cap=,advanced
[+6.05s] DEBUG: scanner.vala:737: Description:
[+6.05s] DEBUG: scanner.vala:884: sane_get_option_descriptor (46)
[+6.05s] DEBUG: scanner.vala:734: Option 46: name='calibrate' title='Calibrate' type=button size=4 cap=,inactive
[+6.05s] DEBUG: scanner.vala:737: Description: Start calibration using special sheet
[+6.05s] DEBUG: scanner.vala:884: sane_get_option_descriptor (47)
[+6.05s] DEBUG: scanner.vala:734: Option 47: name='clear-calibration' title='Clear calibration' type=button size=0 cap=,soft-select,soft-detect,advanced
[+6.05s] DEBUG: scanner.vala:737: Description: Clear calibration cache
[+6.05s] DEBUG: scanner.vala:884: sane_get_option_descriptor (48)
[+6.05s] DEBUG: scanner.vala:895: SCAN_SOURCE not available, trying alternative "doc-source"
[+6.05s] DEBUG: scanner.vala:546: sane_control_option (2, SANE_ACTION_SET_VALUE, "Gray") -> (SANE_STATUS_GOOD, "Gray")
[+6.05s] DEBUG: scanner.vala:462: sane_control_option (6, SANE_ACTION_SET_VALUE, 150) -> (SANE_STATUS_GOOD, 150)
[+6.05s] DEBUG: scanner.vala:462: sane_control_option (5, SANE_ACTION_SET_VALUE, 2) -> (SANE_STATUS_GOOD, 8)
[+6.05s] DEBUG: scanner.vala:530: sane_control_option (10, SANE_ACTION_SET_VALUE, option.range.max) -> (SANE_STATUS_GOOD)
[+6.05s] DEBUG: scanner.vala:530: sane_control_option (11, SANE_ACTION_SET_VALUE, option.range.max) -> (SANE_STATUS_GOOD)
[+11.22s] DEBUG: scanner.vala:1212: sane_start (page=0, pass=0) -> SANE_STATUS_INVAL
[+11.22s] WARNING: scanner.vala:1219: Unable to start device: Invalid argument
[+41.52s] DEBUG: scanner.vala:764: sane_cancel ()
[+47.08s] DEBUG: scanner.vala:767: sane_close ()

I can't make any sense out of this...I hope someone else can! Thanks.
Yuhan
 
Posts: 20
Joined: 2017-05-11 12:48

Re: Difficulty getting scanner to work with Debian

Postby FreewheelinFrank » 2017-07-06 09:03

Code: Select all
[+11.22s] DEBUG: scanner.vala:1212: sane_start (page=0, pass=0) -> SANE_STATUS_INVAL


That is the critical line, obviously.

We seem to be back to the USB3 thing: that message is associated with a bug in the Sane backends from a few years ago that affected communication with your scanner over USB3.

https://bugs.launchpad.net/ubuntu/+sour ... ug/1184699

This issue could very likely exist in Jessie too.

The options you seem to have are:

1. Experiment with USB settings in the BIOS.

https://bugs.launchpad.net/ubuntu/+sour ... ug/1247371

https://communities.intel.com/thread/104177

2. See if the problem still exists in the updated sane-backend package in Stetch.

Maybe try a LiveCD or LiveUSB of Stretch and see if your scanner (and everything else) works in Stretch before updating.

Unless anybody else can suggest otherwise.
User avatar
FreewheelinFrank
 
Posts: 247
Joined: 2010-06-07 16:59

Re: Difficulty getting scanner to work with Debian

Postby srq2625 » 2017-07-06 10:45

Yuhan wrote:I should add that my scanner does work using xsane. The problem is xsane is really more than I need and simple-scan is actually better for multiple page documents. With xsane I can only scan pages individually.

I find a couple or three things here that, to my (some people would say) simple mind, don't quite add up:
  • The fact that xsane works for you is a good thing.
  • If simple-scan is not working, it's would appear obvious that it's not enough for you work.
  • If xsane does work for you then, assuming no other such tools exist, it's the only tool for the job. I would work with the tool that works rather than trying to get the "broken" tool to work, especially if deadlines are an issue.
  • The xsane tool can and does allow one to create mult-page scans:
    • Click the "create multi-page document" (or some such) button - this will create a project folder
    • Do your scanning - for me, this works with or without my document feeder - This will create multiple intermediate files in the above created folder
    • Complete the job, and click on the button to create the multi-page document - this will combine the intermediate products into your final
IHTH
srq2625
 
Posts: 36
Joined: 2016-02-26 11:01

Re: Difficulty getting scanner to work with Debian

Postby Yuhan » 2017-07-06 17:16

But xsane has not been without problem. It does work, yes, but not consistently. Sometimes I'll get one nice scan job but if I try to do a second it freezes up too. On balance, however, xsane is more reliable than simple-scan. Not really sure what to do about the usb2 vs. usb3 situation. I don't know what "stretch" is referring to?? My hub is an Anker which consists of all usb3 ports and I'm pretty sure my Gigabyte computer only has usb3. In looking over the older bug statements I don't really see anything there that helps solve this problem. What is the best and most universal scan format to use with Debian? I've always used pdf in the past but sane seems to have a huge problem with pdf! I've been using jpeg but some recipients claim they've had trouble recovering it at their end.
Yuhan
 
Posts: 20
Joined: 2017-05-11 12:48

Re: Difficulty getting scanner to work with Debian

Postby FreewheelinFrank » 2017-07-06 18:29

First scan working and the second not working is a symptom of the problem with sane-backends that I mentioned previously.

Which seems to confirm that this is not really an issue with simple-scan.

The sane-backends package has been updated in Stretch (aka Debian 9), so one option is to upgrade to the latest version of Debian.

The bug seems to be with USB3 connectivity- so your other option is to change USB settings in the BIOS.

There are YouTube videos to help with this.

https://www.youtube.com/watch?v=O3fZK3nUziE

Peripherals: 2.57 in the video.

Make sure Legacy USB support is enables, for a start.

Then try disabling USB3 support.

(Changing BIOS settings is at your own risk.)

If that works- and you don't need USB3, then you're sorted.

Unfortunately USB3 is very useful if you have a USB3 drive 'cos it's much faster, so an upgrade may be a better choice. As I said before, maybe try a liveCD to check if it works in Stretch.
User avatar
FreewheelinFrank
 
Posts: 247
Joined: 2010-06-07 16:59

Re: Difficulty getting scanner to work with Debian

Postby Yuhan » 2017-07-06 21:09

Thanks for this recommendation. I hesitate to do an upgrade to Debian 9 because I've had troubles in the past with upgrading to a new version of Xubuntu. I finally got it to work but not without a lot of tweaking! "Jessie" was installed for me by the person who assembled the computer. Is it problematic upgrading to a new version of Debian or is it better to uninstall and then to a clean install of the new version? In my limited experience that is an involved process.
Yuhan
 
Posts: 20
Joined: 2017-05-11 12:48

Re: Difficulty getting scanner to work with Debian

Postby FreewheelinFrank » 2017-07-07 05:59

Do you have any USB3 devices which you need to run at full speed? It's not like they won't work using USB2- just slower.

Maybe disable USB3 in the bios to get the scanner working, gain some confidence using Debian, and upgrade later.

That way you will allow time for any bugs in Stretch to get knocked out.

I upgraded one machine and installed on two others, but that's not to say you are guaranteed to have no problems.

I have to refer you to the small print:

https://www.debian.org/releases/stable/ ... ading.html

One question would be: did your friend install any third party software or repositories?

Backup your data to disc or USB drive before attempting an upgrade or fresh install.

I would try an upgrade first, but have installation media and drivers to hand so I could do a fresh install if necessary.

You either need to have another computer available to download required files and ask questions if you have problems, or a LiveCD/LiveUSB available which you can use to boot and access the internet.

You also need to know how to enable repositories for any non-free software required, and possibly how to manually install a package if you don't have an Ethernet connection and you need a non-free wireless driver.
User avatar
FreewheelinFrank
 
Posts: 247
Joined: 2010-06-07 16:59

Re: Difficulty getting scanner to work with Debian

Postby Yuhan » 2017-07-07 19:49

Yes, much of that is too technical for me. There is other software installed and it would be hard to make everything work together in a new updated version...at least for me! I tried installing gscan2pdf and that too is batting zero! All I got when I pushed "scan" was "invalid argument!" So much for that. There are many scanning Open Source packages out there. Isn't it possible one of them will work? Can't believe this is so troublesome. But thanks for all this helpful feedback.
Yuhan
 
Posts: 20
Joined: 2017-05-11 12:48

Re: Difficulty getting scanner to work with Debian

Postby FreewheelinFrank » 2017-07-07 20:07

Just a frontend to Sane, so it isn't going to help.

Have you tried disabling USB3?
User avatar
FreewheelinFrank
 
Posts: 247
Joined: 2010-06-07 16:59

Re: Difficulty getting scanner to work with Debian

Postby Yuhan » 2017-07-10 19:58

How do you disable usb3? I see no reference to it in the BIOS.
Yuhan
 
Posts: 20
Joined: 2017-05-11 12:48

Re: Difficulty getting scanner to work with Debian

Postby FreewheelinFrank » 2017-07-10 20:16

Yuhan wrote:How do you disable usb3? I see no reference to it in the BIOS.


From the link in one of my previous posts, you may have to diable xHCI mode:
Code: Select all
legacy USB support: enabled
Intel xHCI Mode: disabled
EHCI Hand-off: disabled


Does your Peripherals BIOS screen look like this?

http://techx1.thessdreview1.netdna-cdn.com/wp-content/uploads/2015/07/Gigabyte-F2A88X-UP4-Bios-Peripherals.jpg
User avatar
FreewheelinFrank
 
Posts: 247
Joined: 2010-06-07 16:59

Previous

Return to Hardware

Who is online

Users browsing this forum: No registered users and 5 guests

fashionable