Hi,

On Wed, Jul 23, 2003 at 01:44:32AM -0500, Michal Sabala wrote:
> I'm trying to have the kernel automatically load scanner.o whenever I
> attempt to use my scanner and autoclean (unload) when I'm done. Hotplug
> does not fit my purpose because it will not unload the module as long as
> the usb device (my scanner) is still plugged in.  I need to
> automatically unload scanner.o because it seems to malfunction after
> prolonged time in the kernel without being used.

Can you please give some details about this malfuncion? Which scanner
and kernel version do you use?

> How can I force my kernel (2.4.21) to load scanner.o when device
> 180,48 is opened?

I think that doesn't work. Maybe the other kernel USB guys know why it
doesn't work with USB.

As a work-around, you could write a script like that one:

#!/bin/bash
sudo modprobe scanner
xsane
sudo rmmod scanner

But I really think it's better to fix the actual problem.

Have you tried using libusb instead of the kernel scanner driver? At
least with the latest SANE packages from
http://people.debian.org/~aurel32/sane.html that should work, too.

Bye,
  Henning


-------------------------------------------------------
This SF.net email is sponsored by: VM Ware
With VMware you can run multiple operating systems on a single machine.
WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines at the
same time. Free trial click here: http://www.vmware.com/wl/offer/345/0
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-users

Reply via email to