Re: [sane-devel] Xerox Workcentre 3225 support?

2016-03-23 Thread Bernhard Reiter
Dear Sane-People, Dear Johannes,

Am Montag, 21. März 2016, 14:21:17 schrieb Bernhard Reiter:
> > > Xerox WorkCentre 3225 connected with USB.

one step further, but still not working.
Ideas for the next steps appreciated!

Should I create an entry in the tracker as indicated on the webpages now?

Best Regards,
Bernhard

== Overview

I've used on of my ehci-pci usb ports and with
#Xerox WorkCentre 3225
usb 0x0924 0x42dc
in /etc/sane.d/xerox_mfp.conf

scanimage -L 
reliably identifies the scanner.

Next I've switched to sane-backends-1.0.25-116.1.x86_64
and sane-backends-autoconfig from
http://download.opensuse.org/repositories/graphics/openSUSE_13.1/

But scanning does not work.
Probably because of differences of the xerox models.

scanimage >/tmp/image.pnm
will lead to 
scanimage: sane_read: Error during device I/O
and the xerox device resets itself.

== Details

export SANE_DEBUG_XEROX_MFP=128
# scanimage -L
[sanei_debug] Setting debug level of xerox_mfp to 128.
[xerox_mfp] sane_init: Xerox backend (build 13), version != null, 
authorize != null
[xerox_mfp] sane_xerox_mfp_get_devices: 0x7ffe81063158, 0
[xerox_mfp] list_one_device: libusb:002:008
[xerox_mfp] usb_dev_open: open 0x155ee20
[xerox_mfp] :: dev_command(INQUIRY[0x12], 70)
[xerox_mfp] [70] a8 00 43 10 58 65 72 6f 78 20 20 20 57 6f 72 6b 43 65 6e 
74 72 65 20 33 32 32 35 20 20 20 20 20 20 20 20 20 11 33 86 2b 00 00 27 e0 
00 00 41 a0 00 01 51 00 00 01 00 00 00 00 41 a0 00 00 36 d8 00 00 05 05 11 
00
[xerox_mfp] dev_inquiry: found Xerox/WorkCentre 3225
[xerox_mfp] usb_dev_close: closing dev 0x155ee20
device `xerox_mfp:libusb:002:008' is a Xerox WorkCentre 3225 multi-
function peripheral

scanimage >/tmp/image.pnm
[sanei_debug] Setting debug level of xerox_mfp to 128.
[xerox_mfp] sane_init: Xerox backend (build 13), version != null, 
authorize != null
[xerox_mfp] sane_xerox_mfp_get_devices: 0x7ffc94072388, 0
[xerox_mfp] list_one_device: libusb:002:008
[xerox_mfp] usb_dev_open: open 0x95be20
[xerox_mfp] :: dev_command(INQUIRY[0x12], 70)
[xerox_mfp] [70] a8 00 43 10 58 65 72 6f 78 20 20 20 57 6f 72 6b 43 65 6e 
74 72 65 20 33 32 32 35 20 20 20 20 20 20 20 20 20 11 33 86 2b 00 00 27 e0 
00 00 41 a0 00 01 51 00 00 01 00 00 00 00 41 a0 00 00 36 d8 00 00 05 05 11 
00
[xerox_mfp] dev_inquiry: found Xerox/WorkCentre 3225
[xerox_mfp] usb_dev_close: closing dev 0x95be20
[xerox_mfp] sane_xerox_mfp_open: 'libusb:002:008'
[xerox_mfp] usb_dev_open: open 0x95be20
[xerox_mfp] sane_xerox_mfp_get_option_descriptor: 0x95be20, 0
[xerox_mfp] sane_xerox_mfp_control_option: 0x95be20, 0, <0>, 
0x7ffc9407245c, (nil)
[xerox_mfp] sane_xerox_mfp_control_option: 0, <0> => 000b, 0
[xerox_mfp] sane_xerox_mfp_get_option_descriptor: 0x95be20, 0
[xerox_mfp] sane_xerox_mfp_control_option: 0x95be20, 0, <0>, 
0x7ffc94072398, (nil)
[xerox_mfp] sane_xerox_mfp_control_option: 0, <0> => 000b, 0
[xerox_mfp] sane_xerox_mfp_get_option_descriptor: 0x95be20, 1
[xerox_mfp] sane_xerox_mfp_get_option_descriptor: 0x95be20, 2
[xerox_mfp] sane_xerox_mfp_get_option_descriptorscanimage: sane_read: 
Error during device I/O
: 0x95be20, 3
[xerox_mfp] sane_xerox_mfp_get_option_descriptor: 0x95be20, 4
[xerox_mfp] sane_xerox_mfp_get_option_descriptor: 0x95be20, 5
[xerox_mfp] sane_xerox_mfp_get_option_descriptor: 0x95be20, 6
[xerox_mfp] sane_xerox_mfp_get_option_descriptor: 0x95be20, 7
[xerox_mfp] sane_xerox_mfp_get_option_descriptor: 0x95be20, 8
[xerox_mfp] sane_xerox_mfp_get_option_descriptor: 0x95be20, 9
[xerox_mfp] sane_xerox_mfp_get_option_descriptor: 0x95be20, 10
[xerox_mfp] sane_xerox_mfp_control_option: 0x95be20, 9, <0>, 0x60c624, 
(nil)
[xerox_mfp] sane_xerox_mfp_control_option: 9, <0> => 00d811bf, 0
[xerox_mfp] sane_xerox_mfp_control_option: 0x95be20, 7, <0>, 
0x7ffc9407239c, (nil)
[xerox_mfp] sane_xerox_mfp_control_option: 7, <0> => , 0
[xerox_mfp] sane_xerox_mfp_control_option: 0x95be20, 10, <0>, 0x60c628, 
(nil)
[xerox_mfp] sane_xerox_mfp_control_option: 10, <0> => 01292e14, 0
[xerox_mfp] sane_xerox_mfp_control_option: 0x95be20, 8, <0>, 
0x7ffc9407239c, (nil)
[xerox_mfp] sane_xerox_mfp_control_option: 8, <0> => , 0
[xerox_mfp] sane_xerox_mfp_control_option: 0x95be20, 7, <0>, 
0x7ffc94072490, (nil)
[xerox_mfp] sane_xerox_mfp_control_option: 7, <0> => , 0
[xerox_mfp] sane_xerox_mfp_get_option_descriptor: 0x95be20, 9
[xerox_mfp] sane_xerox_mfp_control_option: 0x95be20, 9, <1>, 
0x7ffc940724b0, 0x7ffc9407239c
[xerox_mfp] sane_xerox_mfp_control_option: 9, <1> => 00d811bf, 0
[xerox_mfp] sane_xerox_mfp_control_option: 0x95be20, 8, <0>, 
0x7ffc94072490, (nil)
[xerox_mfp] sane_xerox_mfp_control_option: 8, <0> => , 0
[xerox_mfp] sane_xerox_mfp_get_option_descriptor: 0x95be20, 10
[xerox_mfp] sane_xerox_mfp_control_option: 0x95be20, 10, <1>, 
0x7ffc940724b0, 0x7ffc9407239c
[xerox_mfp] sane_xerox_mfp_control_option: 10, <1> => 01292e14, 0
[xerox_mfp] sane_xerox_mfp_start: 0x95be20
[xerox_mfp] :: dev_command(RESERVE_UNIT[0x16], 32)
[xerox_mfp] [32] a8 00 1d 00...

Re: [sane-devel] Xerox Workcentre 3225 support?

2016-03-22 Thread Johannes Meixner


Hello,

On Mar 21 14:21 Bernhard Reiter wrote (excerpt):

[..]

then have a look at "Trouble-Shooting (Debugging)" in
https://en.opensuse.org/SDB:Configuring_Scanners


Thanks for pointing to this page, too. (I did search for
a page like this and however did not manage to find it.
Maybe a search entry point for all OpenSuse related
information easily reachable from https://www.opensuse.org/
would be helpful, I've looked for it there.)


When I search for openSUSE articles I simply use Google.

For example when I enter in Google

  scanner debug openSUSE

then I get topmost in Google's list the above article:
--
SDB:Configuring Scanners - openSUSE
https://en.opensuse.org/SDB:Configuring_Scanners
...  Trouble-Shooting (Debugging) ...
--



Is there a point where I can financially voluntarily pay
a small amount to you for this support you have given me.


I think it is perfectly o.k. and greatly appreciated
when you contribute to openSUSE in any way you like
as described at

https://en.opensuse.org/Portal:How_to_participate

In other words:
I think the openSUSE project benefits most
when you "pay" with some of your time.


Kind Regards
Johannes Meixner
--
SUSE LINUX GmbH - GF: Felix Imendoerffer, Jane Smithard,
Graham Norton - HRB 21284 (AG Nuernberg)


--
sane-devel mailing list: sane-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/sane-devel
Unsubscribe: Send mail with subject "unsubscribe your_password"
to sane-devel-requ...@lists.alioth.debian.org


Re: [sane-devel] Xerox Workcentre 3225 support?

2016-03-21 Thread Bernhard Reiter
Hi Johannes,

Am Montag, 21. März 2016 13:57:06 schrieb Johannes Meixner:
> On Mar 20 00:17 Bernhard Reiter wrote (excerpt):
> > Xerox WorkCentre 3225 connected with USB.
>
> In general when your scanner is connected via USB:

> Check the "lsusb -t" output if the "xhci_hcd"
> USB kernel driver (a.k.a. "USB 3") is used.

thanks for your answer, it was easy to understand
and gives me a number of things I can try next.
(Which I will during the next days and report.)

> When your scanner is not connected at a USB port where the
> kernel module xhci_hcd is used as kernel driver 
[..]
> then have a look at "Trouble-Shooting (Debugging)" in
> https://en.opensuse.org/SDB:Configuring_Scanners

Thanks for pointing to this page, too. (I did search for
a page like this and however did not manage to find it.
Maybe a search entry point for all OpenSuse related
information easily reachable from https://www.opensuse.org/
would be helpful, I've looked for it there.)

Best Regards,
Bernhard
ps.: Is there a point where I can financially voluntarily pay 
 a small amount to you for this support you have given me.
 E.g. like a flattr.org item?


-- 
www.intevation.de/~bernhard (CEO)www.fsfe.org (Founding GA Member)
Intevation GmbH, Osnabrück, DE; Amtsgericht Osnabrück, HRB 18998
Geschäftsführer Frank Koormann, Bernhard Reiter, Dr. Jan-Oliver Wagner


signature.asc
Description: This is a digitally signed message part.
-- 
sane-devel mailing list: sane-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/sane-devel
Unsubscribe: Send mail with subject "unsubscribe your_password"
 to sane-devel-requ...@lists.alioth.debian.org

Re: [sane-devel] Xerox Workcentre 3225 support?

2016-03-21 Thread Johannes Meixner


Hello,

On Mar 20 00:17 Bernhard Reiter wrote (excerpt):

Xerox WorkCentre 3225 connected with USB.


In general when your scanner is connected via USB:

There are currently isues when the xhci kernel module
is used for USB ports where the scanner is connected.

Only "lsusb -t" will tell you what kernel module/driver
is actually used for the USB bus and port where
your scanner is connected to.

Check the "lsusb -t" output if the "xhci_hcd"
USB kernel driver (a.k.a. "USB 3") is used.

Neither the color nor what the port is labeled
on the computer is reliable regarding what
kernel driver is used for the port.

For example my testing machine has 4 USB ports,
two labeled with the "super speed" USB logo (a.k.a. USB 3)
and two labeled with the normal USB logo (a.k.a. USB 2)
but for all 4 ports xhci is used.

Furthermore all USB ports on my testing machine have
same dark color. Also the "super speed" (USB 3) labeled
ports are basically black. Their exact color is "very dark"
but not "100% black" and neither blue (USB 3.0) nor
teal blue (USB 3.1), cf.
https://en.wikipedia.org/wiki/USB#Colors

Only "lsusb -t" output shows what kernel driver is
actually used.

See
https://bugzilla.suse.com/show_bug.cgi?id=955079#c2
and
https://bugzilla.opensuse.org/show_bug.cgi?id=856794
in particular see
https://bugzilla.opensuse.org/show_bug.cgi?id=856794#c50

Regarding "USB 2" versus "USB 3" see also
http://lists.alioth.debian.org/pipermail/sane-devel/2015-December/034197.html
and
http://lists.alioth.debian.org/pipermail/sane-devel/2015-December/034207.html

In particular in
http://lists.alioth.debian.org/pipermail/sane-devel/2015-December/034197.html
there is:

When your scanner is not connected at a USB port where the
kernel module xhci_hcd is used as kernel driver (e.g. when
your scanner is connected at a USB port where the kernel
module uhci_hcd or ehci_hcd is used as kernel driver),
then have a look at "Trouble-Shooting (Debugging)" in
https://en.opensuse.org/SDB:Configuring_Scanners

For example to get USB debugging information
you could use comands (as root) like

export SANE_DEBUG_SANEI_USB=128
scanimage -L
unset SANE_DEBUG_SANEI_USB




Source RPM  : sane-backends-1.0.23-9.2.3.src.rpm


You may try out if the current sane-backends-1.0.25
perhaps works better.

For direct RPM download of sane-backends-1.0.25
from the OBS "graphics" project, use
http://download.opensuse.org/repositories/graphics/
and select your exact operating system and architecture.

In particular see
https://bugzilla.suse.com/show_bug.cgi?id=856794#c30
and subsequent comments.

The current sane-backends-1.0.25 RPM from the OBS "graphics"
project should no longer have issues with "libgphoto2" on
released openSUSE versions because meanwhile the gphoto2
backend was removed because its usefulness is highly
questionable, but adds many (indirect) build and runtime
dependencies, see the current RPM changelog:

https://build.opensuse.org/package/view_file/graphics/sane-backends/sane-backends.changes?expand=1


Kind Regards
Johannes Meixner
--
SUSE LINUX GmbH - GF: Felix Imendoerffer, Jane Smithard,
Graham Norton - HRB 21284 (AG Nuernberg)


--
sane-devel mailing list: sane-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/sane-devel
Unsubscribe: Send mail with subject "unsubscribe your_password"
to sane-devel-requ...@lists.alioth.debian.org


[sane-devel] Xerox Workcentre 3225 support?

2016-03-19 Thread Bernhard Reiter
Dear Sane-People,

on a machine I have access to 
is a Xerox WorkCentre 3225 connected with USB.

Printing works fine (with OpenSuse 13.1)
What can I do to make scanning work with sane?

I've added 
"usb 0x0924 0x42dc"  to /etc/sane.d/xerox_mfp.conf
but got not results. Selecting xerox_mfp on the yast2 scanner config,
it does not detect any scanners.

The following two commands do not find the scanner:
  scanimage -L 
  sane-find-scanner
(just the fingerprint scanner of the laptop, which is not interesting.)

In one attempt scanimage -L made the xerox device go out of sleep and even 
detected something. However this was only once I cound not repeat it or 
follow up.

scanimage -L
device `xerox_mfp:libusb:003:003' is a Xerox WorkCentre 3225 multi-
function peripheral

