[sane-devel] HP5590 and scanbd button recognition

Wilhelm Meier wilhelm.wm.meier at googlemail.com
Mon Oct 15 13:35:30 BST 2018


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.

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>> wrote:
>>
>> Hello Bernard,
>>
>>> On 10 Sep 2018, at 22:30, Bernard Badeer <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).
>>
>> I updated the sane backends
>> via PPA: 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>
>> 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
> 
> 




More information about the sane-devel mailing list