Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
epson scanner and libusb
View unanswered posts
View posts from last 24 hours

Goto page Previous  1, 2, 3, 4, 5, 6  Next  
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
neysx
Retired Dev
Retired Dev


Joined: 27 Jan 2003
Posts: 795

PostPosted: Fri May 07, 2004 1:18 am    Post subject: Epson 1640SU & iscan Reply with quote

I have just spent a few hours trying to make iscan work with my Epson 1640 SU Photo scanner. It turned out all my problems were due to an old version of iscan libs that were still in the way. Bugger!
While all is still fresh in my memory, I'll try to sum up what I have done.

Config: gcc-3.3.3 kernel 2.6.x (no scanner.ko module)

Installed software
Code:
# emerge -vp libusb hotplug xsane sane-backends sane-frontends

These are the packages that I would merge, in order:

Calculating dependencies ...done!
[ebuild   R   ] dev-libs/libusb-0.1.8   0 kB
[ebuild   R   ] sys-apps/hotplug-20040401   0 kB
[ebuild   R   ] media-gfx/xsane-0.93  +gtk2 +jpeg +nls +png +tiff  0 kB
[ebuild   R   ] media-gfx/sane-backends-1.0.14  +gphoto2 +usb  0 kB
[ebuild   R   ] media-gfx/sane-frontends-1.0.12  +gimp  0 kB


Start hotplug
Code:
# /etc/init.d/hotplug start
# rc-update add hotplug default


Edit /etc/hotplug/usb.usermap
Mine:
Code:
# USB PTP Nikon Coolpix 3100
usbcam     0x03 0x04b0 0x0115 0x0000 0x0000 0x00 0x00 0x00 0x00 0x00 0x00 0x00000000
# Scanner 1640
usbscanner 0x03 0x04b8 0x010a 0x0000 0x0000 0x00 0x00 0x00 0x00 0x00 0x00 0x00000000


0x04b8 0x010a codes identify your scanner. For instance, sane-find-scanner displays
Code:
found USB scanner (vendor=0x04b8 [EPSON], product=0x010a [Perfection1640]) at libusb:002:006]


Create script usbscanner, i.e. same name as first field in the file you have just created, in /etc/hotplug/usb
Mine:
Code:
#!/bin/bash
#
# /etc/hotplug/usb/usbscanner
#

GROUP=users

if [ "${ACTION}" = "add" ] && [ -e "${DEVICE}" ]
then
    chgrp "${GROUP}" "${DEVICE}"
    chmod 0660 "${DEVICE}"
fi
Please note use of -e instead of -f which did not seem to work. My guess is /proc/bus/usb/002/00n does not look a regular file to bash when the script is called. find /proc/bus/usb -type f does list it though.

If you want to restrict access to some users, define a 'scanner' group e.g. and use it instead of users.

In file /etc/sane.d/dll.conf, define used backends (epson for xsane and epkowa for iscan) :
Code:
#/etc/sane.d/dll.conf
epson
epkowa

In files /etc/sane.d/epson and /etc/sane.d/epkowa, use usb ID's as for hotplug :
Code:
# epkowa.conf
#
usb 0x4B8 0x10A
and
Code:
# epson.conf
#
usb 0x4B8 0x10A


Note: to install iscan, you need gcc3.2 sources from http://www.epkowa.co.jp/english/linux_e/dl_scan.html, then use common ./configure / make / make install sequence.
I used ./configure --prefix=/usr --sysconfdir=/etc --with-gphoto2 --enable-libusb --with-gnu-ld

xsane and iscan-1.8.1 work perfectly for users. no need to be root.
Small glitch: xsane does not like epkowa backend (segfault), just run xsane epson.



Hth
Back to top
View user's profile Send private message
kurtb
n00b
n00b


Joined: 05 Nov 2003
Posts: 23

PostPosted: Sun May 09, 2004 1:28 am    Post subject: Reply with quote

ravingsanity wrote:
Thankyouthankyouthankyou, kurtb. :)


Glad to hear it worked for you!!
Back to top
View user's profile Send private message
twilight
Tux's lil' helper
Tux's lil' helper


Joined: 09 Feb 2003
Posts: 144
Location: Linuxland

PostPosted: Sun May 09, 2004 12:27 pm    Post subject: Reply with quote

so,

i am still stuked in that "device busy" problem, but, oh wonder
oh wonder, ONCE scanning worked with gimp AFTER i tried to
get a preview with Kooka (KDE)... after that don`t working i
was trying gimp and it worked...

But now it doesn`t anymore.

Somebody gave me the hint that i should post the output
of dmesg here and if what dev-filesystem i am using...

so here it is: i am using devfs because udev doesn`t show up
in the menu of make menuconfig... even though it is deprecated
and i am using 2.6.5-gentoo-dev

and here`s what dmesg says:

Code:
Linux version 2.6.5-gentoo (root@heaven) (gcc version 3.3.3 20040217 (Gentoo Linux 3.3.3, propolice-3.3-7)) #3 SMP Sat Apr 17 12:03:32 CEST 2004
BIOS-provided physical RAM map:
 BIOS-e820: 0000000000000000 - 00000000000a0000 (usable)
 BIOS-e820: 00000000000f0000 - 0000000000100000 (reserved)
 BIOS-e820: 0000000000100000 - 000000001fff0000 (usable)
 BIOS-e820: 000000001fff0000 - 000000001fff3000 (ACPI NVS)
 BIOS-e820: 000000001fff3000 - 0000000020000000 (ACPI data)
 BIOS-e820: 00000000ffff0000 - 0000000100000000 (reserved)
511MB LOWMEM available.
On node 0 totalpages: 131056
  DMA zone: 4096 pages, LIFO batch:1
  Normal zone: 126960 pages, LIFO batch:16
  HighMem zone: 0 pages, LIFO batch:1
DMI 2.3 present.
ACPI disabled because your bios is from 2000 and too old
You can enable it with acpi=force
Built 1 zonelists
Kernel command line: root=/dev/hda4
Local APIC disabled by BIOS -- reenabling.
Found and enabled local APIC!
Initializing CPU#0
PID hash table entries: 2048 (order 11: 16384 bytes)
Detected 900.582 MHz processor.
Using tsc for high-res timesource
Console: colour VGA+ 80x25
Memory: 514448k/524224k available (2326k kernel code, 9016k reserved, 846k data, 180k init, 0k highmem)
Checking if this processor honours the WP bit even in supervisor mode... Ok.
Calibrating delay loop... 1761.28 BogoMIPS
Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
Mount-cache hash table entries: 512 (order: 0, 4096 bytes)
CPU:     After generic identify, caps: 0183fbff c1c7fbff 00000000 00000000
CPU:     After vendor identify, caps: 0183fbff c1c7fbff 00000000 00000000
CPU: L1 I Cache: 64K (64 bytes/line), D cache 64K (64 bytes/line)
CPU: L2 Cache: 256K (64 bytes/line)
CPU:     After all inits, caps: 0183fbff c1c7fbff 00000000 00000020
Intel machine check architecture supported.
Intel machine check reporting enabled on CPU#0.
Enabling fast FPU save and restore... done.
Checking 'hlt' instruction... OK.
POSIX conformance testing by UNIFIX
CPU0: AMD Athlon(tm) Processor stepping 02
per-CPU timeslice cutoff: 731.50 usecs.
task migration cache decay timeout: 1 msecs.
SMP motherboard not detected.
enabled ExtINT on CPU#0
ESR value before enabling vector: 00000000
ESR value after enabling vector: 00000000
Using local APIC timer interrupts.
calibrating APIC timer ...
..... CPU clock speed is 899.0935 MHz.
..... host bus clock speed is 199.0985 MHz.
Brought up 1 CPUs
NET: Registered protocol family 16
PCI: PCI BIOS revision 2.10 entry at 0xfb430, last bus=1
PCI: Using configuration type 1
mtrr: v2.0 (20020519)
ACPI: Subsystem revision 20040326
ACPI: Interpreter disabled.
Linux Plug and Play Support v0.97 (c) Adam Belay
SCSI subsystem initialized
ACPI: ACPI tables contain no PCI IRQ routing entries
PCI: Invalid ACPI-PCI IRQ routing table
PCI: Probing PCI hardware
PCI: Probing PCI hardware (bus 00)
Disabling VIA memory write queue (PCI ID 0305, rev 02): [55] 89 & 1f -> 09
PCI: Using IRQ router VIA [1106/0686] at 0000:00:07.0
spurious 8259A interrupt: IRQ7.
Machine check exception polling timer started.
devfs: 2004-01-31 Richard Gooch (rgooch@atnf.csiro.au)
devfs: boot_options: 0x1
NTFS driver 2.1.6 [Flags: R/O].
udf: registering filesystem
Initializing Cryptographic API
PCI: Disabling Via external APIC routing
mice: PS/2 mouse device common for all mice
serio: i8042 AUX port at 0x60,0x64 irq 12
serio: i8042 KBD port at 0x60,0x64 irq 1
input: AT Translated Set 2 keyboard on isa0060/serio0
lp: driver loaded but no devices found
Serial: 8250/16550 driver $Revision: 1.90 $ 8 ports, IRQ sharing disabled
ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
ttyS1 at I/O 0x2f8 (irq = 3) is a 16550A
parport0: PC-style at 0x378 [PCSPP,EPP]
lp0: using parport0 (polling).
parport_pc: Via 686A parallel port: io=0x378
Using anticipatory io scheduler
Floppy drive(s): fd0 is 1.44M
FDC 0 is a post-1991 82077
Uniform Multi-Platform E-IDE driver Revision: 7.00alpha2
ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
VP_IDE: IDE controller at PCI slot 0000:00:07.1
VP_IDE: chipset revision 16
VP_IDE: not 100% native mode: will probe irqs later
VP_IDE: VIA vt82c686a (rev 22) IDE UDMA66 controller on pci0000:00:07.1
    ide0: BM-DMA at 0xd000-0xd007, BIOS settings: hda:DMA, hdb:DMA
    ide1: BM-DMA at 0xd008-0xd00f, BIOS settings: hdc:DMA, hdd:DMA
