You are not logged in.

#1 2026-11-08 21:31:10

cmt100
Member
Registered: 2020-08-03
Posts: 13

Skanpage, Xsane

When running skanpage I get the following error:

qrc:/qt/qml/org/kde/kirigami/templates/OverlaySheet.qml:290:17: QML ToolButton: Binding loop detected for property "shortHeaderMargins":
qrc:/qt/qml/org/kde/kirigami/templates/OverlaySheet.qml:298:21
qrc:/qt/qml/org/kde/kirigami/AboutItem.qml:377:9: QML OverlaySheet: Binding loop detected for property "implicitHeight":
qrc:/qt/qml/org/kde/kirigami/templates/OverlaySheet.qml:144:5
qt.qpa.services: Failed to register with host portal QDBusError("org.freedesktop.portal.Error.Failed", "Could not register app ID: Connection already associated with an application ID")

My HP Laserjet printer can print but no scanning. Xsane doesn't work either as it asks for canberra-gtk-module, although I have libcanberra intalled. Also:

$ ls /usr/lib/gtk-3.0/modules/
libcanberra-gtk-module.so  libcanberra-gtk3-module.so

Offline

#2 2026-11-08 21:47:34

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 78,836

Re: Skanpage, Xsane

Please use [code][/code] tags.

skanpage errors are QML and portal noise, does it not start or fail to list your scanner or …?
canberra is a notification daemon, you typically need/have the plugin listed in $GTK_MODULES  - what is the actual error message?

Also what are the actual symptoms/problems, I doubt that anything you listed is fatal.
Does

scanimage -L

list the scanner?

Offline

#3 2026-11-09 10:50:56

billdietrich123
Member
Registered: 2018-11-15
Posts: 3

Re: Skanpage, Xsane

I hit this recently, with HP Deskjet 2810e connected through USB cable.  I'm using KDE.  Neither Skanpage nor Simple Scan / Document Scanner would work, usually said "connection failed".  scanimage on CLI worked, was able to scan pages.

Offline

#4 2026-11-09 15:54:41

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 78,836

Re: Skanpage, Xsane

said "connection failed".  scanimage on CLI worked

Not sure whether that relates to the OP but sounds like the GUIs are trying to use a network connection to the scanner?
(Though both should™ go through sane so it's kinda wild that they'd hallucinate a different device)

Offline

#5 2026-11-09 18:54:04

cmt100
Member
Registered: 2020-08-03
Posts: 13

Re: Skanpage, Xsane

$ scanimage -L
device `hpaio:/usb/HP_LaserJet_MFP_M28-M31?serial=XXXXXXXXXX' is a Hewlett-Packard HP_LaserJet_MFP_M28-M31 all-in-one

$ env | grep -i gtk
GTK_MODULES=canberra-gtk-module
GTK_OVERLAY_SCROLLING=0

I have been using hplip, but it only launches xsane from its gui.

Last edited by cmt100 (2026-11-09 20:19:25)

Offline

#6 2026-11-09 20:03:19

cmt100
Member
Registered: 2020-08-03
Posts: 13

Re: Skanpage, Xsane

I tried kylin-scanner.
$ kylin-scanner
kylin-scanner is not running.
"/usr/share/kylin-scanner/translations/kylin-scanner.en_GB"
SANE Init
SANE version code: 17039360
Get all devices...
QComboBox::setModel: cannot set a 0 model
...
userInfo.color =  "Lineart"
QPixmap::scaled: Pixmap is a null pixmap
...
sane names:  QList("Hewlett-Packard HP_LaserJet_MFP_M28-M31")
device name:  ""
device index:  0
device `hpaio:/usb/HP_LaserJet_MFP_M28-M31?serial=XXXXXXXXXX' is a Hewlett-Packard HP_LaserJet_MFP_M28-M31 all-in-one
...
device name:   Hewlett-Packard HP_LaserJet_MFP_M28-M31
QList("Hewlett-Packard HP_LaserJet_MFP_M28-M31")
Open a device
Name: hpaio:/usb/HP_LaserJet_MFP_M28-M31?serial=XXXXXXXXXX, vendor: HP_LaserJet_MFP_M28-M31, model: Hewlett-Packard, type: all-in-one
sane_open status: Error during device I/O
Open device failed!

