Fedora Linux Support Community & Resources Center
  #1  
Old 11th March 2011, 07:09 PM
szilagyic Offline
Registered User
 
Join Date: Aug 2008
Posts: 192
linuxfedorafirefox
SCSI scanner not detected by XSane

Hello:

I've got a SCSI scanner that is being detected by the kernel on Fedora 14, but XSane does not see it. If I run "sane-find-scanner" it says that no SCSI or USB scanners are found.

The scanner is a Cacham Splendeur 3024, model VM3552. I believe this scanner is the same as the Relisys Scorpio VM3552. In /var/log/messages, the following entries show up as soon as the scanner is warmed up:

Code:
Mar 11 13:34:45 dt kernel: [22595.116042] usb 4-2: new full speed USB device using uhci_hcd and address 41
Mar 11 13:34:45 dt kernel: [22595.230079] usb 4-2: device descriptor read/64, error -71
Mar 11 13:34:45 dt kernel: [22595.444048] usb 4-2: device descriptor read/64, error -71
Mar 11 13:34:46 dt kernel: [22595.647058] usb 4-2: new full speed USB device using uhci_hcd and address 42
Mar 11 13:34:46 dt kernel: [22595.760050] usb 4-2: device descriptor read/64, error -71
Mar 11 13:34:46 dt kernel: [22595.974045] usb 4-2: device descriptor read/64, error -71
Mar 11 13:34:46 dt kernel: [22596.177039] usb 4-2: new full speed USB device using uhci_hcd and address 43
Mar 11 13:34:47 dt kernel: [22596.585036] usb 4-2: device not accepting address 43, error -71
Mar 11 13:34:47 dt kernel: [22596.687038] usb 4-2: new full speed USB device using uhci_hcd and address 44
Mar 11 13:34:47 dt kernel: [22597.095032] usb 4-2: device not accepting address 44, error -71
Mar 11 13:34:47 dt kernel: [22597.095069] hub 4-0:1.0: unable to enumerate USB device on port 2
I am assuming there is some sort of SCSI to USB emulation going on? I don't know how these devices are supported now, but either way I'm guessing there is some issue based on the messages here. But I really don't know how to proceed from here. If somebody could point me in the right direction, I would greatly appreciate it! I've looked around and so far haven't been able to find a solution.

Thanks.

Last edited by szilagyic; 11th March 2011 at 07:11 PM.
Reply With Quote
  #2  
Old 12th March 2011, 01:35 AM
SiliconSlick's Avatar
SiliconSlick Offline
Registered User
 
Join Date: Aug 2009
Location: College Station, TX
Posts: 501
linuxfedorafirefox
Re: SCSI scanner not detected by XSane

Given the model I'd say check 'man sane-teco3'. Appears it is very alpha.

I didn't see anything on the page that implies some routing via USB... if the messages appear only when trying to access a SCSI bus then I'd worry about interrupts and what not... but it may just be searching USB instead. AFAIK, SCSI is not being routed via USB for most SCSI devices. But that scanner may be different.

SS
Reply With Quote
  #3  
Old 12th March 2011, 09:59 PM
szilagyic Offline
Registered User
 
Join Date: Aug 2008
Posts: 192
linuxfedorafirefox
Re: SCSI scanner not detected by XSane

Thank you for the help. It turns out that the USB messages I was seeing in /var/log/messages were NOT the scanner. It just happens that they appeared at the same exact time that the scanner was switched on. I ended up discovering that the scanner was detected properly by the kernel when the scanner was ON and we rebooted the PC:

[ 5.031335] scsi 3:0:4:0: Scanner Flat-bed scanner 5.08 PQ: 0 ANSI: 2

Next I edited /etc/sane.d/teco3.conf, and added the line at the bottom as: /dev/sg4 (/var/log/messages showed that it mounted the scanner as this device). Opened XSane and it works great!!