hda: Maxtor 33073H4, ATA DISK drive
hdb: WDC WD800AB-00CBA1, ATA DISK drive
ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
hdc: Pioneer DVD-ROM ATAPIModel DVD-104S 020, ATAPI CD/DVD-ROM drive
hdd: HL-DT-ST GCE-8160B, ATAPI CD/DVD-ROM drive
ide1 at 0x170-0x177,0x376 on irq 15
hda: max request size: 128KiB
hda: 60030432 sectors (30735 MB) w/512KiB Cache, CHS=59554/16/63, UDMA(66)
 /dev/ide/host0/bus0/target0/lun0: p1 p2 p3 p4
hdb: max request size: 128KiB
hdb: 156301488 sectors (80026 MB) w/2048KiB Cache, CHS=65535/16/63, UDMA(66)
 /dev/ide/host0/bus0/target1/lun0: p1 < p5 >
hdc: ATAPI DVD-ROM drive, 512kB Cache, UDMA(33)
Uniform CD-ROM driver Revision: 3.20
hdd: ATAPI 40X CD-ROM CD-R/RW drive, 2048kB Cache, DMA
libata version 1.02 loaded.
oprofile: using NMI interrupt.
NET: Registered protocol family 2
IP: routing cache hash table of 4096 buckets, 32Kbytes
TCP: Hash tables configured (established 32768 bind 32768)
ip_conntrack version 2.1 (4095 buckets, 32760 max) - 300 bytes per conntrack
ip_tables: (C) 2000-2002 Netfilter core team
ipt_recent v0.3.1: Stephen Frost <sfrost@snowman.net>.  http://snowman.net/projects/ipt_recent/
arp_tables: (C) 2002 David S. Miller
NET: Registered protocol family 1
NET: Registered protocol family 17
found reiserfs format "3.6" with standard journal
Reiserfs journal params: device hda4, size 8192, journal first block 18, max trans len 1024, max batch 900, max commit age 30, max trans age 30
reiserfs: checking transaction log (hda4) for (hda4)
Using r5 hash to sort names
VFS: Mounted root (reiserfs filesystem) readonly.
Mounted devfs on /dev
Freeing unused kernel memory: 180k freed
Adding 987988k swap on /dev/hda3.  Priority:-1 extents:1
drivers/usb/core/usb.c: registered new driver usbfs
drivers/usb/core/usb.c: registered new driver hub
Real Time Clock Driver v1.12
Linux agpgart interface v0.100 (c) Dave Jones
agpgart: Detected VIA Twister-K/KT133x/KM133 chipset
agpgart: Maximum main memory to use for agp memory: 439M
agpgart: AGP aperture is 64M @ 0xd0000000
USB Universal Host Controller Interface driver v2.2
PCI: Found IRQ 11 for device 0000:00:07.2
PCI: Sharing IRQ 11 with 0000:00:07.3
PCI: Sharing IRQ 11 with 0000:00:09.2
PCI: Sharing IRQ 11 with 0000:00:0b.0
uhci_hcd 0000:00:07.2: VIA Technologies, Inc. USB
uhci_hcd 0000:00:07.2: irq 11, io base 0000d400
uhci_hcd 0000:00:07.2: new USB bus registered, assigned bus number 1
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 2 ports detected
PCI: Found IRQ 11 for device 0000:00:07.3
PCI: Sharing IRQ 11 with 0000:00:07.2
PCI: Sharing IRQ 11 with 0000:00:09.2
PCI: Sharing IRQ 11 with 0000:00:0b.0
uhci_hcd 0000:00:07.3: VIA Technologies, Inc. USB (#2)
uhci_hcd 0000:00:07.3: irq 11, io base 0000d800
uhci_hcd 0000:00:07.3: new USB bus registered, assigned bus number 2
hub 2-0:1.0: USB hub found
hub 2-0:1.0: 2 ports detected
usb 1-2: new low speed USB device using address 2
PCI: Found IRQ 5 for device 0000:00:09.0
drivers/usb/core/usb.c: registered new driver hiddev
usb 2-1: new full speed USB device using address 2
input: USB HID v1.10 Mouse [Logitech USB Receiver] on usb-0000:00:07.2-2
drivers/usb/core/usb.c: registered new driver hid
drivers/usb/input/hid-core.c: v2.0:USB HID core driver
drivers/input/joystick/sidewinder.c: Init 0: Opened pci0000:00:09.1/gameport0, io 0xe000, speed 1269
sidewinder.c: Read 0 triplets. []
drivers/input/joystick/sidewinder.c: Init 1: Mode 1. Length 0.
sidewinder.c: Read 0 triplets. []
drivers/input/joystick/sidewinder.c: Init 1b: Length 0.
gameport: pci0000:00:09.1 speed 1269 kHz
usb 2-2: new full speed USB device using address 3
ieee1394: Initialized config rom entry `ip1394'
ohci1394: $Rev: 1172 $ Ben Collins <bcollins@debian.org>
PCI: Found IRQ 11 for device 0000:00:09.2
PCI: Sharing IRQ 11 with 0000:00:07.2
PCI: Sharing IRQ 11 with 0000:00:07.3
PCI: Sharing IRQ 11 with 0000:00:0b.0
ohci1394: fw-host0: Remapped memory spaces reg 0xe09b7000
ohci1394: fw-host0: Soft reset finished
ohci1394: fw-host0: Iso contexts reg: 000000a8 implemented: 0000000f
ohci1394: fw-host0: 4 iso receive contexts available
ohci1394: fw-host0: Iso contexts reg: 00000098 implemented: 000000ff
ohci1394: fw-host0: 8 iso transmit contexts available
ohci1394: fw-host0: Receive DMA ctx=0 initialized
ohci1394: fw-host0: Receive DMA ctx=0 initialized
ohci1394: fw-host0: Transmit DMA ctx=0 initialized
ohci1394: fw-host0: Transmit DMA ctx=1 initialized
ohci1394: fw-host0: OHCI-1394 1.1 (PCI): IRQ=[11]  MMIO=[de004000-de0047ff]  Max Packet=[2048]
ieee1394: CSR: setting expire to 98, HZ=1000
drivers/usb/class/usblp.c: usblp0: USB Bidirectional printer dev 3 if 0 alt 0 proto 2 vid 0x03F0 pid 0x3104
drivers/usb/core/usb.c: registered new driver usblp
drivers/usb/class/usblp.c: v0.13: USB Printer Device Class driver
8139too Fast Ethernet driver 0.9.27
PCI: Found IRQ 11 for device 0000:00:0b.0
PCI: Sharing IRQ 11 with 0000:00:07.2
PCI: Sharing IRQ 11 with 0000:00:07.3
PCI: Sharing IRQ 11 with 0000:00:09.2
eth0: RealTek RTL8139 at 0xe400, 00:c0:26:8a:b5:d1, IRQ 11
eth0:  Identified 8139 chip type 'RTL-8100B/8139D'
eth0: link up, 100Mbps, full-duplex, lpa 0x45E1
ohci_hcd: 2004 Feb 02 USB 1.1 'Open' Host Controller (OHCI) Driver (PCI)
ohci_hcd: block sizes: ed 64 td 64
ohci1394: fw-host0: IntEvent: 00030010
ohci1394: fw-host0: irq_handler: Bus reset requested
ohci1394: fw-host0: Cancel request received
ohci1394: fw-host0: Got RQPkt interrupt status=0x00008409
ohci1394: fw-host0: SelfID interrupt received (phyid 0, root)
ohci1394: fw-host0: SelfID packet 0x807f8c52 received
ieee1394: Including SelfID 0x528c7f80
ohci1394: fw-host0: SelfID for this node is 0x807f8c52
ohci1394: fw-host0: SelfID complete
ohci1394: fw-host0: PhyReqFilter=ffffffffffffffff
ieee1394: selfid_complete called with successful SelfID stage ... irm_id: 0xFFC0 node_id: 0xFFC0
ieee1394: NodeMgr: Processing host reset for knodemgrd_0
ohci1394: fw-host0: Single packet rcv'd
ohci1394: fw-host0: Got phy packet ctx=0 ... discarded
ieee1394: send packet local: ffc00140 ffc0ffff f0000400
ieee1394: received packet: ffc00140 ffc0ffff f0000400
ieee1394: send packet local: ffc00160 ffc00000 00000000 07f00404
ieee1394: received packet: ffc00160 ffc00000 00000000 07f00404
ieee1394: send packet local: ffc00540 ffc0ffff f0000404
ieee1394: received packet: ffc00540 ffc0ffff f0000404
ieee1394: send packet local: ffc00560 ffc00000 00000000 34393331
ieee1394: received packet: ffc00560 ffc00000 00000000 34393331
ieee1394: send packet local: ffc00940 ffc0ffff f0000408
ieee1394: received packet: ffc00940 ffc0ffff f0000408
ieee1394: send packet local: ffc00960 ffc00000 00000000 32a264e0
ieee1394: received packet: ffc00960 ffc00000 00000000 32a264e0
ieee1394: send packet local: ffc00d40 ffc0ffff f000040c
ieee1394: received packet: ffc00d40 ffc0ffff f000040c
ieee1394: send packet local: ffc00d60 ffc00000 00000000 003c0200
ieee1394: received packet: ffc00d60 ffc00000 00000000 003c0200
ieee1394: send packet local: ffc01140 ffc0ffff f0000410
ieee1394: received packet: ffc01140 ffc0ffff f0000410
ieee1394: send packet local: ffc01160 ffc00000 00000000 8aa10791
ieee1394: received packet: ffc01160 ffc00000 00000000 8aa10791
ieee1394: send packet local: ffc01550 ffc0ffff f0000400 04000000
ieee1394: received packet: ffc01550 ffc0ffff f0000400 04000000
ieee1394: send packet local: ffc01570 ffc00000 00000000 04000000
ieee1394: received packet: ffc01570 ffc00000 00000000 04000000
ieee1394: NodeMgr: raw=0xe064a232 irmc=1 cmc=1 isc=1 bmc=0 pmc=0 cyc_clk_acc=100 max_rec=2048 max_rom=1024 gen=3 lspd=2
ieee1394: Host added: ID:BUS[0-00:1023]  GUID[00023c009107a18a]
ieee1394: send packet 100: ffff0100 ffc0ffff f0000234 1f0000c0
ohci1394: fw-host0: Inserting packet for node 0-63:1023, tlabel=0, tcode=0x0, speed=0
ohci1394: fw-host0: Starting transmit DMA ctx=0
ohci1394: fw-host0: IntEvent: 00000001
ohci1394: fw-host0: Got reqTxComplete interrupt status=0x00008011
ohci1394: fw-host0: Packet sent to node 63 tcode=0x0 tLabel=0x00 ack=0x11 spd=0 data=0x1F0000C0 ctx=0
ip1394: $Rev: 1175 $ Ben Collins <bcollins@debian.org>
ip1394: eth1: IEEE-1394 IPv4 over 1394 Ethernet (fw-host0)
ohci1394: fw-host0: ohci_iso_recv_init: packet-per-buffer mode, DMA buffer is 16 pages (65536 bytes), using 16 blocks, buf_stride 4096, block_irq_interval 1
nvidia: no version magic, tainting kernel.
nvidia: module license 'NVIDIA' taints kernel.
0: nvidia: loading NVIDIA Linux x86 NVIDIA Kernel Module  1.0-5336  Wed Jan 14 18:29:26 PST 2004
agpgart: Found an AGP 2.0 compliant device at 0000:00:00.0.
agpgart: Putting AGP V2 device at 0000:00:00.0 into 4x mode
agpgart: Putting AGP V2 device at 0000:01:00.0 into 4x mode



thanks for any help

greetings,

twilight
_________________
- The day Micro$oft produces anything that doens`t suck, is probably the day, they start making vacuum cleaners-

"The Box said: Requires Micro$oft Windows XP or better, so I installed Linux"
Back to top
View user's profile Send private message
MrStaticVoid
Tux's lil' helper
Tux's lil' helper


Joined: 25 Jul 2003
Posts: 114
Location: Maryland

PostPosted: Mon May 10, 2004 7:31 pm    Post subject: Reply with quote

I did not bother reading this entire thread, I just wanted to let the people with Epson scanners know that I created an ebuild for iscan. You can find it http://bugs.gentoo.org/show_bug.cgi?id=50043 . I find that the epkowa backend that comes with iscan solved all of the problems I was having with the epson backend.
Back to top
View user's profile Send private message
bfelger
n00b
n00b


Joined: 19 Feb 2003
Posts: 47
Location: Augusta, GA

PostPosted: Thu May 13, 2004 10:41 pm    Post subject: Re: oddities Reply with quote

lyz wrote:

Did all of this, but I forgot one important detail that I though I'de share. Make sure the epson_scanner script has execute permissions or it won't execute. :roll:


Doh! Thanks, lyz, you saved me a couple hours of hair pulling...
Back to top
View user's profile Send private message
ralle
Tux's lil' helper
Tux's lil' helper


Joined: 25 Mar 2003
Posts: 144
Location: Aachen, Germany

PostPosted: Tue May 18, 2004 7:22 pm    Post subject: Reply with quote

Well, with the help of this thread I got my scanner working almost perfectly, but one issue remains:
My keyboard is always switched off as soon as I start scanning anything. I have to plug it out and in again to make it work. Anybody noticed this weirdness? Anybody found a solution?
Back to top
View user's profile Send private message
davecs
Guru
Guru


Joined: 08 Nov 2003
Posts: 436
Location: Dagenham, GB

PostPosted: Wed May 19, 2004 9:31 pm    Post subject: Reply with quote

kurtb wrote:

Code:

The permissions for the device files used by libusb  must  be  adjusted
       for  user  access. Otherwise only root can use SANE devices. For Linux,
       the devices are located in /proc/bus/usb/. There are directories  named
       e.g.  "001"  (the  bus  name)  containing  files "001", "002" etc. (the
       device files). The right device files can be found out by running scan-
       image  -L  as  root. Setting permissions with "chmod" is not permanent,
       however. They will be resetted after reboot or replugging the  scanner.
       It's  also  possible to mount the usbfs with the option "devmode=0666",
       e.g. by using the following line in /etc/fstab:

              none /proc/bus/usb usbfs defaults,devmode=0666  0  0





I've tried everything and nothing made any difference then I added the line
Code:

none /proc/bus/usb usbfs defaults,devmode=0666  0  0

to my /etc/fstab and hey presto it works!
_________________
Gentoo, PCLOS-pre-81a and Windows 98SE.
Shuttle SN41G2V2
Athlon XP2500+ o/c to 3200+, 2x256Mb Geil Value RAM, FX5200.
Ntlworld cable internet via ethernet
and PC-Chips Desknote Laptop (with PCLOS-pre-81a )
Back to top
View user's profile Send private message
Gentree
Watchman
Watchman


Joined: 01 Jul 2003
Posts: 5228
Location: France, Old Europe

PostPosted: Sat May 22, 2004 5:22 pm    Post subject: Reply with quote

You say you run libusb 0.1.8 , when I use ~x86 and emerge this version I get faults from just about any scan software:
Code:
bash-2.05b# scanimage -L
scanimage: error while loading shared libraries: libusb-0.1.so.4: cannot open shared object file: No such file or directory
bash-2.05b#


Did you fix that or not get it?

Thx 8)
Back to top
View user's profile Send private message
metalus
n00b
n00b


