Usb passthrough scanner

TerribleSense

New Member
Dec 13, 2022
2
0
1
Hi all,

I am trying to build a Debian VM as a printer/scanner server using a usb connected Samsung SCX-4300. The printer part works via CUPS flawlessly but there seems to be an issue with the SANE side of scanning. After fresh reboot the first time i run:
Code:
# scanimage -L
device `xerox_mfp:libusb:002:002' is a SAMSUNG ORION multi-function peripheral

but the second and all other atempts return:
Code:
# scanimage -L
No scanners were identified. If you were expecting something different,
check that the scanner is plugged in, turned on and detected by the
sane-find-scanner tool (if appropriate). Please read the documentation
which came with this software (README, FAQ, manpages)

the lsusb shows the multifunctional device connected
Code:
# lsusb  h
Bus 003 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 002 Device 002: ID 04e8:342e Samsung Electronics Co., Ltd SCX-4300 Series
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 002: ID 0627:0001 Adomax Technology Co., Ltd QEMU USB Tablet
Bus 001 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub

I have tried with usb3 option enabled and disabled

Code:
usb0: host=04e8:342e,usb3=1

I have also created a fresh VM with current stable release of Fedora, and just did the initial update/upgrade + install sane. Same problem.
If I connect the printer/scanner directly to a different computer the scanning option works. Therefore I think there must be something wrong with my Proxmox setup.

Please advise
 
Therefore I think there must be something wrong with my Proxmox setup.
I don't think so.
It could be that your Samsung defaults to printing and switches to scanmode when triggered, but does not switch back (on usb passthrough). That would explain your working first access, but never a second.
table release of Fedora, and just did the initial update/upgrade + install sane. Same problem.
This speaks also for that.

Try changing vendorid vs usb port passthrough (attachment), maybe this gives another result.

Last idea would be pci passthrough of a whole usb3-controller (if your mobo has this) and then plugin the Samsung there.
 

Attachments

  • usb.png
    usb.png
    26.7 KB · Views: 7
Last edited:
  • Like
Reactions: TerribleSense
  1. I changed the passthrough to the port setting without success.
  2. I removed the usb-passthrough and enabled the passthrough of the entire pci usb controller. Now it works, both locally and as a network shared device!
Been struggling for weeks with this. Thanks!
 
Nice ;)
This is always the best method for struggle with USB devices. The downside is if your mobo only has one controller, you'll 'lose' all of the usb-ports wired to that to the VM.

If you need another one and have a spare PCIE-Slot, you could use one with a VIA VL805 chip.

Code:
05:00.0 USB controller [0c03]: VIA Technologies, Inc. VL805 USB 3.0 Host Controller [1106:3483] (rev 01) (prog-if 30 [XHCI])
    Subsystem: VIA Technologies, Inc. VL805 USB 3.0 Host Controller [1106:3483]
    Flags: bus master, fast devsel, latency 0, IRQ 157, NUMA node 0, IOMMU group 15
    Memory at fceff000 (64-bit, non-prefetchable) [size=4K]
    Capabilities: [80] Power Management version 3
    Capabilities: [90] MSI: Enable+ Count=1/4 Maskable- 64bit+
    Capabilities: [c4] Express Endpoint, MSI 00
    Capabilities: [100] Advanced Error Reporting
    Kernel driver in use: vfio-pci
    Kernel modules: xhci_pci
 
Last edited: