( Solved ) Yet another scanning problem

Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Post Reply
Danbor
Level 2
Level 2
Posts: 74
Joined: Fri Dec 09, 2022 1:45 pm

( Solved ) Yet another scanning problem

Post by Danbor »

I've been trying to troubleshoot this problem for days now with no success. I've followed more threads than I can remember but none have solved the issue. And the issue, like so many, is, HP printer works fine but attempting to use Sane, Xsane, or Airscan all result in the dreaded "Failed to start scanner: Error during device I/O" message.
Below is the Inxii and output from a couple of commands I thought might help. If you need more info just let me know.

Code: Select all

[code]
System:
  Kernel: 6.5.0-26-generic x86_64 bits: 64 compiler: N/A Desktop: Cinnamon 6.0.4 tk: GTK 3.24.33
    wm: muffin vt: 7 dm: LightDM 1.30.0 Distro: Linux Mint 21.3 Virginia base: Ubuntu 22.04 jammy
Machine:
  Type: Desktop System: Micro-Star product: MS-7C91 v: 1.0 serial: <superuser required>
  Mobo: Micro-Star model: MAG B550 TOMAHAWK MAX WIFI (MS-7C91) v: 1.0
    serial: <superuser required> UEFI: American Megatrends LLC. v: 2.20 date: 08/30/2022
Battery:
  Device-1: hidpp_battery_0 model: Logitech Wireless Keyboard serial: <filter>
    charge: 50% (should be ignored) rechargeable: yes status: N/A
CPU:
  Info: 16-core model: AMD Ryzen 9 5950X bits: 64 type: MT MCP smt: enabled arch: Zen 3 rev: 2
    cache: L1: 1024 KiB L2: 8 MiB L3: 64 MiB
  Speed (MHz): avg: 2819 high: 4719 min/max: 2200/5083 boost: enabled cores: 1: 2200 2: 3752
    3: 2200 4: 3759 5: 2200 6: 3400 7: 2200 8: 2200 9: 2200 10: 2880 11: 3400 12: 2880 13: 3400
    14: 2200 15: 2200 16: 2200 17: 2200 18: 3400 19: 3400 20: 2200 21: 3400 22: 4719 23: 2200
    24: 3400 25: 2879 26: 2887 27: 3400 28: 2881 29: 2200 30: 2200 31: 2200 32: 3400
    bogomips: 217606
  Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm
Graphics:
  Device-1: AMD Lexa PRO [Radeon 540/540X/550/550X / RX 540X/550/550X] driver: amdgpu v: kernel
    pcie: speed: 8 GT/s lanes: 8 ports: active: DP-1,HDMI-A-1 empty: DVI-D-1 bus-ID: 2b:00.0
    chip-ID: 1002:699f class-ID: 0300
  Device-2: Logitech C922 Pro Stream Webcam type: USB driver: snd-usb-audio,uvcvideo
    bus-ID: 3-3:3 chip-ID: 046d:085c class-ID: 0102 serial: <filter>
  Display: x11 server: X.Org v: 1.21.1.4 driver: X: loaded: amdgpu,ati
    unloaded: fbdev,modesetting,vesa gpu: amdgpu display-ID: :0 screens: 1
  Screen-1: 0 s-res: 3840x1080 s-dpi: 96 s-size: 1016x285mm (40.0x11.2") s-diag: 1055mm (41.5")
  Monitor-1: DisplayPort-0 mapped: DP-1 pos: primary,left model: VGA TO HDMI serial: <filter>
    res: 1920x1080 hz: 60 dpi: 96 size: 509x286mm (20.0x11.3") diag: 584mm (23") modes:
    max: 1920x1080 min: 640x480
  Monitor-2: HDMI-A-0 mapped: HDMI-A-1 pos: right model: Samsung LF27T35 serial: <filter>
    res: 1920x1080 hz: 60 dpi: 82 size: 598x337mm (23.5x13.3") diag: 686mm (27") modes:
    max: 1920x1080 min: 720x400
  OpenGL:
    renderer: AMD Radeon RX 550 / 550 Series (polaris12 LLVM 15.0.7 DRM 3.54 6.5.0-26-generic)
    v: 4.6 Mesa 23.2.1-1ubuntu3.1~22.04.2 direct render: Yes