After selecting a device, which then appears, it displays a warning saying "Please connect to a scan device firstly !"

Offline

#7 2026-11-09 20:36:54

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 78,836

Re: Skanpage, Xsane

Please use [code][/code] tags.

Do you rely on/have updated https://aur.archlinux.org/packages/hplip-plugin ?

lsusb -tv

shows the scanner?
https://wiki.archlinux.org/title/Power_ … utosuspend issue? Do you use sth. like TLP?

Do you harden the system (apparmor etc)?

Does

scanimage --format=png --output-file test.png --progress

work?

Offline

#8 2026-11-09 21:52:17

cmt100
Member
Registered: 2020-08-03
Posts: 13

Re: Skanpage, Xsane

I am trying to install hplip-plugin. scanimage does not work.

Offline

#9 2026-11-09 22:11:36

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 78,836

Re: Skanpage, Xsane

Is this a regression or has it never worked before?
Does scanimage work as root?
How did you add the scanner? Was it autodetected?
Also

seth wrote:

https://wiki.archlinux.org/title/Power_ … utosuspend issue? Do you use sth. like TLP?
Do you harden the system (apparmor etc)?

Offline

#10 2026-11-10 19:45:51

cmt100
Member
Registered: 2020-08-03
Posts: 13

Re: Skanpage, Xsane

This is a regression.

$ sudo scanimage --format=png --output-file test-file.png --progress
scanimage: open of device hpaio:/usb/HP_LaserJet_MFP_M28-M31?serial=XXXXXXXXXX failed: Error during device I/O

The scanner was autodetected by hplib. The drivers were obtained through the internet through hplip.
Lately it has not retrieved the drivers from the internet but simply used the ones already supplied by hplip.

Last edited by cmt100 (2026-11-10 19:52:21)

Offline

#11 2026-11-10 19:52:17

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 78,836

Re: Skanpage, Xsane

# strace -f -o /tmp/scan.strace scanimage --format=png --output-file test-file.png --progress

(Needs to happen from a root shell, you cannot sudo strace) - /tmp/scan.strace is gonna be the interesting file and hopefully not too big.

Does downgrading hplip help?
(Last update was 2026-10-13, sane was last updated february)?
Alternatively, does the LTS kernel work?

Offline

#12 2026-11-10 19:58:29

cmt100
Member
Registered: 2020-08-03
Posts: 13

Re: Skanpage, Xsane

Same error from root. I have experimented with both kernels. I am going to downgrade hplip.

Offline

#13 2026-11-10 20:01:20

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 78,836

Re: Skanpage, Xsane

No, the idea was to post the strace as it will likely provide details on the IO error

Offline

#14 2026-11-10 20:30:25

cmt100
Member
Registered: 2020-08-03
Posts: 13

Re: Skanpage, Xsane

Downgraded hplip-2:3.26.6-2 to hplip-1:3.25.8-5
Then hplip asked to install the proprietary plugin from an authorized server.
Now hplip works with xsane. Thank you.

Offline

#15 2026-11-10 20:41:55

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 78,836

Re: Skanpage, Xsane

Do you still have the strace?
hplip manages bugs at launchpad, https://developers.hp.com/hp-linux-imag … ting/about /  https://bugs.launchpad.net/~hplip but that seems dead since 2008…

https://gitlab.archlinux.org/archlinux/ … c07daf9e87 ships /usr/share/ipp-usb/quirks/HPLIP.conf - it seems unrelated because you're using HPAIO but what if you move that away (and in doubt reboot)?

Offline

#16 Yesterday 09:49:18

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 15,552

Re: Skanpage, Xsane

hplip proprietary plugin needs to be the exact same version as hplip itself for scanning to work.

There have been a few reports where hplip was not able to retrieve the correct version of the plugin , but the aur hplip-plugin package did work .
(my own hp laserjet tank MFP has the same problem).

Almost everything in this thread indicates you are facing that problem.

Please upgrade again to hplip 2:3.26.6-2 from extra repo, install latest hplip-plugin 3.26.6-1 from aur and verify whether scanning with skanpage then works.


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Offline

Board footer

Powered by FluxBB