Page 1 of 1

libsane update request

Posted: Wed Mar 04, 2020 3:30 am
by elgrande71
Hi, I'm MX Linux user from France and I'm very pleased to use MX Linux but I have a problem with my scanner : a Canon Lide 25 .
It doesn't works ( black render page ) with MX Linux because of the version of the libsane package .
With 1.0.25, 1.0.27 patched version by Ubuntu, 1.0.28 ( tested on Fedora Workstation 31 ) and above, no problem .
I also tested my scanner on Debian 10 live system and it doesn't works .
See another topic related to this problem : viewtopic.php?f=23&t=55238&p=551021&hil ... de#p551021
So is it possible to update the libsane package provided with MX Linux system ?
Thank you in advance

Re: libsane update request

Posted: Wed Mar 04, 2020 10:47 pm
by timkb4cq
I had built the 64bit sane-backends 1.0.28+git13012020 in January (when I really needed my scanner working for emailing documents - and it worked with this build) for my LiDE-30 scanner but was unable to get the 32bit package to build so I set it aside. I tried again today and it's failing on the self-tests.
I have just uploaded that 64bit build to the MX-19 Test repo. In MX Package Installer, you need to uncheck the box box that hides library & developer packages and upgrade libsane, libsane-common, & sane-utils.

1.0.29 has just been released so I'll give backporting that a try sometime this week.

Re: libsane update request

Posted: Thu Mar 05, 2020 4:22 pm
by elgrande71
I followed all the steps described and I successfully installed your sane-backends builds ( libsane, libsane-common, sane-utils packages ) .
I give a try to this command line :
scanimage -d "plustek:libusb:002:003" -x 210 -y 297 --resolution=150 --format=jpeg > testscan.jpg
The result is great .
Thank you for this but it's not very handy to use a scanimage command line all the time.
Xsane and Simple-Scan from the stable repo doesn't work so it could be great if It could be rebuild with your sane-backends builds .
If you want a tester for your upcoming or another builds, send me a message .
Thank you

Re: libsane update request

Posted: Thu Mar 05, 2020 4:53 pm
by timkb4cq
I just tested my scanner again to make sure. Simple Scan, XSane, gscan2pdf, and your scanimage command (adjusted for usb:address) are all working with this backend. Rebuilding those frontend tools won't help anything. Gscan2pdf can be set to use scanimage instead of libimage-sane-perl if that is a problem but it shouldn't be.

Re: libsane update request

Posted: Fri Mar 06, 2020 11:15 am
by elgrande71
I try Gscan2pdf .
With libimage-sane-perl, scanning image is completely black, so it doesn't work .
With scanimage, scanning image gives me a good result, so it works .
It's strange .

Re: libsane update request

Posted: Fri Mar 06, 2020 10:47 pm
by timkb4cq
sane backends 1.0.29 is now available in the MX-19 Test repository. Tested with my Canon LiDE-30 scanner and it's working fine here.

Re: libsane update request

Posted: Sat Mar 07, 2020 3:40 pm
by elgrande71
I find the solution for my Canon LiDE 25 scanner on Simple Scan and XSane .
I have to modify the /etc/default/tlp file and add the following line :
USB_BLACKLIST="04a9:2220"
After I upgraded the sane backends to the 1.0.29 version, tested my scanner on Simple Scan and now it works perfectly .
Thank you for your work .

Re: libsane update request

Posted: Tue Feb 02, 2021 11:44 pm
by Brigs
@timkb4cq can you update mx-test 18 repo sir ? i've been struggle to make my hp 2300 scanner working with hp-lip 3.20.9. thx

Re: libsane update request

Posted: Wed Feb 03, 2021 2:36 pm
by timkb4cq
If you are referring to an HP ScanJet 2300c flatbed scanner then that has nothing to do with the hplip project. It is handled by the genesys backend in Sane.
If yours is a different 2300 please give the full model name/number(s)

Re: libsane update request

Posted: Wed Feb 03, 2021 5:51 pm
by Brigs
my device hp deskjet aio 2336 recognizing with 2300 series by hplip and connecting to mx with usb cable.
cups printing working fine and "sane-find-scanner" detected
found USB scanner (vendor=0x03f0 [HP], product=0x3654 [DeskJet 2300 series]) at libusb:004:005
could not fetch string descriptor: Pipe error
but unfortunately always fail starting "scanimage -L" with "No scanner were identified". try with another frontend simple-scan (update from test repo), xsane, gscan2pdf with same result.
i've read another thread with same problem here.
did i miss something sir ?

Re: libsane update request

Posted: Wed Feb 03, 2021 11:58 pm
by timkb4cq
Do you get the same message with

Code: Select all

sudo sane-find-scanner
?
Hplip added support for the DeskJet aio 2300 series in 3.20.5. The changelogs don't show any changes to its support since then so 3.20.11 won't work any better than 3.20.9

