View previous topic :: View next topic |
Author |
Message |
root_tux_linux l33t
Joined: 21 Dec 2003 Posts: 966
|
Posted: Wed Jul 05, 2006 3:15 pm Post subject: USB Scanner doesn t work anymore... (solved) |
|
|
Hi
I have a little problem with my canon scanner since i installed gentoo new...
I can find the scanner as root and user with sane-find-scanner, but i can't use him with kooka, scanimage or something...
Here my logs...
I hope u guys can help me
Code: | gentoo ~ # cat /etc/group | grep scanner
scanner:!:1001:username,root
gentoo ~ #
|
Code: | gentoo ~ # cat /etc/group | grep usb
usb:!:85:haldaemon,root,username
gentoo ~ #
|
Code: | gentoo ~ # sane-find-scanner
# sane-find-scanner will now attempt to detect your scanner. If the
# result is different from what you expected, first make sure your
# scanner is powered up and properly connected to your computer.
# No SCSI scanners found. If you expected something different, make sure that
# you have loaded a kernel SCSI driver for your SCSI adapter.
found USB scanner (vendor=0x04a9 [Canon], product=0x220d [CanoScan], chip=LM9832/3) at libusb:001: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.
|
Code: | gentoo ~ # scanimage -L
No scanners were identified. If you were expecting something different,
check that the scanner is plugged in, turned on and detected by the
sane-find-scanner tool (if appropriate). Please read the documentation
which came with this software (README, FAQ, manpages).
gentoo ~ #
|
Code: | gentoo ~ # cat /etc/hotplug/usb/libsane.usermap | grep Canon
# Canon Inc.|CanoScan FB320U
# Canon Inc.|CanoScan FB620U
# Canon Inc.|CanoScan FB630U
# Canon Inc.|CanoScan FB1210U
# Canon Inc.|CanoScan N650U
# Canon Inc.|CanoScan 1220U
# Canon Inc.|CanoScan D660U
# Canon Inc.|CanoScan D646U
# Canon Inc.|CanoScan D1250U2
# Canon Inc.|CanoScan N670U/N676U/LIDE 20
# Canon Inc.|CanoScan N1240U/LIDE 30
# Canon Inc.|CanoScan 8000F
# Canon Inc.|CanoScan 9900F
# Canon Inc.|CanoScan 5000F
# Canon Inc.|LIDE 50
# Canon Inc.|CanoScan 3000
# Canon Inc.|LIDE 25
# Canon Inc.|FS4000US
gentoo ~ # |
Code: | gentoo ~ # cat /etc/hotplug/usb/libusbscanner
#!/bin/sh
# This file is part of sane-backends.
#
# This script changes the permissions and ownership of a USB device under
# /proc/bus/usb to grant access to this device to users in the scanner group.
#
# Ownership is set to root:scanner, permissions are set to 0660.
#
# Arguments :
# -----------
# ACTION=[add|remove]
# DEVICE=/proc/bus/usb/BBB/DDD
# TYPE=usb
# latest hotplug doesn't set DEVICE on 2.6.x kernels
if [ -z "$DEVICE" ] ; then
IF=`echo $DEVPATH | sed 's/\(bus\/usb\/devices\/\)\(.*\)-\(.*\)/\2/'`
DEV=$(cat /sys/${DEVPATH}/devnum)
DEVICE=`printf '/proc/bus/usb/%.03d/%.03d' $IF $DEV`
fi
if [ "$ACTION" = "add" -a "$TYPE" = "usb" ]; then
chown root:scanner "$DEVICE"
chmod 0660 "$DEVICE"
fi
# That's an insecure but simple alternative
# Everyone has access to the scanner
# if [ "$ACTION" = "add" -a "$TYPE" = "usb" ]; then
# chmod 0666 "$DEVICE"
# fi
gentoo ~ # |
Code: | gentoo dev # cat /etc/sane.d/canon630u.conf
# Options for the canonusb backend
# Autodetect the Canon CanoScan FB630u
usb 0x04a9 0x2204
# device list for non-linux-systems (enable if autodetect fails):
#/dev/scanner
#/dev/usb/scanner0
gentoo dev # |
Code: | gentoo ~ # dmesg | grep usb
usbcore: registered new driver usbfs
usbcore: registered new driver hub
usbcore: registered new driver usblp
drivers/usb/class/usblp.c: v0.13: USB Printer Device Class driver
usbcore: registered new driver usb-storage
usbcore: registered new driver usbhid
drivers/usb/input/hid-core.c: v2.6:USB HID core driver
drivers/usb/core/inode.c: creating file 'devices'
drivers/usb/core/inode.c: creating file '001'
usb usb1: default language 0x0409
usb usb1: new device strings: Mfr=3, Product=2, SerialNumber=1
usb usb1: Product: UHCI Host Controller
usb usb1: Manufacturer: Linux 2.6.17-gentoo uhci_hcd
usb usb1: SerialNumber: 0000:00:11.2
usb usb1: uevent
usb usb1: configuration #1 chosen from 1 choice
usb usb1: adding 1-0:1.0 (config #1, interface 0)
usb 1-0:1.0: uevent
hub 1-0:1.0: usb_probe_interface
hub 1-0:1.0: usb_probe_interface - got id
hub 1-0:1.0: no power switching (usb 1.0)
drivers/usb/core/inode.c: creating file '001'
usb 1-2: new full speed USB device using uhci_hcd and address 2
usb 1-2: ep0 maxpacket = 8
drivers/usb/core/inode.c: creating file '002'
usb usb2: default language 0x0409
usb usb2: new device strings: Mfr=3, Product=2, SerialNumber=1
usb usb2: Product: UHCI Host Controller
usb usb2: Manufacturer: Linux 2.6.17-gentoo uhci_hcd
usb usb2: SerialNumber: 0000:00:11.3
usb 1-2: default language 0x0409
usb usb2: uevent
usb usb2: configuration #1 chosen from 1 choice
usb usb2: adding 2-0:1.0 (config #1, interface 0)
usb 2-0:1.0: uevent
hub 2-0:1.0: usb_probe_interface
hub 2-0:1.0: usb_probe_interface - got id
hub 2-0:1.0: no power switching (usb 1.0)
usb 1-2: new device strings: Mfr=1, Product=2, SerialNumber=0
usb 1-2: Product: CanoScan
usb 1-2: Manufacturer: Canon
usb 1-2: uevent
usb 1-2: configuration #1 chosen from 1 choice
drivers/usb/core/inode.c: creating file '001'
usb 1-2: adding 1-2:1.0 (config #1, interface 0)
usb 1-2:1.0: uevent
drivers/usb/core/inode.c: creating file '002'
drivers/usb/core/inode.c: creating file '003'
usb usb3: default language 0x0409
usb usb3: new device strings: Mfr=3, Product=2, SerialNumber=1
usb usb3: Product: UHCI Host Controller
usb usb3: Manufacturer: Linux 2.6.17-gentoo uhci_hcd
usb usb3: SerialNumber: 0000:00:11.4
usb usb3: uevent
usb usb3: configuration #1 chosen from 1 choice
usb usb3: adding 3-0:1.0 (config #1, interface 0)
usb 3-0:1.0: uevent
hub 3-0:1.0: usb_probe_interface
hub 3-0:1.0: usb_probe_interface - got id
hub 3-0:1.0: no power switching (usb 1.0)
drivers/usb/core/inode.c: creating file '001'
usb 1-2: manual set_interface for iface 0, alt 0
usb 1-2: manual set_interface for iface 0, alt 0
usb 1-2: manual set_interface for iface 0, alt 0
gentoo ~ # |
Code: | gentoo /proc/bus/usb $ cat devices
T: Bus=03 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#= 1 Spd=12 MxCh= 2
B: Alloc= 0/900 us ( 0%), #Int= 0, #Iso= 0
D: Ver= 1.10 Cls=09(hub ) Sub=00 Prot=00 MxPS=64 #Cfgs= 1
P: Vendor=0000 ProdID=0000 Rev= 2.06
S: Manufacturer=Linux 2.6.17-gentoo uhci_hcd
S: Product=UHCI Host Controller
S: SerialNumber=0000:00:11.4
C:* #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr= 0mA
I: If#= 0 Alt= 0 #EPs= 1 Cls=09(hub ) Sub=00 Prot=00 Driver=hub
E: Ad=81(I) Atr=03(Int.) MxPS= 2 Ivl=255ms
T: Bus=02 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#= 1 Spd=12 MxCh= 2
B: Alloc= 0/900 us ( 0%), #Int= 0, #Iso= 0
D: Ver= 1.10 Cls=09(hub ) Sub=00 Prot=00 MxPS=64 #Cfgs= 1
P: Vendor=0000 ProdID=0000 Rev= 2.06
S: Manufacturer=Linux 2.6.17-gentoo uhci_hcd
S: Product=UHCI Host Controller
S: SerialNumber=0000:00:11.3
C:* #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr= 0mA
I: If#= 0 Alt= 0 #EPs= 1 Cls=09(hub ) Sub=00 Prot=00 Driver=hub
E: Ad=81(I) Atr=03(Int.) MxPS= 2 Ivl=255ms
T: Bus=01 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#= 1 Spd=12 MxCh= 2
B: Alloc= 0/900 us ( 0%), #Int= 0, #Iso= 0
D: Ver= 1.10 Cls=09(hub ) Sub=00 Prot=00 MxPS=64 #Cfgs= 1
P: Vendor=0000 ProdID=0000 Rev= 2.06
S: Manufacturer=Linux 2.6.17-gentoo uhci_hcd
S: Product=UHCI Host Controller
S: SerialNumber=0000:00:11.2
C:* #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr= 0mA
I: If#= 0 Alt= 0 #EPs= 1 Cls=09(hub ) Sub=00 Prot=00 Driver=hub
E: Ad=81(I) Atr=03(Int.) MxPS= 2 Ivl=255ms
T: Bus=01 Lev=01 Prnt=01 Port=01 Cnt=01 Dev#= 2 Spd=12 MxCh= 0
D: Ver= 1.10 Cls=ff(vend.) Sub=00 Prot=ff MxPS= 8 #Cfgs= 1
P: Vendor=04a9 ProdID=220d Rev= 1.00
S: Manufacturer=Canon
S: Product=CanoScan
C:* #Ifs= 1 Cfg#= 1 Atr=a0 MxPwr=500mA
I: If#= 0 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=00 Prot=ff Driver=(none)
E: Ad=81(I) Atr=03(Int.) MxPS= 1 Ivl=16ms
E: Ad=82(I) Atr=02(Bulk) MxPS= 64 Ivl=0ms
E: Ad=03(O) Atr=02(Bulk) MxPS= 64 Ivl=0ms |
Code: | sys-kernel/gentoo-sources-2.6.17
sys-apps/hotplug-20040923-r2
dev-libs/libusb-0.1.12
sys-fs/udev-094
media-gfx/sane-backends-1.0.17
Canon Canoscan Lide 20 |
Last edited by root_tux_linux on Thu Jul 06, 2006 5:02 pm; edited 2 times in total |
|
Back to top |
|
|
bobspencer123 Guru
Joined: 19 Dec 2005 Posts: 544
|
Posted: Wed Jul 05, 2006 3:18 pm Post subject: |
|
|
what do you have in
/etc/sane.d/dll.conf |
|
Back to top |
|
|
root_tux_linux l33t
Joined: 21 Dec 2003 Posts: 966
|
Posted: Wed Jul 05, 2006 3:20 pm Post subject: |
|
|
Code: | gentoo ~ # cat /etc/sane.d/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
dmc
epson
fujitsu
#gphoto2
genesys
gt68xx
hp
hpsj5s
hp4200
hp5400
ibm
leo
lexmark
ma1509
matsushita
microtek
microtek2
mustek
#mustek_pp
mustek_usb
mustek_usb2
nec
niash
pie
pint
plustek
#plustek_pp
#pnm
qcam
ricoh
s9036
sceptre
sharp
sm3600
sm3840
snapscan
sp15c
#st400
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
gentoo ~ # |
|
|
Back to top |
|
|
root_tux_linux l33t
Joined: 21 Dec 2003 Posts: 966
|
Posted: Thu Jul 06, 2006 8:58 am Post subject: |
|
|
HELP |
|
Back to top |
|
|
root_tux_linux l33t
Joined: 21 Dec 2003 Posts: 966
|
Posted: Thu Jul 06, 2006 5:02 pm Post subject: |
|
|
I found the error
My Canon needs SANE_BACKENDS="plustek" and not SANE_BACKENDS="canon" |
|
Back to top |
|
|
idella4 Retired Dev
Joined: 09 Jun 2006 Posts: 1600 Location: Australia, Perth
|
Posted: Thu Jul 06, 2006 5:08 pm Post subject: |
|
|
that looks ok
your first code sample in post1 shows you are not in the scanner group. The term username is a place holder.
Check for the driver, if you know its name
Code: |
# modprobe drivername
|
hope that leads to something _________________ idella4@aus |
|
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
|
|