Joined: 09 May 2004
Posts: 52

PostPosted: Mon May 24, 2004 6:04 am    Post subject: Reply with quote

For sake of completeness to this thread, let's capture this one as well. I was getting this error whenever I attempted to start /usr/sbin/saned:

Code:
May 23 20:46:38 tux saned[18857]: check_host: getpeername failed: socket operation on non-socket
May 23 20:46:38 tux saned[18857]: init: access by host [error] denied
May 23 20:46:38 tux saned[18857]: quit: exiting


if you use xinetd to launch the saned daemon, you may have to disable the "only_from" in the /etc/xinetd.conf file:

Code:
defaults
{
#       only_from      = localhost
        instances      = 60
        log_type       = SYSLOG authpriv info
        log_on_success = HOST PID
        log_on_failure = HOST
        cps            = 25 30
}

includedir /etc/xinetd.d


And then, to run a scanner front end on a client machine (client in my case is redhat 9 machine talking to a gentoo scanner server), you need to type:

Code:
xsane net:tux:epson
(replace with your host and scanner name, net: is the prefix that gets xsane to look on the network)

My 2 cents
metalus
Back to top
View user's profile Send private message
fusibou
Tux's lil' helper
Tux's lil' helper


Joined: 25 Mar 2003
Posts: 109

