Hi,
My scanner also stopped working somewhere around 6.0 I think. I didn't need it since then and therefore didn't bother to file a bug report (I know...).
Don't know if it's the same root cause, but mine looks like a USB stack problem (?).
Note: This is a Dell Optiplex 3020, that has the XHCI problem mentioned by someone in 2015 (hangs during boot); I have to disable the xhci device in the kernel in to boot (full dmesg at the end).
(see https://marc.info/?l=openbsd-misc&m=143442925331480)
dmesg:
ugen0 at uhub4 port 2 "Hewlett-Packard hp scanjet scanner" rev 2.00/3.05 addr 5
usbdevs:
addr 1: high speed, self powered, config 1, EHCI root hub(0x0000), Intel(0x8086), rev 1.00
port 1 addr 2: high speed, self powered, config 1, Rate Matching Hub(0x8000), Intel(0x8087), rev 0.04
port 1 powered
port 2 addr 5: high speed, self powered, config 1, hp scanjet scanner(0x1805), Hewlett-Packard(0x03f0), rev 3.05
scanimage -L
device `hp5590:libusb:001:005' is a HP 7650 Document scanner
xsane reports this when I try to scan something:
$ xsane
Xlib: extension "RANDR" missing on display ":0.0".
[hp5590] hp5590_control_msg: USB-in-USB: error sending control message
[hp5590] hp5590_control_msg: USB-in-USB: error sending control message
[hp5590] hp5590_control_msg: USB-in-USB: error sending control message
If I connect a USB 2.0 hub in between, then this happens:
scanimage -L
[hp5590] hp5590_get_ack: USB-in-USB: not accepted (status 0)
usbdevs:
Controller /dev/usb0:
addr 1: high speed, self powered, config 1, EHCI root hub(0x0000), Intel(0x8086), rev 1.00
port 1 addr 2: high speed, self powered, config 1, Rate Matching Hub(0x8008), Intel(0x8087), rev 0.04
port 1 addr 3: high speed, self powered, config 1, USB2.0 Hub(0x0606), Genesys Logic(0x05e3), rev 7.02
port 1 powered
port 2 powered
port 3 powered
port 4 addr 5: high speed, self powered, config 1, hp scanjet scanner(0x1805), Hewlett-Packard(0x03f0), rev 3.05
full dmesg:
OpenBSD 6.2-current (GENERIC.MP) #305: Thu Dec 21 14:53:41 MST 2017
***@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP
real mem = 17113550848 (16320MB)
avail mem = 16587972608 (15819MB)
mpath0 at root
scsibus0 at mpath0: 256 targets
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.7 @ 0xec380 (81 entries)
bios0: vendor Dell Inc. version "A15" date 02/15/2017
bios0: Dell Inc. OptiPlex 3020
acpi0 at bios0: rev 2
acpi0: sleep states S0 S3 S4 S5
acpi0: tables DSDT FACP APIC FPDT SLIC SSDT SSDT SSDT HPET SSDT MCFG SSDT
acpi0: wakeup devices PXSX(S4) RP01(S4) PXSX(S4) PXSX(S4) PXSX(S4) RP04(S4) PXSX(S4) RP05(S4) PXSX(S4) RP06(S4) PXSX(S4) PXSX(S4) GLAN(S4) EHC1(S0) EHC2(S0) XHC_(S0) [...]
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpimadt0 at acpi0 addr 0xfee00000: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: Intel(R) Core(TM) i5-4590 CPU @ 3.30GHz, 3492.43 MHz
cpu0: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,SDBG,FMA3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,MOVBE,POPCNT,DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,NXE,PAGE1GB,RDTSCP,LONG,LAHF,ABM,PERF,ITSC,FSGSBASE,BMI1,AVX2,SMEP,BMI2,ERMS,INVPCID,SENSOR,ARAT
cpu0: 256KB 64b/line 8-way L2 cache
acpitimer0: recalibrated TSC frequency 3292393277 Hz
cpu0: smt 0, core 0, package 0
mtrr: Pentium Pro MTRR support, 10 var ranges, 88 fixed ranges
cpu0: apic clock running at 99MHz
cpu0: mwait min=64, max=64, C-substates=0.2.1.2.4, IBE
cpu1 at mainbus0: apid 2 (application processor)
cpu1: Intel(R) Core(TM) i5-4590 CPU @ 3.30GHz, 3491.92 MHz
cpu1: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,SDBG,FMA3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,MOVBE,POPCNT,DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,NXE,PAGE1GB,RDTSCP,LONG,LAHF,ABM,PERF,ITSC,FSGSBASE,BMI1,AVX2,SMEP,BMI2,ERMS,INVPCID,SENSOR,ARAT
cpu1: 256KB 64b/line 8-way L2 cache
cpu1: smt 0, core 1, package 0
cpu2 at mainbus0: apid 4 (application processor)
cpu2: Intel(R) Core(TM) i5-4590 CPU @ 3.30GHz, 3491.92 MHz
cpu2: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,SDBG,FMA3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,MOVBE,POPCNT,DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,NXE,PAGE1GB,RDTSCP,LONG,LAHF,ABM,PERF,ITSC,FSGSBASE,BMI1,AVX2,SMEP,BMI2,ERMS,INVPCID,SENSOR,ARAT
cpu2: 256KB 64b/line 8-way L2 cache
cpu2: smt 0, core 2, package 0
cpu3 at mainbus0: apid 6 (application processor)
cpu3: Intel(R) Core(TM) i5-4590 CPU @ 3.30GHz, 3491.92 MHz
cpu3: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,SDBG,FMA3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,MOVBE,POPCNT,DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,NXE,PAGE1GB,RDTSCP,LONG,LAHF,ABM,PERF,ITSC,FSGSBASE,BMI1,AVX2,SMEP,BMI2,ERMS,INVPCID,SENSOR,ARAT
cpu3: 256KB 64b/line 8-way L2 cache
cpu3: smt 0, core 3, package 0
ioapic0 at mainbus0: apid 8 pa 0xfec00000, version 20, 24 pins
acpihpet0 at acpi0: 14318179 Hz
acpihpet0: recalibrated TSC frequency 3292363126 Hz
acpimcfg0 at acpi0 addr 0xf8000000, bus 0-63
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus 2 (RP01)
acpiprt2 at acpi0: bus 3 (RP04)
acpiprt3 at acpi0: bus 4 (RP05)
acpiprt4 at acpi0: bus 5 (RP06)
acpiprt5 at acpi0: bus 1 (PEG0)
acpiprt6 at acpi0: bus -1 (PEG1)
acpiprt7 at acpi0: bus -1 (PEG2)
acpiec0 at acpi0: not present
acpicpu0 at acpi0: C2(***@148 ***@0x33), C1(***@1 mwait.1), PSS
acpicpu1 at acpi0: C2(***@148 ***@0x33), C1(***@1 mwait.1), PSS
acpicpu2 at acpi0: C2(***@148 ***@0x33), C1(***@1 mwait.1), PSS
acpicpu3 at acpi0: C2(***@148 ***@0x33), C1(***@1 mwait.1), PSS
acpipwrres0 at acpi0: FN00, resource for FAN0
acpipwrres1 at acpi0: FN01, resource for FAN1
acpipwrres2 at acpi0: FN02, resource for FAN2
acpipwrres3 at acpi0: FN03, resource for FAN3
acpipwrres4 at acpi0: FN04, resource for FAN4
acpitz0 at acpi0: critical temperature is 105 degC
acpitz1 at acpi0: critical temperature is 105 degC
"INT3F0D" at acpi0 not configured
acpibtn0 at acpi0: PWRB
"PNP0C14" at acpi0 not configured
"PNP0C0B" at acpi0 not configured
"PNP0C0B" at acpi0 not configured
"PNP0C0B" at acpi0 not configured
"PNP0C0B" at acpi0 not configured
"PNP0C0B" at acpi0 not configured
acpivideo0 at acpi0: GFX0
acpivout0 at acpivideo0: DD1F
cpu0: Enhanced SpeedStep 3492 MHz: speeds: 3301, 3300, 3100, 2900, 2800, 2600, 2400, 2200, 2000, 1900, 1700, 1500, 1300, 1200, 1000, 800 MHz
pci0 at mainbus0 bus 0
pchb0 at pci0 dev 0 function 0 "Intel Core 4G Host" rev 0x06
ppb0 at pci0 dev 1 function 0 "Intel Core 4G PCIE" rev 0x06: msi
pci1 at ppb0 bus 1
radeondrm0 at pci1 dev 0 function 0 "ATI Radeon HD 7750" rev 0x00
drm0 at radeondrm0
radeondrm0: msi
azalia0 at pci1 dev 0 function 1 vendor "ATI", unknown product 0xaab0 rev 0x00: msi
azalia0: no supported codecs
"Intel 8 Series xHCI" rev 0x04 at pci0 dev 20 function 0 not configured
"Intel 8 Series MEI" rev 0x04 at pci0 dev 22 function 0 not configured
ehci0 at pci0 dev 26 function 0 "Intel 8 Series USB" rev 0x04: apic 8 int 16
usb0 at ehci0: USB revision 2.0
uhub0 at usb0 configuration 1 interface 0 "Intel EHCI root hub" rev 2.00/1.00 addr 1
ppb1 at pci0 dev 28 function 0 "Intel 8 Series PCIE" rev 0xd4: msi
pci2 at ppb1 bus 2
ppb2 at pci0 dev 28 function 3 "Intel 8 Series PCIE" rev 0xd4: msi
pci3 at ppb2 bus 3
re0 at pci3 dev 0 function 0 "Realtek 8168" rev 0x0c: RTL8168G/8111G (0x4c00), msi, address f8:bc:12:9e:dd:36
rgephy0 at re0 phy 7: RTL8251 PHY, rev. 0
ppb3 at pci0 dev 28 function 4 "Intel 8 Series PCIE" rev 0xd4: msi
pci4 at ppb3 bus 4
em0 at pci4 dev 0 function 0 "Intel 82574L" rev 0x00: msi, address 68:05:ca:2b:52:0c
ppb4 at pci0 dev 28 function 5 "Intel 8 Series PCIE" rev 0xd4: msi
pci5 at ppb4 bus 5
em1 at pci5 dev 0 function 0 "Intel 82574L" rev 0x00: msi, address 68:05:ca:2b:2b:cf
ehci1 at pci0 dev 29 function 0 "Intel 8 Series USB" rev 0x04: apic 8 int 23
usb1 at ehci1: USB revision 2.0
uhub1 at usb1 configuration 1 interface 0 "Intel EHCI root hub" rev 2.00/1.00 addr 1
pcib0 at pci0 dev 31 function 0 "Intel H81 LPC" rev 0x04
ahci0 at pci0 dev 31 function 2 "Intel 8 Series AHCI" rev 0x04: msi, AHCI 1.3
ahci0: port 0: 6.0Gb/s
ahci0: port 5: 1.5Gb/s
scsibus1 at ahci0: 32 targets
sd0 at scsibus1 targ 0 lun 0: <ATA, Samsung SSD 850, EXM0> SCSI3 0/direct fixed naa.500253887000c4c1
sd0: 122104MB, 512 bytes/sector, 250069680 sectors, thin
cd0 at scsibus1 targ 5 lun 0: <HL-DT-ST, DVD+-RW GHB0N, A100> ATAPI 5/cdrom removable
ichiic0 at pci0 dev 31 function 3 "Intel 8 Series SMBus" rev 0x04: apic 8 int 18
iic0 at ichiic0
spdmem0 at iic0 addr 0x50: 8GB DDR3 SDRAM PC3-12800
spdmem1 at iic0 addr 0x52: 8GB DDR3 SDRAM PC3-12800
isa0 at pcib0
isadma0 at isa0
pckbc0 at isa0 port 0x60/5 irq 1 irq 12
pckbd0 at pckbc0 (kbd slot)
wskbd0 at pckbd0: console keyboard
pcppi0 at isa0 port 0x61
spkr0 at pcppi0
vmm0 at mainbus0: VMX/EPT
uhub2 at uhub0 port 1 configuration 1 interface 0 "Intel Rate Matching Hub" rev 2.00/0.04 addr 2
uhub3 at uhub2 port 1 configuration 1 interface 0 "Genesys Logic USB2.0 Hub" rev 2.00/7.02 addr 3
uaudio0 at uhub2 port 2 configuration 1 interface 0 "Creative Technology Ltd Sound Blaster Play! 2" rev 2.00/10.01 addr 4
uaudio0: audio rev 1.00, 6 mixer controls
audio0 at uaudio0
uhidev0 at uhub2 port 2 configuration 1 interface 3 "Creative Technology Ltd Sound Blaster Play! 2" rev 2.00/10.01 addr 4
uhidev0: iclass 3/0, 9 report ids
uhid0 at uhidev0 reportid 1: input=1, output=0, feature=0
uhid1 at uhidev0 reportid 2: input=2, output=1, feature=0
uhid2 at uhidev0 reportid 8: input=0, output=5, feature=0
uhid3 at uhidev0 reportid 9: input=2, output=0, feature=0
uhub4 at uhub1 port 1 configuration 1 interface 0 "Intel Rate Matching Hub" rev 2.00/0.04 addr 2
uhidev1 at uhub4 port 3 configuration 1 interface 0 "Cherry Mikroschalter product 0x010d" rev 2.00/1.00 addr 3
uhidev1: iclass 3/1
ukbd0 at uhidev1: 8 variable keys, 6 key codes
wskbd1 at ukbd0 mux 1
uhidev2 at uhub4 port 3 configuration 1 interface 1 "Cherry Mikroschalter product 0x010d" rev 2.00/1.00 addr 3
uhidev2: iclass 3/0
uhid4 at uhidev2: input=2, output=0, feature=0
uhidev3 at uhub4 port 4 configuration 1 interface 0 "SIGMACHIP Usb Mouse" rev 1.10/1.10 addr 4
uhidev3: iclass 3/1
ums0 at uhidev3: 5 buttons, Z dir
wsmouse0 at ums0 mux 0
vscsi0 at root
scsibus2 at vscsi0: 256 targets
softraid0 at root
scsibus3 at softraid0: 256 targets
sd1 at scsibus3 targ 1 lun 0: <OPENBSD, SR CRYPTO, 006> SCSI2 0/direct fixed
sd1: 102406MB, 512 bytes/sector, 209727983 sectors
root on sd1a (1ccccccccccccccc.a) swap on sd1b dump on sd1b
radeondrm0: 1024x768, 32bpp
wsdisplay0 at radeondrm0 mux 1: console (std, vt100 emulation), using wskbd0
wskbd1: connecting to wsdisplay0
wsdisplay0: screen 1-5 added (std, vt100 emulation)
On Fri, 19 Jan 2018 18:32:08 +0100
Post by Juan Francisco Cantero HurtadoSame problem with a Canon LiDE 200.
Post by Base Pr1meDid you give your userland user/group permissions to use the uhub/ugen
device?
I even ran the programs as root.
Post by Base Pr1mePost by Anthony J. BentleyPost by Bryan LintonI'm currently looking to purchase a scanner that works well with OpenBSD.
http://www.sane-project.org/sane-mfgs.html
but I recently purchased (and returned) a scanner that was listed as
being
Post by Bryan Lintonfully supported on that list because no matter what I did, I couldn't
get it to work right with xsane or scanimage. Though I purchased it
used,
Post by Bryan Lintonso it's possible it may have simply been broken from the get-go.
Does anyone happen to know of a scanner that is *known* to work well
with OpenBSD?
Well, I just bought a CanoScan 9000F MkII specifically because it was
marked as fully supported on that list, and I can say it does NOT work
on OpenBSD; scanimage -L detects it just fine but attempting to scan
gives an I/O error. As a workaround I plugged it into a Linux laptop,
started saned, and scan seamlessly from OpenBSD with scanimage's network
support, until I find the time to make a proper bug report.
In the past I used a CanoScan LiDE 20 quite regularly from OpenBSD, but
that was several years ago.
--
Juan Francisco Cantero Hurtado http://juanfra.info