Now, I cannot figure out how to have the kernel find the scanner when the scanner is OFF and the PC is booted up. The "aic7xxx" module is loaded during boot (for the Adaptec SCSI controller). Is there some other module that needs to be loaded for the kernel to see the scanner? I tried running "modprobe sg" and that didn't do anything. So far I can't figure out this last piece of the puzzle.

Thanks!

Last edited by szilagyic; 12th March 2011 at 10:08 PM.
Reply With Quote
  #4  
Old 12th March 2011, 10:40 PM
SiliconSlick's Avatar
SiliconSlick Offline
Registered User
 
Join Date: Aug 2009
Location: College Station, TX
Posts: 501
linuxfedorafirefox
Re: SCSI scanner not detected by XSane

You might check out this:

http://docs.fedoraproject.org/en-US/...-scsi-bus.html

Also Google "Fedora SCSI bus rescan". I've seen references to writing some values to some /sys/bus/scsi but I'm not sure what it is correct for current kernels.

Although the link above is primarily for LUN detection on RAIDs if it rescans the SCSI bus it might accomplish your needs.

SS (who assumes you already have lsscsi installed and have been using it to diagnose)
Reply With Quote
  #5  
Old 13th March 2011, 07:59 PM
szilagyic Offline
Registered User
 
Join Date: Aug 2008
Posts: 192
linuxfedorafirefox
Re: SCSI scanner not detected by XSane

Thanks much. Well, that was the fix. It turns out that SCSI scanners can't be automatically detected after the kernel boots (that I know of). The fix is to run the /usr/bin/rescan-scsi-bus.sh script, that is provided by the "sg3_utils" rpm package from Fedora. I ended up creating a script in my home folder for Simple Scan, as:

Quote:
#!/bin/sh
/usr/bin/sudo /usr/bin/rescan-scsi-bus.sh
simple-scan
So that it will automatically scan the SCSI bus before running Simple Scan. Changed the command line for the "Simple Scan" menu item to:

gnome-terminal –command="/home/myhomefolder/.simple-scan.sh”

Then gave permissions to the regular user with sudo by editing /etc/sudoers and putting a line at the bottom:

Quote:
myusername ALL=NOPASSWD: /usr/bin/rescan-scsi-bus.sh
Works great.

Thank you for your help!!

Last edited by szilagyic; 13th March 2011 at 08:02 PM.
Reply With Quote
  #6  
Old 30th July 2012, 02:56 AM
chicagocoyote Offline
Registered User
 
Join Date: Jul 2012
Location: Chicago
Posts: 18
linuxfirefox
Re: SCSI scanner not detected by XSane

Quote:
Originally Posted by szilagyic View Post
... I ended up discovering that the scanner was detected properly by the kernel when the scanner was ON and we rebooted the PC:

[ 5.031335] scsi 3:0:4:0: Scanner Flat-bed scanner 5.08 PQ: 0 ANSI: 2

Next I edited /etc/sane.d/teco3.conf, and added the line at the bottom as: /dev/sg4 (/var/log/messages showed that it mounted the scanner as this device). Opened XSane and it works great!!

Can you post the _exact_ line that you put in the .conf file?

Thanks
Reply With Quote
  #7  
Old 31st July 2012, 02:30 AM
szilagyic Offline
Registered User
 
Join Date: Aug 2008
Posts: 192
linuxfirefox
Re: SCSI scanner not detected by XSane

Quote:
Originally Posted by chicagocoyote View Post
Can you post the _exact_ line that you put in the .conf file?

Thanks
Yes, it is simply :

Code:
/dev/sg4
and that's it. Just add that at the bottom of the file and save it.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
FC9 xsane now will not detect scanner miles Using Fedora 5 10th June 2008 02:59 PM
xsane does not talk to my scanner on F7 :( 105547111 Using Fedora 4 14th June 2007 08:21 PM
USB: sane / xsane backend for my scanner ? t3gah Hardware & Laptops 10 19th March 2005 09:40 PM


Current GMT-time: 21:38 (Wednesday, 22-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat