[Bug 596411] New: Scanbuttond can't find usb scanner, problem with libusb compatibility library
http://bugzilla.novell.com/show_bug.cgi?id=596411 http://bugzilla.novell.com/show_bug.cgi?id=596411#c0 Summary: Scanbuttond can't find usb scanner, problem with libusb compatibility library Classification: openSUSE Product: openSUSE 11.2 Version: Final Platform: x86-64 OS/Version: openSUSE 11.2 Status: NEW Severity: Normal Priority: P5 - None Component: Other AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: gblackman@aanet.com.au QAContact: qa@suse.de Found By: --- Blocker: --- Created an attachment (id=354223) --> (http://bugzilla.novell.com/attachment.cgi?id=354223) Extracts from system logs User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-GB; rv:1.9.1.8) Gecko/20100204 SUSE/3.5.8-0.1.1 Firefox/3.5.8 Scanbuttond is a daemon that listens for button presses from a USB scanner and runs a script (buttonpressed.sh) when a press is detected. It uses libusb (not sane) to inter-act with the scanner. I have successfully used scanbuttond with a number of previous versions of openSUSE but it won't work with 11.2. With 11.2, it doesn't respond to button presses and never runs the script. The logs show the daemon starts and loads its required back-ends but that it cannot find the installed USB scanner. I have tried the 2 binary versions of scanbuttond (from the repositories) and also compiled from source. The results are the same in each case; scanner not detected so no response to button presses. I should add that the scanner itself is correctly identified by both scanimage -L and lsusb, and scans perfectly using Skanlite or Xsane. I now find that down-grading from the standard libusb-compat (libusb-0_1-4-0.1.13-2.2.x86_64 I think) to the older libusb-0_1-4-0.1.12-140.1.x86_64 (per bug #559697) fixes the problem. The daemon finds the scanner and properly detects any button presses. It seems very likely that scanbuttond relies on a feature from the original libusb0 that is not properly replicated in the compatibility library for libusb1. Reproducible: Always Steps to Reproduce: 1. Install scanbuttond 2. Press a scanner button 3. Actual Results: Nothing happens - logs show scanner not detected. Expected Results: buttonpressed.sh script should run -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=596411
http://bugzilla.novell.com/show_bug.cgi?id=596411#c1
Johannes Meixner
http://bugzilla.novell.com/show_bug.cgi?id=596411
http://bugzilla.novell.com/show_bug.cgi?id=596411#c2
--- Comment #2 from Graeme Blackman
http://bugzilla.novell.com/show_bug.cgi?id=596411
http://bugzilla.novell.com/show_bug.cgi?id=596411#c3
Johannes Meixner
http://bugzilla.novell.com/show_bug.cgi?id=596411
http://bugzilla.novell.com/show_bug.cgi?id=596411#c4
Marcus Meissner
http://bugzilla.novell.com/show_bug.cgi?id=596411
http://bugzilla.novell.com/show_bug.cgi?id=596411#c6
--- Comment #6 from Stanislav Brabec
http://bugzilla.novell.com/show_bug.cgi?id=596411
http://bugzilla.novell.com/show_bug.cgi?id=596411#c7
--- Comment #7 from Graeme Blackman
http://bugzilla.novell.com/show_bug.cgi?id=596411
http://bugzilla.novell.com/show_bug.cgi?id=596411#c8
--- Comment #8 from Graeme Blackman
http://bugzilla.novell.com/show_bug.cgi?id=596411
http://bugzilla.novell.com/show_bug.cgi?id=596411#c9
--- Comment #9 from Graeme Blackman
https://bugzilla.novell.com/show_bug.cgi?id=596411
https://bugzilla.novell.com/show_bug.cgi?id=596411#c10
T Gergely
https://bugzilla.novell.com/show_bug.cgi?id=596411
https://bugzilla.novell.com/show_bug.cgi?id=596411#c11
Graeme Blackman
scanbuttond/libusbi.c defines some functions with names that clash with lubusb-compat (libusb_init, libusb_open, libusb_close). Those must be renamed.
Hey, many thanks for that. I thought it was all dead and forgotten. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=596411
https://bugzilla.novell.com/show_bug.cgi?id=596411#c12
--- Comment #12 from T Gergely
Hey, many thanks for that. I thought it was all dead and forgotten.
You're welcome. Yeah, I thought the same, but my father was so furious about the scan/print button not working, I had to waste my day solving this issue. And since I claim I use OSS so I can fix issues, I have to justify that. Now that I solved that, I have to figure out why scanimage is waiting for a minute after scanning a page. :( Anyway, I try to contact the project author to have this project alive again. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=596411
https://bugzilla.novell.com/show_bug.cgi?id=596411#c13
--- Comment #13 from Graeme Blackman
https://bugzilla.novell.com/show_bug.cgi?id=596411
https://bugzilla.novell.com/show_bug.cgi?id=596411#c14
--- Comment #14 from Stanislav Brabec
https://bugzilla.novell.com/show_bug.cgi?id=596411
https://bugzilla.novell.com/show_bug.cgi?id=596411#c15
Stanislav Brabec
https://bugzilla.novell.com/show_bug.cgi?id=596411
https://bugzilla.novell.com/show_bug.cgi?id=596411#c16
Andreas Jaeger
https://bugzilla.novell.com/show_bug.cgi?id=596411
https://bugzilla.novell.com/show_bug.cgi?id=596411#c17
--- Comment #17 from Marcus Meissner
https://bugzilla.novell.com/show_bug.cgi?id=596411
https://bugzilla.novell.com/show_bug.cgi?id=596411#c18
--- Comment #18 from Marcus Meissner
https://bugzilla.novell.com/show_bug.cgi?id=596411
https://bugzilla.novell.com/show_bug.cgi?id=596411#c19
--- Comment #19 from Stanislav Brabec
https://bugzilla.novell.com/show_bug.cgi?id=596411
https://bugzilla.novell.com/show_bug.cgi?id=596411#c20
--- Comment #20 from Graeme Blackman
participants (1)
-
bugzilla_noreply@novell.com