Trouble with Sane, and Epson and Canon scanners (Solved)

Using applications, configuring, problems
Message
Author
User avatar
dvw86
Posts: 636
Joined: Thu 05 May 2005, 00:55
Location: Washington State

Trouble with Sane, and Epson and Canon scanners (Solved)

#1 Post by dvw86 »

I have an Epson perfection 1250 and a Canon N670u. The sane-find-scanner command will find both scanners. However scanimage says that there is no sane device found for either scanner. xsane says that there are no sane devices as well. I made sure that the conf files had the appropriate lines uncommented. USBView sees both scanners. Does any body have any ideas?

User avatar
BarryK
Puppy Master
Posts: 9392
Joined: Mon 09 May 2005, 09:23
Location: Perth, Western Australia
Contact:

#2 Post by BarryK »

Did you get any joy with scanning since your post?

I only have a parallel port scanner.

I am currently overhauling the scanning, have just upgraded SANE and Xsane to latest versions.
Perhaps I will borrow a usb scanner, see if I can get it to work.

User avatar
dvw86
Posts: 636
Joined: Thu 05 May 2005, 00:55
Location: Washington State

#3 Post by dvw86 »

No luck yet, but I have just finished building my

User avatar
dvw86
Posts: 636
Joined: Thu 05 May 2005, 00:55
Location: Washington State

#4 Post by dvw86 »

Well sane doesn't work with the VIA machine either. I saw that you updated the sane and xsane versions. I'm looking forward to trying those.

User avatar
BarryK
Puppy Master
Posts: 9392
Joined: Mon 09 May 2005, 09:23
Location: Perth, Western Australia
Contact:

#5 Post by BarryK »

Hmm, I wonder if there is supposed to be some kernel module loaded for usb scanner access?
Do you have any other Linux distro that you could try from, then run "lsmod" to see what modules are loaded. ...preferably a distro running a 2.4 kernel!

User avatar
dvw86
Posts: 636
Joined: Thu 05 May 2005, 00:55
Location: Washington State

#6 Post by dvw86 »

The live CDs that I have are Knoppix 3.7, DSLinux 1.0rc2, and Suse 9.1 Live Eval. I don't know what kernel they use but I could give them a try.

Guest

#7 Post by Guest »

Well I threw in the Knoppix CD and the Canon scanner worked right away. Here is what I got when I ran lsmod.

knoppix@ttyp1[knoppix]$ lsmod
Module Size Used by Not tainted
autofs4 8756 1
af_packet 13544 0 (autoclean)
agpgart 42724 0 (unused)
via82cxxx_audio 19448 1
ac97_codec 11916 0 [via82cxxx_audio]
uart401 6052 0 [via82cxxx_audio]
sound 55276 0 [via82cxxx_audio uart401]
soundcore 3428 4 [via82cxxx_audio sound]
via-rhine 12336 1
mii 2240 0 [via-rhine]
crc32 2816 0 [via-rhine]
serial 52100 0 (autoclean)
scanner 10428 0
pcmcia_core 39840 0
thermal 6724 0 (unused)
processor 9008 0 [thermal]
fan 1600 0 (unused)
button 2700 0 (unused)
battery 5952 0
ac 1824 0
rtc 7036 0 (autoclean)
cloop 8740 2
ieee1394 183076 0
usb-storage 61760 0 (unused)
usb-uhci 21644 0 (unused)
usbcore 57600 1 [scanner usb-storage usb-uhci]
ataraid 6180 0
ide-scsi 8816 1
knoppix@ttyp1[knoppix]$

User avatar
dvw86
Posts: 636
Joined: Thu 05 May 2005, 00:55
Location: Washington State

#8 Post by dvw86 »

oops forgot to log in.

User avatar
dvw86
Posts: 636
Joined: Thu 05 May 2005, 00:55
Location: Washington State

#9 Post by dvw86 »

Okay I logged in this time.
Suse was using Xsane like Puppy and I got the same errors as I did in Puppy. I ran lsmod any ways and this is what I got.

linux@linux:~> lsmod
Module Size Used by
snd_pcm_oss 56868 0
snd_pcm 96776 1 snd_pcm_oss
snd_page_alloc 11012 1 snd_pcm
snd_timer 25476 1 snd_pcm
snd_mixer_oss 18688 1 snd_pcm_oss
snd 59524 4 snd_pcm_oss,snd_pcm,snd_timer,snd_mixer_oss
soundcore 8800 1 snd
edd 9240 0
st 38940 0
sd_mod 19840 0
nvram 8328 0
usbserial 28912 0
parport_pc 35264 1
lp 10916 0
parport 37704 2 parport_pc,lp
ipv6 244100 13
joydev 10176 0
af_packet 20360 0
ds 17284 0
yenta_socket 15744 0
pcmcia_core 61636 2 ds,yenta_socket
via_rhine 19720 0
mii 5248 1 via_rhine
via_ircc 20240 0
irda 120124 1 via_ircc
ehci_hcd 27140 0
via_agp 7424 1
agpgart 28712 1 via_agp
uhci_hcd 29584 0
usbcore 96988 5 usbserial,ehci_hcd,uhci_hcd
evdev 9600 0
dm_mod 50044 0
sym53c8xx 69008 0
cloop 11104 1
ide_cd 36484 1
sr_mod 15652 0
cdrom 36508 2 ide_cd,sr_mod
scsi_mod 107980 4 st,sd_mod,sym53c8xx,sr_mod
linux@linux:~>

