Re: turning off scanner-lamp

Mathias Weigt (p5iba@medchem2.pharmazie.uni-halle.de)
Tue, 6 May 1997 14:56:21 +0059 (MDT)

Mathias Weigt
p5iba@medchem2.pharmazie.uni-halle.de

On Mon, 5 May 1997, Michael K. Johnson wrote:

>
> Andy Thaller writes:
> >Or can the scsi-system cope with the scanner being turned off and on
> >during runtime?
>
> You can tell Linux to re-probe for a device at a specific location by
> echoing something to /proc/scsi/scsi -- here's a snip from
> /usr/src/linux/drivers/scsi/scsi.c:
>
> * Usage: echo "scsi add-single-device 0 1 2 3" >/proc/scsi/scsi
> * with "0 1 2 3" replaced by your "Host Channel Id Lun".
> * Consider this feature BETA.
> * CAUTION: This is not for hotplugging your peripherals. As
> * SCSI was not designed for this you could damage your
> * hardware !
> * However perhaps it is legal to switch on an
> * already connected device. It is perhaps not
> * guaranteed this device doesn't corrupt an ongoing data transfer.
>
> You should only need to do this if the scanner wasn't on (or ready)
> when you booted.

Thank you for that hint. My scanner is connected to a separate SCSI adapter
and so I solved the problem by compiling the driver as a module and
loading / unloading it on demand. But the way described above looks more
elegant.

--
Source code, list archive, and docs: http://www.azstarnet.com/~axplinux/sane/
To unsubscribe: mail -s unsubscribe sane-devel-request@listserv.azstarnet.com