[sane-devel] scaner on HP LaserJet M1005 MFP

2010-04-07 Thread viktor vraniak
> > perhaps. is there anything else you can switch between the two > computers, like cables or power? Or perhaps get an add-on usb card? > ok, i will try addon PCI card with USB ports, hope that this solve my problem. anyway thank you very much for your patience and help i will inform when i wi

[sane-devel] scaner on HP LaserJet M1005 MFP

2010-04-07 Thread viktor vraniak
> then don't use gentoo. perhaps a livecd from something else? > hmm, ok, i have tried it with ubuntu 9.10 live CD and it works! great ;o) so i have tried run this live CD from computer where device is normally connected and problem is back... :o( so IMHO this looks like HW problem? viktor

[sane-devel] scaner on HP LaserJet M1005 MFP

2010-04-07 Thread viktor vraniak
> This would imply that something the backend is doing at the end of a > scan is confusing the scanner or kernel. Can you try this with a > different computer, or older kernel version, or other USB cable or > something? If none of those things help, then you would have to try > and compare the pack

[sane-devel] scaner on HP LaserJet M1005 MFP

2010-04-07 Thread viktor vraniak
> > so i think, opened device is renewed and scanimage lost/not get descriptor > > for > new device? > > Yes- It appears that the device is reset (either by the kernel or by > itself), after this attempted write. The reset succeeds, and so the > device is found by the second call to scanimage. > >

[sane-devel] scaner on HP LaserJet M1005 MFP

2010-04-07 Thread viktor vraniak
ok first mail with attached log i have send directly to you, so sorry for mistake ;o) so here is different part: first 89lines are same: [sanei_debug] Setting debug level of hpljm1005 to 255. [sanei_debug] Setting debug level of sanei_usb to 255. [sanei_usb] sanei_usb_init: marking existing devi

[sane-devel] scaner on HP LaserJet M1005 MFP

2010-04-07 Thread viktor vraniak
i forgot to write that i have disable CONFIG_USB_SUSPEND in my kernel too...

[sane-devel] scaner on HP LaserJet M1005 MFP

2010-04-07 Thread viktor vraniak
ok, i have tried to comment out calls sanei_usb_claim_interface and sanei_usb_release_interface with patch below but it didnt help, device usb reinit still occurs in dmesg (as in my first post) any other suggestions or ides? thanks for your patience patch: diff -r -u sane-backends-1.0.20-orig/

[sane-devel] scaner on HP LaserJet M1005 MFP

2010-04-07 Thread viktor vraniak
ok, thanks here is kernel version: cz-gprinter admin # uname -a Linux cz-gprinter 2.6.31-gentoo-r10 #6 SMP Tue Mar 16 14:43:13 CET 2010 i686 Intel(R) Pentium(R) 4 CPU 3.00GHz GenuineIntel GNU/Linux cz-gprinter admin # cat /sys/bus/usb/devices/1-5/product HP LaserJet M1005 cz-gprinter admin # ca

[sane-devel] scaner on HP LaserJet M1005 MFP

2010-04-07 Thread m. allan noah
On Wed, Apr 7, 2010 at 2:43 PM, viktor vraniak wrote: > >> then don't use gentoo. perhaps a livecd from something else? >> > > hmm, ok, i have tried it with ubuntu 9.10 live CD and it works! great ;o) > > so i have tried run this live CD from computer where device is normally > connected and prob

[sane-devel] scaner on HP LaserJet M1005 MFP

2010-04-07 Thread m. allan noah
On Wed, Apr 7, 2010 at 1:37 PM, viktor vraniak wrote: >> This would imply that something the backend is doing at the end of a >> scan is confusing the scanner or kernel. Can you try this with a >> different computer, or older kernel version, or other USB cable or >> something? If none of those thi

[sane-devel] scaner on HP LaserJet M1005 MFP

2010-04-07 Thread m. allan noah
On Wed, Apr 7, 2010 at 1:14 PM, viktor vraniak wrote: >> > so i think, opened device is renewed and scanimage lost/not get descriptor >> > for >> new device? >> >> Yes- It appears that the device is reset (either by the kernel or by >> itself), after this attempted write. The reset succeeds, and

[sane-devel] scaner on HP LaserJet M1005 MFP

2010-04-07 Thread m. allan noah
2010/4/7 viktor vraniak : > ok first mail with attached log seems not be delivered > so here is different part: > > first 89lines are same: > [sanei_debug] Setting debug level of hpljm1005 to 255. > [sanei_debug] Setting debug level of sanei_usb to 255. > [sanei_usb] sanei_usb_init: marking existin

[sane-devel] scaner on HP LaserJet M1005 MFP

2010-04-07 Thread viktor vraniak
hi all i have device HP LaserJet M1005 MFP, scanning is working with "hpljm1005" backend. but there is one issue: utility "scanimage" works only every second run in kernel log i see: [40719.182679] usb 1-5: default language 0x0409 [40719.183156] usb 1-5: udev 12, busnum 1, minor = 11 [40719.1831

[sane-devel] scaner on HP LaserJet M1005 MFP

2010-04-07 Thread m. allan noah
Try getting some more debug output: SANE_DEBUG_SANEI_USB=255 SANE_DEBUG_HPLJM1005=255 scanimage 2>1.log then repeat with a different log file, and lets see if anything funny shows up. allan On Wed, Apr 7, 2010 at 11:53 AM, viktor vraniak wrote: > i forgot to write that i have disable CONFIG_US

[sane-devel] scaner on HP LaserJet M1005 MFP

2010-04-07 Thread m. allan noah
Scanimage itself does not send any usb packets, this is the domain of the backend. The hpljm backend does call sanei_usb_claim_interface and sanei_usb_release_interface, even though this has already been done by sanei_usb. But, I'm not sure that would be the cause of the problem, or why it has not

[sane-devel] scaner on HP LaserJet M1005 MFP

2010-04-07 Thread m. allan noah
perhaps related to kernel usb suspend settings to save power? What kernel version is this? Perhaps you can try to disable power management for this device (use the 'on' setting): http://www.lesswatts.org/projects/devices-power-management/usb.php allan On Wed, Apr 7, 2010 at 6:30 AM, viktor vrani