View previous topic :: View next topic |
Author |
Message |
arendald Tux's lil' helper
Joined: 29 Nov 2003 Posts: 89
|
Posted: Thu Apr 07, 2005 8:17 pm Post subject: scanner troubles |
|
|
Hello,
I recently got a new scanner : ACER 640BU. I know it is supported by sane on linux.
I set everything to support usb scanner last time I compiled my kernel (2.6.9-smp). So I guess everything's ok from that side (at least I hope lol).
Now, of course, sane does not find it yet.
Here are some information which might help :
Part of dmesg :
Code: |
usb 2-1: new full speed USB device using address 2
|
lsusb :
Code: |
Bus 005 Device 001: ID 0000:0000
Bus 004 Device 001: ID 0000:0000
Bus 003 Device 001: ID 0000:0000
Bus 002 Device 002: ID 04a5:207e Acer Peripherals Inc. (now BenQ Corp.) Prisa 640BU
Bus 002 Device 001: ID 0000:0000
Bus 001 Device 001: ID 0000:0000
|
sane-find_scanner :
Code: |
# No SCSI scanners found. If you expected something different, make sure that
# you have loaded a SCSI driver for your SCSI adapter.
# No USB scanners found. If you expected something different, make sure that
# you have loaded a driver for your USB host controller and have installed a
# kernel scanner module.
# Not checking for parallel port scanners.
# Most Scanners connected to the parallel port or other proprietary ports
# can't be detected by this program.
|
What KInfoCenter can see :
Code: |
Flatbedscanner 13
Class 255
Subclass 0
Protocol 0
USB Version 1.00
Vendor ID 0x4a5 (Acer Preipherals Inc. (now BenQ Corp.))
Product ID 0x207e (Prisa 640BU)
Revision 1.00
Speed 12 Mbit/s
Channels 0
Max. Packet Size 0
|
sane-backends installed : 1.0.15
sane-frontends installed : 1.0.13
xsane installed : 0.96-r1
libusb installed : 0.1.8
My user and root are members of the usb group.
So if you need more info, please let me know. Anyway, all suggestions appreciated.
Thanks |
|
Back to top |
|
|
diastelo Guru
Joined: 23 Feb 2004 Posts: 521
|
Posted: Thu Apr 07, 2005 8:49 pm Post subject: |
|
|
In newer kernels, you disable USB scanner support completely. Libusb does all the work now. You can still use either the USB scanner module or libusb, but you probably shouldn't try to use both.
Eventually, you'll need to edit your /etc/sane.d/snapscan.conf (I'm rattling this path off the top of my head, but I know the file is in /etc) to reflect the path to your firmware. See http://snapscan.sourceforge.net for more information.
For right now, start by seeing what the output of dmesg is when you unplug and plug your scanner back in. You should see some kind of output. _________________ "No question is so difficult to answer as that to which the answer is obvious" -- George Bernard Shaw |
|
Back to top |
|
|
arendald Tux's lil' helper
Joined: 29 Nov 2003 Posts: 89
|
Posted: Sat Apr 09, 2005 10:41 am Post subject: |
|
|
unplugged :
Code: |
usb 2-1: new full speed USB device using address 2
(...)
usb 2-1: USB disconnect, address 2
|
re-plugged :
Code: |
usb 2-1: new full speed USB device using address 2
(...)
usb 2-1: USB disconnect, address 2
ohci_hcd 0000:02:05.0: wakeup
usb 2-1: new full speed USB device using address 3
|
unplugged :
Code: |
usb 2-1: new full speed USB device using address 2
usb 2-1: USB disconnect, address 2
ohci_hcd 0000:02:05.0: wakeup
usb 2-1: new full speed USB device using address 3
usb 2-1: USB disconnect, address 3
|
re-plugged :
Code: |
usb 2-1: new full speed USB device using address 2
usb 2-1: USB disconnect, address 2
ohci_hcd 0000:02:05.0: wakeup
usb 2-1: new full speed USB device using address 3
usb 2-1: USB disconnect, address 3
ohci_hcd 0000:02:05.0: wakeup
usb 2-1: new full speed USB device using address 4
|
|
|
Back to top |
|
|
diastelo Guru
Joined: 23 Feb 2004 Posts: 521
|
Posted: Mon Apr 11, 2005 1:38 pm Post subject: |
|
|
Do you remember if you had the scanner support compiled in the kernel? If you had it compiled as a module, it'll probably be called scanner.ko, or you can see if it's loaded with /sbin/lsmod. If you do have this module, or if it is compiled into your kernel, remove it. It's only going to conflict with libusb and break it.
Please check the /etc/sane.d/snapscan.conf file for your scanner. In the output of lsusb, notice how you have an id number: 04a5:207e. You should have a line that reads "usb 0x04a5 0x207e". If not, add it. Don't forget to fix the firmware path.
Try "scanimage -L" as well as sane-find-scanner.
The last thing to try is to check out the permissions in /proc/bus/usb/001 and 002. You'll probably need rw support. _________________ "No question is so difficult to answer as that to which the answer is obvious" -- George Bernard Shaw |
|
Back to top |
|
|
petrjanda Veteran
Joined: 05 Sep 2003 Posts: 1557 Location: Brno, Czech Republic
|
Posted: Mon Apr 11, 2005 1:57 pm Post subject: |
|
|
I have the same problem but with Canon D660U _________________ There is, a not-born, a not-become, a not-made, a not-compounded. If that unborn, not-become, not-made, not-compounded were not, there would be no escape from this here that is born, become, made and compounded. - Gautama Siddharta |
|
Back to top |
|
|
diastelo Guru
Joined: 23 Feb 2004 Posts: 521
|
Posted: Mon Apr 11, 2005 2:13 pm Post subject: |
|
|
The Canon D660U uses a different backend entirely. Please check http://www.sane-project.org/man/sane-plustek.5.html for more details. If you were using the USB scanner module, remove it entirely before trying to use libusb. _________________ "No question is so difficult to answer as that to which the answer is obvious" -- George Bernard Shaw |
|
Back to top |
|
|
petrjanda Veteran
Joined: 05 Sep 2003 Posts: 1557 Location: Brno, Czech Republic
|
Posted: Mon Apr 11, 2005 2:31 pm Post subject: |
|
|
Different backend or not, I have the same problem! Im running ck-sources 2.6.11-r1. lsmod isnt saying anything about a kernel scanner module loaded, and I wasn't including it in the kernel when I was compiling it, im trying to use libusb. Where is that option for the scanner kernel module in the menuconfig anyway? _________________ There is, a not-born, a not-become, a not-made, a not-compounded. If that unborn, not-become, not-made, not-compounded were not, there would be no escape from this here that is born, become, made and compounded. - Gautama Siddharta |
|
Back to top |
|
|
diastelo Guru
Joined: 23 Feb 2004 Posts: 521
|
Posted: Mon Apr 11, 2005 5:44 pm Post subject: |
|
|
Good, you don't want the scanner module. It's in the regular USB section, if you want to see if it's even still included.
You haven't given me enough information to determine if it's actually the same problem or one that is remarkably similar. Let's see if we can track it down. The three possible problem areas are the kernel, libusb, and sane.
Tell me, were you able to use this scanner in the past with previous kernel versions? Previous versions of Sane? Previous versions of libusb? What architecture are you using? I've had a lot of trouble with my scanner in AMD64 where I never had problems before. Are you running sane-find-scanner as root or as a user?
What do you get when you run "equery u sane-backends"? Are you in the scanner group? _________________ "No question is so difficult to answer as that to which the answer is obvious" -- George Bernard Shaw |
|
Back to top |
|
|
arendald Tux's lil' helper
Joined: 29 Nov 2003 Posts: 89
|
Posted: Tue Apr 12, 2005 12:55 am Post subject: |
|
|
I thought I had a module but I see no trace of it in lsmod :
Code: |
Module Size Used by
snd_pcm_oss 47400 0
snd_mixer_oss 16640 1 snd_pcm_oss
snd_seq_midi 6432 0
snd_seq_oss 29952 0
snd_emu10k1_synth 6272 0
snd_emux_synth 34048 1 snd_emu10k1_synth
snd_seq_virmidi 5888 1 snd_emux_synth
snd_seq_midi_event 6400 3 snd_seq_midi,snd_seq_oss,snd_seq_virmidi
snd_seq_midi_emul 6912 1 snd_emux_synth
snd_seq 48144 8 snd_seq_midi,snd_seq_oss,snd_emux_synth,snd_seq_virmidi,snd_seq_midi_event,snd_seq_midi_emul
snd_emu10k1 80648 3 snd_emu10k1_synth
snd_rawmidi 19748 3 snd_seq_midi,snd_seq_virmidi,snd_emu10k1
snd_pcm 81028 2 snd_pcm_oss,snd_emu10k1
snd_timer 20868 2 snd_seq,snd_pcm
snd_seq_device 6536 7 snd_seq_midi,snd_seq_oss,snd_emu10k1_synth,snd_emux_synth,snd_seq,snd_emu10k1,snd_rawmidi
snd_ac97_codec 64208 1 snd_emu10k1
snd_page_alloc 7560 2 snd_emu10k1,snd_pcm
snd_util_mem 3584 2 snd_emux_synth,snd_emu10k1
snd_hwdep 7300 2 snd_emux_synth,snd_emu10k1
snd 46180 17 snd_pcm_oss,snd_mixer_oss,snd_seq_oss,snd_emux_synth,snd_seq_virmidi,snd_seq,snd_emu10k1,snd_rawmidi,snd_pcm,snd_timer,snd_seq_device,snd_ac97_codec,snd_hwdep
nvidia_agp 5916 0
agpgart 27948 1 nvidia_agp
nvidia 3462748 12
tda9887 12568 0
tuner 19236 0
saa7134 93648 0
video_buf 17284 1 saa7134
v4l2_common 5120 1 saa7134
v4l1_compat 13188 1 saa7134
i2c_core 18944 3 tda9887,tuner,saa7134
ir_common 4356 1 saa7134
videodev 7680 1 saa7134
usb_storage 27136 0
ehci_hcd 26116 0
uhci_hcd 28816 0
ohci_hcd 18948 0
usbcore 99428 6 usb_storage,ehci_hcd,uhci_hcd,ohci_hcd
ohci1394 30468 0
sbp2 21896 0
ieee1394 93364 2 ohci1394,sbp2
parport_pc 28096 0
parport 33864 1 parport_pc
3c59x 36392 0
|
So that is a good news.
Now I got the firmware and added the right path to snapscan.conf but what do I do for that line in the same file :
Code: |
# For USB scanners also specify bus=usb, e.g.
#/dev/usb/scanner0 bus=usb
|
So far /dev/usb is empty. I have no idea what I should put here on that specific line. I tried just removing the comment sign but /dev/usb/scanner0 bus=usb didn't make it. That's my main concern.
And finally scanimage -L gives me :
Code: |
device `v4l:/dev/video0' is a Noname Pinnacle PCTV Stereo (saa7134) virtual device
|
As you may guess my TV card won't help much to scan documents lol
Hints welcome |
|
Back to top |
|
|
petrjanda Veteran
Joined: 05 Sep 2003 Posts: 1557 Location: Brno, Czech Republic
|
Posted: Tue Apr 12, 2005 3:11 am Post subject: |
|
|
diastelo wrote: | Good, you don't want the scanner module. It's in the regular USB section, if you want to see if it's even still included.
You haven't given me enough information to determine if it's actually the same problem or one that is remarkably similar. Let's see if we can track it down. The three possible problem areas are the kernel, libusb, and sane.
Tell me, were you able to use this scanner in the past with previous kernel versions? Previous versions of Sane? Previous versions of libusb? What architecture are you using? I've had a lot of trouble with my scanner in AMD64 where I never had problems before. Are you running sane-find-scanner as root or as a user?
What do you get when you run "equery u sane-backends"? Are you in the scanner group? |
Yes the scanner used to work before. Last time i used it was about half a year ago, it worked perfectly. Im doing all this as root.
sane-find-scanenr finds nothing. and equery u sane-backends prints this
Code: | elevator petr # equery u sane-backends
[ Searching for packages matching sane-backends... ]
[ Colour Code : set unset ]
[ Legend : Left column (U) - USE flags from make.conf ]
[ : Right column (I) - USE flags packages was installed with ]
[ Found these USE variables for media-gfx/sane-backends-1.0.15 ]
U I
- - usb : Adds USB support to applications that have optional USB support (e.g. cups)
- - gphoto2 : Adds digital camera support
+ + ipv6 : Adds support for IP version
|
_________________ There is, a not-born, a not-become, a not-made, a not-compounded. If that unborn, not-become, not-made, not-compounded were not, there would be no escape from this here that is born, become, made and compounded. - Gautama Siddharta |
|
Back to top |
|
|
petrjanda Veteran
Joined: 05 Sep 2003 Posts: 1557 Location: Brno, Czech Republic
|
Posted: Tue Apr 12, 2005 3:34 am Post subject: |
|
|
Found the problem. There needs to be the "usb" USE flag in /etc/make.conf.. Recompile usbutils, libusb, sane-backends and xsane. _________________ There is, a not-born, a not-become, a not-made, a not-compounded. If that unborn, not-become, not-made, not-compounded were not, there would be no escape from this here that is born, become, made and compounded. - Gautama Siddharta |
|
Back to top |
|
|
diastelo Guru
Joined: 23 Feb 2004 Posts: 521
|
Posted: Tue Apr 12, 2005 12:51 pm Post subject: |
|
|
Arendald, is this the same problem for you? Run the equery command that petrjanda did on sane-backends and see if USB is enabled or not. If it isn't, you should recompile all the packages for sane. _________________ "No question is so difficult to answer as that to which the answer is obvious" -- George Bernard Shaw |
|
Back to top |
|
|
arendald Tux's lil' helper
Joined: 29 Nov 2003 Posts: 89
|
Posted: Tue Apr 12, 2005 11:53 pm Post subject: |
|
|
Well I had partly the same trouble. I did the equery and got the same thing. So I added the flag usb to USE then recompiled : libusb, xsane, sane-backends and kooka.
Now, lsusb :
Code: |
Bus 005 Device 001: ID 0000:0000
Bus 004 Device 001: ID 0000:0000
Bus 003 Device 001: ID 0000:0000
Bus 002 Device 002: ID 04a5:207e Acer Peripherals Inc. (now BenQ Corp.) Prisa 640BU
Bus 002 Device 001: ID 0000:0000
Bus 001 Device 001: ID 0000:0000
|
No change here, still recognized.
sane-find-scanner :
Code: |
# No SCSI scanners found. If you expected something different, make sure that
# you have loaded a SCSI driver for your SCSI adapter.
found USB scanner (vendor=0x04a5 [Color], product=0x207e [ FlatbedScanner 13]) at libusb:002:002
# Your USB scanner was (probably) detected. It may or may not be supported by
# SANE. Try scanimage -L and read the backend's manpage.
# Not checking for parallel port scanners.
# Most Scanners connected to the parallel port or other proprietary ports
# can't be detected by this program.
|
Some improvement here
scanimage -L :
Code: |
device `v4l:/dev/video0' is a Noname Pinnacle PCTV Stereo (saa7134) virtual device
device `snapscan:libusb:002:002' is a Acer FlatbedScanner13 flatbed scanner
|
Same thing, the scanner shows up.
But in /dev I have no scanner device (or whatever) showing up.
/dev/usb/scanner0 bus=usb in /etc/sane.d/snapscan.conf doesn't seem to help much.
And running kooka, I got only one device available : the TV card. |
|
Back to top |
|
|
petrjanda Veteran
Joined: 05 Sep 2003 Posts: 1557 Location: Brno, Czech Republic
|
Posted: Wed Apr 13, 2005 4:52 am Post subject: |
|
|
arendald wrote: | Well I had partly the same trouble. I did the equery and got the same thing. So I added the flag usb to USE then recompiled : libusb, xsane, sane-backends and kooka.
Now, lsusb :
Code: |
Bus 005 Device 001: ID 0000:0000
Bus 004 Device 001: ID 0000:0000
Bus 003 Device 001: ID 0000:0000
Bus 002 Device 002: ID 04a5:207e Acer Peripherals Inc. (now BenQ Corp.) Prisa 640BU
Bus 002 Device 001: ID 0000:0000
Bus 001 Device 001: ID 0000:0000
|
No change here, still recognized.
sane-find-scanner :
Code: |
# No SCSI scanners found. If you expected something different, make sure that
# you have loaded a SCSI driver for your SCSI adapter.
found USB scanner (vendor=0x04a5 [Color], product=0x207e [ FlatbedScanner 13]) at libusb:002:002
# Your USB scanner was (probably) detected. It may or may not be supported by
# SANE. Try scanimage -L and read the backend's manpage.
# Not checking for parallel port scanners.
# Most Scanners connected to the parallel port or other proprietary ports
# can't be detected by this program.
|
Some improvement here
scanimage -L :
Code: |
device `v4l:/dev/video0' is a Noname Pinnacle PCTV Stereo (saa7134) virtual device
device `snapscan:libusb:002:002' is a Acer FlatbedScanner13 flatbed scanner
|
Same thing, the scanner shows up.
But in /dev I have no scanner device (or whatever) showing up.
/dev/usb/scanner0 bus=usb in /etc/sane.d/snapscan.conf doesn't seem to help much.
And running kooka, I got only one device available : the TV card. |
If you are using libusb, then there shouldnt be a device for scanner in /dev/ i think?
make sure you have this line in snapscan.conf
usb 0x04a5 0x207e _________________ There is, a not-born, a not-become, a not-made, a not-compounded. If that unborn, not-become, not-made, not-compounded were not, there would be no escape from this here that is born, become, made and compounded. - Gautama Siddharta |
|
Back to top |
|
|
arendald Tux's lil' helper
Joined: 29 Nov 2003 Posts: 89
|
Posted: Wed Apr 13, 2005 11:34 am Post subject: |
|
|
I do have usb 0x04a5 0x207e in snapscan.conf since the very beginning :
Code: |
(...)
# Benq/Acer/Vuego 640BU
usb 0x04a5 0x207e
(...)
|
About the device not being there when using libusb, I have no idea. |
|
Back to top |
|
|
diastelo Guru
Joined: 23 Feb 2004 Posts: 521
|
Posted: Wed Apr 13, 2005 1:47 pm Post subject: |
|
|
Petrjanda is correct. When you use libusb, no device will appear in /dev. The reason the line is still in snapscan.conf is for backwards compatibility with 2.4 kernels.
The USB dependency might exist lower down inside Kooka, such as in QT, perhaps. Why don't you make sure the scanner works using GIMP? If you emerged SANE after GIMP, you should already have the plugin installed. If the plugin isn't there, you can use xsane directly from a command line. At startup, it will prompt you to pick your device (scanner or web cam). _________________ "No question is so difficult to answer as that to which the answer is obvious" -- George Bernard Shaw |
|
Back to top |
|
|
arendald Tux's lil' helper
Joined: 29 Nov 2003 Posts: 89
|
Posted: Wed Apr 13, 2005 11:55 pm Post subject: |
|
|
Ok I got it for the device line.
I tried xsane et gimp. xsane propose only the TV card for scanning. From gimp with the plugin (I got it), same thing, only the TV card. No scanner. So to sump up : xsane, gimp and kooka see only the TV card and no scanner. |
|
Back to top |
|
|
petrjanda Veteran
Joined: 05 Sep 2003 Posts: 1557 Location: Brno, Czech Republic
|
Posted: Thu Apr 14, 2005 2:12 am Post subject: |
|
|
arendald wrote: | Ok I got it for the device line.
I tried xsane et gimp. xsane propose only the TV card for scanning. From gimp with the plugin (I got it), same thing, only the TV card. No scanner. So to sump up : xsane, gimp and kooka see only the TV card and no scanner. |
comment v4l in /etc/sane.d/dll.conf and keep testing. recompile xsane and try to run this(but make sure lsusb still lists the scanner on port 002:002):
Code: |
xsane snapscan:libusb:002:002
|
_________________ There is, a not-born, a not-become, a not-made, a not-compounded. If that unborn, not-become, not-made, not-compounded were not, there would be no escape from this here that is born, become, made and compounded. - Gautama Siddharta |
|
Back to top |
|
|
arendald Tux's lil' helper
Joined: 29 Nov 2003 Posts: 89
|
Posted: Thu Apr 14, 2005 8:09 am Post subject: |
|
|
I got :
Code: |
Failed to open device : '002': Inalid argument
|
|
|
Back to top |
|
|
petrjanda Veteran
Joined: 05 Sep 2003 Posts: 1557 Location: Brno, Czech Republic
|
Posted: Thu Apr 14, 2005 1:35 pm Post subject: |
|
|
arendald wrote: | I got :
Code: |
Failed to open device : '002': Inalid argument
|
|
On mine when I do this it works:
xsane plustek:libusb:005:003
Its weird. _________________ There is, a not-born, a not-become, a not-made, a not-compounded. If that unborn, not-become, not-made, not-compounded were not, there would be no escape from this here that is born, become, made and compounded. - Gautama Siddharta |
|
Back to top |
|
|
arendald Tux's lil' helper
Joined: 29 Nov 2003 Posts: 89
|
Posted: Fri Apr 15, 2005 5:25 pm Post subject: |
|
|
Xsane works now with xsane snapscan:libusb:00x:00x.
But only as root. As user I got :
Code: |
Xlib: connection to ":0.0" refused by server
Xlib: No protocol specified
(xsane:14184): Gtk-WARNING **: cannot open display:
|
But anyway, I don't want to use xsane and kooka doesn't see no scanner. |
|
Back to top |
|
|
diastelo Guru
Joined: 23 Feb 2004 Posts: 521
|
Posted: Fri Apr 15, 2005 9:22 pm Post subject: |
|
|
Have you tried running Kooka as root?
You'll have to fiddle with permissions to be able to scan with a user. The first place to check is /etc/hotplug/usb/libscanner. The second is to add executable permissions to the correct folders in proc with "chmod +X /proc/bus -R". _________________ "No question is so difficult to answer as that to which the answer is obvious" -- George Bernard Shaw |
|
Back to top |
|
|
arendald Tux's lil' helper
Joined: 29 Nov 2003 Posts: 89
|
Posted: Sat Apr 16, 2005 1:49 pm Post subject: |
|
|
kooka works as root.
Permissions for /etc/hotplug/usb/libscanner are : rwxr-xr-x which looks fine to me.
I did a chmod +X /proc/bus -R but still does not work as user. |
|
Back to top |
|
|
Lo!Mm n00b
Joined: 25 Nov 2004 Posts: 5 Location: Czech republic
|
Posted: Sat Apr 16, 2005 6:22 pm Post subject: Same problem |
|
|
Hello,
Im having same problem on my AMD64 box with scanner Epson CX3200...
Hotplug and libusb seem to be configured ok. When I plug the device it appears in /proc/bus/usb/00x/00x .. (permissions correct)
# lsusb finds the device too...
# sane-find-scanner can't find it in any way
# xsane epson:libusb:00x:00x hangs with error
sane-backends is compiled with usb support
kernel is gentoo-sources-2.6.11-r6
lsmod says ohci, ehci, uhci is loaded - is this correct? Especially ohci? - http://gentoo-wiki.com/HOWTO_Installing_USB_Scanner#Kernel
It used to work on my old Pentium3 machine
~Lomm _________________ AMD Athlon64 3200+ at 2.478GHz
Abit A8N-E nForce4 Ultra
2x 512MB Kingston DDR533 |
|
Back to top |
|
|
diastelo Guru
Joined: 23 Feb 2004 Posts: 521
|
Posted: Wed Apr 20, 2005 5:33 pm Post subject: |
|
|
Sorry I wasn't clear. What are the permissions inside /etc/hotplug/usb/libscanner? Is it an empty file? _________________ "No question is so difficult to answer as that to which the answer is obvious" -- George Bernard Shaw |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|