PostPosted: Wed May 26, 2004 4:27 am    Post subject: Reply with quote

Gentree wrote:
You say you run libusb 0.1.8 , when I use ~x86 and emerge this version I get faults from just about any scan software:
Code:
bash-2.05b# scanimage -L
scanimage: error while loading shared libraries: libusb-0.1.so.4: cannot open shared object file: No such file or directory
bash-2.05b#


Did you fix that or not get it?

Thx 8)


re emerge sane-backends
Back to top
View user's profile Send private message
fkurth
n00b
n00b


Joined: 15 Apr 2002
Posts: 27
Location: Dresden/Germany

PostPosted: Sun Jun 20, 2004 7:20 pm    Post subject: Reply with quote

I made an ebuild of the newer version of iscan.
Works with libusb
Solution to make it work with xsane/scanimage and friends is applied.
get it here:
http://bugs.gentoo.org/show_bug.cgi?id=50043

have fun, report bugs. :evil:

felix
_________________
--
Felix Kurth
Back to top
View user's profile Send private message
Gentree
Watchman
Watchman


Joined: 01 Jul 2003
Posts: 5228
Location: France, Old Europe

PostPosted: Sun Jun 20, 2004 10:28 pm    Post subject: Reply with quote

Nice work producing an ebuild.

Only pb I have is it has fetch restrictions since the source comes from epkowa site and on that site they seem to be offering a later version now.

