LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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
  Search this Thread
Old 06-16-2003, 12:48 AM   #1
geoff_f
Member
 
Registered: May 2003
Location: Canberra, Australia
Distribution: openSUSE 11.3
Posts: 445

Rep: Reputation: 31
Getting your scanner to work in Mandrake 9.1


I had a few problems getting my Canon FB630U scanner working in Mandrake 9.1, so I thought I would share the solution here in case others have a similar problem. This might apply to other scanners as well, although this scanner is the only one I can vouch for.

I installed the scanner using Mandrake Control Center->Hardware->ScannerDrake. It identified the scanner and told me it installed the packages sane-backends, xsane and xsane-gimp. I started MCC->Software>-RpmDrake, did a search on sane packages and found one for sane-frontends. After installing that, RpmDrake reported the following sane packages as installed:

libsane1-1.0.11-5mdk
sane-backends-1.0.11-5mdk
sane-frontends-1.0.10-1mdk
xsane-0.90-2mdk
xsane-gimp-0.90-2mdk

I first tried using Kooka in KDE, but after clicking on 'Preview' and a long period (>2 mins) of inactivity with no noises from the scanner, all I got was a Segv11 dialog. I went into a console and from 'man sane', found a few commands to run to check the scanner. They were:

Output of 'sane-find-scanner':
found USB scanner (vendor=0x04a9, product=0x2204) at /dev/usb/scanner0
found USB scanner (vendor=0x04a9, product=0x2204) at libusb:001:004

Output of 'scanimage -L':
device `canon630u:/dev/usb/scanner0' is a CANON Canoscan FB630U flatbed scanner

Output of 'scanimage -d canon630u:/dev/usb/scanner0 -h':
Usage: scanimage [OPTION]...
...plus the rest of the help information. (ie, this was working.)

Output of 'scanimage -d test -T':
...Lots of PASS messages. (ie, this was working.)

Output of 'scanimage -d canon630u:/dev/usb/scanner0 >t.pnm':
Segmentation fault. (ie, this was NOT working.)
This appeared after about 2 mins of inactivity. ~/geoff/t.pnm (0 Byte file) was created.

Output of 'ls -l /dev/usb/scanner0':
crw-rw---- 1 geoff usb 180, 48 Jan 1 1970 /dev/usb/scanner0
(ie, the device exists)

I then ran the same scanner test as before, but turned on the DEBUG switches first:

export SANE_DEBUG_USB=128
export SANE_DEBUG_DLL=128
export SANE_DEBUG_CANON630U=128
scanimage -d canon630u:/dev/usb/scanner0 >t.pnm

The output was lots of messages about reading and writing to the scanner device, ending in the same error message: 'Segmentation fault'. All this meant that the scanner existed, it was a valid device, but it didn't scan.

Then I found a statement in sane-backends-1.0.12 README:
'idescsi:
The Linux kernel "Emulation of a SCSI host adapter for IDE ATAPI
devices" (idescsi) is reported to cause problems in connection with
SANE. If your scanner isn't found or you encounter segmentation faults
try to disable idescsi.'

I was certainly getting a segmentation fault, and I do have ide-scsi present in my CD-RW setup. In fact, I had also been trying to get K3b to recognise my DVD-ROM drive by changing it from an ide-cd device to an ide-scsi device. I put this scanner issue aside for a few days; I concentrated more on getting my DVD-ROM drive to be recognised by K3b. More info on that issue here:

http://www.linuxquestions.org/questi...5&pagenumber=1

However, while Googling on the K3b issue, I came across a thread at http://www.ussg.iu.edu/hypermail/lin...03.0/0274.html regarding a question about disabling ide-cd when configuring for ide-scsi use of a CD-ROM:

--------------------------------------------------------------------------------------------------
The standard solution, supported by all major distributions, is to supply
hdX=ide-scsi
on the kernel command line.

There is no need to completely disable IDE-CD. IDE-CD and IDE-SCSI can
and do interoperate all the time.
(my emphasis)

Jeff
--------------------------------------------------------------------------------------------------

In setting up my DVD-ROM to cooperate with K3b, I had followed advice to add 'option ide-cd hdc=ignore' as the last line in /etc/modules.conf (my DVD-ROM is attached as hdc). So, given the statement about possibility of emulation of ide-scsi causing segmentation faults, and the fact that I had introduced this change to /etc/modules.conf before I installed the scanner, I decided to remove that line, re-boot, and see what would happen. Well, the DVD-ROM continued to work with K3b, and the scanner then began to work. I double-checked by adding 'option ide-cd hdc=ignore' back to /etc/modules.conf and re-booting, and the scanner then showed the same segmentation fault, which really confirmed 'option ide-cd hdc=ignore' as the culprit.

So if you have swapped your DVD-ROM or CD-ROM from ide-cd to ide-scsi to make it work with CD burner programs, and you are also having trouble getting your scanner to work, this fix might apply to you.
 
Old 08-13-2003, 10:59 PM   #2
minoltaherbie
LQ Newbie
 
Registered: Jul 2003
Location: Oklahoma
Distribution: Mandrake 9.1
Posts: 9

Rep: Reputation: 0
Thumbs up

Thanks for sharing your experience. I had spent the better part of a week searching for a solution as to why xsane wouldn't work with my scanner. I tried your suggestion and now my scanner is working like a charm.
Thanks!
 
Old 08-14-2003, 06:05 AM   #3
geoff_f
Member
 
Registered: May 2003
Location: Canberra, Australia
Distribution: openSUSE 11.3
Posts: 445

Original Poster
Rep: Reputation: 31
minoltaherbie, thanks for the feedback. I really appreciate it.
 
  


Reply



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



Similar Threads
Thread Thread Starter Forum Replies Last Post
cant get HP4100c scanner to work kjellhar Linux - Hardware 9 10-13-2004 02:13 PM
How do I get my parallel port scanner to work under Mandrake 10 Community orandell Linux - Hardware 0 05-18-2004 10:03 AM
Trying to get my scanner to work in Redhat 9? orranview Linux - Newbie 3 03-07-2004 03:21 AM
getting Plustek USB scanner to work demmylls Linux - Hardware 1 11-09-2003 09:26 AM
can't locate module scanner > how to get scanner work? b0uncer Linux - Hardware 1 10-26-2003 06:50 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 07:40 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration