abusenius / insaned

Simple daemon for polling button presses on SANE scanners
GNU General Public License v2.0
43 stars 13 forks source link

Integer Sensor #17

Open btro1404 opened 3 years ago

btro1404 commented 3 years ago

Hey Alex,

great project, thank you for your effort!

I'm useing a fujitsu:fi-5110Cdj:116473 and insaned works fine with 13 sensors including the "Scan" and "Send to" buttons. But there is an additional button named "Function". This button increases the number of a 1-digt 7-segment Display in front of the scanner. The displayed number seems to be used by the Windows frontend for change the behavior of the scanner. But the value of "Function" is a sane-sensor too:

$ scanimage -A
[...]
  Sensors:
  [...]
    --function <int> [1] [hardware]
        Function character on screen
    --double-feed[=(yes|no)] [no] [hardware]
        Double feed detected
    --error-code <int> [0] [hardware]
        Hardware error code
    --skew-angle <int> [0] [hardware]
        Requires black background for scanning

insaned only shows sensors that reports a boolean status (like --double-feed above). Do you see a possibility to make sensors accessible that reports an integer? In that case it will be possible to select a function (like scanning single- or doubleside, color, bw ) at the panel of the device before pressing the scan button.

Thank you, and Gruß Bernd