You are not logged in.

#1 2016-09-18 07:00:16

deisi
Member
Registered: 2015-10-21
Posts: 66

Panasonic Scanner with sane

Hey Guys.

I have a MFP from Panasonic. I can already Print using their driver and when I attach it to my ArchLinux Laptop, I can also Scan.
However, when I try to set up the same with my Arch Linux server, I can only Print but not Scan (both x86 systems). The fact, that
it works on the laptop tells me, that it should not be the driver itself (Its only meant for ubuntu and redhat).

I know, in the past, I had already played around with sane on the server. So I moved /etc/sane.d and reinstalled to get back to the default
config, but that didn't help either. Any suggestions what could be different between the two systems and where else to look?
Does sane save some configs somewhere else then /etc/sane.d.

Cheers

Offline

#2 2016-09-18 14:35:32

mcloaked
Member
From: Yorkshire, UK
Registered: 2012-02-02
Posts: 1,238

Re: Panasonic Scanner with sane

Any chance you are connecting to a usb 2.0 port when it works and to a usb 3.0 port when it doesn't?  If so then it is a known issue with scanners using sane failing to work when connected to a usb 3.0 port - as far as I know that issue remains unresolved.


Mike C

Offline

#3 2016-09-18 16:07:50

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 19,774

Re: Panasonic Scanner with sane

Anything interesting in the journal when you attach the scanner?
What programs are you using to scan?
What are the output of those commands?  (For example, what is the output of scanimage -L  ?)


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

#4 2016-09-19 05:13:04

deisi
Member
Registered: 2015-10-21
Posts: 66

Re: Panasonic Scanner with sane

mcloaked wrote:

Any chance you are connecting to a usb 2.0 port when it works and to a usb 3.0 port when it doesn't?

Double checked it, but its not the case.

ewaller wrote:

Anything interesting in the journal when you attach the scanner?

dmesg

79905.407918] usb 2-1: new SuperSpeed USB device number 4 using xhci_hcd
[79905.431486] hub 2-1:1.0: USB hub found
[79905.431816] hub 2-1:1.0: 4 ports detected
[79905.457483] usb 1-1: new high-speed USB device number 27 using xhci_hcd
[79905.601289] hub 1-1:1.0: USB hub found
[79905.601725] hub 1-1:1.0: 4 ports detected
[79905.717832] usb 2-1.4: new SuperSpeed USB device number 5 using xhci_hcd
[79905.740620] hub 2-1.4:1.0: USB hub found
[79905.741023] hub 2-1.4:1.0: 2 ports detected
[79905.877405] usb 1-1.4: new high-speed USB device number 28 using xhci_hcd
[79905.981118] hub 1-1.4:1.0: USB hub found
[79905.981536] hub 1-1.4:1.0: 2 ports detected
[80091.538564] usb 1-2.4: USB disconnect, device number 26
[80098.201807] usb 1-2.4: new high-speed USB device number 29 using xhci_hcd
[80098.309568] usblp 1-2.4:1.1: usblp1: USB Unidirectional printer dev 29 if 1 alt 0 proto 1 vid 0x04DA pid 0x0E55
[80140.670717] usb usb4: root hub lost power or was reset
[80140.670735] usb usb5: root hub lost power or was reset
[80141.670274] usb usb4: root hub lost power or was reset

Because of the usb usb4: root hub lost power or was reset I also tried a third USB port. Now these messages are gone and dmesg shows:

dmesg

[80951.936173] usb 1-2.4: USB disconnect, device number 30
[80951.937066] usblp1: removed
[80972.229970] usb 1-1.4.2: new high-speed USB device number 31 using xhci_hcd
[80972.339204] usblp 1-1.4.2:1.1: usblp1: USB Unidirectional printer dev 31 if 1 alt 0 proto 1 vid 0x04DA pid 0x0E55

still no difference for the rest.


journalctl