iscan-1.9.0-5.redhat.8.0.tar.gz

maybe the ebuild needs editing :?:

Also:
Do you have any experience of neg. scanning with the epson * Photo range?

I am looking to buy a scanner and want to choose one that is fully supported under Linux.

Epson seem to have a very active and positive support for Linux so I am strongly looking at thier range. However the std xsane-backends seem to be a bit lacking in full support .

Do you have some advise to offer ,

Thanks. 8)
Back to top
View user's profile Send private message
neysx
Retired Dev
Retired Dev


Joined: 27 Jan 2003
Posts: 795

PostPosted: Mon Jun 21, 2004 9:22 am    Post subject: Reply with quote

Gentree wrote:
Do you have any experience of neg. scanning with the epson * Photo range?

I am looking to buy a scanner and want to choose one that is fully supported under Linux.

Epson seem to have a very active and positive support for Linux so I am strongly looking at thier range. However the std xsane-backends seem to be a bit lacking in full support .

Do you have some advise to offer ,

Thanks. 8)
I'm quite happy with my 1640SU Photo. Negative scanning works great with it. iscan does a much better job at it than xsane btw.
If you need to scan many negatives, you might want to look for a specialized scanner. They have become quite affordable.
Check this 400dpi negative scan (2.3Mb) or the same one at 3200dpi (7.2Mb)
Back to top
View user's profile Send private message
Gentree
Watchman
Watchman


Joined: 01 Jul 2003
Posts: 5228
Location: France, Old Europe

PostPosted: Mon Jun 21, 2004 10:42 am    Post subject: Reply with quote

Thanks for a very interesting post.

the 3200 dpi is facinating , you can really see the individual chrystals at this resolution which answers another of my qu. about what resolution was required to get the higherst quality from film scanning.

After a bit of googling I had been able to calculate 1600 should exeed the grain resolution of a 100 ASA film. I guess that the shot you posted was done on a somewhat faster film. 400ASA perhaps. Can you recall that detail?

Quote:
iscan does a much better job at it than xsane btw.

Yes, I am becoming a bit disappointed with sane*. It's a great open source project but lacks performance and support at a number of levels. Another reason for supporting Epson if they produce quality support for Linux.

