View previous topic :: View next topic |
Author |
Message |
oldefortran l33t

Joined: 28 Feb 2004 Posts: 652
|
Posted: Wed Mar 23, 2005 9:05 pm Post subject: detecting scsi scanner after login |
|
|
Hello.
I have a scsi scanner, and if I boot my machine with the scanner turned off, I can't "find" the scanner with
scanimage -L
if I later on turns on the power to the scanner.
Is there a way to detect the scanner later on? |
|
Back to top |
|
 |
ronmon Veteran


Joined: 15 Apr 2002 Posts: 1043 Location: Key West, FL
|
|
Back to top |
|
 |
oldefortran l33t

Joined: 28 Feb 2004 Posts: 652
|
Posted: Thu Mar 24, 2005 8:43 am Post subject: |
|
|
What ebuild can I find scsiadd in? |
|
Back to top |
|
 |
oldefortran l33t

Joined: 28 Feb 2004 Posts: 652
|
Posted: Thu Mar 24, 2005 8:58 am Post subject: |
|
|
I downloaded scsiadd and compiled and run, and this is the result:
Code: | /usr/local/sbin/scsiadd -s
Attached devices:
|
So I tried
rescan-scsi-bus.sh from sg3_utils
and I got
Code: | rescan-scsi-bus.sh
Host adapter 0 (atp870u) found.
Scanning hosts 0 channels 0 for
SCSI target IDs 0 1 2 3 4 5 6 7 , LUNs 0
0 new device(s) found.
0 device(s) removed. |
What is atp870u? I have this card:
Code: | ACPI: PCI interrupt 0000:01:09.0[A] -> GSI 11 (level, low) -> IRQ 11
ACARD AEC-671X PCI Ultra/W SCSI-3 Host Adapter: 0 IO:d400, IRQ:11.
ID: 7 Host Adapter
scsi0 : ACARD AEC-6710/6712/67160 PCI Ultra/W/LVD SCSI-3 Adapter Driver V2.6+ac |
and the scanner is
Code: | snapscan:/dev/scsi/host0/bus0/target2/lun0/generic |
Any ideas? |
|
Back to top |
|
 |
ronmon Veteran


Joined: 15 Apr 2002 Posts: 1043 Location: Key West, FL
|
Posted: Thu Mar 24, 2005 3:07 pm Post subject: |
|
|
Try 'scsiadd -p'. The output is the same as 'cat /proc/scsi/scsi', this is what I see:
Code: |
0938 i686 pts/0 ~
root@jaxun # scsiadd -p
Attached devices:
Host: scsi0 Channel: 00 Id: 00 Lun: 00
Vendor: ZJCS Model: ZJCS2-18GB Rev: S5BS
Type: Direct-Access ANSI SCSI revision: 03
Host: scsi0 Channel: 00 Id: 01 Lun: 00
Vendor: ZJCS Model: ZJCS2-18GB Rev: S5BS
Type: Direct-Access ANSI SCSI revision: 03
Host: scsi1 Channel: 00 Id: 05 Lun: 00
Vendor: UMAX Model: UMAX S-12 Rev: V2.1
Type: Scanner ANSI SCSI revision: 02
|
Then, 'scsiadd -a host channel ID lun'. For me it would be:
For you:
_________________ Ask Questions the Smart Way - by ESR |
|
Back to top |
|
 |
oldefortran l33t

Joined: 28 Feb 2004 Posts: 652
|
Posted: Thu Mar 24, 2005 3:18 pm Post subject: |
|
|
Thanks for your reply, but I got this:
Code: | /usr/local/sbin/scsiadd -p
Attached devices:
root # /usr/local/sbin/scsiadd -a 0 0 2 0
Attached devices:
root # |
Dang! |
|
Back to top |
|
 |
puntarenas n00b

Joined: 06 Feb 2005 Posts: 12
|
Posted: Thu Mar 24, 2005 4:42 pm Post subject: |
|
|
Use your scsi-driver as a module, then reloading the module should give you access to your scanner.
Dirty, but works for me ... |
|
Back to top |
|
 |
oldefortran l33t

Joined: 28 Feb 2004 Posts: 652
|
Posted: Thu Mar 24, 2005 8:16 pm Post subject: Problem solved! |
|
|
I compiled all the scsi stuff as modules, it worked then! |
|
Back to top |
|
 |
|