abusenius / insaned

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

Working under Arch Linux and Canon LiDE 200 #7

Open ghost opened 7 years ago

ghost commented 7 years ago

Works great! Thanks for writing this up. I was thinking about doing the same sort of thing but using kevent instead of polling, have you given that idea any thought before?

abusenius commented 7 years ago

As far as I know, kevent is not available on Linux, so I don't know much about it. I would prefer using some kind of event-based waiting instead of polling, but I couldn't figure out how to do it with SANE.

ghost commented 7 years ago

I think there is an external library for Linux support: https://github.com/mheily/libkqueue but I'm not sure how it would work with sane directly... the idea I had in my head was to watch the file descriptors via libusb for button presses and then fire off scripts as needed but I'm not sure if that would block sane or not.

On 11 April 2017 at 13:38, Alex Busenius notifications@github.com wrote:

As far as I know, kevent is not available on Linux, so I don't know much about it. I would prefer using some kind of event-based waiting instead of polling, but I couldn't figure out how to do it with SANE.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/abusenius/insaned/issues/7#issuecomment-293377431, or mute the thread https://github.com/notifications/unsubscribe-auth/AAHuL97NPKbRmrCNSAF0jCZRyjxSiE7Cks5ru9bHgaJpZM4M4S2c .