Hello,

On Oct 25 07:27 dwelch91 wrote (shortened):
> On 10/25/06, Johannes Meixner <[EMAIL PROTECTED]> wrote:
> > Perhaps you can suggest a patch for "sane-find-scanner"
> > so that it can even autodetect HP all in one devices?
> > Is there any scanner-specific hint in the USB device infos
> > (i.e. in what "lsusb -v" shows) for HP all in one devices
> > to distinguish a HP all in one device from a plain HP printer
> > (except form a hardcoded list of product IDs)?
> 
> Unfortunately, it does require a database of models to know which have
> scanners and further which scanners are supported (which HPLIP has in the
> way of XML files (currently)). But, I guess I don't understand the request.
> Isn't it the backend's job (hpaio: in this case) to detect scanners? Each
> backend gets called with the sane_get_devices() API to ennumerate the
> available devices. For HPLIP, hpaio: does this. Why would knowledge of
> specific devices be hard coded into the generic sane-find-scanner?

>From your point of view you are right and it shows an advantage
of driver packages directly from the manufacturer:

When a user installs such a package it is clear that he wants
to use matching hardware (regardless whether the hardware
is connected at the moment or not - think about a laptop
which should be set up for various hardware which exists
on the various places where the laptop might be used).

Therefore you could simply silently start the hplip services
and activate the hpaio backend in dll.conf and it should be o.k.

Nevertheless I think it is questionable whether you really
can start additional services silently because a cautious
user would like to be informed which services run on his
machine (think about a laptop which is used in arbitrary
environments: at home, in the office, at the airport, ...).
In particular if such a service would listen on a network port
which is accessible from non-localhost machines, you must
in any case care wery much about sufficient user information.

In contrast we as a Linux distributor install by default many
hardware related packages but we cannot know for sure which
hardware the user actually will use (hardware autodetection
is nice to have but we cannot rely on it: remember the laptop).

Therefore in our dll.conf all backends are deactivated
because we know about problems when all (or almost all)
backends would be activated by default, see
http://en.opensuse.org/SDB:Configuring_Scanners_from_SUSE_LINUX_9.2
the section about "SANE Backends".
Additionally watch the SANE mailing list: From time to time problems
are repoprted if too many backends are activated at the same time.

Therefore we provide a "non-silent" scanner setup tool in YaST.

What this tool does is:
- install the package "sane" if it is not yet installed
- build a list of models from *.desc files in our "sane" package
- show the list of models to the user and let him select one
- depending on the selected model do:
-- install additional driver packages if needed
-- set up and start additional services if needed
-- activate the backend in dll.conf

This tool calls "sane-find-scanner -q" to autodetect scanners.
It is not necessary to autodetect any scanner because the user
can always select his model manually from the list.
Scanner autodetection is only nice to have.



> > As far as I know the hpaio backend does not support the usual
> > SANE debugging mode via
> > export SANE_DEBUG_HPAIO=128
> 
> Yes, I agree, this would be a great feature. Since we adopted this code from
> HPOJ, we took it pretty much as-is, without this feature. I will certainly
> add this request to our TODO list.

Many thanks!


Kind Regards
Johannes Meixner
-- 
SUSE LINUX Products GmbH, Maxfeldstrasse 5      Mail: [EMAIL PROTECTED]
90409 Nuernberg, Germany                    WWW: http://www.suse.de/

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
HPLIP-Help mailing list
HPLIP-Help@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/hplip-help

Reply via email to