LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 12-04-2008, 05:59 AM   #1
yuchankit
Member
 
Registered: Apr 2008
Distribution: Slackware 13.1 ,slackware-current
Posts: 145

Rep: Reputation: 22
CanoScan problem


I'm using CanoScan FB330P scanner,which is well supported by linux canoscan driver.But it has some error;

bash-3.1# scan -C
Canon CanoScan(tm) Scanner Driver 6.00. Copyright (C) 2001 Simon Krix et al.
This driver comes with ABSOLUTELY NO WARRANTY; for details
please see http://www.gnu.org/copyleft/gpl.html
This is free software, and you are welcome to redistribute
it under certain conditions.
See the GNU General Public License for details.

Finding IEEE1284 ports...
0x278 (0x278): <raw><cpt><nbl><byt><swe>... OK (ecp-swe).

Detecting scanner:
Scanner not ready (0xf). Attempting to reset...
Timeout: Reset 2 response 1 (0x07 in 0x1f) - Status = 0x0f
Timeout: Scanner wakeup reply 1 (0x03 in 0x1f) - Status = 0x0f
Timeout: Scanner wakeup reply 2 (0x03 in 0x1f) - Status = 0x0f
Timeout: Scanner wakeup reply 1 (0x03 in 0x1f) - Status = 0x0f
Timeout: Scanner wakeup reply 2 (0x03 in 0x1f) - Status = 0x0f
Timeout: Scanner wakeup reply 1 (0x03 in 0x1f) - Status = 0x0f
Timeout: Scanner wakeup reply 2 (0x03 in 0x1f) - Status = 0x0f
Timeout: Scanner wakeup reply 1 (0x03 in 0x1f) - Status = 0x0f
Timeout: Scanner wakeup reply 2 (0x03 in 0x1f) - Status = 0x0f
Timeout: Scanner wakeup reply 1 (0x03 in 0x1f) - Status = 0x0f
Timeout: Reply 2 (0x0c in 0x1f) - Status = 0x0f
initialise: could not wake scanner
Fatal: Unable to initialise scanner! (Code 1)


Any idea on this problem?Thank you.
 
Old 12-06-2008, 05:54 AM   #2
niels.horn
Senior Member
 
Registered: Mar 2007
Location: Rio de Janeiro - Brazil
Distribution: Slackware64-current
Posts: 1,004

Rep: Reputation: 91
It seems the driver cannot find the scanner on the parallel port.

Did you check the scanner on another system?
Is the parallel port working normally? Any printer connected to it (via daisy-chaining)?
 
Old 12-06-2008, 09:38 AM   #3
yuchankit
Member
 
Registered: Apr 2008
Distribution: Slackware 13.1 ,slackware-current
Posts: 145

Original Poster
Rep: Reputation: 22
Yes,the scanner works perfectly with XP.The scanner is connected directly to my motherboard's parallel port.

Any idea?
 
Old 12-06-2008, 09:53 AM   #4
niels.horn
Senior Member
 
Registered: Mar 2007
Location: Rio de Janeiro - Brazil
Distribution: Slackware64-current
Posts: 1,004

Rep: Reputation: 91
And the printer port, does it work under Slackware?
I have seem some reports on problems with printer-port-scanners under Linux.
I never got mine to work, so I bought a cheap USB Canon scanner.

Did you configure the /etc/sane.d/canon_pp.conf file?
It has an option to force "nibble mode" (sending 4 bits instead of 8). It will be slower but might solve your problem...

Last edited by niels.horn; 12-06-2008 at 10:04 AM.
 
Old 12-06-2008, 10:18 AM   #5
yuchankit
Member
 
Registered: Apr 2008
Distribution: Slackware 13.1 ,slackware-current
Posts: 145

Original Poster
Rep: Reputation: 22
I don't really sure on the parallel port itself,and it does not work even force nibble is turned on.

My scanner is well supported in Linux,and it actually works before in Slackware 11.0.if I'm not mistaken.I'm currently using slackware 12.0
 
Old 12-06-2008, 10:31 AM   #6
niels.horn
Senior Member
 
Registered: Mar 2007
Location: Rio de Janeiro - Brazil
Distribution: Slackware64-current
Posts: 1,004

Rep: Reputation: 91
Well, some things I would check then:
- check the name of your parallel port(s) with "ls -l /dev/par*" It should return at least /dev/parport0
- verify if the returned port is the one specified in the canon_pp.conf file
- check in the output which group has read/write access to the port - normally it is "lp"
- check if your current user is a member of the "lp" group - if not, include all who will use the scanner
- try using the scanner as root to see if you have some problems with permissions

I'm sorry not to be very specific...
 
Old 12-06-2008, 11:00 AM   #7
yuchankit
Member
 
Registered: Apr 2008
Distribution: Slackware 13.1 ,slackware-current
Posts: 145

Original Poster
Rep: Reputation: 22
"ls -l /dev/par*" gave ls: cannot access /dev/par*: No such file or directory

I think I get the ports thing wrong.Can you help me about this?

By the way,I don't use sane.Is it OK?

Last edited by yuchankit; 12-06-2008 at 11:03 AM.
 
Old 12-06-2008, 11:22 AM   #8
niels.horn
Senior Member
 
Registered: Mar 2007
Location: Rio de Janeiro - Brazil
Distribution: Slackware64-current
Posts: 1,004

Rep: Reputation: 91
hmm...
Try the following then:
Code:
ls -l /dev/lp*
And tell me the result of:
Code:
grep parport /var/log/messages
 
Old 12-06-2008, 11:32 AM   #9
yuchankit
Member
 
Registered: Apr 2008
Distribution: Slackware 13.1 ,slackware-current
Posts: 145

Original Poster
Rep: Reputation: 22
bash-3.1# ls -l /dev/lp*
crw-rw-r-- 1 root lp 6, 0 2008-12-06 21:40 /dev/lp0


bash-3.1#grep parport /var/log/messages
Jul 17 19:41:21 localhost kernel: parport: PnPBIOS parport detected.
Jul 17 19:41:21 localhost kernel: parport0: PC-style at 0x378, irq 7 [PCSPP,TRISTATE]
Jul 17 19:41:21 localhost kernel: lp0: using parport0 (interrupt-driven).

Actually there are lots of them on second command,but I think this is very enough and the rest of the messages are the same as above.
 
Old 12-06-2008, 12:06 PM   #10
niels.horn
Senior Member
 
Registered: Mar 2007
Location: Rio de Janeiro - Brazil
Distribution: Slackware64-current
Posts: 1,004

Rep: Reputation: 91
ok, so you don't have the parport0 but do have the lp0.

Try to change the port in the /etc/sane.d/canon_pp.conf file from parport0 to lp0

Also, include your normal users in the 'lp' group.

Just wild guesses...

Try the result with GIMP.
 
Old 12-06-2008, 12:14 PM   #11
niels.horn
Senior Member
 
Registered: Mar 2007
Location: Rio de Janeiro - Brazil
Distribution: Slackware64-current
Posts: 1,004

Rep: Reputation: 91
Just something else that might help...

In /etc/sane.d/dll.conf you might have to uncomment a line with "canon_pp" (line 13)

Just in case you didn't do this already...
 
Old 12-06-2008, 12:27 PM   #12
yuchankit
Member
 
Registered: Apr 2008
Distribution: Slackware 13.1 ,slackware-current
Posts: 145

Original Poster
Rep: Reputation: 22
It does not work

But here's my canon_pp.conf;

# Define which port to use if one isn't specified - you should only have
# one of these lines!
# This is the default port to be used - others will be detected
lp0


# Define the location of our pixel weight file, can begin with ~/ if needed.
# You can have as many of these as you like - lines with ports that don't exist
# will be ignored.
#
# Parameters are:
# calibrate /path/to/calibration-file port-name
#
# The format of port-name is dependant on your OS version.
#
# If a file isn't speficied, the default name will be
# ~/.sane/canon_pp-calibration-[port-name]