Sep 19 07:02:05 serv kernel: usb 1-2.4: new high-speed USB device number 30 using xhci_hcd
Sep 19 07:02:05 serv kernel: usblp 1-2.4:1.1: usblp1: USB Unidirectional printer dev 30 if 1 alt 0 proto 1 vid 0x04DA pid 0x0E55
Sep 19 07:02:05 serv mtp-probe[13973]: checking bus 1, device 30: "/sys/devices/pci0000:00/0000:00:10.0/usb1/1-2/1-2.4"
Sep 19 07:02:05 serv mtp-probe[13973]: bus: 1, device: 30 was not an MTP device
Sep 19 07:02:05 serv systemd[1]: local-fs.target: Cannot add dependency job, ignoring: Cannot send after transport endpoint shutdown
Sep 19 07:02:05 serv systemd[1]: Reached target Printer.
-- Subject: Unit printer.target has finished start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- 
-- Unit printer.target has finished starting up.
-- 
-- The start-up result is done.
lsusb

Bus 001 Device 030: ID 04da:0e55 Panasonic (Matsushita) 
sudo scanimage -L

device `v4l:/dev/video0' is a Noname USB 2.0 Camera virtual device
sudo sane-find-scanner

  # sane-find-scanner will now attempt to detect your scanner. If the
  # result is different from what you expected, first make sure your
  # scanner is powered up and properly connected to your computer.

  # No SCSI scanners found. If you expected something different, make sure that
  # you have loaded a kernel SCSI driver for your SCSI adapter.
  # Also you need support for SCSI Generic (sg) in your operating system.
  # If using Linux, try "modprobe sg".

could not fetch string descriptor: Pipe error
  # No USB scanners found. If you expected something different, make sure that
  # you have loaded a kernel driver for your USB host controller and have setup
  # the USB system correctly. See man sane-usb for details.

  # Not checking for parallel port scanners.

  # Most Scanners connected to the parallel port or other proprietary ports
  # can't be detected by this program.

I don't see anything interesting there.

Offline

#5 2016-09-19 15:06:54

mcloaked
Member
From: Yorkshire, UK
Registered: 2012-02-02
Posts: 1,238

Re: Panasonic Scanner with sane

In your logs I see lines showing xhci_hcd - and that means it is usb 3.0 - do you have corresponding logs for the machine where it works?   I explored this extensively on my machine a year or so back and in every case where a scanner was connected to a usb port using xhci_hcd it had problems with scanning using sane. I also spent quite a few weeks putting in diagnostics for the sane devel group for my machines and as far as I know it was not possible to understand how the problem with usb 3.0 could be fixed.  As far as I am aware the only solution for me was either to switch the usb port concerned to using ehci_hcd ( in BIOS) which means it drops back to usb 2.0 only (maybe it is also possible to tell the system to do so after or during boot but I don't know how to do that) - or to use a usb port that is only supported at usb version 2.0, and not at the faster speed, or to try using an external usb hub that only supports usb 2.0.  In the past year or so a few scanners and MFPs have become available that have usb 3.0 connection ports, and those may well work without issue on sane though I have not bought one yet.  On my own MFP which has ethernet networking in addition to usb connection I ended up using the ethernet port to run the scanner which worked fine in my case as I could never find a solution to this usb 3.0 problem - if anyone knows how to work around that I would be delighted to hear about it!

Anyway hope these comments might help a little. You can certainly find the threads about the issues with scanners and usb 3.0 with a quick search.


Mike C

Offline

#6 2016-09-20 05:37:30

deisi
Member
Registered: 2015-10-21
Posts: 66

Re: Panasonic Scanner with sane

hmm...
I still don't think its USB3 problem, because I also tried using USBIP, where I had the MFP hooked up to a Raspberrypi2 and then passed through the device to my x86 pc. And I saw the exact same behavior. Anyhow, I will try all my USB port to make sure, thanks for the information about the USB3 problem.

Offline

Board footer

Powered by FluxBB