Problems with Document Scanner in Porteus 5.0 Xfce

Non release banter
Kulle
Warlord
Warlord
Posts: 594
Joined: 28 Jan 2017, 10:39
Distribution: v4.0 64bit Xfce
Location: Berlin

Problems with Document Scanner in Porteus 5.0 Xfce

Post#1 by Kulle » 29 Jul 2022, 16:08

Hi all,
I'm using HP Photosmart 5510 (Copy, Print, Scan)
Printing works now, the bugs have been fixed

But Document Scanner does not work
Document Scanner:
Searching for Scanners
No Scanners Detected

In Porteus 4.0 I always used simple-scan
That always worked with HP 5510

User avatar
Blaze
DEV Team
DEV Team
Posts: 3869
Joined: 28 Dec 2010, 11:31
Distribution: ⟰ Porteus current ☯ all DEs ☯
Location: ☭ Russian Federation, Lipetsk region, Dankov
Contact:

Problems with Document Scanner in Porteus 5.0 Xfce

Post#2 by Blaze » 29 Jul 2022, 19:41

Hi Kulle.
If you run simple-scan in the terminal do you have any messages?
Linux 6.6.11-porteus #1 SMP PREEMPT_DYNAMIC Sun Jan 14 12:07:37 MSK 2024 x86_64 Intel(R) Xeon(R) CPU E3-1270 v6 @ 3.80GHz GenuineIntel GNU/Linux
MS-7A12 » [AMD/ATI] Navi 23 [Radeon RX 6600] [1002:73ff] (rev c7) » Vengeance LPX 16GB DDR4 K2 3200MHz C16

Kulle
Warlord
Warlord
Posts: 594
Joined: 28 Jan 2017, 10:39
Distribution: v4.0 64bit Xfce
Location: Berlin

Problems with Document Scanner in Porteus 5.0 Xfce

Post#3 by Kulle » 30 Jul 2022, 07:04

Hi Blaze,
no messages are displayed in the terminal.

Oddities in the version designations

Porteus 4.0 simple-scan version 3.20.0
Porteus 5.0 simple-scan version 42.1

I tried both versions in Porteus 5.0

differences:

version 3.20.0
the camera built into the notebook is recognized
HP 5510 is not recognized

version 42.1
camera is not recognized
HP 5510 is not recognized

User avatar
Blaze
DEV Team
DEV Team
Posts: 3869
Joined: 28 Dec 2010, 11:31
Distribution: ⟰ Porteus current ☯ all DEs ☯
Location: ☭ Russian Federation, Lipetsk region, Dankov
Contact:

Problems with Document Scanner in Porteus 5.0 Xfce

Post#4 by Blaze » 30 Jul 2022, 10:26

HP Photosmart 5510 is suupport in HPLIP 3.11.10
https://developers.hp.com/hp-linux-imag ... ge=zh-hans

If look at sane support table http://www.sane-project.org/lists/sane- ... ernal.html HP Photosmart 5510 E-all-in-one is have Good support

Anyway try to install xsane

Code: Select all

su
toor
getpkg xsane
# activate xsane-0.999-x86_64-5.xzm
# and run xsane
BTW you can play with hp-setup tool.
For it install and activate qt5-base-5.15.3_20220318-x86_64-xfce-cinnamon-openbox-lxde-mate-gnome.xzm plus

Code: Select all

su
toor
getpkg PyQt5 sip
# activate PyQt5 and sip xzm modules
# run hp-setup
hp-setup
Linux 6.6.11-porteus #1 SMP PREEMPT_DYNAMIC Sun Jan 14 12:07:37 MSK 2024 x86_64 Intel(R) Xeon(R) CPU E3-1270 v6 @ 3.80GHz GenuineIntel GNU/Linux
MS-7A12 » [AMD/ATI] Navi 23 [Radeon RX 6600] [1002:73ff] (rev c7) » Vengeance LPX 16GB DDR4 K2 3200MHz C16

