HP Scanner Not Scanning

I will start with this…


 ╭─fenris@fenris in ~ took 70ms
 ╰─λ garuda-inxi
System:
  Kernel: 6.6.10-zen1-1-zen arch: x86_64 bits: 64 compiler: gcc v: 13.2.1
    clocksource: tsc available: acpi_pm
    parameters: BOOT_IMAGE=/@/boot/vmlinuz-linux-zen
    root=UUID=8adfdab2-f46f-4dc9-bec4-6c286c843cff rw rootflags=subvol=@
    quiet resume=UUID=a72d297c-8ad5-4e2f-9483-375f636e64b4 loglevel=3 ibt=off
  Desktop: Xfce v: 4.18.1 tk: Gtk v: 3.24.36 info: xfce4-panel wm: xfwm
    v: 4.18.0 vt: 7 dm: LightDM v: 1.32.0 Distro: Garuda Linux base: Arch Linux
Machine:
  Type: Desktop System: AZW product: MINI S v: N/A
    serial: <superuser required>
  Mobo: AZW model: MINI S v: 10 serial: <superuser required> UEFI: American
    Megatrends LLC. v: ADLNV104 date: 02/06/2023
Battery:
  Device-1: hidpp_battery_0 model: Logitech M705 serial: <filter> charge: 90%
    rechargeable: yes status: discharging
CPU:
  Info: model: Intel N100 bits: 64 type: MCP arch: Alder Lake level: v3
    note: check built: 2021+ process: Intel 7 (10nm ESF) family: 6
    model-id: 0xBE (190) stepping: 0 microcode: 0x12
  Topology: cpus: 1x cores: 4 smt: <unsupported> cache: L1: 384 KiB
    desc: d-4x32 KiB; i-4x64 KiB L2: 2 MiB desc: 1x2 MiB L3: 6 MiB desc: 1x6 MiB
  Speed (MHz): avg: 1031 high: 1184 min/max: 700/3400 scaling:
    driver: intel_pstate governor: powersave cores: 1: 1184 2: 1180 3: 700
    4: 1063 bogomips: 6451
  Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx
  Vulnerabilities: <filter>
