| Summary: | SCAN doesn't work on PSC_500 : device busy | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | balustre <balustre> | ||||
| Component: | kernel | Assignee: | Kernel Maintainer List <kernel-maint> | ||||
| Status: | CLOSED WONTFIX | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||
| Severity: | unspecified | Docs Contact: | |||||
| Priority: | unspecified | ||||||
| Version: | 14 | CC: | gansalmon, itamar, jonathan, jpopelka, kernel-maint, madhu.chinakonda, twaugh | ||||
| Target Milestone: | --- | ||||||
| Target Release: | --- | ||||||
| Hardware: | x86_64 | ||||||
| OS: | Linux | ||||||
| Whiteboard: | |||||||
| Fixed In Version: | Doc Type: | Bug Fix | |||||
| Doc Text: | Story Points: | --- | |||||
| Clone Of: | Environment: | ||||||
| Last Closed: | 2012-08-16 13:44:32 UTC | Type: | --- | ||||
| Regression: | --- | Mount Type: | --- | ||||
| Documentation: | --- | CRM: | |||||
| Verified Versions: | Category: | --- | |||||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
| Cloudforms Team: | --- | Target Upstream Version: | |||||
| Attachments: |
|
||||||
Please run this command: SANE_DEBUG_HPAIO=255 scanimage -L What output do you get? Sorry, i had not access to the computer before, but here is the result : $ SANE_DEBUG_HPAIO=255 scanimage -L [sanei_debug] Setting debug level of hpaio to 255. [hpaio] sane_hpaio_init(): scan/sane/hpaio.c 1593 [hpaio] sane_hpaio_get_devices(local=0): scan/sane/hpaio.c 1612 device `hpaio:/par/PSC_500?device=/dev/parport1' is a Hewlett-Packard PSC_500 all-in-one [hpaio] sane_hpaio_exit(): scan/sane/hpaio.c 1606 Thanks. Now please try this: SANE_DEBUG_HPAIO=255 scanimage -d 'hpaio:/par/PSC_500?device=/dev/parport1'>/dev/null What output do you get now? Sorry, Wasn't sure if it was two different commands or just one so i did the 3 following tests : $ SANE_DEBUG_HPAIO=255 scanimage -d [sanei_debug] Setting debug level of hpaio to 255. [hpaio] sane_hpaio_init(): scan/sane/hpaio.c 1593 [hpaio] sane_hpaio_get_devices(local=0): scan/sane/hpaio.c 1612 [hpaio] sane_hpaio_open(/par/PSC_500?device=/dev/parport1): scan/sane/hpaio.c 1647 [hpaio] device ID string=<MFG:HEWLETT-PACKARD;MDL:PSC 500;CMD:MLC,PCL,PML,SCL;CLS:PRINTER;DES:Hewlett-Packard PSC 500;CMT:OFFICEJET PRO;SERN:MYJ0BE0TJHWZ;VSTATUS:$HB0$FC0,ff,DN,IDLE,CUT;LSS:01;LDF:1;LDE:1;>: scan/sane/hpaio.c 1702 [hpaio] Model = PSC_500: scan/sane/hpaio.c 1710 [hpaio] Scanner type=SCL: scan/sane/hpaio.c 1794 [hpaio] failed to open scan channel: scan/sane/hpaio.c 658 scanimage: open of device hpaio:/par/PSC_500?device=/dev/parport1 failed: Device busy [hpaio] sane_hpaio_exit(): scan/sane/hpaio.c 1606 [ordiclap@localhost ~]$ 'hpaio:/par/PSC_500?device=/dev/parport1'>/dev/null bash: hpaio:/par/PSC_500?device=/dev/parport1: Aucun fichier ou dossier de ce type [ordiclap@localhost ~]$ 'hpaio:/par/PSC_500?device=/dev/parport1'>/dev/null bash: hpaio:/par/PSC_500?device=/dev/parport1: Aucun fichier ou dossier de ce type [ordiclap@localhost ~]$ SANE_DEBUG_HPAIO=255 scanimage -d 'hpaio:/par/PSC_500?device=/dev/parport1'>/dev/null [sanei_debug] Setting debug level of hpaio to 255. [hpaio] sane_hpaio_init(): scan/sane/hpaio.c 1593 [hpaio] sane_hpaio_open(/par/PSC_500?device=/dev/parport1): scan/sane/hpaio.c 1647 [hpaio] device ID string=<MFG:HEWLETT-PACKARD;MDL:PSC 500;CMD:MLC,PCL,PML,SCL;CLS:PRINTER;DES:Hewlett-Packard PSC 500;CMT:OFFICEJET PRO;SERN:MYJ0BE0TJHWZ;VSTATUS:$HB0$FC0,ff,DN,IDLE,CUT;LSS:01;LDF:1;LDE:1;>: scan/sane/hpaio.c 1702 [hpaio] Model = PSC_500: scan/sane/hpaio.c 1710 [hpaio] Scanner type=SCL: scan/sane/hpaio.c 1794 [hpaio] SclSendCommand: size=2 bytes_wrote=2: scan/sane/scl.c 199 [hpaio] [0000] 1B 45 .E [hpaio] SclSendCommand: size=4 bytes_wrote=4: scan/sane/scl.c 199 [hpaio] [0000] 1B 2A 6F 45 .*oE [hpaio] SclSendCommand: size=6 bytes_wrote=6: scan/sane/scl.c 199 [hpaio] [0000] 1B 2A 73 31 38 45 .*s18E [hpaio] SclChannelRead: len=8: scan/sane/scl.c 251 [hpaio] [0000] 1B 2A 73 31 38 7C 35 57 .*s18|5W [hpaio] invalid SclInquire(cmd=2a86,param=18) exp(len=6)/act(len=8): scan/sane/scl.c 258 [hpaio] exp: [hpaio] [0000] 1B 2A 73 31 38 64 .*s18d [hpaio] act: [hpaio] [0000] 1B 2A 73 31 38 7C 35 57 .*s18|5W scanimage: open of device hpaio:/par/PSC_500?device=/dev/parport1 failed: Error during device I/O [hpaio] sane_hpaio_exit(): scan/sane/hpaio.c 1606 I redid the $ SANE_DEBUG_HPAIO=255 scanimage -d 'hpaio:/par/PSC_500?device=/dev/parport1'>/dev/null and this time, it gave a different output : [sanei_debug] Setting debug level of hpaio to 255. [hpaio] sane_hpaio_init(): scan/sane/hpaio.c 1593 [hpaio] sane_hpaio_open(/par/PSC_500?device=/dev/parport1): scan/sane/hpaio.c 1647 [hpaio] device ID string=<MFG:HEWLETT-PACKARD;MDL:PSC 500;CMD:MLC,PCL,PML,SCL;CLS:PRINTER;DES:Hewlett-Packard PSC 500;CMT:OFFICEJET PRO;SERN:MYJ0BE0TJHWZ;VSTATUS:$HB0$FC0,ff,DN,IDLE,CUT;LSS:01;LDF:1;LDE:1;>: scan/sane/hpaio.c 1702 [hpaio] Model = PSC_500: scan/sane/hpaio.c 1710 [hpaio] Scanner type=SCL: scan/sane/hpaio.c 1794 [hpaio] failed to open scan channel: scan/sane/hpaio.c 658 scanimage: open of device hpaio:/par/PSC_500?device=/dev/parport1 failed: Device busy [hpaio] sane_hpaio_exit(): scan/sane/hpaio.c 1606 Is there another job trying to print to that device? Something else has /dev/parport1 open by the looks of it. Well, I'm not trying to print anything while issuing the command. But... how can I know what uses the device to print, and why ? Thanks ! Oh, actually, "busy" looks like code for "it didn't work" in that situation. Does 'dmesg' show anything useful at that point? Failing that, try this: SANE_DEBUG_HPAIO=255 strace scanimage -d 'hpaio:/par/PSC_500?device=/dev/parport1'>/dev/null 2>strace.txt ...and attach the strace.txt file you get. The original strace.txt file was more than 100Mb (?) so I had to cut it... Hope there is still the needed information. Created attachment 502658 [details]
strace.txt edited
That looks like it was successfully scanning... Well, it appears so, and it's true that the printer was "responding" to the command (making noise and such...). But whenever I try to scan now it doesn't work and moreover, the system freezes completely. What output can I make to clear up the situation ? Thanks a lot for your help ! If the system freezes it sounds more like a kernel problem. Reassigning. Some useful tests: does the caps lock key change the keyboard LED? Can you ping the host from another machine? Well, actually... it does not freeze "all the time". Sometimes it just says "device busy", sometimes xscan crashes, sometimes it says "write/read error". I have posted another bug for a time where xscan crashed here : https://bugzilla.redhat.com/show_bug.cgi?id=712583 This message is a notice that Fedora 14 is now at end of life. Fedora has stopped maintaining and issuing updates for Fedora 14. It is Fedora's policy to close all bug reports from releases that are no longer maintained. At this time, all open bugs with a Fedora 'version' of '14' have been closed as WONTFIX. (Please note: Our normal process is to give advanced warning of this occurring, but we forgot to do that. A thousand apologies.) Package Maintainer: If you wish for this bug to remain open because you plan to fix it in a currently maintained version, feel free to reopen this bug and simply change the 'version' to a later Fedora version. Bug Reporter: Thank you for reporting this issue and we are sorry that we were unable to fix it before Fedora 14 reached end of life. If you would still like to see this bug fixed and are able to reproduce it against a later version of Fedora, you are encouraged to click on "Clone This Bug" (top right of this page) and open it against that version of Fedora. Although we aim to fix as many bugs as possible during every release's lifetime, sometimes those efforts are overtaken by events. Often a more recent Fedora release includes newer upstream software that fixes bugs or makes them obsolete. The process we are following is described here: http://fedoraproject.org/wiki/BugZappers/HouseKeeping |
Description of problem: I have a HP_PSC_500 all-in-one printer connected in parallel mode, and well printing, but scanning won't work. Version-Release number of selected component (if applicable): How reproducible: always (even after unplug/plug the printer...). Steps to Reproduce: 1.on BIOS, the parallel port is on EPP+ECP (Parallel Port IRQ : IRQ7) #lspci -v 04:05.2 Parallel controller: NetMos Technology PCI 9865 Multi-I/O Controller (prog-if 03 [IEEE1284]) Subsystem: Device a000:2000 Flags: bus master, medium devsel, latency 64, IRQ 22 I/O ports at e800 [size=8] I/O ports at e480 [size=8] Memory at febfb000 (32-bit, non-prefetchable) [size=4K] Memory at febfa000 (32-bit, non-prefetchable) [size=4K] Capabilities: [48] Power Management version 2 Kernel driver in use: parport_pc Kernel modules: parport_pc 2. Launch xscan and seletc HP_PSC_500 3. Erreur d'ouverture du périphérique 'hpaio:/par/PSC_500?device=/dev/parport1'. Périphérique occupé. Actual results: Scan doesn't work. The device is "busy" Expected results: scan Additional info: $ scanimage -L device `v4l:/dev/video0' is a Noname Camera virtual device device `hpaio:/par/PSC_500?device=/dev/parport1' is a Hewlett-Packard PSC_500 all-in-one # hp-check -t HP Linux Imaging and Printing System (ver. 3.10.9) Dependency/Version Check Utility ver. 14.3 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. Note: hp-check can be run in three modes: 1. Compile-time check mode (-c or --compile): Use this mode before compiling the HPLIP supplied tarball (.tar.gz or .run) to determine if the proper dependencies are installed to successfully compile HPLIP. 2. Run-time check mode (-r or --run): Use this mode to determine if a distro supplied package (.deb, .rpm, etc) or an already built HPLIP supplied tarball has the proper dependencies installed to successfully run. 3. Both compile- and run-time check mode (-b or --both) (Default): This mode will check both of the above cases (both compile- and run-time dependencies). Saving output in log file: hp-check.log Initializing. Please wait... --------------- | SYSTEM INFO | --------------- Basic system information: Linux localhost.localdomain 2.6.35.6-48.fc14.x86_64 #1 SMP Fri Oct 22 15:36:08 UTC 2010 x86_64 x86_64 x86_64 GNU/Linux Distribution: fedora 14 Checking Python version... OK, version 2.7.0 installed Checking PyQt 4.x version... OK, version 4.7.4 installed. Checking for CUPS... Status: le programmateur s'exécute warning: Version: (cups-config) Not available. Unable to determine installed version of CUPS.) error_log is set to level: warn Checking for dbus/python-dbus... dbus daemon is running. python-dbus version: 0.83.0 ------------------------------------ | COMPILE AND RUNTIME DEPENDENCIES | ------------------------------------ note: To check for compile-time only dependencies, re-run hp-check with the -c parameter (ie, hp-check -c). note: To check for run-time only dependencies, re-run hp-check with the -r parameter (ie, hp-check -r). Checking for dependency: CUPS - Common Unix Printing System... OK, found. Checking for dependency: CUPS DDK - CUPS driver development kit... warning: NOT FOUND! This is an OPTIONAL/RUNTIME ONLY dependency. Some HPLIP functionality may not function properly. Checking for dependency: CUPS devel- Common Unix Printing System development files... error: NOT FOUND! This is a REQUIRED/COMPILE TIME ONLY dependency. Please make sure that this dependency is installed before installing or running HPLIP. Checking for dependency: CUPS image - CUPS image development files... error: NOT FOUND! This is a REQUIRED/COMPILE TIME ONLY dependency. Please make sure that this dependency is installed before installing or running HPLIP. Checking for dependency: DBus - Message bus system... error: NOT FOUND! This is a REQUIRED dependency. Please make sure that this dependency is installed before installing or running HPLIP. Checking for dependency: gcc - GNU Project C and C++ Compiler... error: NOT FOUND! This is a REQUIRED/COMPILE TIME ONLY dependency. Please make sure that this dependency is installed before installing or running HPLIP. Checking for dependency: GhostScript - PostScript and PDF language interpreter and previewer... OK, found. Checking for dependency: libcrypto - OpenSSL cryptographic library... error: NOT FOUND! This is a REQUIRED dependency. Please make sure that this dependency is installed before installing or running HPLIP. Checking for dependency: libjpeg - JPEG library... error: NOT FOUND! This is a REQUIRED dependency. Please make sure that this dependency is installed before installing or running HPLIP. Checking for dependency: libnetsnmp-devel - SNMP networking library development files... error: NOT FOUND! This is a REQUIRED dependency. Please make sure that this dependency is installed before installing or running HPLIP. Checking for dependency: libpthread - POSIX threads library... OK, found. Checking for dependency: libtool - Library building support services... error: NOT FOUND! This is a REQUIRED/COMPILE TIME ONLY dependency. Please make sure that this dependency is installed before installing or running HPLIP. Checking for dependency: libusb - USB library... error: NOT FOUND! This is a REQUIRED dependency. Please make sure that this dependency is installed before installing or running HPLIP. Checking for dependency: make - GNU make utility to maintain groups of programs... OK, found. Checking for dependency: PIL - Python Imaging Library (required for commandline scanning with hp-scan)... OK, found. Checking for dependency: PolicyKit - Administrative policy framework... OK, found. Checking for dependency: PyQt 4 DBus - DBus Support for PyQt4... OK, found. Checking for dependency: Python DBus - Python bindings for DBus... OK, found. Checking for dependency: Python devel - Python development files... error: NOT FOUND! This is a REQUIRED/COMPILE TIME ONLY dependency. Please make sure that this dependency is installed before installing or running HPLIP. Checking for dependency: Python libnotify - Python bindings for the libnotify Desktop notifications... OK, found. Checking for dependency: Python XML libraries... OK, found. Checking for dependency: Python 2.3 or greater - Required for fax functionality... OK, found. Checking for dependency: Python 2.2 or greater - Python programming language... OK, found. Checking for dependency: Reportlab - PDF library for Python... OK, found. Checking for dependency: SANE - Scanning library... OK, found. Checking for dependency: SANE - Scanning library development files... error: NOT FOUND! This is a REQUIRED/COMPILE TIME ONLY dependency. Please make sure that this dependency is installed before installing or running HPLIP. Checking for dependency: scanimage - Shell scanning program... OK, found. Checking for dependency: xsane - Graphical scanner frontend for SANE... OK, found. ---------------------- | HPLIP INSTALLATION | ---------------------- Currently installed HPLIP version... HPLIP 3.10.9 currently installed in '/usr/share/hplip'. Current contents of '/etc/hp/hplip.conf' file: # hplip.conf. Generated from hplip.conf.in by configure. [hplip] version=3.10.9 [dirs] home=/usr/share/hplip run=/var/run ppd=/usr/share/ppd/HP ppdbase=/usr/share/ppd doc=/usr/share/doc/hplip-3.10.9 icon=/usr/share/applications cupsbackend=/usr/lib/cups/backend cupsfilter=/usr/lib/cups/filter drv=/usr/share/cups/drv/hp # Following values are determined at configure time and cannot be changed. [configure] network-build=yes pp-build=yes gui-build=yes scanner-build=yes fax-build=yes dbus-build=yes cups11-build=no doc-build=yes shadow-build=no hpijs-install=yes foomatic-drv-install=no foomatic-ppd-install=no foomatic-rip-hplip-install=no hpcups-install=yes cups-drv-install=yes cups-ppd-install=no internal-tag=3.10.9.11 restricted-build=no ui-toolkit=qt4 qt3=no qt4=yes policy-kit=no hpijs-only-build=no lite-build=no udev-acl-rules=yes hpcups-only-build=no hpijs-only-build=no Current contents of '/var/lib/hp/hplip.state' file: # hplip.state - HPLIP runtime persistent variables. [plugin] installed=0 eula=0 Current contents of '~/.hplip/hplip.conf' file: error: Could not access file: Aucun fichier ou dossier de ce type -------------------------- | DISCOVERED USB DEVICES | -------------------------- No devices found. --------------------------------- | INSTALLED CUPS PRINTER QUEUES | --------------------------------- PSC_500 --------- Type: Printer Device URI: hp:/par/PSC_500?device=/dev/parport1 Communication status: Good ---------------------- | SANE CONFIGURATION | ---------------------- 'hpaio' in '/etc/sane.d/dll.conf'... OK, found. SANE backend 'hpaio' is properly set up. Checking output of 'scanimage -L'... device `v4l:/dev/video0' is a Noname Camera virtual device device `hpaio:/par/PSC_500?device=/dev/parport1' is a Hewlett-Packard PSC_500 all-in-one --------------------- | PYTHON EXTENSIONS | --------------------- Checking 'cupsext' CUPS extension... OK, found. Checking 'pcardext' Photocard extension... OK, found. Checking 'hpmudext' I/O extension... OK, found. Checking 'scanext' SANE scanning extension... OK, found. --------------- | USER GROUPS | --------------- root bin daemon sys adm disk wheel ----------- | SUMMARY | ----------- error: 12 errors and/or warnings. Please refer to the installation instructions at: [url]http://hplip.sourceforge.net/install/index.html[/url] Done. Please tell me if you need more informations.