LinuxQuestions.org
Visit the LQ Articles and Editorials section
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
 
LinkBack Search this Thread
Old 03-08-2004, 12:18 AM   #1
TSloth
Member
 
Registered: Oct 2002
Location: Houston, Texas
Posts: 97

Rep: Reputation: 15
scanimage hangs talking to usb scanner


I need help with a usb scanner. I got as far as a nice pre-scan, since then it doesn't work at all.

Today I connected an Epson Perfection 610 usb scanner to my Mandrake 9.2 system
I installed the SANE packages and edited /etc/sane.d/epson.conf to point to /dev/usb/scanner0.
scanimage -d epson -T successfully exercised scanner.
I started Kooka (the scanning application) and the scanner was listed in the lower left pane.
I clicked preview (or prescan?) and it did a nice quick scan, which appeared in the right pane.
I clicked "scan for real" (or whatever the other button said), the scanner light moved, the progress bar went to 1%, and the program stopped responding.
After several kill's and kill -9's, I got kooka to quit.
(reboot)
Tried kooka ... the program didn't start.
Killed kooka with -9, which worked after a while.

tried

$ SANE_DEBUG_EPSON=255 scanimage -L
[sanei_debug] Setting debug level of epson to 255.
[epson] sane_init: sane-backends 1.0.12
[epson] sane_init, ># epson.conf<
[epson] sane_init, >#<
[epson] sane_init, ># here are some examples for how to configure the EPSON backend<
[epson] sane_init, >#<
[epson] sane_init, ># SCSI scanner:<
[epson] sane_init, >#scsi EPSON<
[epson] sane_init, >#<
[epson] sane_init, ># Parallel port scanner:<
[epson] sane_init, >#pio 0x278<
[epson] sane_init, >#pio 0x378<
[epson] sane_init, >#pio 0x3BC<
[epson] sane_init, >#<
[epson] sane_init, ># USB scanner:<
[epson] sane_init, >#<
[epson] sane_init, ># Auto-detection of models known to the "epson" backend<
[epson] sane_init, >#usb<
[epson] sane_init, >#<
[epson] sane_init, ># Auto-detection of model specified by vendor/product (example is Epson<
[epson] sane_init, ># Perfection 2450, use "lsusb" or "sane-find-scanner" to get the IDs of<
[epson] sane_init, ># your scanner model)<
[epson] sane_init, >#usb 0x04b8 0x0112<
[epson] sane_init, >#<
[epson] sane_init, ># Selection of scanner by device special file<
[epson] sane_init, ># only enable this if you have an EPSON scanner. It could<
[epson] sane_init, ># otherwise block your non-EPSON scanner from being<
[epson] sane_init, ># recognized.<
[epson] sane_init, ># Depending on your distribution, you may need either the<
[epson] sane_init, ># first or the second entry.<
[epson] sane_init, >#usb /dev/usbscanner0<
[epson] sane_init, >#usb /dev/usb/scanner0<
[epson] sane_init, ># 2004-03-07 JB : next line added for Epson Perfection 610 (usb)<
[epson] sane_init, >usb /dev/usb/scanner0<
[epson] attach_one_usb(/dev/usb/scanner0)
[epson] SANE Epson Backend v0.2.36 - 2003-03-26
[epson] attach(/dev/usb/scanner0, 3)
[epson] attach: opening /dev/usb/scanner0
[epson] Found valid EPSON scanner: 0x4b8/0x103 (vendorID/productID)
[epson] send buf, size = 2
[epson] buf[0] 1b .
[epson] buf[1] 40 @

at this point the scanimage program hangs. This same command worked fine earlier today.

$ dmesg has these lines at the bottom:

usb-uhci.c: interrupt, status 3, frame# 1107
scanner.c: read_scanner(0): funky result:-75. Consult Documentation/usb/scanner.txt.
usb_control/bulk_msg: timeout
scanner.c: write_scanner: NAK received.
usb_control/bulk_msg: timeout
scanner.c: write_scanner: NAK received.
usb_control/bulk_msg: timeout
usbdevfs: USBDEVFS_CONTROL failed dev 2 rqt 128 rq 6 len 100 ret -110
usb_control/bulk_msg: timeout
usbdevfs: USBDEVFS_CONTROL failed dev 2 rqt 128 rq 6 len 100 ret -110
usb_control/bulk_msg: timeout
scanner.c: write_scanner: NAK received.
usb_control/bulk_msg: timeout
scanner.c: write_scanner: NAK received.
usb_control/bulk_msg: timeout

How can I get my scanner working?

Thanks in advance,
- TSloth
 
Old 04-07-2004, 02:29 AM   #2
rootboy
Member
 
Registered: Oct 2001
Distribution: SuSE 11.3, Ubuntu 10.4
Posts: 701

Rep: Reputation: 31
I found this while trying to help out another guy:

Disable APIC

http://www.cs.helsinki.fi/linux/linu...1-22/0051.html


John
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Talking to USB-HID ectech Programming 1 10-24-2005 06:24 AM
Scanimage -L hangs goofyheadedpunk Slackware 1 07-17-2004 01:00 PM
talking to USB 2.0 without root?? deebuv Linux - Hardware 0 06-23-2004 09:27 AM
Talking to USB HID ectech Programming 0 12-30-2003 10:50 AM
Scanner driver for USB scanner rros Linux - Newbie 1 04-23-2001 12:30 AM


All times are GMT -5. The time now is 05:36 PM.

Main Menu
 
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
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration