[sane-devel] Error in HP LaserJet M1005 Backend

tropos tropos at rambler.ru
Mon Jan 28 02:44:52 UTC 2008


Hello

Commands:
scanimage -d hpljm1005:libusb:1:5 ....
or
scanimage -d net:host:hpljm1005:libusb:1:5 ....

return error: 
 "...open... invalid argument"

Help such dirty workarround:

hpljm1005.c on current sane CVS:

SANE_Status
sane_init (SANE_Int * version_code,
           SANE_Auth_Callback __sane_unused__ authorize)
{
  SANE_Bool local_only; #by tropos

  if (version_code != NULL)
    *version_code = SANE_VERSION_CODE (V_MAJOR, V_MINOR, BUILD);

  DBG_INIT();

  sanei_usb_init ();

  DBG(1,"in sane_init\n");

  sane_get_devices(NULL,local_only); #by tropos

  return SANE_STATUS_GOOD;
}

Regards, tropos
-- 
View this message in context: http://www.nabble.com/Error-in-HP-LaserJet-M1005-Backend-tp15127315p15127315.html
Sent from the SANE - Dev mailing list archive at Nabble.com.




More information about the sane-devel mailing list