calibrate ~/.sane/canon_pp-calibration-pp0 lp0

calibrate /etc/sane/my_calibration lp0


# Enable the next line if you're having trouble with ECP mode such as I/O
# errors. Nibble mode is slower, but more reliable.

force_nibble

# Set a default initialisation mode for each port. Valid modes are:
AUTO (attempts to automatically detect by trying both methods)
# FB620P (10101010 style.. also works for FB320P)
# FB630P (11001100 style.. also works for FB330P, N340P, N640P)

init_mode AUTO parport0
# init_mode FB620P parport0
# init_mode FB630P parport0
 
Old 12-06-2008, 12:42 PM   #13
niels.horn
Senior Member
 
Registered: Mar 2007
Location: Rio de Janeiro - Brazil
Distribution: Slackware64-current
Posts: 1,004

Rep: Reputation: 91
ok, just to make sure...
You downloaded the stand-alone driver from Simon Krix, right?

I know almost nothing about this driver, just its existence...
From your original post I see that it looks for your scanner at 0x278, but from your 'grep parport /var/log/messages' I see your port is actually at 0x378.

- Is there any configuration in this driver to set the port?
- Did you check the /etc/sane.d/dll.conf file?
- Did you try using sane through the GIMP?
 
Old 12-06-2008, 01:03 PM   #14
yuchankit
Member
 
Registered: Apr 2008
Distribution: Slackware 13.1 ,slackware-current
Posts: 145

Original Poster
Rep: Reputation: 22
How to use sane from GIMP by the way?I don't think there's a config to set the port.

Here's my dll.conf;

# enable the next line if you want to allow access through the network:
net
abaton
agfafocus
apple
avision
artec
artec_eplus48u
as6e
bh
canon
canon630u
canon_pp
coolscan
coolscan2
#dc25
#dc210
#dc240
dell1600n_net
dmc
epson
fujitsu
#gphoto2
genesys
gt68xx
hp
hpsj5s
hp3500
hp4200
hp5400
ibm
leo
lexmark
ma1509
matsushita
microtek
microtek2
mustek
#mustek_pp
mustek_usb
mustek_usb2
nec
net
niash
pie
pint
pixma
plustek
#plustek_pp
#pnm
qcam
ricoh
s9036
sceptre
sharp
sm3600
sm3840
snapscan
sp15c
#st400
#stv680
tamarack
teco1
teco2
teco3
#test
u12
umax
#umax_pp
umax1220u
v4l
#
# The following backends are not included in the sane-backends distribution
# If you want to use them, download them from their webpages and read their
# documentation
#
# HP OfficeJet backend homepage: http://hpoj.sf.net/
# Uncomment the following line if hpoj is installed:
#hpoj
# HPLIP backend homepage: http://hplip.sf.net/
# Uncomment the following line if hplip is installed:
hpaio
 
Old 12-06-2008, 01:19 PM   #15
niels.horn
Senior Member
 
Registered: Mar 2007
Location: Rio de Janeiro - Brazil
Distribution: Slackware64-current
Posts: 1,004

Rep: Reputation: 91
From the GIMP you just do 'file' / 'capture' and your scanner should show up.
If you use KDE there is also a program called 'Kooka' to test your scanner.

Do check if your normal users are in the 'scanner' group or you will be limited to using it with root.
 
  


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
Canoscan LiDE 35 riseringseeker Linux - Hardware 1 10-05-2008 10:39 AM
Problem setting up CanoScan LiDE25 in Slackware 10.2 dejavu_01 Linux - Hardware 0 03-31-2007 10:58 PM
Driver for canoscan D646U twysm Linux - Newbie 1 09-06-2004 02:54 PM
CanoScan 3000F danny1963 Linux - Hardware 2 07-29-2004 04:59 PM
USB Canoscan N 650U Caysho LinuxQuestions.org Member Success Stories 8 06-23-2004 06:37 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 12:02 PM.

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