Pagina 1 di 1

nuova slackware vecchia epson

Inviato: mar 1 nov 2005, 17:56
da Tochiro
Come da titolo ho appena intallato la 10.2 era ora :)
ho la solita epson cx-3200
facile da configurare come stampante ma un pò meno come scanner
vi ricordate il mio post:
http://www.slacky.it/forum/viewtopic.ph ... highlight=
Nella nuova slackware il gruppo scanner è già creato, ma anche dopo che ci aggiungo gli utenti, scanimage -L mi vede soltano la scheda tv.

Codice: Seleziona tutto

tochiro@darkstar:~$ scanimage -L
device `v4l:/dev/video0' is a Noname bttv video virtual device
dove sbaglio?

Inviato: mer 2 nov 2005, 7:28
da Tochiro
aggiornamento:

da root.

Codice: Seleziona tutto

root@darkstar:/home/tochiro# 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 SCSI driver for your SCSI adapter.
  # Also you need support for SCSI Generic (sg) in your operating system.
  # If using Linux, try "modprobe sg".

found USB scanner (vendor=0x04b8, product=0x0802) at /dev/usb/scanner0
found USB scanner (vendor=0x04b8 [EPSON], product=0x0802 [USB MFP]) 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.
root@darkstar:/home/tochiro#   

root@darkstar:/home/tochiro# scanimage -L
device `v4l:/dev/video0' is a Noname bttv video virtual device
device `epson:/dev/usb/scanner0' is a Epson CC-570L flatbed scanner
root@darkstar:/home/tochiro#       

root@darkstar:/home/tochiro# scanimage -d epson:/dev/usb/scanner0 --test
scanimage: scanning image of size 632x877 pixels at 1 bits/pixel
scanimage: acquiring gray frame, 1 bits/sample
scanimage: reading one scanline, 79 bytes...    PASS
scanimage: reading one byte...          PASS
scanimage: stepped read, 2 bytes...     PASS
scanimage: stepped read, 4 bytes...     PASS
scanimage: stepped read, 8 bytes...     PASS
scanimage: stepped read, 16 bytes...    PASS
scanimage: stepped read, 32 bytes...    PASS
scanimage: stepped read, 64 bytes...    PASS
scanimage: stepped read, 128 bytes...   PASS
scanimage: stepped read, 127 bytes...   PASS
scanimage: stepped read, 63 bytes...    PASS
scanimage: stepped read, 31 bytes...    PASS
scanimage: stepped read, 15 bytes...    PASS
scanimage: stepped read, 7 bytes...     PASS
scanimage: stepped read, 3 bytes...     PASS
root@darkstar:/home/tochiro# 
questo lascerebbe ben sperare lo scanner è riconosciuto ed il test va a buon fine, tuttavia da user.

Codice: Seleziona tutto

tochiro@darkstar:~$ 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 SCSI driver for your SCSI adapter.
  # Also you need support for SCSI Generic (sg) in your operating system.
  # If using Linux, try "modprobe sg".

found USB scanner (vendor=0x04b8 [EPSON], product=0x0802 [USB MFP]) 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.

  # You may want to run this program as root to find all devices. Once you
  # found the scanner devices, be sure to adjust access permissions as
  # necessary.
tochiro@darkstar:~$   

tochiro@darkstar:~$ 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).
tochiro@darkstar:~$ 
non capisco perchè lo scanner non venga trovato.
non è che qualche anima pia mi posterebbe il file /etc/sane.d/epson.conf
cosi com'era?

Inviato: mer 2 nov 2005, 7:59
da Tochiro
altro aggiornamento:

Codice: Seleziona tutto

tochiro@darkstar:~$ ls -l /dev/usb/scanner0
crw-rw----  1 root root 180, 48 2001-03-25 23:04 /dev/usb/scanner0
tochiro@darkstar:~$ su
Password:
root@darkstar:/home/tochiro# chown root:scanner /dev/usb/scanner0
root@darkstar:/home/tochiro# exit
exit

tochiro@darkstar:~$ 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 SCSI driver for your SCSI adapter.
  # Also you need support for SCSI Generic (sg) in your operating system.
  # If using Linux, try "modprobe sg".

found USB scanner (vendor=0x04b8, product=0x0802) at /dev/usb/scanner0
found USB scanner (vendor=0x04b8 [EPSON], product=0x0802 [USB MFP]) 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.

  # You may want to run this program as root to find all devices. Once you
  # found the scanner devices, be sure to adjust access permissions as
  # necessary.

tochiro@darkstar:~$ scanimage -L
device `epson:/dev/usb/scanner0' is a Epson CC-570L flatbed scanner
tochiro@darkstar:~$
/dev/usb/scanner0 non aveva i permessi "giusti", quindi ho impostati a manina.
Ma l'hotplug non doveva impostarli lui?
Vi posto anche /etc/hotplug/usb/libusbscanner

Codice: Seleziona tutto

#!/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
come si può notare viene impostato il gruppo scanner
chown root:scanner "$DEVICE"
pero non funziona.
qualcun'altro ha il mio stesso problema?