Graphics:
  Device-1: Intel Alder Lake-N [UHD Graphics] driver: i915 v: kernel
    arch: Gen-12.2 process: Intel 10nm built: 2021-22+ ports:
    active: HDMI-A-1,HDMI-A-2 empty: none bus-ID: 00:02.0 chip-ID: 8086:46d1
    class-ID: 0300
  Device-2: Creative Live! Cam Sync 1080p V2 driver: snd-usb-audio,uvcvideo
    type: USB rev: 2.0 speed: 480 Mb/s lanes: 1 mode: 2.0 bus-ID: 1-3.4:9
    chip-ID: 041e:40a0 class-ID: 0102 serial: <filter>
  Display: x11 server: X.Org v: 21.1.10 compositor: xfwm v: 4.18.0 driver:
    X: loaded: modesetting alternate: fbdev,intel,vesa dri: iris gpu: i915
    display-ID: :0.0 screens: 1
  Screen-1: 0 s-res: 3280x1080 s-dpi: 96 s-size: 867x285mm (34.13x11.22")
    s-diag: 913mm (35.93")
  Monitor-1: HDMI-A-1 mapped: HDMI-1 pos: bottom-l model: HKC TV
    serial: <filter> built: 2015 res: 1360x768 hz: 60 dpi: 45 gamma: 1.2
    size: 760x450mm (29.92x17.72") diag: 806mm (31.7") ratio: 16:9, 15:9
    modes: max: 1360x768 min: 720x400
  Monitor-2: HDMI-A-2 mapped: HDMI-2 pos: primary,top-right model: HP LA2206
    serial: <filter> built: 2011 res: 1920x1080 hz: 60 dpi: 102 gamma: 1.2
    size: 477x268mm (18.78x10.55") diag: 547mm (21.5") ratio: 16:9 modes:
    max: 1920x1080 min: 720x400
  API: Vulkan v: 1.3.274 layers: 5 device: 0 type: integrated-gpu
    name: Intel Graphics (ADL-N) driver: mesa intel v: 23.3.3-arch1.1
    device-ID: 8086:46d1 surfaces: xcb,xlib device: 1 type: cpu name: llvmpipe
    (LLVM 16.0.6 256 bits) driver: mesa llvmpipe v: 23.3.3-arch1.1 (LLVM
    16.0.6) device-ID: 10005:0000 surfaces: xcb,xlib
  API: OpenGL Message: Unable to show GL data. glxinfo is missing.
Audio:
  Device-1: Intel driver: snd_hda_intel v: kernel
    alternate: snd_sof_pci_intel_tgl bus-ID: 00:1f.3 chip-ID: 8086:54c8
    class-ID: 0403
  Device-2: C-Media CM106 Like Sound Device
    driver: hid-generic,snd-usb-audio,usbhid type: USB rev: 1.1 speed: 12 Mb/s
    lanes: 1 mode: 1.1 bus-ID: 1-3.2:4 chip-ID: 0d8c:0102 class-ID: 0300
  Device-3: JMTek LLC. LCS USB Audio
    driver: hid-generic,snd-usb-audio,usbhid type: USB rev: 1.1 speed: 12 Mb/s
    lanes: 1 mode: 1.1 bus-ID: 1-3.3:7 chip-ID: 0c76:2018 class-ID: 0300
    serial: <filter>
  Device-4: Creative Live! Cam Sync 1080p V2 driver: snd-usb-audio,uvcvideo
    type: USB rev: 2.0 speed: 480 Mb/s lanes: 1 mode: 2.0 bus-ID: 1-3.4:9
    chip-ID: 041e:40a0 class-ID: 0102 serial: <filter>
  API: ALSA v: k6.6.10-zen1-1-zen status: kernel-api tools: N/A
  Server-1: sndiod v: N/A status: off tools: aucat,midicat,sndioctl
  Server-2: PipeWire v: 1.0.1 status: active with: 1: pipewire-pulse
    status: active 2: wireplumber status: active 3: pipewire-alsa type: plugin
    4: pw-jack type: plugin tools: pactl,pw-cat,pw-cli,wpctl
Network:
  Device-1: Intel CNVi: Wi-Fi driver: iwlwifi v: kernel bus-ID: 00:14.3
    chip-ID: 8086:54f0 class-ID: 0280
  IF: wlo1 state: down mac: <filter>
  Device-2: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet
    driver: r8169 v: kernel pcie: gen: 1 speed: 2.5 GT/s lanes: 1 port: 3000
    bus-ID: 01:00.0 chip-ID: 10ec:8168 class-ID: 0200
  IF: enp1s0 state: up speed: 1000 Mbps duplex: full mac: <filter>
  Device-3: ASIX AX88179 Gigabit Ethernet driver: ax88179_178a type: USB
    rev: 3.0 speed: 5 Gb/s lanes: 1 mode: 3.2 gen-1x1 bus-ID: 2-3.1:5
    chip-ID: 0b95:1790 class-ID: ff00 serial: <filter>
  IF: enp0s20f0u3u1 state: down mac: <filter>
  IF-ID-1: vmnet1 state: unknown speed: N/A duplex: N/A mac: <filter>
  IF-ID-2: vmnet8 state: unknown speed: N/A duplex: N/A mac: <filter>
Bluetooth:
  Device-1: Intel AX201 Bluetooth driver: btusb v: 0.8 type: USB rev: 2.0
    speed: 12 Mb/s lanes: 1 mode: 1.1 bus-ID: 1-10:5 chip-ID: 8087:0026
    class-ID: e001
  Report: btmgmt ID: hci0 rfk-id: 1 state: down bt-service: enabled,running
    rfk-block: hardware: no software: yes address: <filter> bt-v: 5.2 lmp-v: 11
    status: discoverable: no pairing: no
Drives:
  Local Storage: total: 3.19 TiB used: 110.77 GiB (3.4%)
  SMART Message: Required tool smartctl not installed. Check --recommends
  ID-1: /dev/nvme0n1 maj-min: 259:0 model: PCIe SSD size: 476.94 GiB
    block-size: physical: 512 B logical: 512 B speed: 31.6 Gb/s lanes: 4
    tech: SSD serial: <filter> fw-rev: EHFM90.1 temp: 43.9 C scheme: GPT
  ID-2: /dev/sda maj-min: 8:0 vendor: Seagate model: ST2000LM015-2E8174
    size: 1.82 TiB block-size: physical: 4096 B logical: 512 B speed: 6.0 Gb/s
    tech: HDD rpm: 5400 serial: <filter> fw-rev: 0001 scheme: GPT
  ID-3: /dev/sdb maj-min: 8:16 vendor: Seagate model: ST1000LM048-2E7172
    size: 931.51 GiB block-size: physical: 4096 B logical: 512 B type: USB
    rev: 3.2 spd: 10 Gb/s lanes: 1 mode: 3.2 gen-2x1 tech: HDD rpm: 5400
    serial: <filter> fw-rev: 0202 scheme: GPT
Partition:
  ID-1: / raw-size: 500 GiB size: 500 GiB (100.00%) used: 16.02 GiB (3.2%)
    fs: btrfs dev: /dev/sda3 maj-min: 8:3
  ID-2: /boot/efi raw-size: 512 MiB size: 511 MiB (99.80%)
    used: 584 KiB (0.1%) fs: vfat dev: /dev/sda1 maj-min: 8:1
  ID-3: /home raw-size: 1.06 TiB size: 1.06 TiB (100.00%)
    used: 79.62 GiB (7.4%) fs: btrfs dev: /dev/sda4 maj-min: 8:4
  ID-4: /var/log raw-size: 500 GiB size: 500 GiB (100.00%)
    used: 16.02 GiB (3.2%) fs: btrfs dev: /dev/sda3 maj-min: 8:3
  ID-5: /var/tmp raw-size: 500 GiB size: 500 GiB (100.00%)
    used: 16.02 GiB (3.2%) fs: btrfs dev: /dev/sda3 maj-min: 8:3
Swap:
  Kernel: swappiness: 133 (default 60) cache-pressure: 100 (default) zswap: no
  ID-1: swap-1 type: zram size: 15.4 GiB used: 5.36 GiB (34.8%)
    priority: 100 comp: zstd avail: lzo,lzo-rle,lz4,lz4hc,842 max-streams: 4
    dev: /dev/zram0
  ID-2: swap-2 type: partition size: 24 GiB used: 0 KiB (0.0%) priority: -2
    dev: /dev/sda2 maj-min: 8:2
Sensors:
  System Temperatures: cpu: 63.0 C mobo: N/A
  Fan Speeds (rpm): N/A
Info:
  Processes: 341 Uptime: 23h 27m wakeups: 0 Memory: total: 16 GiB note: est.
  available: 15.4 GiB used: 13.64 GiB (88.5%) Init: systemd v: 255
  default: graphical tool: systemctl Compilers: gcc: 13.2.1 Packages:
  pm: pacman pkgs: 1479 libs: 418 tools: pamac,paru,yay Shell: Bash v: 5.2.21
  running-in: xfce4-terminal inxi: 3.3.31
Garuda (2.6.22-1):
  System install date:     2024-01-12
  Last full system update: 2024-01-14 ↻
  Is partially upgraded:   No
  Relevant software:       snapper NetworkManager dracut
  Windows dual boot:       Probably (Run as root to verify)
  Failed units:            vmware-workstation-server.service vmware.service logrotate.timer man-db.timer shadow.timer updatedb.timer 

 ╭─fenris@fenris in ~ took 5s
 ╰─λ 

So I get my printers and scanner setup, printers work fine. I put the test page into the scanner to give the system something to test scan and I start getting these issues.

 ╭─fenris@fenris in ~ as 🧙 took 12s
[🔴] × hp-scan

HP Linux Imaging and Printing System (ver. 3.23.12)
Scan Utility ver. 2.2

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.


-----------------
| SELECT DEVICE |
-----------------

  Num       Scan device URI                      
  --------  -------------------------------------
  0         v4l:/dev/video0                      
  1         airscan:w0:HP LaserJet Pro MFP M127fn

Enter number 0...1 for device (q=quit) ?1
warning: No destinations specified. Adding 'file' destination by default.
Using device airscan:w0:HP LaserJet Pro MFP M127fn
Opening connection to device...

Resolution: 300dpi
Mode: gray
Compression: JPEG
Scan area (mm):
  Top left (x,y): (0.000000mm, 0.000000mm)
  Bottom right (x,y): (215.899994mm, 0.000015mm)
  Width: 215.899994mm
  Height: 0.000015mm
Destination(s): file
Output file: 
warning: File destination enabled with no output file specified.
Setting output format to PNG for greyscale mode.
warning: Defaulting to '/home/fenris/hpscan001.png'.

Warming up...
 

Scanning...
error: SANE: Invalid argument (code=4)
Closing device.

 ╭─fenris@fenris in ~ as 🧙 took 32s
[🔴] ×

So I go and look up some stuff about scanners on the Arch forum, thought I would try out xscan to see if that would work (sudo pacman -Syu xscan). It loaded but it wouldn’t detect the scanner. So then I do this to see if the scanner could still be detected, and this is the results…

 ╭─fenris@fenris in ~ as 🧙 took 12s
 ╰─λ hp-scan

HP Linux Imaging and Printing System (ver. 3.23.12)
Scan Utility ver. 2.2

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.

warning: No destinations specified. Adding 'file' destination by default.
Using device v4l:/dev/video0
Opening connection to device...
error: Failed to get the source from device.
Traceback (most recent call last):
  File "/usr/bin/hp-scan", line 994, in <module>
    if len(source_option) == 1 and 'ADF' in source_option:
           ^^^^^^^^^^^^^
NameError: name 'source_option' is not defined

 ╭─fenris@fenris in ~ as 🧙 took 6s
[🔴] × 

I realized I made a big mess here so I do sudo pacman -R xsane and sudo rm -rf ~/.sane/xsane as the installation actually told me to do that if I experienced any problems. Then I noticed hp-scan gives me the same results.

So in otherwords…I really made a mess of my scanner :face_with_raised_eyebrow:

Reboot first of all. That’s what the ‘swoosh’ indicates.

2 Likes

Did that, it’s still running with a sheet ready to scan, but I still get this…

 ╭─fenris@fenris in ~ as 🧙 took 34s
[🔴] × sudo hp-scan
warning: hp-scan should not be run as root/superuser.

HP Linux Imaging and Printing System (ver. 3.23.12)
Scan Utility ver. 2.2

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.


-----------------
| SELECT DEVICE |
-----------------

  Num       Scan device URI                      
  --------  -------------------------------------
  0         v4l:/dev/video0                      
  1         airscan:w0:HP LaserJet Pro MFP M127fn

Enter number 0...1 for device (q=quit) ?1
warning: No destinations specified. Adding 'file' destination by default.
Using device airscan:w0:HP LaserJet Pro MFP M127fn
Opening connection to device...
error: SANE: Invalid argument (code=4)

 ╭─fenris@fenris in ~ as 🧙 took 15s
[🔴] × 

NOT sudo!

Well the device goes into power save mode and you get this…

 ╭─fenris@fenris in ~ as 🧙 took 1s
 ╰─λ hp-scan

HP Linux Imaging and Printing System (ver. 3.23.12)
Scan Utility ver. 2.2

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.

warning: No destinations specified. Adding 'file' destination by default.
Using device v4l:/dev/video0
Opening connection to device...
error: Failed to get the source from device.
Traceback (most recent call last):
  File "/usr/bin/hp-scan", line 994, in <module>
    if len(source_option) == 1 and 'ADF' in source_option:
           ^^^^^^^^^^^^^
NameError: name 'source_option' is not defined

 ╭─fenris@fenris in ~ took 14s
[🔴] × 

I use my HP and Brother Printers and scanners via avahi as network scanner, the only packages that i have installed are scanner-support, sane and sane-airscan and no configuration to do. Scanners a wirelessly or over ethernet connected to my lan, i just fire up Document Scanner app on any PC/Laptop and have access to all scanner.

1 Like

Well I did what you asked, and I still get this…

 ╭─fenris@fenris in ~ as 🧙 took 1m1s
 ╰─λ hp-scan

HP Linux Imaging and Printing System (ver. 3.23.12)
Scan Utility ver. 2.2

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.


-----------------
| SELECT DEVICE |
-----------------

  Num       Scan device URI                      
  --------  -------------------------------------
  0*        v4l:/dev/video0                      
  1         airscan:w0:HP LaserJet Pro MFP M127fn

Enter number 0...1 for device (q=quit, <enter>=default: 0*) ?1
warning: No destinations specified. Adding 'file' destination by default.
Using device airscan:w0:HP LaserJet Pro MFP M127fn
Opening connection to device...

Resolution: 300dpi
Mode: gray
Compression: JPEG
Scan area (mm):
  Top left (x,y): (0.000000mm, 0.000000mm)
  Bottom right (x,y): (215.899994mm, 0.000015mm)
  Width: 215.899994mm
  Height: 0.000015mm
Destination(s): file
Output file: 
warning: File destination enabled with no output file specified.
Setting output format to PNG for greyscale mode.
warning: Defaulting to '/home/fenris/hpscan001.png'.

Warming up...
 

Scanning...
error: SANE: Invalid argument (code=4)
Closing device.

 ╭─fenris@fenris in ~ as 🧙 took 22s
[🔴] × 

forgot the simple-scan uility, it shows as Document Scanner in your Apps drawer or simple-scan in terminal. Installs with sudo pacman -S simple-scan. You’ll have probably 2 scanner to pick from, use the one starting with eSCL HP

2 Likes

This worked, got that document scanner to scan my printer test page.

Thank you! ^.^

1 Like

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.