User avatar
BarryK
Puppy Master
Posts: 9392
Joined: Mon 09 May 2005, 09:23
Location: Perth, Western Australia
Contact:

#10 Post by BarryK »

Hey, Knoppox loaded a module called "scanner"!

Furthermore, I just checked, there is such a module in the original full set of modules. So, if you grab the full modules tarball off ibibilio.org, you should be able to load it.

So, that will have to be in the next Puppy!

User avatar
BarryK
Puppy Master
Posts: 9392
Joined: Mon 09 May 2005, 09:23
Location: Perth, Western Australia
Contact:

#11 Post by BarryK »

Okay, will attach it here...

Not sure if this one is compatible with the 1.0.3 kernel.
Any way give it a go.

# insmod ./scanner.o

should do the trick.
Attachments
scanner.o.gz
(5.54 KiB) Downloaded 500 times

User avatar
BarryK
Puppy Master
Posts: 9392
Joined: Mon 09 May 2005, 09:23
Location: Perth, Western Australia
Contact:

#12 Post by BarryK »

Okay, just do this:
Copy scanner.o.gz to /lib/modules/2.4.27/usb/
(do not uncompress)

Then run depmod:

# depmod

Then you can load it with modprobe:

# modprobe scanner

User avatar
dvw86
Posts: 636
Joined: Thu 05 May 2005, 00:55
Location: Washington State

#13 Post by dvw86 »

It works! :D Both the Canon and the Epson were recognized and worked with xsane. I didn't even have to edit any of the conf files. Great job Barry. Thanks

User avatar
BarryK
Puppy Master
Posts: 9392
Joined: Mon 09 May 2005, 09:23
Location: Perth, Western Australia
Contact:

#14 Post by BarryK »

Okay, one more thing to check.
Can you find out if Xsane loads the scanner module automatically, instead of having to do it manually.

If you already have it loaded, unload it:

# modprobe -r scanner

Um, if you don't have it loaded, running off live-CD, you will have to do those steps again, coz they would have got wiped at a reboot:

Copy scanner.o.gz to /lib/modules/2.4.27/usb/
#depmod

Then run Xsane:
# xsane

...so, wonder how intelligent it is?

User avatar
dvw86
Posts: 636
Joined: Thu 05 May 2005, 00:55
Location: Washington State

#15 Post by dvw86 »

Nope, I had to run "# modprobe scanner" manually to get xsane to work., but once it's loaded it's smooth sailing er... scanning :wink:

Edit
I'm using the instal to hard drive option2, and after a reboot I have to run " #modprobe scanner" again to get xsane to work. I wonder if there is a way to get it to load when you start xsane?

User avatar
BarryK
Puppy Master
Posts: 9392
Joined: Mon 09 May 2005, 09:23
Location: Perth, Western Australia
Contact:

#16 Post by BarryK »

Yes, and probably have to make sure "parport_pc" module is loaded for parallel port scanner -- it is for me as I have a parallel port printer and the Printer Wizard causes the parport module to get loaded at bootup.

Okay, I gotta finish the Scanner Wizard!
...this should be done by Pup 1.0.4!

Umm, there are such things as SCSI scanners aren't there?
...are these rare enough to pretend there aren't any?

User avatar
dvw86
Posts: 636
Joined: Thu 05 May 2005, 00:55
Location: Washington State

#17 Post by dvw86 »

BarryK wrote: Umm, there are such things as SCSI scanners aren't there?
...are these rare enough to pretend there aren't any?
I've heard of them, but have never seen one. I'd say to forget about them unless people request the feature. I'd have no to test and see if it worked either.

User avatar
dvw86
Posts: 636
Joined: Thu 05 May 2005, 00:55
Location: Washington State

#18 Post by dvw86 »

BarryK wrote: Okay, I gotta finish the Scanner Wizard!
...this should be done by Pup 1.0.4!
Just a thought... Do we really need a scanner wizard since xsane detects the presence and type of scanner automatically (once the module is loaded). Could we just have a script that the xsane start menu points to instead of actually pointing to xsane? The script could then load the module and start xsane.

User avatar
BarryK
Puppy Master
Posts: 9392
Joined: Mon 09 May 2005, 09:23
Location: Perth, Western Australia
Contact:

#19 Post by BarryK »

Yeah that's true, like a simple question, that only has to be asked once "Do you have a usb or parallel-port scanner, or both?" -- or maybe that can be autodetected ...hmm, yes, could be -- the "find scanner" program only works for usb scanners, so if that fails then it either isn't supported or it's a parallel-port scanner ...yeah, no need for a Wizard!

User avatar
dvw86
Posts: 636
Joined: Thu 05 May 2005, 00:55
Location: Washington State

#20 Post by dvw86 »

So who's writing the script? :wink:

Post Reply