I've "rmmod usblp" for some of my attempts.
Browsing git I did not see many changes towards that xerox scanner.
The system still has
Source RPM  : sane-backends-1.0.23-9.2.3.src.rpm
Build Date  : Sa 28 Sep 2013 11:00:20 CEST

There also exists a Xerox driver for this model:
Xerox_WorkCentre_3225_Linux-Driver.tar.gz

Any hints how to get sane to work?

Best Regards,
Bernhard


lsusb
Bus 003 Device 003: ID 0924:42dc Xerox 

lsusb -d 0924:42dc -v
Bus 003 Device 003: ID 0924:42dc Xerox 
Device Descriptor:
  bLength18
  bDescriptorType 1
  bcdUSB   2.00
  bDeviceClass0 (Defined at Interface level)
  bDeviceSubClass 0 
  bDeviceProtocol 0 
  bMaxPacketSize064
  idVendor   0x0924 Xerox
  idProduct  0x42dc 
  bcdDevice1.00
  iManufacturer   1 Xerox
  iProduct2 WorkCentre 3225
  iSerial 3 3381141534
  bNumConfigurations  1
  Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength   55
bNumInterfaces  2
bConfigurationValue 1
iConfiguration  0 
bmAttributes 0xc0
  Self Powered
MaxPower2mA
Interface Descriptor:
  bLength 9
  bDescriptorType 4
  bInterfaceNumber0
  bAlternateSetting   0
  bNumEndpoints   2
  bInterfaceClass   255 Vendor Specific Class
  bInterfaceSubClass255 Vendor Specific Subclass
  bInterfaceProtocol255 Vendor Specific Protocol
  iInterface  0 
  Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x04  EP 4 OUT