I suspect the issue is related to the required non-free plug-in the DeskJet 2300 series requires.
Have you tried running

Code: Select all

hp-plugin
?

Re: libsane update request

Posted: Sun Feb 07, 2021 7:48 am
by Brigs
timkb4cq wrote: Wed Feb 03, 2021 11:58 pm Do you get the same message with

Code: Select all

sudo sane-find-scanner
?
yes sir... it's same result.
timkb4cq wrote: Wed Feb 03, 2021 11:58 pm Hplip added support for the DeskJet aio 2300 series in 3.20.5. The changelogs don't show any changes to its support since then so 3.20.11 won't work any better than 3.20.9

I suspect the issue is related to the required non-free plug-in the DeskJet 2300 series requires.
Have you tried running

Code: Select all

hp-plugin
?
plugin installed succesfully but the strange result with hp-doctor.

Code: Select all

Checking for Dependencies....
warning: unknown-18.3 version is not supported. Using unknown-0 versions dependencies to verify and install...

---------------
| SYSTEM INFO |
---------------

 Kernel: 4.19.0-13mx-amd64 #1 SMP Debian 4.19.160-2~mx17+1 (2020-12-04) GNU/Linux
 Proc: 4.19.0-13mx-amd64 #1 SMP Debian 4.19.160-2~mx17+1 (2020-12-04) GNU/Linux
 Distribution: unknown 18.3
 Bitness: 64 bit


-----------------------
| HPLIP CONFIGURATION |
-----------------------

HPLIP-Version: HPLIP 3.20.9
HPLIP-Home: /usr/share/hplip
warning: HPLIP-Installation: Auto installation is not supported for unknown distro  18.3 version 

Current contents of '/etc/hp/hplip.conf' file:
# hplip.conf.  Generated from hplip.conf.in by configure.

[hplip]
version=3.20.9

[dirs]
home=/usr/share/hplip
run=/var/run
ppd=/usr/share/ppd/hplip/HP
ppdbase=/usr/share/ppd/hplip
doc=/usr/share/doc/hplip
html=/usr/share/doc/hplip-doc
icon=no
cupsbackend=/usr/lib/cups/backend
cupsfilter=/usr/lib/cups/filter
drv=/usr/share/cups/drv
bin=/usr/bin
apparmor=/etc/apparmor.d
# Following values are determined at configure time and cannot be changed.
[configure]
network-build=yes
libusb01-build=no
pp-build=no
gui-build=yes
scanner-build=yes
fax-build=yes
dbus-build=yes
cups11-build=no
doc-build=yes
shadow-build=no
hpijs-install=yes
foomatic-drv-install=yes
foomatic-ppd-install=no
foomatic-rip-hplip-install=no
hpcups-install=yes
cups-drv-install=yes
cups-ppd-install=no
internal-tag=3.20.9
restricted-build=no
ui-toolkit=qt5
qt3=no
qt4=no
qt5=yes
policy-kit=yes
lite-build=no
udev_sysfs_rules=no
hpcups-only-build=no
hpijs-only-build=no
apparmor_build=no
class-driver=no


Current contents of '/var/lib/hp/hplip.state' file:
[plugin]
installed = 1
eula = 1
version = 3.20.9



Current contents of '~/.hplip/hplip.conf' file:
[commands]
scan = /usr/bin/simple-scan %SANE_URI%

[fax]
email_address = 
voice_phone = 

[installation]
date_time = 02/07/21 19:38:52
version = 3.20.9

[last_used]
device_uri = "hp:/usb/DeskJet_2300_series?serial=CN0CO236QJ"
printer_name = 
working_dir = .

[polling]
device_list = 
enable = false
interval = 5

[refresh]
enable = false
rate = 30
type = 1

[settings]
systray_messages = 0
systray_visible = 0

[upgrade]
last_upgraded_time = 1601435311
notify_upgrade = false
pending_upgrade_time = 0


 <Package-name>        <Package-Desc>      <Required/Optional> <Min-Version> <Installed-Version> <Status>   <Comment>

--------------
| COMPILEDEP |
--------------

 gcc                  gcc - GNU Project C and C++ Compiler                         REQUIRED        -               6.3.0           OK         -
 make                 make - GNU make utility to maintain groups of programs       REQUIRED        3.0             4.1             OK         -
 libtool              libtool - Library building support services                  REQUIRED        -               2.4.6           OK         -

