Bug 110338 - Kooka ignores -d comand line switch for networked HP scanner (SANE backend uses SuSE's hplip 0.9.4 rpms for HP all in one devices
Summary: Kooka ignores -d comand line switch for networked HP scanner (SANE backend us...
Status: RESOLVED DUPLICATE of bug 139932
Alias: None
Product: kooka
Classification: Applications
Component: general (show other bugs)
Version: 0.44
Platform: openSUSE Linux
: NOR normal
Target Milestone: ---
Assignee: Jonathan Marten
URL:
Keywords:
: 141082 (view as bug list)
Depends on:
Blocks:
 
Reported: 2005-08-07 14:27 UTC by Bart Symons
Modified: 2010-09-05 11:44 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Bart Symons 2005-08-07 14:27:51 UTC
Version:           0.44 (using KDE KDE 3.4.2)
Installed from:    SuSE RPMs

I have an HP PSC2710 networked "all in one" scanner. I use the SuSE 9.3 hplip 0.9.4 rpms from Johannes Meixner (ftp://ftp.suse.com/pub/people/jsmeix/unsupported/hplip/9.3/RPMS). This package provides the CUPS and SANE interface to these HP "all in one" devices.

The SANE device ID is: hpaio:/net/Photosmart_2700_series?ip=192.168.2.99.

I can scan documents with xsane using :
xsane hpaio:/net/Photosmart_2700_series?ip=192.168.2.99

However, Kooka cannot use this scanner when I try:
kooka -d hpaio:/net/Photosmart_2700_series?ip=192.168.2.99
It reports "Problem: no scanner found. Your system does not provide a SANE installation."

When I start Kooka without any command line paramter the GUI remains blank, I see no "scan image" button or menu item and the "select device" menu item does absolutely nothing, it doesn't even show a dialog.
Comment 1 Jonathan Marten 2007-12-19 17:55:32 UTC
The problem seems to be that the hpaio SANE backend doesn't support scanning for network devices, even if it is enabled in Kooka.  The device explicitly specified with -d is passed down to KookaView::slSelectDevice(), but the
if ( sane->openDevice( selDevice ) == KSCAN_OK ) fails.

KScanDevice::openDevice() insists that the device, even if explicitly specified, must have already been probed:

   // search for scanner
   int indx = scanner_avail.find( backend );
   if( indx < 0 ) {
      stat = KSCAN_ERR_NO_DEVICE;

Commenting out this test and running Kooka again, with the device explicitly specified, works and scans perfectly.

Suggested resolution: if a device is specified explicitly with -d, and it cannot be probed, warn the user and give them an option to accept it anyway.
Comment 2 Jonathan Marten 2007-12-19 17:57:41 UTC
Bug 141082 possibly a duplicate of this, although very little information there.
Comment 3 Jonathan Marten 2008-01-22 18:20:21 UTC
If this is still an issue, and you can compile from source, please check out and try the SVN version at branches/work/kooka-kde3.  This allows the device to be manually entered in the case where SANE cannot detect it;  either specify it on the command line with the '-d' switch, or use the new "Add Scan Device" menu option.  This should work with HP networked scanners using HPLIP.
Comment 4 Jonathan Marten 2008-01-23 11:18:40 UTC
*** Bug 141082 has been marked as a duplicate of this bug. ***
Comment 5 Jonathan Marten 2008-01-27 18:04:43 UTC
Bug 139932 possibly another duplicate.
Comment 6 Matija Šuklje 2010-09-05 00:37:05 UTC
Works on my HP PhotoSmart C4380 in SkanLite (KDE4 version of Kooka so to speak).

Should this bug be closed?
Comment 7 Jonathan Marten 2010-09-05 11:44:51 UTC
Not closing for that reason, because Skanlite is a separate product.

However, the bug has been fixed in the current SVN version, see bug 139932 for more information.

*** This bug has been marked as a duplicate of bug 139932 ***