bmAttributes2
  Transfer TypeBulk
  Synch Type   None
  Usage Type   Data
wMaxPacketSize 0x0200  1x 512 bytes
bInterval  10
  Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x83  EP 3 IN
bmAttributes2
  Transfer TypeBulk
  Synch Type   None
  Usage Type   Data
wMaxPacketSize 0x0200  1x 512 bytes
bInterval  10
Interface Descriptor:
  bLength 9
  bDescriptorType 4
  bInterfaceNumber1
  bAlternateSetting   0
  bNumEndpoints   2
  bInterfaceClass 7 Printer
  bInterfaceSubClass  1 Printer
  bInterfaceProtocol  2 Bidirectional
  iInterface  0 
  Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x02  EP 2 OUT
bmAttributes2
  Transfer TypeBulk
  Synch Type   None
  Usage Type   Data
wMaxPacketSize 0x0200  1x 512 bytes
bInterval  10
  Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x81  EP 1 IN
bmAttributes2
  Transfer TypeBulk
  Synch Type   None
  Usage Type   Data
wMaxPacketSize 0x0200  1x 512 bytes
bInterval  10
Device Qualifier (for other device speed):
  bLength10
  bDescriptorType 6
  bcdUSB   2.00
  bDeviceClass0 (Defined at Interface level)
  bDeviceSubClass 0 
  bDeviceProtocol 0 
  bMaxPacketSize064
  bNumConfigurations  1