------------------------
| General Dependencies |
------------------------

 python3-xml          Python XML libraries                                         REQUIRED        -               2.2.0           OK         -
 python3-reportlab    Reportlab - PDF library for Python                           OPTIONAL        2.0             3.3.0           OK         -
 libpthread           libpthread - POSIX threads library                           REQUIRED        -               b'2.24'         OK         -
 python3-notify2      Python libnotify - Python bindings for the libnotify Desktop notifications OPTIONAL        -               -               OK         -
 libavahi-dev         libavahi-dev                                                 REQUIRED        -               -               OK         -
 libjpeg              libjpeg - JPEG library                                       REQUIRED        -               -               OK         -
 python3-dbus         Python DBus - Python bindings for DBus                       REQUIRED        0.80.0          1.2.4           OK         -
 python3-pyqt4        PyQt 4- Qt interface for Python (for Qt version 4.x)         REQUIRED        4.0             4.11.4          OK         -
 python3X             Python 2.2 or greater - Python programming language          REQUIRED        2.2             3.5.3           OK         -
 libcrypto            libcrypto - OpenSSL cryptographic library                    REQUIRED        -               1.1.0           OK         -
 libusb               libusb - USB library                                         REQUIRED        -               1.0             OK         -
 python3-devel        Python devel - Python development files                      REQUIRED        2.2             3.5.3           OK         -
 python3-pil          PIL - Python Imaging Library (required for commandline scanning with hp-scan) OPTIONAL        -               6.1.0           OK         -
 cups-ddk             CUPS DDK - CUPS driver development kit                       OPTIONAL        -               -               OK         -
 sane                 SANE - Scanning library                                      REQUIRED        -               -               OK         -
 error: python3-pyqt4-dbus PyQt 4 DBus - DBus Support for PyQt4                         OPTIONAL        4.0             4.11.4          MISSING    'python3-pyqt4-dbus needs to be installed'
 sane-devel           SANE - Scanning library development files                    REQUIRED        -               -               OK         -
 cups-image           CUPS image - CUPS image development files                    REQUIRED        -               -               OK         -
 cups-devel           CUPS devel- Common Unix Printing System development files    REQUIRED        -               -               OK         -
 libnetsnmp-devel     libnetsnmp-devel - SNMP networking library development files REQUIRED        5.0.9           5.7.3           OK         -

----------------------
| Scan Configuration |
----------------------

'/etc/sane.d/dll.d/hpaio' not found.
 hpaio                HPLIP-SANE-Backend                                           REQUIRED        -               3.20.9          OK         'hpaio found in /etc/sane.d/dll.conf'
 scanext              Scan-SANE-Extension                                          REQUIRED        -               3.20.9          OK         -

---------------------
| Python Extentions |
---------------------

 cupsext              CUPS-Extension                                               REQUIRED        -               3.20.9          OK         -
 hpmudext             IO-Extension                                                 REQUIRED        -               3.20.9          OK         -

-------------------------
| External Dependencies |
-------------------------

 dbus                 DBus - Message bus system                                    REQUIRED        -               1.10.32         OK         -
 gs                   GhostScript - PostScript and PDF language interpreter and previewer REQUIRED        7.05            9.26            OK         -
 avahi-utils          avahi-utils                                                  OPTIONAL        -               0.6.32          OK         -
 policykit            PolicyKit - Administrative policy framework                  OPTIONAL        -               0.105           OK         -
 network              network -wget                                                OPTIONAL        -               1.18            OK         -
 xsane                xsane - Graphical scanner frontend for SANE                  OPTIONAL        0.9             0.999           OK         -
 error: cups          CUPS - Common Unix Printing System                           REQUIRED        1.1             -               INCOMPAT   'CUPS may not be installed or not running'
 scanimage            scanimage - Shell scanning program                           OPTIONAL        1.0             1.0.25          OK         -

------------------------------
| DISCOVERED SCANNER DEVICES |
------------------------------

No Scanner found.

--------------------------
| DISCOVERED USB DEVICES |
--------------------------

  Device URI                                     Model                   
  ---------------------------------------------  ------------------------
  hp:/usb/DeskJet_2300_series?serial=CN0CO236QJ  HP DeskJet 2300 series  

---------------------------------
| INSTALLED CUPS PRINTER QUEUES |
---------------------------------

 
HP_DeskJet_2300_series
----------------------
Type: Printer
Device URI: hp:/usb/DeskJet_2300_series?serial=CN0CO236QJ
PPD: /etc/cups/ppd/HP_DeskJet_2300_series.ppd
PPD Description: HP Deskjet 2300 Series, hpcups 3.20.9
Printer status: printer HP_DeskJet_2300_series is idle.  enabled since Sun 07 Feb 2021 07:30:43 PM WIB
Communication status: Good


--------------
| PERMISSION |
--------------

USB             HP_DeskJet_2300_series         Required        -        -        OK       Node:'/dev/bus/usb/004/005' Perm:'  root  lp rw- rw- rw- rw- rw- r--'
 

Checking Permissions....


Checking for Configured Queues....
 
Queue(s) configured correctly using HPLIP.


Checking for HP Properitery Plugin's....
No plug-in printers are configured.
maybe tomorrow i'll try fresh 19.3 with libsane update from test repo for sure

Re: libsane update request

Posted: Fri Nov 19, 2021 11:44 pm
by Elf48
Thank you for all your work. After much searching for an answer for my Canon TR7560, I found you solution. It works perfectly.