the 1640SU Photo is getting a bit old now (with the rate of change in hardware these days!) and is probably hard to find new now.

Do you have any feedback as to whether the newer devices perform as well? (newer is not always better)

I am looking at 1670 Photo or 2400 Photo in particular.

Thanks again.
8)
Back to top
View user's profile Send private message
neysx
Retired Dev
Retired Dev


Joined: 27 Jan 2003
Posts: 795

PostPosted: Mon Jun 21, 2004 11:45 am    Post subject: Reply with quote

Gentree wrote:
After a bit of googling I had been able to calculate 1600 should exeed the grain resolution of a 100 ASA film. I guess that the shot you posted was done on a somewhat faster film. 400ASA perhaps. Can you recall that detail?
Can't remember but it must have been 400 because I used it home (inside). Negative strip shows codes G23 and CH-7.
Gentree wrote:
the 1640SU Photo is getting a bit old now (with the rate of change in hardware these days!) and is probably hard to find new now.

Do you have any feedback as to whether the newer devices perform as well? (newer is not always better)

I am looking at 1670 Photo or 2400 Photo in particular.
Sorry, I don't know anything about newer models.
Back to top
View user's profile Send private message
fkurth
n00b
n00b


Joined: 15 Apr 2002
Posts: 27
Location: Dresden/Germany

PostPosted: Wed Jun 23, 2004 6:43 pm    Post subject: Reply with quote

Why do you say there is a newer version avialable ?
The newest one on there site is 1.9.0-5 withch is used in the latest ebuild.
There are no fetch restirictions since i expect it to be put on the gentoo mirrors. The license of epson allows that.

I want you to report success or failure with this ebuild if you're using it.
Does the LD_PRLEOAD stuff make sane/xsane/scanimage work for you ?
Report everything to bugzilla:
http://bugs.gentoo.org/show_bug.cgi?id=50043

felix 8)
_________________
--
Felix Kurth
Back to top
View user's profile Send private message
Corona688
Veteran
Veteran


Joined: 10 Jan 2004
Posts: 1204

PostPosted: Wed Jun 23, 2004 7:12 pm    Post subject: Reply with quote

dopey wrote:
so wanna hear something crazy :). scanimage fails. scanimage -L finds the scanner, but it refuses to scan.
However now xscanimage and xsane both work properly unless the scanner goes to sleep (light goes off). if the scanner is sleeping and i fire up xscanimage or xsane, it hanges the programs for a couple of minutes before they finally start up and things work.
Huh. That sounds like the exact same problem I had with my Epson CX3200 multifunction device over a year ago.
_________________
Petition for Better 64-bit ATI Drivers - Sign Here
http://www.petitiononline.com/atipet/petition.html
Back to top
View user's profile Send private message
-YoShi-
l33t
l33t


Joined: 26 Nov 2003
Posts: 684
Location: Besana Brianza - ItaLy -

PostPosted: Wed Jun 30, 2004 9:31 pm    Post subject: Reply with quote

fkurth wrote:
I made an ebuild of the newer version of iscan.
Works with libusb
Solution to make it work with xsane/scanimage and friends is applied.
get it here:
http://bugs.gentoo.org/show_bug.cgi?id=50043

have fun, report bugs. :evil:

felix


good job man.

I have the same problem of Gentree
Code:

bash-2.05b# scanimage -L
scanimage: error while loading shared libraries: libusb-0.1.4: cannot open shared object file: No such file or directory


I have tried all... but nothing that stupid error doesn't go away.

The last attempt was:
Code:

# /etc/init.d/hotplug stop && rc-update del hotplug default
# Unmerge libusb, hotplug, sane-back, sane-front, xsane, iscan
# reboot
# ACCEPT_KEYWORDS="~x86" emerge libusb hotplug sane (back,front,x)
# emerge iscan 1.9
# start hotplug and add it to default level
# reboot

All that but no result...iscan,xsane,scanimage give the seme out no libusb bla..bla..bla..
Only command that run correctly is sane-find-scanner.. :?
It work it is like root like that user
_________________
Io lo vedo tutti i giorni, un Re per vederlo deve uscire dal suo regno, e il Papa lo vede quando si spoglia. Chi è?
Back to top
View user's profile Send private message
fkurth
n00b
n00b


Joined: 15 Apr 2002
Posts: 27
Location: Dresden/Germany

PostPosted: Wed Jun 30, 2004 9:42 pm    Post subject: Reply with quote

Im realy wondering. I just merged libusb on my system
emerge -avB libusb
(this gaves me version 0.1.8)
And this installed the following files
./usr/
./usr/bin/
./usr/bin/libusb-config
./usr/lib/
./usr/lib/libusb.la
./usr/lib/libusb
./usr/lib/libusb.a
./usr/lib/libusb-0.1.4
./usr/lib/libusb-0.1.4.4.0
./usr/share/
./usr/share/doc/
./usr/share/doc/libusb-0.1.8/
./usr/share/doc/libusb-0.1.8/README.gz
./usr/share/doc/libusb-0.1.8/NEWS.gz
./usr/share/doc/libusb-0.1.8/AUTHORS.gz
./usr/include/
./usr/include/usb.h