Device Status: 0x0001
  Self Powered


-- 
www.intevation.de/~bernhard (CEO)www.fsfe.org (Founding GA Member)
Intevation GmbH, Osnabrück, DE; Amtsgericht Osnabrück, HRB 18998
Geschäftsführer Frank Koormann, Bernhard Reiter, Dr. Jan-Oliver Wagner

signature.asc
Description: This is a digitally signed message part.
-- 
sane-devel mailing list: sane-devel@lists.alioth.debian.org

[sane-devel] Xerox Workcentre 3225 support?

2016-03-19 Thread Bernhard Reiter
Dear Sane-People,

on a machine I have access to 
is a Xerox WorkCentre 3225 connected with USB.

Printing works fine (with OpenSuse 13.1)
What can I do to make scanning work with sane?

I've added 
"usb 0x0924 0x42dc"  to /etc/sane.d/xerox_mfp.conf
but got not results. Selecting xerox_mfp on the yast2 scanner config,
it does not detect any scanners.

The following two commands do not find the scanner:
  scanimage -L 
  sane-find-scanner
(just the fingerprint scanner of the laptop, which is not interesting.)

In one attempt scanimage -L made the xerox device go out of sleep and even 
detected something. However this was only once I cound not repeat it or 
follow up.

scanimage -L
device `xerox_mfp:libusb:003:003' is a Xerox WorkCentre 3225 multi-
function peripheral

I've "rmmod usblp" for some of my attempts.
Browsing git I did not see many changes towards that xerox scanner.
The system still has
Source RPM  : sane-backends-1.0.23-9.2.3.src.rpm
Build Date  : Sa 28 Sep 2013 11:00:20 CEST

There also exists a Xerox driver for this model:
Xerox_WorkCentre_3225_Linux-Driver.tar.gz

Any hints how to get sane to work?

Best Regards,
Bernhard


lsusb
Bus 003 Device 003: ID 0924:42dc Xerox 

lsusb -d 0924:42dc -v
Bus 003 Device 003: ID 0924:42dc Xerox 
Device Descriptor:
  bLength18
  bDescriptorType 1
  bcdUSB   2.00
  bDeviceClass0 (Defined at Interface level)
  bDeviceSubClass 0 
  bDeviceProtocol 0 
  bMaxPacketSize064
  idVendor   0x0924 Xerox
  idProduct  0x42dc 
  bcdDevice1.00
  iManufacturer   1 Xerox
  iProduct2 WorkCentre 3225
  iSerial 3 3381141534
  bNumConfigurations  1
  Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength   55
bNumInterfaces  2
bConfigurationValue 1
iConfiguration  0 
bmAttributes 0xc0
  Self Powered
MaxPower2mA
Interface Descriptor:
  bLength 9
  bDescriptorType 4
  bInterfaceNumber0
  bAlternateSetting   0
  bNumEndpoints   2
  bInterfaceClass   255 Vendor Specific Class
  bInterfaceSubClass255 Vendor Specific Subclass
  bInterfaceProtocol255 Vendor Specific Protocol
  iInterface  0 
  Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x04  EP 4 OUT
bmAttributes2
  Transfer TypeBulk
  Synch Type   None
  Usage Type   Data
wMaxPacketSize 0x0200  1x 512 bytes
bInterval  10
  Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x83  EP 3 IN
bmAttributes2
  Transfer TypeBulk
  Synch Type   None
  Usage Type   Data
wMaxPacketSize 0x0200  1x 512 bytes
bInterval  10
Interface Descriptor:
  bLength 9
  bDescriptorType 4
  bInterfaceNumber1
  bAlternateSetting   0
  bNumEndpoints   2
  bInterfaceClass 7 Printer
  bInterfaceSubClass  1 Printer
  bInterfaceProtocol  2 Bidirectional
  iInterface  0 
  Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x02  EP 2 OUT
bmAttributes2
  Transfer TypeBulk
  Synch Type   None
  Usage Type   Data
wMaxPacketSize 0x0200  1x 512 bytes
bInterval  10
  Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x81  EP 1 IN
bmAttributes2
  Transfer TypeBulk
  Synch Type   None
  Usage Type   Data
wMaxPacketSize 0x0200  1x 512 bytes
bInterval  10
Device Qualifier (for other device speed):
  bLength10
  bDescriptorType 6
  bcdUSB   2.00
  bDeviceClass0 (Defined at Interface level)
  bDeviceSubClass 0 
  bDeviceProtocol 0 
  bMaxPacketSize064
  bNumConfigurations  1
Device Status: 0x0001
  Self Powered


-- 
www.intevation.de/~bernhard (CEO)www.fsfe.org (Founding GA Member)
Intevation GmbH, Osnabrück, DE; Amtsgericht Osnabrück, HRB 18998
Geschäftsführer Frank Koormann, Bernhard Reiter, Dr. Jan-Oliver Wagner

signature.asc
Description: This is a digitally signed message part.
-- 
sane-devel mailing list: sane-devel@lists.alioth.debian.org