On Thu, 09 Jan 2003 13:46:30 +0000, Pierre Fortin wrote: > On Thu, 09 Jan 2003 10:47:09 +0100 "Udo Rader" <[EMAIL PROTECTED]> wrote: > >> hi all, >> >> I've a scsi-scanner here (umax astra) that works like a charm. My only >> problem is that I have to turn it on before I boot the computer, >> otherwise it is simply not detected (sane-find-scanner). >> >> The only solution I've come around so far is to rmmod my scsi-module as >> root, turn on the scanner, insmod my scsi-module again as root and then >> thats it. >> >> Giving root-access to all the people that use the machine is not an >> option, so are there any other possibilities to detect the scanner as a >> "normal" user? >> >> thanks >> >> udo > > I have SCSI disks on the same busas my scanner, so rmmod might cause > problems with those. I use the following script -- it was intended to get > a disk back online in earlier LM versions; but it works for the scanner > too... just pass it the lun of the scanner -- adjust the other parameters > if your scanner is on anything but the first SCSI adapter. > > #!/bin/sh > # enable a SCSI drive which was offline at bootup > echo "scsi add-single-device 0 0 $1 0" >/proc/scsi/scsi > > You could create a cron task that checks for the scanner in > /proc/scsi/scsi and re-enable it if off. > > HTH, > Pierre
hi pierre, thanks for your suggestion which works perfectly. udo
Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
