Re: turning off scanner-lamp

David Mosberger-Tang (davidm@azstarnet.com)
Mon, 5 May 1997 09:47:48 -0700

>>>>> On Mon, 05 May 1997 11:34:45 -0400, "Michael K. Johnson" <johnsonm@redhat.com> said:

Michael> You can tell Linux to re-probe for a device at a specific
Michael> location by echoing something to /proc/scsi/scsi -- here's
Michael> a snip from /usr/src/linux/drivers/scsi/scsi.c:

Michael> * Usage: echo "scsi add-single-device 0 1 2 3" >/proc/scsi/scsi
Michael> * with "0 1 2 3" replaced by your "Host Channel Id Lun".
Michael> * Consider this feature BETA.
Michael> * CAUTION: This is not for hotplugging your peripherals. As
Michael> * SCSI was not designed for this you could damage your
Michael> * hardware !
Michael> * However perhaps it is legal to switch on an
Michael> * already connected device. It is perhaps not
Michael> * guaranteed this device doesn't corrupt an ongoing data transfer.

Michael> You should only need to do this if the scanner wasn't on
Michael> (or ready) when you booted.

That's neat! I'll add a script or at least some docs on this.

--david

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