So /usr/lib/libusb-0.1.4 gets installed. Whats up with your libusb ?
What files will installed when you try did that ?
_________________
--
Felix Kurth
Back to top
View user's profile Send private message
-YoShi-
l33t
l33t


Joined: 26 Nov 2003
Posts: 684
Location: Besana Brianza - ItaLy -

PostPosted: Wed Jun 30, 2004 9:54 pm    Post subject: Reply with quote

This is emerge out...
During the merge i don't have seen any error
Code:

bash-2.05b# emerge -avB libusb

These are the packages that I would merge, in order:

Calculating dependencies ...done!
[ebuild     UD] dev-libs/libusb-0.1.7-r1 [0.1.8]  0 kB

Total size of downloads: 0 kB

_________________
Io lo vedo tutti i giorni, un Re per vederlo deve uscire dal suo regno, e il Papa lo vede quando si spoglia. Chi è?
Back to top
View user's profile Send private message
fkurth
n00b
n00b


Joined: 15 Apr 2002
Posts: 27
Location: Dresden/Germany

PostPosted: Wed Jun 30, 2004 10:03 pm    Post subject: Reply with quote

Do the following:
ACCEPT_KEYWORDS="~x86" emerge -B libusb
and post the last lines of the output, when it merges the files in the image.
_________________
--
Felix Kurth
Back to top
View user's profile Send private message
-YoShi-
l33t
l33t


Joined: 26 Nov 2003
Posts: 684
Location: Besana Brianza - ItaLy -

PostPosted: Wed Jun 30, 2004 10:09 pm    Post subject: Reply with quote

This is the output
Code:

   usr/lib/libusb-0.1.so.4.4.0
making executable: /usr/lib/libusb-0.1.so.4.4.0
>>> Completed installing into /var/tmp/portage/libusb-0.1.8/image/

./
./usr/
./usr/bin/
./usr/bin/libusb-config
./usr/lib/
./usr/lib/libusb-0.1.so.4.4.0
./usr/lib/libusb-0.1.so.4
./usr/lib/libusb.so
./usr/lib/libusb.la
./usr/lib/libusb.a
./usr/include/
./usr/include/usb.h
./usr/share/
./usr/share/doc/
./usr/share/doc/libusb-0.1.8/
./usr/share/doc/libusb-0.1.8/AUTHORS.gz
./usr/share/doc/libusb-0.1.8/NEWS.gz
./usr/share/doc/libusb-0.1.8/README.gz
>>> Done.
>>> Auto-cleaning packages ...

>>> No outdated packages were found on your system.


 * GNU info directory index is up-to-date.

bash-2.05b# scanimage -L
scanimage: error while loading shared libraries: libusb-0.1.4: cannot open shared object file: No such file or directory
bash-2.05b#


P.s. tnx for help me
_________________
Io lo vedo tutti i giorni, un Re per vederlo deve uscire dal suo regno, e il Papa lo vede quando si spoglia. Chi è?
Back to top
View user's profile Send private message
fkurth
n00b
n00b


Joined: 15 Apr 2002
Posts: 27
Location: Dresden/Germany

PostPosted: Wed Jun 30, 2004 10:28 pm    Post subject: Reply with quote

Your libusb got installed wrong.
Whats youre version of libtool ?
libtool --version
Mine is:
ltmain.sh (GNU libtool) 1.4.3 (1.922.2.111 2002/10/23 02:54:36)
This is the shit happened:
./usr/lib/libusb-0.1.so.4
It schoul be:
./usr/lib/libusb-0.1.4.so

On my system i have sys-devel/libtool-1.4.3-r4 installed. We schould
track this down and fill a bug on libusb and/or libtool.
_________________
--
Felix Kurth
Back to top
View user's profile Send private message
fkurth
n00b
n00b


Joined: 15 Apr 2002
Posts: 27
Location: Dresden/Germany

PostPosted: Wed Jun 30, 2004 10:30 pm    Post subject: Reply with quote

As a first hack around the prob, try to set a symlink:
ln -s /usr/lib/libusb-0.1.so.4 /usr/lib/libusb.0.1.4
_________________
--
Felix Kurth
Back to top
View user's profile Send private message
-YoShi-
l33t
l33t


Joined: 26 Nov 2003
Posts: 684
Location: Besana Brianza - ItaLy -

PostPosted: Fri Jul 02, 2004 4:27 pm    Post subject: Reply with quote

fkurth wrote:
As a first hack around the prob, try to set a symlink:
ln -s /usr/lib/libusb-0.1.so.4 /usr/lib/libusb.0.1.4


Thank you.Sorry but yesterday my internet connection was lost and I couldn't post a reply. I have resolved using your same method. I have created the link manually and works. The only problem is that I have had to return to version 1,8,1 because the 1,9 give an error to me "scanner not supported" I have epson perfection a 1250 photo

Tnx 4 help me :)
_________________
Io lo vedo tutti i giorni, un Re per vederlo deve uscire dal suo regno, e il Papa lo vede quando si spoglia. Chi è?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Goto page Previous  1, 2, 3, 4, 5, 6  Next
Page 3 of 6

 
Jump to:  
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