List Info

Thread: 3 mins delay at xscanimage startup due to querying hpiod




3 mins delay at xscanimage startup due to querying hpiod
country flaguser name
Germany
2007-03-06 04:22:06
Dear all,

I recently bought my first scanner (Canon Lide 25), which is
reported
to work with the plustek backend. I'm running Kubuntu Dapper
and have
the most recent ubuntu binary packages 'libsane' and 'sane'
installed.

My problem is that when I start xscanimage it takes 3:10
minutes until
the GUI shows up, which is quite a while. After setting
SANE_DEBUG_XSCANIMAGE to 4 I found that it stays all the
time in the
[init] section. Meanwhile, the syslog gives the following
messages:

  scanimage: unable to open /var/run/hplip/hpiod.port: No
such file or directory: prnt/hpijs/hplip_api.c 84

when xscanimage is being started and when [init] has
finished and the
GUI shows up:  

  xscanimage: unable to connect hpiod socket 50000:
Connection timed out: prnt/hpijs/hplip_api.c 703
  xscanimage: ProbeDevices(): unable to send message: Bad
file descriptor

Because of the first message I tried to start the hpiod
daemon and
hplip, although I did not understand why a Canon scanner on
the
plustek backend might require this daemon... The syslog told
me:

  hpiod: 0.9.7 accepting connections at 45490... 

When starting xscanimage anew, the only improvement was that
the first
message complaining about the missing hpiod.port
disappeared, but the
rest remained very similar (after 190 seconds of waiting):

  xscanimage: unable to connect hpiod socket 45490:
Connection timed out: prnt/hpijs/hplip_api.c 703 
  xscanimage: ProbeDevices(): unable to send message: Bad
file descriptor

This behaviour does not change even when I start xscanimage
as
root. In any case, after the GUI shows up, the scanner
works
apparently without problems, so it's only the looong delay
that
puzzles me.

My questions:
- Why does xscanimage (or the KDE frontend kooka, or xsane,
which I
  all tried as well) try to connect to hpiod when there is
apparently no
  device present that depends on this daemon?

- Is there a way to stop xscanimage to query the hpiod
socket, or at
  least to shorten the time it tries to connect to it?

- Do you think that compiling sane from source offers a
chance to
  circumvent this problem (e.g. because there is an option
to build
  sane without querying hpiod)?

Thanks for your help and suggestions.

-- 
Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu
sparen! 
Ideal für Modem und ISDN: http://www.gmx.n
et/de/go/smartsurfer

-- 
sane-devel mailing list: sane-devellists.alioth.debian.org
http://lists.alioth.debian.org/mailman/listinfo/sane-d
evel
Unsubscribe: Send mail with subject "unsubscribe
your_password"
             to sane-devel-requestlists.alioth.debian.org

Re: 3 mins delay at xscanimage startup due to querying hpiod
country flaguser name
Germany
2007-03-06 04:33:07
Hello,

On Mar 6 11:22 Volker Barth wrote (shortened):
> I recently bought my first scanner (Canon Lide 25),
which is reported
> to work with the plustek backend. I'm running Kubuntu
Dapper ...
... 
> My problem is that when I start xscanimage it takes
3:10 minutes until
> the GUI shows up
...
> scanimage: unable to open /var/run/hplip/hpiod.port:
...

If you don't have a scanner in a HP all-in-one device
which needs the hpoj or hpaio backend, disable them in
/etc/sane.d/dll.conf

In generral it is a good idea to have only those backends
enabled in /etc/sane.d/dll.conf which you actually need
because otherwise all other backends would be also started
to let them probe for their scanners which only wastes
resources and sometimes even causes problems (like yours).


Kind Regards
Johannes Meixner
-- 
SUSE LINUX Products GmbH, Maxfeldstrasse 5, 90409 Nuernberg,
Germany
AG Nuernberg, HRB 16746, GF: Markus Rex

-- 
sane-devel mailing list: sane-devellists.alioth.debian.org
http://lists.alioth.debian.org/mailman/listinfo/sane-d
evel
Unsubscribe: Send mail with subject "unsubscribe
your_password"
             to sane-devel-requestlists.alioth.debian.org

Re: 3 mins delay at xscanimage startup due to querying hpiod
user name
2007-03-06 04:46:52
On Dienstag, 6. März 2007, Volker Barth wrote:
> Dear all,
> 
> I recently bought my first scanner (Canon Lide 25),
which is reported
> to work with the plustek backend. I'm running Kubuntu
Dapper and have
> the most recent ubuntu binary packages 'libsane' and
'sane' installed.
> 
> My problem is that when I start xscanimage it takes
3:10 minutes until
> the GUI shows up, which is quite a while. After
setting
> SANE_DEBUG_XSCANIMAGE to 4 I found that it stays all
the time in the
> [init] section. Meanwhile, the syslog gives the
following messages:
> 
>   scanimage: unable to open /var/run/hplip/hpiod.port:
No such file or directory: prnt/hpijs/hplip_api.c 84

