[sane-devel] Problem with Button of HP ScanJet 6200C Scanner and scanbd

Thomas Boll thomas.alexander.boll at gmail.com
Sat Nov 17 08:59:24 UTC 2012


Hello Wilhelm,

Thank you for your help and your effort!

In the end it seem to be a hardware problem. The button on the front 
does not work any more - I disassembled the device and measured it out 
on the board.

However, I will by another adf scanner and know now how to setup scanbd.
Thanks again for the journey into scanbd configuration.

Regards,
Thomas

Am 16.11.2012 07:33, schrieb Wilhelm:
> Am 16.11.2012 07:03, schrieb Thomas Boll:
>> Hello Wilhelm,
>>
>> it's me again. The output of syslog led me to the config files again and
>> I found that I left "lp" as goup in scanbd.conf.
>>
>> When I changed "goup = lp" to "group = scanner" I can now run:
>>
>> # scanbd -fd -c /usr/local/etc/scanbd/scanbd.conf
>>
>> and I see 28 (output says 29) options for my scanner in the output ((see
>> output below)).
>>
>> As far as I understand the next step would be to look which (if any) of
>> the options changes when I push the button.
>
> Yes.
> Looks like you already have a config for option "preview" in your 
> scanbd.conf, make a similar entry for other (promising) options, e.g. 
> "button-wait", "mode", ...
>
> Then restart scanbd and watch the output:
>
> i) look if the option is found and an action is installed for this option
>
> ii) look for value changes if you make some actions on the scanner, 
> e.g. pressing buttons, changing mode-switches and things like that ...
>
> Sorry, but i don't know the scanner and I don't have access to this 
> model, therefore this is a little bit like poking in the smog ...
>
>> Is there a way to let scanbd log every option change as I cannot see
>> anything happen, when I press the button while scanbd is polling for
>> option changes (see output below)?
>>
>> Also running in monitor mode like:
>>
>> # scanbd -m -fd -c /usr/local/etc/scanbd/scanbd.conf
>>
>> or
>>
>> # scanbd -m -c /usr/local/etc/scanbd/scanbd.conf
>>
>> do still give me the same output as in my first mail (saned exited with
>> 0). But I did not investigate any further in this direction (yet) and
>> assume that there are still some rights problems that I can hopefully
>> solve on my own.
>>
>> I know you are busy, but any further help/hints with the options thing
>> would be great as I also do not fully understand what is filtered when
>> in scanbd.conf actions in the global section and in actions of the hp
>> section and how it all fits together (e.g. I connot see any option
>> containg "message" so what does "^message.*" filter do?). I read INSTALL
>> but could not find any further doku on that.
>>
>> Thanks again for the support and regards,
>> Thomas
>>
>> root at server:/# scanbd -fd -c /usr/local/etc/scanbd/scanbd.conf
>> 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: me
>> scanbd: drop privileges to gid: 112
>> scanbd: Running as effective gid 112
>> scanbd: drop privileges to uid: 103
>> scanbd: Running as effective uid 103
>> scanbd: dbus_init
>> scanbd: dbus match type='signal',interface='org.freedesktop.Hal.Manager'
>> scanbd: sane version 1.0
>> scanbd: Scanning for local-only devices
>> *scanbd: found device: hp:libusb:001:013 Hewlett-Packard ScanJet 62x0C
>> flatbed scanner*
>> scanbd: start_sane_threads
>> scanbd: Starting poll thread for hp:libusb:001:013
>> scanbd: Thread started for device hp:libusb:001:013
>> scanbd: start dbus thread
>> scanbd: udev init
>> scanbd: timeout: 500 ms
>> scanbd: sane_poll
>> scanbd: Iteration on dbus call
>> *scanbd: found 29 options for device hp:libusb:001:013*
>> scanbd: sane_find_matching_options
>> scanbd: found 5 actions in section (null)
>> scanbd: checking action scan with filter: ^scan.*
>> scanbd: option[1]  for device hp:libusb:001:013 not of type
>> BOOL|INT|FIXED|STRING|BUTTON. Skipping
>> scanbd: found active option[2] preview (type: 0) for device
>> hp:libusb:001:013
>> scanbd: found active option[3] mode (type: 3) for device 
>> hp:libusb:001:013
>> scanbd: found active option[4] resolution (type: 1) for device
>> hp:libusb:001:013
>> scanbd: option[5]  for device hp:libusb:001:013 not of type
>> BOOL|INT|FIXED|STRING|BUTTON. Skipping
>> scanbd: found active option[6] brightness (type: 1) for device
>> hp:libusb:001:013
>> scanbd: found active option[7] contrast (type: 1) for device
>> hp:libusb:001:013
>> scanbd: found active option[8] auto-threshold (type: 0) for device
>> hp:libusb:001:013
>> scanbd: option[9]  for device hp:libusb:001:013 not of type
>> BOOL|INT|FIXED|STRING|BUTTON. Skipping
>> scanbd: found active option[10] custom-gamma (type: 0) for device
>> hp:libusb:001:013
>> scanbd: found active option[12] matrix-type (type: 3) for device
>> hp:libusb:001:013
>> scanbd: found active option[15] speed (type: 3) for device 
>> hp:libusb:001:013
>> scanbd: found active option[18] source (type: 3) for device
>> hp:libusb:001:013
>> scanbd: found active option[19] button-wait (type: 0) for device
>> hp:libusb:001:013
>> scanbd: found active option[20] lamp-off (type: 4) for device
>> hp:libusb:001:013
>> scanbd: found active option[21] change-document (type: 4) for device
>> hp:libusb:001:013
>> scanbd: option[22]  for device hp:libusb:001:013 not of type
>> BOOL|INT|FIXED|STRING|BUTTON. Skipping
>> scanbd: found active option[23] tl-x (type: 2) for device 
>> hp:libusb:001:013
>> scanbd: found active option[24] tl-y (type: 2) for device 
>> hp:libusb:001:013
>> scanbd: found active option[25] br-x (type: 2) for device 
>> hp:libusb:001:013
>> scanbd: found active option[26] br-y (type: 2) for device 
>> hp:libusb:001:013
>> scanbd: found active option[27] mirror-horizontal (type: 3) for device
>> hp:libusb:001:013
>> scanbd: found active option[28] mirror-vertical (type: 3) for device
>> hp:libusb:001:013
>> scanbd: checking action email with filter: ^email$
>> scanbd: option[1]  for device hp:libusb:001:013 not of type
>> BOOL|INT|FIXED|STRING|BUTTON. Skipping
>> scanbd: found active option[2] preview (type: 0) for device
>> hp:libusb:001:013
>> scanbd: found active option[3] mode (type: 3) for device 
>> hp:libusb:001:013
>> ...
>> scanbd: found active option[25] br-x (type: 2) for device 
>> hp:libusb:001:013
>> scanbd: found active option[26] br-y (type: 2) for device 
>> hp:libusb:001:013
>> scanbd: found active option[27] mirror-horizontal (type: 3) for device
>> hp:libusb:001:013
>> scanbd: found active option[28] mirror-vertical (type: 3) for device
>> hp:libusb:001:013
>> scanbd: sane_find_matching_functions
>> scanbd: no matching functions in section hp
>> scanbd: timeout: 500 ms
>> scanbd: Start the polling for device hp:libusb:001:013
>> scanbd: polling thread for hp:libusb:001:013 cancellation point
>> scanbd: polling device hp:libusb:001:013
>> scanbd: get_sane_option_value
>> scanbd: checking option preview number 2 (0) for device
>> hp:libusb:001:013: value: 0
>> scanbd: Iteration on dbus call
>> scanbd: polling thread for hp:libusb:001:013 cancellation point
>> scanbd: polling device hp:libusb:001:013
>> scanbd: get_sane_option_value
>> scanbd: checking option preview number 2 (0) for device
>> hp:libusb:001:013: value: 0
>> scanbd: polling thread for hp:libusb:001:013 cancellation point
>> scanbd: polling device hp:libusb:001:013
>> scanbd: get_sane_option_value
>> scanbd: checking option preview number 2 (0) for device
>> hp:libusb:001:013: value: 0
>> scanbd: Iteration on dbus call
>> scanbd: polling thread for hp:libusb:001:013 cancellation point
>> scanbd: polling device hp:libusb:001:013
>> scanbd: get_sane_option_value
>> scanbd: checking option preview number 2 (0) for device
>> hp:libusb:001:013: value: 0
>> scanbd: polling thread for hp:libusb:001:013 cancellation point
>> scanbd: polling device hp:libusb:001:013
>> scanbd: get_sane_option_value
>> scanbd: checking option preview number 2 (0) for device
>> hp:libusb:001:013: value: 0
>> scanbd: Iteration on dbus call
>> scanbd: polling thread for hp:libusb:001:013 cancellation point
>> scanbd: polling device hp:libusb:001:013
>> scanbd: get_sane_option_value
>> scanbd: checking option preview number 2 (0) for device
>> hp:libusb:001:013: value: 0
>> scanbd: polling thread for hp:libusb:001:013 cancellation point
>> scanbd: polling device hp:libusb:001:013
>> scanbd: get_sane_option_value
>> scanbd: checking option preview number 2 (0) for device
>> hp:libusb:001:013: value: 0
>> scanbd: Iteration on dbus call
>> scanbd: polling thread for hp:libusb:001:013 cancellation point
>> scanbd: polling device hp:libusb:001:013
>> scanbd: get_sane_option_value
>> scanbd: checking option preview number 2 (0) for device
>> hp:libusb:001:013: value: 0
>> scanbd: polling thread for hp:libusb:001:013 cancellation point
>> scanbd: polling device hp:libusb:001:013
>> scanbd: get_sane_option_value
>> scanbd: checking option preview number 2 (0) for device
>> hp:libusb:001:013: value: 0
>> scanbd: Iteration on dbus call
>> scanbd: polling thread for hp:libusb:001:013 cancellation point
>> scanbd: polling device hp:libusb:001:013
>> scanbd: get_sane_option_value
>> scanbd: checking option preview number 2 (0) for device
>> hp:libusb:001:013: value: 0
>> scanbd: polling thread for hp:libusb:001:013 cancellation point
>> scanbd: polling device hp:libusb:001:013
>> scanbd: get_sane_option_value
>> scanbd: checking option preview number 2 (0) for device
>> hp:libusb:001:013: value: 0
>> scanbd: Iteration on dbus call
>> scanbd: polling thread for hp:libusb:001:013 cancellation point
>> scanbd: polling device hp:libusb:001:013
>> scanbd: get_sane_option_value
>> scanbd: checking option preview number 2 (0) for device
>> hp:libusb:001:013: value: 0
>> scanbd: polling thread for hp:libusb:001:013 cancellation point
>> scanbd: polling device hp:libusb:001:013
>> scanbd: get_sane_option_value
>> scanbd: checking option preview number 2 (0) for device
>> hp:libusb:001:013: value: 0
>> scanbd: Iteration on dbus call
>> scanbd: polling thread for hp:libusb:001:013 cancellation point
>> scanbd: polling device hp:libusb:001:013
>> scanbd: get_sane_option_value
>> scanbd: checking option preview number 2 (0) for device
>> hp:libusb:001:013: value: 0
>> scanbd: polling thread for hp:libusb:001:013 cancellation point
>> scanbd: polling device hp:libusb:001:013
>> scanbd: get_sane_option_value
>> scanbd: checking option preview number 2 (0) for device
>> hp:libusb:001:013: value: 0
>> scanbd: Iteration on dbus call
>> scanbd: polling thread for hp:libusb:001:013 cancellation point
>> scanbd: polling device hp:libusb:001:013
>> scanbd: get_sane_option_value
>> scanbd: checking option preview number 2 (0) for device
>> hp:libusb:001:013: value: 0
>> scanbd: polling thread for hp:libusb:001:013 cancellation point
>> scanbd: polling device hp:libusb:001:013
>> scanbd: get_sane_option_value
>> scanbd: checking option preview number 2 (0) for device
>> hp:libusb:001:013: value: 0
>> scanbd: Iteration on dbus call
>> scanbd: polling thread for hp:libusb:001:013 cancellation point
>> scanbd: polling device hp:libusb:001:013
>> scanbd: get_sane_option_value
>> scanbd: checking option preview number 2 (0) for device
>> hp:libusb:001:013: value: 0
>> scanbd: polling thread for hp:libusb:001:013 cancellation point
>> scanbd: polling device hp:libusb:001:013
>> scanbd: get_sane_option_value
>> scanbd: checking option preview number 2 (0) for device
>> hp:libusb:001:013: value: 0
>> scanbd: Iteration on dbus call
>> scanbd: polling thread for hp:libusb:001:013 cancellation point
>> scanbd: polling device hp:libusb:001:013
>> scanbd: get_sane_option_value
>> scanbd: checking option preview number 2 (0) for device
>> hp:libusb:001:013: value: 0
>> scanbd: polling thread for hp:libusb:001:013 cancellation point
>> scanbd: polling device hp:libusb:001:013
>> scanbd: get_sane_option_value
>> scanbd: checking option preview number 2 (0) for device
>> hp:libusb:001:013: value: 0
>> scanbd: Iteration on dbus call
>> scanbd: polling thread for hp:libusb:001:013 cancellation point
>> scanbd: polling device hp:libusb:001:013
>> scanbd: get_sane_option_value
>> scanbd: checking option preview number 2 (0) for device
>> hp:libusb:001:013: value: 0
>> scanbd: polling thread for hp:libusb:001:013 cancellation point
>> scanbd: polling device hp:libusb:001:013
>> scanbd: get_sane_option_value
>> scanbd: checking option preview number 2 (0) for device
>> hp:libusb:001:013: value: 0
>> scanbd: Iteration on dbus call
>> scanbd: polling thread for hp:libusb:001:013 cancellation point
>> scanbd: polling device hp:libusb:001:013
>> scanbd: get_sane_option_value
>> scanbd: checking option preview number 2 (0) for device
>> hp:libusb:001:013: value: 0
>> scanbd: polling thread for hp:libusb:001:013 cancellation point
>> scanbd: polling device hp:libusb:001:013
>> scanbd: get_sane_option_value
>> scanbd: checking option preview number 2 (0) for device
>> hp:libusb:001:013: value: 0
>> scanbd: Iteration on dbus call
>> scanbd: polling thread for hp:libusb:001:013 cancellation point
>> scanbd: polling device hp:libusb:001:013
>> scanbd: get_sane_option_value
>> scanbd: checking option preview number 2 (0) for device
>> hp:libusb:001:013: value: 0
>> ^Cscanbd: sig_term/int_handler called with signal 2
>> scanbd: stop_sane_threads
>> scanbd: stopping poll thread for device hp:libusb:001:013
>> scanbd: waiting for poll thread for device hp:libusb:001:013
>> scanbd: sane_thread_cleanup_mutex
>> scanbd: closing device hp:libusb:001:013
>> scanbd: freeing opt ressources for device hp:libusb:001:013 thread
>> scanbd: freeing funtion ressources for device hp:libusb:001:013 thread
>> scanbd: stop dbus thread
>> scanbd: join dbus thread
>> scanbd: stop udev thread
>> scanbd: cleanup device handler
>> scanbd: join udev thread
>> scanbd: close udev monitor
>> scanbd: close udev
>> scanbd: exiting scanbd
>>
>
>

-------------- next part --------------
A non-text attachment was scrubbed...
Name: thomas_alexander_boll.vcf
Type: text/x-vcard
Size: 519 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/sane-devel/attachments/20121117/29da6d8b/attachment.vcf>


More information about the sane-devel mailing list