Audio:
  Device-1: AMD Baffin HDMI/DP Audio [Radeon RX 550 640SP / 560/560X] driver: snd_hda_intel
    v: kernel pcie: speed: 8 GT/s lanes: 8 bus-ID: 2b:00.1 chip-ID: 1002:aae0 class-ID: 0403
  Device-2: AMD Starship/Matisse HD Audio vendor: Micro-Star MSI driver: snd_hda_intel v: kernel
    pcie: speed: 16 GT/s lanes: 16 bus-ID: 2d:00.4 chip-ID: 1022:1487 class-ID: 0403
  Device-3: Logitech C922 Pro Stream Webcam type: USB driver: snd-usb-audio,uvcvideo
    bus-ID: 3-3:3 chip-ID: 046d:085c class-ID: 0102 serial: <filter>
  Sound Server-1: ALSA v: k6.5.0-26-generic running: yes
  Sound Server-2: PulseAudio v: 15.99.1 running: yes
  Sound Server-3: PipeWire v: 0.3.48 running: yes
Network:
  Device-1: MEDIATEK driver: mt7921e v: kernel pcie: speed: 5 GT/s lanes: 1 port: N/A
    bus-ID: 29:00.0 chip-ID: 14c3:0608 class-ID: 0280
  IF: wlo1 state: up mac: <filter>
  Device-2: Realtek RTL8125 2.5GbE vendor: Micro-Star MSI driver: r8169 v: kernel pcie:
    speed: 5 GT/s lanes: 1 port: f000 bus-ID: 2a:00.0 chip-ID: 10ec:8125 class-ID: 0200
  IF: enp42s0 state: down mac: <filter>
  IF-ID-1: nordlynx state: unknown speed: N/A duplex: N/A mac: N/A
Bluetooth:
  Device-1: MediaTek Wireless_Device type: USB driver: btusb v: 0.8 bus-ID: 1-9:9
    chip-ID: 0e8d:0608 class-ID: e001 serial: <filter>
  Report: hciconfig ID: hci0 rfk-id: 0 state: up address: <filter> bt-v: 3.0 lmp-v: 5.2
    sub-v: 2202 hci-v: 5.2 rev: 915
Drives:
  Local Storage: total: 1.82 TiB used: 282.85 GiB (15.2%)
  ID-1: /dev/nvme0n1 vendor: Samsung model: SSD 970 EVO Plus 1TB size: 931.51 GiB
    speed: 31.6 Gb/s lanes: 4 type: SSD serial: <filter> rev: 2B2QEXM7 temp: 38.9 C scheme: GPT
  ID-2: /dev/nvme1n1 vendor: Samsung model: SSD 970 EVO Plus 1TB size: 931.51 GiB
    speed: 31.6 Gb/s lanes: 4 type: SSD serial: <filter> rev: 3B2QEXM7 temp: 30.9 C scheme: GPT
Partition:
  ID-1: / size: 182.28 GiB used: 13.31 GiB (7.3%) fs: ext4 dev: /dev/nvme0n1p2
  ID-2: /boot/efi size: 92.5 MiB used: 6 MiB (6.5%) fs: vfat dev: /dev/nvme0n1p1
  ID-3: /home size: 717.72 GiB used: 86.14 GiB (12.0%) fs: ext4 dev: /dev/nvme0n1p4
Swap:
  ID-1: swap-1 type: partition size: 14.9 GiB used: 0 KiB (0.0%) priority: -2 dev: /dev/nvme0n1p3
USB:
  Hub-1: 1-0:1 info: Hi-speed hub with single TT ports: 10 rev: 2.0 speed: 480 Mb/s
    chip-ID: 1d6b:0002 class-ID: 0900
  Device-1: 1-1:2 info: Logitech Unifying Receiver type: Keyboard,Mouse
    driver: logitech-djreceiver,usbhid interfaces: 2 rev: 2.0 speed: 12 Mb/s power: 98mA
    chip-ID: 046d:c534 class-ID: 0301
  Hub-2: 1-2:3 info: Genesys Logic Hub ports: 4 rev: 2.0 speed: 480 Mb/s power: 100mA
    chip-ID: 05e3:0608 class-ID: 0900
  Device-1: 1-8:8 info: Micro Star MYSTIC LIGHT type: HID driver: hid-generic,usbhid
    interfaces: 1 rev: 1.1 speed: 12 Mb/s power: 500mA chip-ID: 1462:7c91 class-ID: 0300
    serial: <filter>
  Device-2: 1-9:9 info: MediaTek Wireless_Device type: Bluetooth driver: btusb interfaces: 3
    rev: 2.1 speed: 480 Mb/s power: 100mA chip-ID: 0e8d:0608 class-ID: e001 serial: <filter>
  Hub-3: 2-0:1 info: Super-speed hub ports: 4 rev: 3.1 speed: 10 Gb/s chip-ID: 1d6b:0003
    class-ID: 0900
  Hub-4: 3-0:1 info: Hi-speed hub with single TT ports: 4 rev: 2.0 speed: 480 Mb/s
    chip-ID: 1d6b:0002 class-ID: 0900
  Device-1: 3-1:2 info: MediaTek Slim Portable DVD Writer type: Mass Storage driver: usb-storage
    interfaces: 1 rev: 2.0 speed: 480 Mb/s power: 500mA chip-ID: 0e8d:1887 class-ID: 0802
    serial: <filter>
  Device-2: 3-3:3 info: Logitech C922 Pro Stream Webcam type: Video,Audio
    driver: snd-usb-audio,uvcvideo interfaces: 4 rev: 2.0 speed: 480 Mb/s power: 500mA
    chip-ID: 046d:085c class-ID: 0102 serial: <filter>
  Hub-5: 4-0:1 info: Super-speed hub ports: 4 rev: 3.1 speed: 10 Gb/s chip-ID: 1d6b:0003
    class-ID: 0900
Sensors:
  System Temperatures: cpu: N/A mobo: N/A gpu: amdgpu temp: 46.0 C
  Fan Speeds (RPM): N/A
Repos:
  Packages: apt: 2318
  No active apt repos in: /etc/apt/sources.list
  Active apt repos in: /etc/apt/sources.list.d/brave-browser-release.list
    1: deb [signed-by=/usr/share/keyrings/brave-browser-archive-keyring.gpg] https: //brave-browser-apt-release.s3.brave.com/ stable main
  Active apt repos in: /etc/apt/sources.list.d/flatpak-stable-jammy.list
    1: deb [signed-by=/etc/apt/keyrings/flatpak-stable-jammy.gpg] https: //ppa.launchpadcontent.net/flatpak/stable/ubuntu jammy main
  Active apt repos in: /etc/apt/sources.list.d/nordvpn.list
    1: deb https: //repo.nordvpn.com//deb/nordvpn/debian stable main
  Active apt repos in: /etc/apt/sources.list.d/official-package-repositories.list
    1: deb http: //packages.linuxmint.com virginia main upstream import backport
    2: deb http: //archive.ubuntu.com/ubuntu jammy main restricted universe multiverse
    3: deb http: //archive.ubuntu.com/ubuntu jammy-updates main restricted universe multiverse
    4: deb http: //archive.ubuntu.com/ubuntu jammy-backports main restricted universe multiverse
    5: deb http: //security.ubuntu.com/ubuntu/ jammy-security main restricted universe multiverse
  Active apt repos in: /etc/apt/sources.list.d/virtualbox.list
    1: deb [arch=amd64 signed-by=/usr/share/keyrings/virtualbox.gpg] http: //download.virtualbox.org/virtualbox/debian jammy contrib
Info:
  Processes: 520 Uptime: 3h 21m wakeups: 11 Memory: 15.53 GiB used: 1.9 GiB (12.2%) Init: systemd
  v: 249 runlevel: 5 Compilers: gcc: 11.4.0 alt: 11/12 Client: Unknown python3.10 client
  inxi: 3.3.13
[/code]

Code: Select all