Why do you need that?

> when xscanimage is being started and when [init] has
finished and the
> GUI shows up:  
> 
>   xscanimage: unable to connect hpiod socket 50000:
Connection timed out: prnt/hpijs/hplip_api.c 703
>   xscanimage: ProbeDevices(): unable to send message:
Bad file descriptor
> 
> Because of the first message I tried to start the hpiod
daemon and
> hplip, although I did not understand why a Canon
scanner on the
> plustek backend might require this daemon... The syslog
told me:
> 
>   hpiod: 0.9.7 accepting connections at 45490... 
> 
> When starting xscanimage anew, the only improvement was
that the first
> message complaining about the missing hpiod.port
disappeared, but the
> rest remained very similar (after 190 seconds of
waiting):
> 
>   xscanimage: unable to connect hpiod socket 45490:
Connection timed out: prnt/hpijs/hplip_api.c 703 
>   xscanimage: ProbeDevices(): unable to send message:
Bad file descriptor
> 
> This behaviour does not change even when I start
xscanimage as
> root. In any case, after the GUI shows up, the scanner
works
> apparently without problems, so it's only the looong
delay that
> puzzles me.
> 
> My questions:
> - Why does xscanimage (or the KDE frontend kooka, or
xsane, which I
>   all tried as well) try to connect to hpiod when there
is apparently no
>   device present that depends on this daemon?

Probably because you've told SANE to do so. Find
sane.d/dll.conf (in /etc/ or
/usr/local/etc) and check the entries. For the LiDE25 you'll
only need 
plustek to be enabled, comment out all others (use #)

> - Is there a way to stop xscanimage to query the hpiod
socket, or at
>   least to shorten the time it tries to connect to it?

s.o.

> - Do you think that compiling sane from source offers a
chance to
>   circumvent this problem (e.g. because there is an
option to build
>   sane without querying hpiod)?

Nope

- Gerhard


--
sane-devel mailing list: sane-devellists.alioth.debian.org
http://lists.alioth.debian.org/mailman/listinfo/sane-d
evel
Unsubscribe: Send mail with subject "unsubscribe
your_password"
             to sane-devel-requestlists.alioth.debian.org

Re: 3 mins delay at xscanimage startup due to querying hpiod
user name
2007-03-06 04:43:45
Hi Volker,

SANE does not know which scanner you have or don't have
until it tries all 
the possibilities.  You can limit which backends it will try
by editing 
dll.conf (which on my system can be found in /etc/sane.d)
and commenting 
out suspicious looking entries.

Good luck!
Jon

====================== Jon Chambers =====================
  http://www.jon.demon.co.uk
, 020 8575 7097, 07931 961669
=========================================================


On Tue, 6 Mar 2007, Volker Barth wrote:

> Dear all,
>
> I recently bought my first scanner (Canon Lide 25),
which is reported
> to work with the plustek backend. I'm running Kubuntu
Dapper and have
> the most recent ubuntu binary packages 'libsane' and
'sane' installed.
>
> My problem is that when I start xscanimage it takes
3:10 minutes until
> the GUI shows up, which is quite a while. After
setting
> SANE_DEBUG_XSCANIMAGE to 4 I found that it stays all
the time in the
> [init] section. Meanwhile, the syslog gives the
following messages:
>
>  scanimage: unable to open /var/run/hplip/hpiod.port:
No such file or directory: prnt/hpijs/hplip_api.c 84
> [...]


-- 
sane-devel mailing list: sane-devellists.alioth.debian.org
http://lists.alioth.debian.org/mailman/listinfo/sane-d
evel
Unsubscribe: Send mail with subject "unsubscribe
your_password"
             to sane-devel-requestlists.alioth.debian.org

Re: 3 mins delay at xscanimage startup due to querying hpiod: solved!
country flaguser name
Germany
2007-03-06 14:31:53
Hi again,

and thanks for your suggestions. Commenting almost
everything in
dll.conf and particularly the entry in file
/etc/sane.d/dll.d/hplip
did the trick! No everything's working smooth and like a
charm 

Thanks again!

-- 
"Feel free" - 10 GB Mailbox, 100 FreeSMS/Monat
...
Jetzt GMX TopMail testen:
www.gmx.net/de/go/mailfooter/topmail-out

-- 
sane-devel mailing list: sane-devellists.alioth.debian.org
http://lists.alioth.debian.org/mailman/listinfo/sane-d
evel
Unsubscribe: Send mail with subject "unsubscribe
your_password"
             to sane-devel-requestlists.alioth.debian.org

[1-5]

about | contact  Other archives ( Real Estate discussion Medical topics )