[sane-devel] HP5590 and scanbd button recognition

Tony Kinyua tony at kysh.me.ke
Wed Oct 17 11:19:27 BST 2018


Thanks Wilhelm,

> On 15 Oct 2018, at 15:35, Wilhelm Meier <wilhelm.wm.meier at googlemail.com> wrote:
> 
> Hi,
> 
> scanbd needs SANE_CONFIG_DIR to find the scanners because it uses sane.
> 
> So, SANE_CONFIG_DIR is usually setup by your startup-script, etc.

I decided to clean up the config and start afresh rather that use the backed up config files. Still ploughing through it but at least SANE is working. 

Working on SCANBD now

Regards
Tony
> 
> HTH,
> Wilhelm
> 
> Am 15.10.18 um 13:38 schrieb Tony Kinyua:
>> Hello Bernard,
>> 
>> I upgraded to 18.04 LTS. All my config files remain the same (From
>> backups) but for some reason the scanner is now not accessible.
>> 
>> I can find the scanner via sane-find-scanner tool
>> 
>> "found USB scanner (vendor=0x03f0 [Hewlett-Packard], product=0x1705 [hp
>> scanjet scanner]) at libusb:001:004”
>> 
>> Since am using scannbd I then start scanned in the foreground with 
>> 
>> scanbd -fd -c /etc/scanbd/scanbd.conf
>> 
>> Output is as below;
>> 
>> scanbd: debug on: level: 7
>> scanbd: dropping privs to uid saned
>> scanbd: dropping privs to gid scanner
>> scanbd: group scanner has member:
>> scanbd: saned
>> scanbd: tony
>> scanbd: drop privileges to gid: 123
>> scanbd: Running as effective gid 123
>> scanbd: drop privileges to uid: 120
>> scanbd: Running as effective uid 120
>> scanbd: dbus_init
>> scanbd: dbus match type='signal',interface='org.freedesktop.Hal.Manager'
>> *scanbd: SANE_CONFIG_DIR not set*
>> scanbd: sane version 1.0
>> scanbd: Scanning for local-only devices
>> scanbd: start_sane_threads
>> scanbd: no devices, not starting any polling thread
>> 
>> What is jumping out to me is the SANE_CONFIG_DIR not set line yet my
>> /etc/scanbd/scanbd.conf has this line uncommented
>> 
>> saned_env  = { "SANE_CONFIG_DIR=/etc/scanbd/sane.d" } # list of
>> environment vars for saned
>> 
>> so why would scanbd say the directory is not set?
>> 
>> Regards
>> Tony
>> 
>>> On 11 Sep 2018, at 18:36, Tony Kinyua <tony at kysh.me.ke
>>> <mailto:tony at kysh.me.ke <mailto:tony at kysh.me.ke>>> wrote:
>>> 
>>> Hello Bernard,
>>> 
>>>> On 10 Sep 2018, at 22:30, Bernard Badeer <bb3138 at live.de <mailto:bb3138 at live.de>
>>>> <mailto:bb3138 at live.de <mailto:bb3138 at live.de>>> wrote:
>>>> 
>>>> Hi Tony:
>>>> 
>>>> Support for scanbd with hp5590 is integrated in the current version
>>>> of sane on Gitlab
>>>> (https://gitlab.com/sane-project/backends <https://gitlab.com/sane-project/backends>).
>>> 
>>> I updated the sane backends
>>> via PPA: https://launchpad.net/~rolfbensch/+archive/ubuntu/sane-git <https://launchpad.net/~rolfbensch/+archive/ubuntu/sane-git>
>>> <https://launchpad.net/~rolfbensch/+archive/ubuntu/sane-git>
>>> 
>>>> Read here the details on how to use it:
>>>>    
>>>> https://alioth-lists.debian.net/pipermail/sane-devel/2018-June/036257.html
>>> 
>>> Made a few adjustments to scanbd configuration using the above
>>> guidelines. I now have the buttons working.
>>> 
>>> With this complete all the functions of the scanner are working in
>>> Linux as they would in Windows but with more fine grained control.
>>> 
>>> Thank You and Best Regards
>>> Tony
>>> -- 
>>> sane-devel mailing list: sane-devel at alioth-lists.debian.net <mailto:sane-devel at alioth-lists.debian.net>
>>> <mailto:sane-devel at alioth-lists.debian.net <mailto:sane-devel at alioth-lists.debian.net>>
>>> https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/sane-devel <https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/sane-devel>
>>> Unsubscribe: Send mail with subject "unsubscribe your_password"
>>>             to sane-devel-request at lists.alioth.debian.org <mailto:sane-devel-request at lists.alioth.debian.org>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/sane-devel/attachments/20181017/cf98fa4d/attachment.html>


More information about the sane-devel mailing list