:~$ airscan-discover -d
MDNS: AVAHI_CLIENT_S_RUNNING
WSDD: netif addresses update:
WSDD:  + 10.0.0.132
WSDD:  + 10.5.0.2
WSDD: 10.0.0.132: started discovery, UDP port=41151
WSDD: send_probe: Operation not permitted
WSDD: 10.5.0.2: started discovery, UDP port=48503
zeroconf: zeroconf_device_list_get: requested
zeroconf: device_list wait: requested
zeroconf: device_list wait: DNS-SD not finished...
MDNS: browse-ipv4("_ipp._tcp"): AVAHI_BROWSER_NEW
MDNS: browse-ipv4("_ipp._tcp"): "HP_OfficeJet_Pro_9010 @ main01"
MDNS: browse-ipv6("_ipp._tcp"): AVAHI_BROWSER_CACHE_EXHAUSTED
MDNS: browse-ipv6("_ipp._tcp"): AVAHI_BROWSER_ALL_FOR_NOW
MDNS: browse-ipv4("_ipps._tcp"): AVAHI_BROWSER_NEW
MDNS: browse-ipv4("_ipps._tcp"): "HP_OfficeJet_Pro_9010 @ main01"
MDNS: browse-ipv6("_ipps._tcp"): AVAHI_BROWSER_CACHE_EXHAUSTED
MDNS: browse-ipv6("_ipps._tcp"): AVAHI_BROWSER_ALL_FOR_NOW
MDNS: browse-ipv6("_uscan._tcp"): AVAHI_BROWSER_CACHE_EXHAUSTED
MDNS: browse-ipv6("_uscans._tcp"): AVAHI_BROWSER_CACHE_EXHAUSTED
MDNS: browse-ipv6("_scanner._tcp"): AVAHI_BROWSER_CACHE_EXHAUSTED
MDNS: resolve-ipv4("_ipp._tcp", "HP_OfficeJet_Pro_9010 @ main01"): AVAHI_RESOLVER_FOUND
MDNS: resolve-ipv4("_ipp._tcp", "HP_OfficeJet_Pro_9010 @ main01"): 127.0.0.1:631
WSDD: directed probe: trying if=lo, addr=127.0.0.1
WSDD: directed probe: skipping loopback address
MDNS: resolve-ipv4("_ipps._tcp", "HP_OfficeJet_Pro_9010 @ main01"): AVAHI_RESOLVER_FOUND
MDNS: resolve-ipv4("_ipps._tcp", "HP_OfficeJet_Pro_9010 @ main01"): 127.0.0.1:631
WSDD: directed probe: trying if=lo, addr=127.0.0.1
WSDD: directed probe: skipping loopback address
WSDD: send_probe: Operation not permitted
WSDD: send_probe: Operation not permitted
WSDD: send_probe: Operation not permitted
WSDD: send_probe: Operation not permitted
MDNS: browse-ipv6("_uscan._tcp"): AVAHI_BROWSER_ALL_FOR_NOW
zeroconf: ZEROCONF_USCAN_TCP: initial scan finished
MDNS: browse-ipv6("_uscans._tcp"): AVAHI_BROWSER_ALL_FOR_NOW
zeroconf: ZEROCONF_USCANS_TCP: initial scan finished
MDNS: browse-ipv6("_scanner._tcp"): AVAHI_BROWSER_ALL_FOR_NOW
zeroconf: ZEROCONF_MDNS_HINT: initial scan finished
zeroconf: device_list wait: WSDD not finished...
WSDD: send_probe: Operation not permitted
WSDD: send_probe: Operation not permitted
WSDD: send_probe: Operation not permitted
WSDD: send_probe: Operation not permitted
WSDD: send_probe: Operation not permitted
WSDD: send_probe: Operation not permitted
WSDD: send_probe: Operation not permitted
WSDD: send_probe: Operation not permitted
WSDD: send_probe: Operation not permitted
WSDD: 10.5.0.2: done discovery
WSDD: 10.0.0.132: done discovery
zeroconf: ZEROCONF_WSD: initial scan finished
zeroconf: device_list wait: OK
zeroconf: zeroconf_device_list_get: building list of devices
zeroconf: zeroconf_device_list_get: resulting list:
[devices]

Code: Select all

$ scanimage -L
device `hpaio:/net/HP_OfficeJet_Pro_9010_series?ip=10.0.0.252' is a Hewlett-Packard HP_OfficeJet_Pro_9010_series all-in-one

Code: Select all

$ sudo hp-check -r 
[sudo] password for dan:      
Saving output in log file: /home/dan/hp-check.log

HP Linux Imaging and Printing System (ver. 3.21.12)
Dependency/Version Check Utility ver. 15.1

Copyright (c) 2001-18 HP Development Company, LP
This software comes with ABSOLUTELY NO WARRANTY.
This is free software, and you are welcome to distribute it
under certain conditions. See COPYING file for more details.

Note: hp-check can be run in three modes:
1. Compile-time check mode (-c or --compile): Use this mode before compiling the
HPLIP supplied tarball (.tar.gz or .run) to determine if the proper dependencies
are installed to successfully compile HPLIP.                                    
2. Run-time check mode (-r or --run): Use this mode to determine if a distro    
supplied package (.deb, .rpm, etc) or an already built HPLIP supplied tarball   
has the proper dependencies installed to successfully run.                      
3. Both compile- and run-time check mode (-b or --both) (Default): This mode    
will check both of the above cases (both compile- and run-time dependencies).   

Check types:                                                                    
a. EXTERNALDEP - External Dependencies                                          
b. GENERALDEP - General Dependencies (required both at compile and run time)    
c. COMPILEDEP - Compile time Dependencies                                       
d. [All are run-time checks]                                                    
PYEXT SCANCONF QUEUES PERMISSION                                                

Status Types:
    OK
    MISSING       - Missing Dependency or Permission or Plug-in
    INCOMPAT      - Incompatible dependency-version or Plugin-version

-Traceback (most recent call last):
  File "/usr/bin/hp-check", line 861, in <module>
    dep.core.init()
  File "/usr/share/hplip/installer/core_install.py", line 523, in init
    self.get_distro()
  File "/usr/share/hplip/installer/core_install.py", line 661, in get_distro
    if 'MX' in distro_release_name:
NameError: name 'distro_release_name' is not defined
Error in sys.excepthook:
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/apport_python_hook.py", line 153, in apport_excepthook
    with os.fdopen(os.open(pr_filename,
FileNotFoundError: [Errno 2] No such file or directory: '/var/crash/_usr_share_hplip_check.py.0.crash'

Original exception was:
Traceback (most recent call last):
  File "/usr/bin/hp-check", line 861, in <module>
    dep.core.init()
  File "/usr/share/hplip/installer/core_install.py", line 523, in init
    self.get_distro()
  File "/usr/share/hplip/installer/core_install.py", line 661, in get_distro
    if 'MX' in distro_release_name:
NameError: name 'distro_release_name' is not defined
Last edited by Danbor on Thu Mar 21, 2024 5:26 pm, edited 1 time in total.
BillyLinux
Level 4
Level 4
Posts: 317
Joined: Wed Sep 07, 2022 6:09 am
Location: Wiltshire

Re: Yet another scanning problem

Post by BillyLinux »

Hello,
I am far away from being any sort of expert. If I understand your outputs correctly, scans are not working via USB? The printer/scanner is connected through a USB hub? If I have read that right, just to eliminate hardware what happens when you plug the printer/scanner in direct to USB on your desktop? Better test both printer and scanner.
I am just one of the volunteers for a UK charity https://abilitynet.org.uk/
who provides free IT support to older people and disabled people of any age, anywhere in the UK.
User avatar
Schultz
Level 9
Level 9
Posts: 2966
Joined: Thu Feb 25, 2016 8:57 pm

Re: Yet another scanning problem

Post by Schultz »

I would try simple-scan (that is its name in Synaptic, but shows up in the menu as "Document Scanner"). I use it with my HP and it works perfectly.
Danbor
Level 2
Level 2
Posts: 74
Joined: Fri Dec 09, 2022 1:45 pm

Re: Yet another scanning problem

Post by Danbor »

Finally got it working!
I had been using the version of hplip from the repository. I used apt remove hplip. Then purge hplip. Then manually remove one folder that purge couldn't. After that, I done a hard reboot.
Both xsane and Document scanner worked after rebooting.
I got online and went to "Developers.hp.com/hp-linux-imaging-and-printing/install/install/index", downloaded version 3.23.12 and followed the install instructions. Also following the instructions, I installed the missing dependancies and rebooted.
Now not only do sane and xsane work, but I can also scan from hplip. Something I never got to work before.
Lastly, I took both a Timeshift and a Backintime snapshot.
BillyLinux
Level 4
Level 4
Posts: 317
Joined: Wed Sep 07, 2022 6:09 am
Location: Wiltshire

Re: ( Solved ) Yet another scanning problem

Post by BillyLinux »

Very well done - amazing tenacity and determination, and good discipline too. Flying solo! :D
I am just one of the volunteers for a UK charity https://abilitynet.org.uk/
who provides free IT support to older people and disabled people of any age, anywhere in the UK.
Post Reply

Return to “Printers & Scanners”