Kulle
Warlord
Warlord
Posts: 594
Joined: 28 Jan 2017, 10:39
Distribution: v4.0 64bit Xfce
Location: Berlin

Problems with Document Scanner in Porteus 5.0 Xfce

Post#5 by Kulle » 30 Jul 2022, 14:18

Thanks Blaze,
I activated PyQt5 and sip and run hp-setup:

Code: Select all

HP Linux Imaging and Printing System (ver. 3.20.5)
Printer/Fax Setup Utility ver. 9.0

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.

error: libQt5Widgets.so.5: cannot open shared object file: No such file or directory
I still have activated qt5-base-5.15.3_20220318-x86_64-xfce-cinnamon-openbox-lxde-mate-gnome.xzm
and run again hp-setup

Code: Select all

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.

qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.
qt.qpa.plugin: Could not find the Qt platform plugin "wayland" in ""
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

Available platform plugins are: eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, webgl, xcb.

Aborted

And now?? what can I do?

Two more questions
Why is sip needed ?
Why is the camera not recognized in version 42.1 (see above #3)

User avatar
Blaze
DEV Team
DEV Team
Posts: 3869
Joined: 28 Dec 2010, 11:31
Distribution: ⟰ Porteus current ☯ all DEs ☯
Location: ☭ Russian Federation, Lipetsk region, Dankov
Contact:

Problems with Document Scanner in Porteus 5.0 Xfce

Post#6 by Blaze » 30 Jul 2022, 20:09

Kulle wrote:
30 Jul 2022, 14:18
And now?? what can I do?
About hp-setup need these deps:

Code: Select all

getpkg xcb-util-image xcb-util-keysyms xcb-util-renderutil xcb-util-wm
Image
Kulle wrote:
30 Jul 2022, 14:18
Why is sip needed ?
sip is dependence of pyqt5 - https://archlinux.org/packages/extra/x8 ... hon-pyqt5/
Kulle wrote:
30 Jul 2022, 14:18
Why is the camera not recognized in version 42.1 (see above #3)
I think this issue not in the simple-scan coz It is a GUI application for the SANE drivers - https://wiki.archlinux.org/title/SANE

xsane (sane scanner frontend) works with your scanner or not?

BTW Canon CanoScan LiDE 300 works fine with simple-scan 42.1 in Porteus 5.0
Image
Linux 6.6.11-porteus #1 SMP PREEMPT_DYNAMIC Sun Jan 14 12:07:37 MSK 2024 x86_64 Intel(R) Xeon(R) CPU E3-1270 v6 @ 3.80GHz GenuineIntel GNU/Linux
MS-7A12 » [AMD/ATI] Navi 23 [Radeon RX 6600] [1002:73ff] (rev c7) » Vengeance LPX 16GB DDR4 K2 3200MHz C16

Kulle
Warlord
Warlord
Posts: 594
Joined: 28 Jan 2017, 10:39
Distribution: v4.0 64bit Xfce
Location: Berlin

Problems with Document Scanner in Porteus 5.0 Xfce

Post#7 by Kulle » 31 Jul 2022, 09:13

Hi Blaze,
I stopped working with hp-setup for the time being

With the command scanimage you can very quickly test whether the scanner is found and whether it is addressed

Porteus 4.0

Code: Select all

guest@porteus:~$ scanimage -L
device `hpaio:/net/photosmart_5510_series?ip=192.168.178.24&queue=false' is a Hewlett-Packard photosmart_5510_series all-in-one
device `v4l:/dev/video0' is a Noname USB2.0 UVC 1.3M Webcam: USB2.0  virtual device
guest@porteus:~$ scanimage -T
scanimage: scanning image of size 637x877 pixels at 1 bits/pixel
scanimage: acquiring gray frame, 1 bits/sample
scanimage: reading one scanline, 80 bytes...	PASS
scanimage: reading one byte...		PASS
scanimage: stepped read, 2 bytes... 	PASS
scanimage: stepped read, 4 bytes... 	PASS
scanimage: stepped read, 8 bytes... 	PASS
scanimage: stepped read, 16 bytes... 	PASS
scanimage: stepped read, 32 bytes... 	PASS
scanimage: stepped read, 64 bytes... 	PASS
scanimage: stepped read, 128 bytes... 	PASS
scanimage: stepped read, 127 bytes... 	PASS
scanimage: stepped read, 63 bytes... 	PASS
scanimage: stepped read, 31 bytes... 	PASS
scanimage: stepped read, 15 bytes... 	PASS
scanimage: stepped read, 7 bytes... 	PASS
scanimage: stepped read, 3 bytes... 	PASS
guest@porteus:~$ 
The scanner is recognized and addressed,
and the programs simple-scan and xsane work

And now Porteus 5.0

Code: Select all

guest@porteus:~$ scanimage -L
device `v4l:/dev/video0' is a Noname USB2.0 UVC 1.3M Webcam: USB2.0  virtual device
guest@porteus:~$
The scanner is not recognized in 5.0,
and the programs simple-scan and xsane do not work, both do not work.
I think other scanners will not be recognized in 5.0 either, only the users have not reported yet

Kulle
Warlord
Warlord
Posts: 594
Joined: 28 Jan 2017, 10:39
Distribution: v4.0 64bit Xfce
Location: Berlin

Problems with Document Scanner in Porteus 5.0 Xfce

Post#8 by Kulle » 02 Aug 2022, 07:16

Hi Blaze,
in Porteus 4.0 exist a device driver for the scanner HP photosmart_5510_series all-in-one.
Why is there no driver for this scanner in 5.0?
HP is not exotic.
What is the difficulty here?

Kulle
Warlord
Warlord
Posts: 594
Joined: 28 Jan 2017, 10:39
Distribution: v4.0 64bit Xfce
Location: Berlin

Problems with Document Scanner in Porteus 5.0 Xfce

Post#9 by Kulle » 03 Aug 2022, 07:45

Hi Blaze,
In Porteus 5.0 the file libsane-hpaio.la is missing
Is this the cause?

In Porteus 4.0:

Code: Select all

/usr/lib64/sane/libsane-hpaio.la
/usr/lib64/sane/libsane-hpaio.so
/usr/lib64/sane/libsane-hpaio.so.1
/usr/lib64/sane/libsane-hpaio.so.1.0.0
/mnt/live/memory/images/07-printing-x86_64-03.02.2017.xzm/usr/lib64/sane/libsane-hpaio.la
/mnt/live/memory/images/07-printing-x86_64-03.02.2017.xzm/usr/lib64/sane/libsane-hpaio.so
/mnt/live/memory/images/07-printing-x86_64-03.02.2017.xzm/usr/lib64/sane/libsane-hpaio.so.1
/mnt/live/memory/images/07-printing-x86_64-03.02.2017.xzm/usr/lib64/sane/libsane-hpaio.so.1.0.0
In Porteus 5.0:

Code: Select all

/usr/lib64/sane/libsane-hpaio.so
/usr/lib64/sane/libsane-hpaio.so.1
/usr/lib64/sane/libsane-hpaio.so.1.0.0
/mnt/live/memory/images/07-printing-x86_64-2022-07-02.xzm/usr/lib64/sane/libsane-hpaio.so
/mnt/live/memory/images/07-printing-x86_64-2022-07-02.xzm/usr/lib64/sane/libsane-hpaio.so.1
/mnt/live/memory/images/07-printing-x86_64-2022-07-02.xzm/usr/lib64/sane/libsane-hpaio.so.1.0.0

User avatar
Blaze
DEV Team
DEV Team
Posts: 3869
Joined: 28 Dec 2010, 11:31
Distribution: ⟰ Porteus current ☯ all DEs ☯
Location: ☭ Russian Federation, Lipetsk region, Dankov
Contact:

Problems with Document Scanner in Porteus 5.0 Xfce

Post#10 by Blaze » 06 Aug 2022, 12:12

Kulle,
I am was some busy at job. Sorry for late response.

*.la was removed in Slackware 15.0

Code: Select all

# Don't ship .la files:
rm -f $PKG/{,usr/}lib${LIBDIRSUFFIX}/*.la

Code: Select all

Thu Apr 19 01:04:06 UTC 2018
Hi folks, and welcome to the third ever Slackware Mass Rebuild (and the
longest ChangeLog entry in project history). There were two primary
motivations for rebuilding everything in the main tree. The first was to
switch to the new C++ ABI. The second was to get rid of all the .la files
in the LD_LIBRARY_PATH. Really, having .la files installed has been mostly
obsolete since things began to use pkg-config instead, but it's not easy
to get rid of them unless you do it all at once. If you just take them out
of one package, any other packages containing .la files that refer to the
removed ones will be broken. We've removed a few here and there before
(and then handled any packages that had referred to them with a rebuild),
but it was time to finally remove all the ones in /lib{,64} and
/usr/lib{,64}. One of the reasons that this really needed to happen is that
many projects are starting to migrate to build systems other than autotools,
and those systems do not generate .la files. So if we didn't get rid of them
now, we might end up in a situation later on where they are being removed
by upstream and then we would have to chase down the dependency breakage and
recompile (possibly many) other packages. The .la files that are outside of
the LD_LIBRARY_PATH were not removed (and shouldn't be) - those ones are
often used by the lt_dlopen() function to load plugins and removing those
ones can break things. But those ones don't cause problems... they aren't
likely to try to infect .la files produced by other packages.

IMPORTANT NOTE: If you have any third party or other packages installed on
your system that don't come with Slackware, and those packages have installed
any .la files, it is very likely that they refer to some .la files which we
have just removed, and that trying to compile against these packages will no
longer work. Luckily, the solution is simple: remove them. This command will
remove any stale .la files from the LD_LIBRARY_PATH:

rm /{,usr/}lib{,64}/*.la

Moving forward, nothing shipped in Slackware will contain any .la files in
those directories, and any SlackBuilds intended to be used with Slackware 15.0
should contain this bit of script:

# Don't ship .la files:
rm -f $PKG/{,usr/}lib${LIBDIRSUFFIX}/*.la

In addition to those goals, the opportunity was taken to clean up slack-desc
files and make many trivial fixes to build scripts. We've also made it easy
to recompile everything again should there be a good reason to do so.
You'll also find various updates scattered throughout this long list.

Enjoy, and sorry about the bandwidth. ;-)
Please try a new 07-printing-x86_64-2022-08-06.xzm in Always Fresh mode.
Linux 6.6.11-porteus #1 SMP PREEMPT_DYNAMIC Sun Jan 14 12:07:37 MSK 2024 x86_64 Intel(R) Xeon(R) CPU E3-1270 v6 @ 3.80GHz GenuineIntel GNU/Linux
MS-7A12 » [AMD/ATI] Navi 23 [Radeon RX 6600] [1002:73ff] (rev c7) » Vengeance LPX 16GB DDR4 K2 3200MHz C16

Kulle
Warlord
Warlord
Posts: 594
Joined: 28 Jan 2017, 10:39
Distribution: v4.0 64bit Xfce
Location: Berlin

Problems with Document Scanner in Porteus 5.0 Xfce

Post#11 by Kulle » 07 Aug 2022, 09:11

Hi Blaze,
no success:

Code: Select all

guest@porteus:~$ scanimage -L
device `v4l:/dev/video0' is a Noname USB2.0 UVC 1.3M Webcam: USB2.0  virtual device
guest@porteus:~$ 
In other currently distributions, the scanner is also not recognized
I tried this in Knoppix 9.1 and Kodachi:

Code: Select all

kodachi@Live-OS:~ $ sudo apt install libsane-hpaio hplip
Reading package lists... Done
Building dependency tree... Done
hplip is already the newest version (3.17.10+repack0-5).
libsane-hpaio is already the newest version (3.17.10+repack0-5).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

kodachi@Live-OS:~ $ sudo 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).

beny
Full of knowledge
Full of knowledge
Posts: 2086
Joined: 02 Jan 2011, 11:33
Location: italy

Problems with Document Scanner in Porteus 5.0 Xfce

Post#12 by beny » 07 Aug 2022, 09:28

hi kulle,you have your user into the scanner and lp group? and lsusb what tell you...

User avatar
Blaze
DEV Team
DEV Team
Posts: 3869
Joined: 28 Dec 2010, 11:31
Distribution: ⟰ Porteus current ☯ all DEs ☯
Location: ☭ Russian Federation, Lipetsk region, Dankov
Contact:

Problems with Document Scanner in Porteus 5.0 Xfce

Post#13 by Blaze » 07 Aug 2022, 10:33

Kulle, you can try to downgrade version of sane. Not bad if you will do it in Always Fresh mode:

Code: Select all

su
toor
sane-find-scanner
cd /tmp
removepkg sane
wget -q --show-progress -P /tmp https://slackware.uk/slackware/slackware64-14.2/slackware64/xap/sane-1.0.25-x86_64-2.txz
installpkg sane-1.0.25-x86_64-2.txz
sane-find-scanner
# if no success
removepkg sane
wget -q --show-progress -P /tmp https://slackware.uk/slackware/slackware64-14.2/patches/packages/sane-1.0.30-x86_64-1_slack14.2.txz
installpkg sane-1.0.30-x86_64-1_slack14.2.txz
sane-find-scanner
# if no success
removepkg sane
wget -q --show-progress -P /tmp https://slackware.uk/slackware/slackware64-14.1/slackware64/xap/sane-1.0.24-x86_64-1.txz
installpkg sane-1.0.24-x86_64-1.txz
sane-find-scanner
Linux 6.6.11-porteus #1 SMP PREEMPT_DYNAMIC Sun Jan 14 12:07:37 MSK 2024 x86_64 Intel(R) Xeon(R) CPU E3-1270 v6 @ 3.80GHz GenuineIntel GNU/Linux
MS-7A12 » [AMD/ATI] Navi 23 [Radeon RX 6600] [1002:73ff] (rev c7) » Vengeance LPX 16GB DDR4 K2 3200MHz C16

Kulle
Warlord
Warlord
Posts: 594
Joined: 28 Jan 2017, 10:39
Distribution: v4.0 64bit Xfce
Location: Berlin

Problems with Document Scanner in Porteus 5.0 Xfce

Post#14 by Kulle » 07 Aug 2022, 15:22

Hi Blaze,
1) sane-1.0.25 ==> no success
2) sane-1.0.30 ==> no success
3) sane-1.0.24
a lot of dependencies: libtiff.so.3 libjpeg.so.8 libgphoto2_port.so.10 ....
and It didn't make it

User avatar
Blaze
DEV Team
DEV Team
Posts: 3869
Joined: 28 Dec 2010, 11:31
Distribution: ⟰ Porteus current ☯ all DEs ☯
Location: ☭ Russian Federation, Lipetsk region, Dankov
Contact:

Problems with Document Scanner in Porteus 5.0 Xfce

Post#15 by Blaze » 07 Aug 2022, 16:33

Hi Kulle,
As idea to test your scaner in Nemesis :magic: NEW: isos, modules 2021 (Пост M. Eerie #88707)

Open terminal of Nemesis and run

Code: Select all

su
toor
setup-pman
pacman -Syu
pacman -S hplip cups system-config-printer sane simple-scan
Linux 6.6.11-porteus #1 SMP PREEMPT_DYNAMIC Sun Jan 14 12:07:37 MSK 2024 x86_64 Intel(R) Xeon(R) CPU E3-1270 v6 @ 3.80GHz GenuineIntel GNU/Linux
MS-7A12 » [AMD/ATI] Navi 23 [Radeon RX 6600] [1002:73ff] (rev c7) » Vengeance LPX 16GB DDR4 K2 3200MHz C16

Post Reply