[Bug 697694] New: yast scanner module disables usb mouse
https://bugzilla.novell.com/show_bug.cgi?id=697694 https://bugzilla.novell.com/show_bug.cgi?id=697694#c0 Summary: yast scanner module disables usb mouse Classification: openSUSE Product: openSUSE 12.1 Version: Milestone 1 Platform: i686 OS/Version: Other Status: NEW Severity: Normal Priority: P5 - None Component: YaST2 AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: hendrikw@arcor.de QAContact: jsrain@novell.com Found By: Beta-Customer Blocker: --- When I start the scanner module in YaST2 my USB mouse does not work anymore. Possibly related log messages: Jun 2 15:56:43 lthendrik hp-probe: hp-probe[1246]: warning: hp-probe should not be run as root/superuser. Jun 2 15:56:43 lthendrik hp-probe: hp-probe[1246]: warning: No devices found on the 'usb' bus. If this isn't the result you are expecting, Jun 2 15:56:43 lthendrik hp-probe: hp-probe[1246]: warning: check to make sure your devices are properly connected and powered on. Jun 2 15:56:44 lthendrik hp-probe: hp-probe[1254]: warning: hp-probe should not be run as root/superuser. After unplugging and replugging it, it works 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=697694 https://bugzilla.novell.com/show_bug.cgi?id=697694#c zj jia <zjjia@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |zjjia@novell.com AssignedTo|bnc-team-screening@forge.pr |yast2-maintainers@suse.de |ovo.novell.com | -- 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=697694 https://bugzilla.novell.com/show_bug.cgi?id=697694#c1 Arvin Schnell <aschnell@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |NEEDINFO InfoProvider| |hendrikw@arcor.de --- Comment #1 from Arvin Schnell <aschnell@novell.com> 2011-06-14 07:50:29 UTC --- Please provide YaST logs, see http://en.opensuse.org/openSUSE:Bugreport_YaST. -- 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=697694 https://bugzilla.novell.com/show_bug.cgi?id=697694#c2 Hendrik Woltersdorf <hendrikw@arcor.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |NEW InfoProvider|hendrikw@arcor.de | --- Comment #2 from Hendrik Woltersdorf <hendrikw@arcor.de> 2011-06-14 15:52:40 UTC --- Created an attachment (id=434366) --> (http://bugzilla.novell.com/attachment.cgi?id=434366) Yast2-logs -- 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=697694 https://bugzilla.novell.com/show_bug.cgi?id=697694#c Arvin Schnell <aschnell@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|yast2-maintainers@suse.de |jsmeix@novell.com -- 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=697694 https://bugzilla.novell.com/show_bug.cgi?id=697694#c3 Johannes Meixner <jsmeix@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jsmeix@novell.com Component|YaST2 |Other AssignedTo|jsmeix@novell.com |bnc-team-screening@forge.pr | |ovo.novell.com Summary|yast scanner module |autodetecting USB scanners |disables usb mouse |disables USB mouse QAContact|jsrain@novell.com |qa@suse.de --- Comment #3 from Johannes Meixner <jsmeix@novell.com> 2011-06-15 07:34:09 UTC --- The root cause is not the YaST sanner module itself. The YaST sanner module runs standard tools to autodetect scanners via the bash script /usr/lib/YaST2/bin/autodetect_scanners In particular it runs sane-find-scanner -q and hp-probe -busb -escan Run them both as root to find out which of those tools disables your USB mouse. Then inspect /var/log/messages only during the time when those tools run for suspicious messages related to USB and post those messages here. For openSUSE 12.1 those tools did not change. Therefore the root cause is likely lower-level USB probably kernel (compare bug #699450) or perhaps udev or something like this. -- 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=697694 https://bugzilla.novell.com/show_bug.cgi?id=697694#c Johannes Meixner <jsmeix@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |NEEDINFO InfoProvider| |hendrikw@arcor.de -- 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=697694 https://bugzilla.novell.com/show_bug.cgi?id=697694#c4 Hendrik Woltersdorf <hendrikw@arcor.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |NEW InfoProvider|hendrikw@arcor.de | --- Comment #4 from Hendrik Woltersdorf <hendrikw@arcor.de> 2011-06-15 18:01:07 UTC --- I started the two tools and the Yast script as root: ---------------------------------------------------------------------------- lthendrik:/home/hendrik # sane-find-scanner -q lthendrik:/home/hendrik # hp-probe -busb -escan warning: hp-probe should not be run as root/superuser. HP Linux Imaging and Printing System (ver. 3.11.5) Printer Discovery Utility ver. 4.1 Copyright (c) 2001-9 Hewlett-Packard Development Company, LP This software comes with ABSOLUTELY NO WARRANTY. This is free software, and you are welcome to distribute it under certain conditions. See COPYING file for more details. -------------------- | DEVICE DISCOVERY | -------------------- warning: No devices found on the 'usb' bus. If this isn't the result you are expecting, warning: check to make sure your devices are properly connected and powered on. Done. lthendrik:/home/hendrik # /usr/lib/YaST2/bin/autodetect_scanners warning: hp-probe should not be run as root/superuser. warning: No devices found on the 'usb' bus. If this isn't the result you are expecting, warning: check to make sure your devices are properly connected and powered on. warning: hp-probe should not be run as root/superuser. warning: No devices found on the 'cups' bus. If this isn't the result you are expecting, warning: check to make sure your devices are properly connected and powered on. CONNECTION|DEVICE|MANUFACTURER|USB_VENDOR_ID|MODEL|USB_PRODUCT_ID|DESCRIPTION lthendrik:/home/hendrik # -------------------------------------------------------------------------------- the message log of that time: Jun 15 19:47:54 lthendrik hp-probe: hp-probe[8158]: warning: hp-probe should not be run as root/superuser. Jun 15 19:47:54 lthendrik hp-probe: hp-probe[8158]: warning: No devices found on the 'usb' bus. If this isn't the result you are expecting, Jun 15 19:47:54 lthendrik kernel: [ 421.171101] hp-probe[8158]: hp-probe[8158]: warning: check to make sure your devices are properly connected and powered on. Jun 15 19:48:07 lthendrik hp-probe: hp-probe[8172]: warning: hp-probe should not be run as root/superuser. Jun 15 19:48:07 lthendrik hp-probe: hp-probe[8172]: warning: No devices found on the 'usb' bus. If this isn't the result you are expecting, Jun 15 19:48:07 lthendrik hp-probe: hp-probe[8172]: warning: check to make sure your devices are properly connected and powered on. Jun 15 19:48:09 lthendrik hp-probe: hp-probe[8184]: warning: hp-probe should not be run as root/superuser. Jun 15 19:48:09 lthendrik hp-probe: hp-probe[8184]: warning: No devices found on the 'cups' bus. If this isn't the result you are expecting, Jun 15 19:48:09 lthendrik hp-probe: hp-probe[8184]: warning: check to make sure your devices are properly connected and powered on. ------------------------------------------------------------------------- None of these tools disabled my USB mouse. So I started the GUI-Yast2-scanner module and than the mouse got disabled. The message log of that try: Jun 15 19:49:43 lthendrik hp-probe: hp-probe[8489]: warning: hp-probe should not be run as root/superuser. Jun 15 19:49:43 lthendrik hp-probe: hp-probe[8489]: warning: No devices found on the 'usb' bus. If this isn't the result you are expecting, Jun 15 19:49:43 lthendrik hp-probe: hp-probe[8489]: warning: check to make sure your devices are properly connected and powered on. Jun 15 19:49:44 lthendrik hp-probe: hp-probe[8497]: warning: hp-probe should not be run as root/superuser. Jun 15 19:49:44 lthendrik hp-probe: hp-probe[8497]: warning: No devices found on the 'cups' bus. If this isn't the result you are expecting, Jun 15 19:49:44 lthendrik hp-probe: hp-probe[8497]: warning: check to make sure your devices are properly connected and powered on. Jun 15 19:49:56 lthendrik hp-probe: hp-probe[8529]: warning: hp-probe should not be run as root/superuser. Jun 15 19:49:56 lthendrik hp-probe: hp-probe[8529]: warning: No devices found on the 'usb' bus. If this isn't the result you are expecting, Jun 15 19:49:56 lthendrik hp-probe: hp-probe[8529]: warning: check to make sure your devices are properly connected and powered on. Jun 15 19:49:57 lthendrik hp-probe: hp-probe[8537]: warning: hp-probe should not be run as root/superuser. Jun 15 19:49:57 lthendrik hp-probe: hp-probe[8537]: warning: No devices found on the 'cups' bus. If this isn't the result you are expecting, Jun 15 19:49:57 lthendrik hp-probe: hp-probe[8537]: warning: check to make sure your devices are properly connected and powered on. -- 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=697694 https://bugzilla.novell.com/show_bug.cgi?id=697694#c5 --- Comment #5 from Hendrik Woltersdorf <hendrikw@arcor.de> 2011-06-15 18:03:15 UTC --- One more thing: This only happens, when there is no scanner configured in the system. After configuring one, the mouse does not get disabled when I run the GUI-Yast-scanner module. -- 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=697694 https://bugzilla.novell.com/show_bug.cgi?id=697694#c6 Johannes Meixner <jsmeix@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |NEEDINFO InfoProvider| |hendrikw@arcor.de --- Comment #6 from Johannes Meixner <jsmeix@novell.com> 2011-06-16 10:20:30 UTC --- Does # scanimage -L make your USB mouse disabled when there is no scanner configured? Details: If I understand correctly what you wrote in comment #0 "When I start the scanner module in YaST2 my USB mouse does not work anymore" you mean that your USB mouse gets disabled while the YaST scanner module starts up - i.e. your USB mouse is already disabled when the YaST scanner module shows its initial "Scanner Configuration" dialog. This are the scripts which the YaST scanner module runs while it starts up: # /usr/lib/YaST2/bin/create_scanner_database YCP # /usr/lib/YaST2/bin/determine_active_scanners YCP # /usr/lib/YaST2/bin/determine_active_scanner_backends YCP # /usr/lib/YaST2/bin/autodetect_scanners YCP See the output of # grep 'Scanner\.ycp:.*Executing bash commandline:' /var/log/YaST2/y2log Run those scripts one after the other as root as follows: # /usr/lib/YaST2/bin/create_scanner_database YCP &>/dev/null # /usr/lib/YaST2/bin/determine_active_scanners YCP &>/dev/null # /usr/lib/YaST2/bin/determine_active_scanner_backends YCP &>/dev/null # /usr/lib/YaST2/bin/autodetect_scanners YCP &>/dev/null and after each, check if your USB mouse was disabled. Once you found the script which makes your USB mouse disabled, inspect it to see the actual command which is executed therein which makes your USB mouse disabled. I guess it is perhaps the command # scanimage -f '%d,%v,%m;' in /usr/lib/YaST2/bin/determine_active_scanners which is equivalent to # scanimage -L -- 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.
/var/lib/YaST2/autodetected_scanners.ycp 2011-06-16 19:47:19 <3> lthendrik.site(30184) [bash] ShellCommand.cc(shellcommand):78 warning: hp-probe should not be run as root/superuser. 2011-06-16 19:47:19 <3> lthendrik.site(30184) [bash] ShellCommand.cc(shellcommand):78 warning: No devices found on the 'usb' bus. If
/var/lib/YaST2/autodetected_scanners.ycp 2011-06-16 19:47:32 <3> lthendrik.site(30184) [bash] ShellCommand.cc(shellcommand):78 warning: hp-probe should not be run as root/superuser. 2011-06-16 19:47:32 <3> lthendrik.site(30184) [bash] ShellCommand.cc(shellcommand):78 warning: No devices found on the 'usb' bus. If
https://bugzilla.novell.com/show_bug.cgi?id=697694 https://bugzilla.novell.com/show_bug.cgi?id=697694#c7 Hendrik Woltersdorf <hendrikw@arcor.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |NEW InfoProvider|hendrikw@arcor.de | --- Comment #7 from Hendrik Woltersdorf <hendrikw@arcor.de> 2011-06-16 18:02:15 UTC --- After some more experimenting I think, I found the problem. I checked /var/log/YaST2/y2log and saw, that /usr/lib/YaST2/bin/autodetect_scanners was started two times if no device was found: 2011-06-16 19:47:18 <1> lthendrik.site(30184) [YCP] Scanner.ycp:329 Executing bash commandline: /usr/lib/YaST2/bin/autodetect_scanners YCP this isn't the result you are expecting, 2011-06-16 19:47:19 <3> lthendrik.site(30184) [bash] ShellCommand.cc(shellcommand):78 warning: check to make sure your devices are properly connected and powered on. 2011-06-16 19:47:20 <3> lthendrik.site(30184) [bash] ShellCommand.cc(shellcommand):78 warning: hp-probe should not be run as root/superuser. 2011-06-16 19:47:20 <3> lthendrik.site(30184) [bash] ShellCommand.cc(shellcommand):78 warning: No devices found on the 'cups' bus. If this isn't the result you are expecting, 2011-06-16 19:47:20 <3> lthendrik.site(30184) [bash] ShellCommand.cc(shellcommand):78 warning: check to make sure your devices are properly connected and powered on. 2011-06-16 19:47:21 <1> lthendrik.site(30184) [YCP] Scanner.ycp:654 Autodetected scanners: [$[]] 2011-06-16 19:47:21 <1> lthendrik.site(30184) [YCP] Scanner.ycp:916 No autodetected scanners on the first run. To be safe wait a bit and then run AutodetectScanners a second time. 2011-06-16 19:47:21 <1> lthendrik.site(30184) [ui-shortcuts] YShortcutManager.cc(checkShortcuts):100 Not enough widgets with valid shortcut characters - no check 2011-06-16 19:47:31 <1> lthendrik.site(30184) [YCP] Scanner.ycp:329 Executing bash commandline: /usr/lib/YaST2/bin/autodetect_scanners YCP this isn't the result you are expecting, 2011-06-16 19:47:32 <3> lthendrik.site(30184) [bash] ShellCommand.cc(shellcommand):78 warning: check to make sure your devices are properly connected and powered on. 2011-06-16 19:47:33 <3> lthendrik.site(30184) [bash] ShellCommand.cc(shellcommand):78 warning: hp-probe should not be run as root/superuser. 2011-06-16 19:47:33 <3> lthendrik.site(30184) [bash] ShellCommand.cc(shellcommand):78 warning: No devices found on the 'cups' bus. If this isn't the result you are expecting, 2011-06-16 19:47:33 <3> lthendrik.site(30184) [bash] ShellCommand.cc(shellcommand):78 warning: check to make sure your devices are properly connected and powered on. 2011-06-16 19:47:34 <1> lthendrik.site(30184) [YCP] Scanner.ycp:654 Autodetected scanners: [$[]] ------------------------------------------------- Then I started "/usr/lib/YaST2/bin/autodetect_scanners YCP" a couple of times at the command line directly one after another. After a few runs the mouse got disabled. So I guess it is kind of a timing problem, when this script (or hp-probe?) is run too fast more than one time in a row. -- 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=697694 https://bugzilla.novell.com/show_bug.cgi?id=697694#c8 Johannes Meixner <jsmeix@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Priority|P5 - None |P3 - Medium Status|NEW |ASSIGNED Component|Other |YaST2 Platform|i686 |All AssignedTo|bnc-team-screening@forge.pr |jsmeix@novell.com |ovo.novell.com | QAContact|qa@suse.de |jsrain@novell.com Summary|autodetecting USB scanners |yast2-scanner: run |disables USB mouse |autodetect_scanners | |subsequently could lead to | |disabled USB devices (e.g. | |USB mouse) OS/Version|Other |SuSE Other --- Comment #8 from Johannes Meixner <jsmeix@novell.com> 2011-06-17 08:38:18 UTC --- Very many thanks for your analysis! Such good analysis help us so much! In yast2-scanner I like to add some artificial sleep time between subsequent calls of autodetect_scanners hoping that this helps to avoid the issue. Please add a "sleep 3" line in /usr/lib/YaST2/bin/autodetect_scanners before each of the "sane-find-scanner -q" and "hp-probe -busb -escan" calls as follows: ----------------------------------------------------------------- if [ -x /usr/bin/sane-find-scanner ] then sleep 3 sane-find-scanner -q >$TMP_DATA_RAW & .. if [ -x /usr/bin/hp-probe ] then sleep 3 hp-probe -busb -escan | tr -s '[:blank:]' | grep ... ----------------------------------------------------------------- Then again run "/usr/lib/YaST2/bin/autodetect_scanners YCP" a couple of times at the command line directly one after another. Please report which sleep value works well for you (perhaps "sleep 1" is already sufficient, or you may need even "sleep 10"). The root cause is a low-level timing problem probably somehow related to lower-level USB (i.e. kernel) or perhaps udev or something like this. YaST does not run the programs simultaneously but one after the other and even if such programs would run simultaneously no USB device should get disabled. On a multi-tasking/mulit-user system, it should work when all users run "sane-find-scanner -q" and/or "hp-probe -busb -escan" many times simultaneously. Please try out if running "sane-find-scanner -q" many times or running "hp-probe -busb -escan" many times makes your USB mose disabled. Then I suggest that you make a new separate bug report (probably regarding "kernel") where you describe only the root issue - e.g. something like "running <USB-scanning-program> leads to disabled USB devices" -- 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=697694 https://bugzilla.novell.com/show_bug.cgi?id=697694#c Johannes Meixner <jsmeix@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |NEEDINFO InfoProvider| |hendrikw@arcor.de -- 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=697694 https://bugzilla.novell.com/show_bug.cgi?id=697694#c9 Hendrik Woltersdorf <hendrikw@arcor.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |ASSIGNED InfoProvider|hendrikw@arcor.de | --- Comment #9 from Hendrik Woltersdorf <hendrikw@arcor.de> 2011-06-17 18:34:54 UTC --- I tested the two programs and found, that sane-find-scanner is the program disabling my mouse. But waiting <n> seconds does not solve the problem. Sometimes even the first run after waiting a minute or longer disables the mouse. Should I open a new bug here (regarding "kernel") or at the SANE bug tracker at debian.org? -- 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=697694 https://bugzilla.novell.com/show_bug.cgi?id=697694#c10 --- Comment #10 from Johannes Meixner <jsmeix@novell.com> 2011-06-21 07:57:18 UTC --- Because sane-find-scanner in openSUSE:Factory/openSUSE:12.1 is the same as in openSUSE:11.4 and the issue didn't happen in openSUSE:11.4 and older openSUSE versions (I don't know of any such issue in the past), I think it is best to first open a bug here regarding "kernel" because I assume something has changed in the kernel which causes it now. When you open a bug here regarding "kernel", please attach sane-find-scanner debug output when you run it as follows: # export SANE_DEBUG_SANEI_USB=128 # sane-find-scanner -vv Additionally inspect the output in /var/log/messages and in "dmesg" while you run sane-find-scanner for suspicious USB related messages and attach them too. Then our kernel experts either find a bug in the kernel or they might find out that sane-find-scanner does soemthing wrong which had worked in the past only by luck. In the latter case (i.e. a bug in sane-find-scanner) you should I open a bug report at the SANE bug tracker. -- 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=697694 https://bugzilla.novell.com/show_bug.cgi?id=697694#c11 --- Comment #11 from Hendrik Woltersdorf <hendrikw@arcor.de> 2011-06-21 18:13:23 UTC --- I opened a kernel bug report for this case: #701368. -- 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=697694 https://bugzilla.novell.com/show_bug.cgi?id=697694#c12 Johannes Meixner <jsmeix@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution| |DUPLICATE --- Comment #12 from Johannes Meixner <jsmeix@novell.com> 2011-07-14 08:13:40 UTC --- At least for now I close this one as a duplicate of bug #701368. If the result is that sane-find-scanner does something wrong, this bug here can be reopened or - even better - an upstream bug should be filed at the SANE bug tracker at http://www.sane-project.org/bugs.html Hendrik Woltersdorf, if you file an upstream bug at the SANE bug tracker, please post the URL of the upstream bug here so that we have a link to the upstream bug. *** This bug has been marked as a duplicate of bug 701368 *** http://bugzilla.novell.com/show_bug.cgi?id=701368 -- 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.
participants (1)
-
bugzilla_noreply@novell.com