Results 1 to 6 of 6

Thread: 11.1 Unable to print - 5012 device communication error

  1. #1
    Join Date
    May 2009
    Location
    Bulowice Nearby Cracow, Poland
    Posts
    30

    Default 11.1 Unable to print - 5012 device communication error

    Hi all,
    Finally I decided to write this post. I tried to solve my problem for about ~8 hours with no results so I'm desperate I'm even more angry, because some time ago, my HP 1315 (all-in-one dev.) work perfectly with suse - just plug'n'play. I had to reinstall opensuse because my old 5-years Seagate got more and more bad sectors. I wish that I didn't check my hp after clean install, because I don't know what is source of my problem :/

    If I want to print sth, I've got error:

    Code:
    Device communication error 5012
    There is many forums/pages/bugs report that solution is simple, add self to lp group - i'm in lp group now and it's not work for me. What is strange - when I started fight with my printer I had this error too, but Align cartridges (print heads) wizard normally printed this page. I uninstall/reinstall various packages - diffrent hplip package, cups, sane back~ and frontends, xsane etc. and now I'm unable to print this page, test page, not even scan (before I wan able to do this). Sometimes Supplies tab is grayed out.

    hp-check -t:
    Code:
    mateusz@cmxpc:~> hp-check -t
    /usr/share/hplip/installer/core_install.py:32: DeprecationWarning: the sha module is deprecated; use the hashlib module instead
      import sha # TODO: Replace with hashlib (sha is deprecated in Python 3.0)                                                    
    
    HP Linux Imaging and Printing System (ver. 2.8.7)
    Dependency/Version Check Utility ver. 14.0       
    
    Copyright (c) 2001-8 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...
    warning: Invalid ppd_dir value: None
    
    ---------------
    | SYSTEM INFO |
    ---------------
    
    Basic system information:
    Linux cmxpc 2.6.27.37-0.1-pae #1 SMP 2009-10-15 14:56:58 +0200 i686 i686 i386 GNU/Linux
    
    Distribution:
    suse 11.1    
    
    HPOJ running?
    No, HPOJ is not running (OK).
    
    Checking Python version...
    OK, version 2.6.0 installed
    
    Checking PyQt version...
    OK, version 3.17 installed.
    
    Checking SIP version...
    OK, Version 4.7.9 installed
    
    Checking for CUPS...
    Status: planista jest uruchomiony
    Version: 1.3.9
    error_log is set to level: debug
    
    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...
    OK, found.                                                        
    
    Checking for dependency: cups-devel- Common Unix Printing System development files...
    OK, found.                                                                           
    
    Checking for dependency: dbus - Message bus system...
    OK, found.                                           
    
    Checking for dependency: gcc - GNU Project C and C++ Compiler...
    OK, found.                                                      
    
    Checking for dependency: GhostScript - PostScript and PDF language interpreter and previewer...
    OK, found.                                                                                     
    
    Checking for dependency: libcrypto - OpenSSL cryptographic library...
    OK, found.                                                           
    
    Checking for dependency: libjpeg - JPEG library...
    OK, found.                                        
    
    Checking for dependency: libnetsnmp-devel - SNMP networking library development files...
    OK, found.                                                                              
    
    Checking for dependency: libpthread - POSIX threads library...
    OK, found.                                                    
    
    Checking for dependency: libtool - Library building support services...
    OK, found.                                                             
    
    Checking for dependency: libusb - USB library...
    OK, found.                                      
    
    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: ppdev - Parallel port support kernel module....
    OK, found.                                                              
    
    Checking for dependency: PyQt - Qt interface for Python...
    OK, found.                                                
    
    Checking for dependency: python-ctypes - A foreign function library for Python...
    OK, found.                                                                       
    
    Checking for dependency: python-dbus - Python bindings for dbus...
    OK, found.                                                        
    
    Checking for dependency: python-devel - Python development files...
    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...
    OK, found.                                                           
    
    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 2.8.7 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=2.8.7
    
    [dirs]
    home=/usr/share/hplip
    run=/var/run         
    ppd=/usr/share/cups/model/manufacturer-PPDs/hplip
    ppdbase=/usr/share/cups/model/manufacturer-PPDs  
    doc=/usr/share/doc/packages/hplip                
    icon=/usr/share/applications                     
    cupsbackend=/usr/lib/cups/backend                
    cupsfilter=/usr/lib/cups/filter                  
    drv=/usr/lib/cups/driver                         
    
    # 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                                                           
    foomatic-drv-install=no                                                   
    foomatic-ppd-install=yes                                                  
    foomatic-rip-hplip-install=yes                                            
    internal-tag=2.8.7.3                                                      
    restricted-build=no                                                       
    
    
    
    -------------------------------
    | DISCOVERED PARALLEL DEVICES |
    -------------------------------
    
    No devices found.
    
    --------------------------
    | DISCOVERED USB DEVICES |
    --------------------------
    
    No devices found.
    
    ---------------------------------
    | INSTALLED CUPS PRINTER QUEUES |
    ---------------------------------
    
     
    warning: No queues found.
    
    ----------------------
    | SANE CONFIGURATION |
    ----------------------
    
    'hpaio' in '/etc/sane.d/dll.conf'...
    OK, found. SANE backend 'hpaio' is properly set up.
    
    Checking output of 'scanimage -L'...
     
    No scanners were identified. If you were expecting something different,
    check that the scanner is plugged in, turned on and detected by the    
    sane-find-scanner tool (if appropriate). Please read the documentation 
    which came with this software (README, FAQ, manpages).                 
    
    
    ---------------------
    | 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.
    
    
    -----------------
    | USB I/O SETUP |
    -----------------
    
    
    Checking for permissions of USB attached printers...
    
    HP Device 0x3f11 at 003:002:
    warning:     Device URI: (Makeuri FAILED)
        Device node: /dev/bus/usb/003/002
        Mode: 0664
    getfacl: Removing leading '/' from absolute path names
    # file: dev/bus/usb/003/002
    # owner: root
    # group: lp
    user::rw-
    user:mateusz:rw-
    group::rw-
    mask::rw-
    other::r--
    
    
    
    -----------
    | SUMMARY |
    -----------
    
    No errors or warnings.
    
    Done.
    lsusb:
    Code:
    mateusz@cmxpc:~> lsusb
    Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
    Bus 002 Device 004: ID 046d:c30e Logitech, Inc. UltraX Keyboard (Y-BL49)
    Bus 002 Device 002: ID 04fc:0538 Sunplus Technology Co., Ltd
    Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
    Bus 004 Device 002: ID 0e5e:6622
    Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
    Bus 003 Device 002: ID 03f0:3f11 Hewlett-Packard PSC-1315/PSC-1317
    Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
    Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
    ls -lR /dev/bus/usb
    Code:
    mateusz@cmxpc:~> ls -lR /dev/bus/usb/
    /dev/bus/usb/:
    razem 0
    drwxr-xr-x 2 root root  60 lis 11 23:31 001
    drwxr-xr-x 2 root root 100 lis 11 22:59 002
    drwxr-xr-x 2 root root  80 lis 11 23:31 003
    drwxr-xr-x 2 root root  80 lis 11 23:31 004
    drwxr-xr-x 2 root root  60 lis 11 23:31 005
    
    /dev/bus/usb/001:
    razem 0
    crw-r--r-- 1 root vboxusers 189, 0 lis 11 22:48 001
    
    /dev/bus/usb/002:
    razem 0
    crw-r--r-- 1 root vboxusers 189, 128 lis 11 22:48 001
    crw-r--r-- 1 root vboxusers 189, 129 lis 11 22:48 002
    crw-r--r-- 1 root vboxusers 189, 131 lis 11 22:59 004
    
    /dev/bus/usb/003:
    razem 0
    crw-r--r--  1 root vboxusers 189, 256 lis 11 22:48 001
    crw-rw-r--+ 1 root lp        189, 257 lis 11 23:29 002
    
    /dev/bus/usb/004:
    razem 0
    crw-r--r-- 1 root vboxusers 189, 384 lis 11 22:48 001
    crw-r--r-- 1 root vboxusers 189, 385 lis 11 23:31 002
    
    /dev/bus/usb/005:
    razem 0
    crw-r--r-- 1 root vboxusers 189, 512 lis 11 22:48 001
    Maybe this is problem. I'm using Virtualbox (updated to 3.0.8 r5318 on this disk) and I read this page: #3143 (VirtualBox 2.1.2 kills USB printing via hplip on OpenSUSE 11.1 -> fixed in SVN) - VirtualBox I don't know how to fix it, I have no virtualbox rule in /etc/udev. I made chown :lp -R /dev/bus/usb, but after reboot there is vboxusers again :/

    Code:
    mateusz@cmxpc:~> groups
    users disk lp dialout floppy video vboxusers
    dmesg:
    http://pastebin.com/f616d19b2

    cat /var/log/messages:
    http://pastebin.com/f583dc4f2 (about ~3 MB)
    Please look at lines 1678-2071. This is strange:
    Code:
    Nov 11 16:43:44 cmxpc psc_1310_series?serial=CN54TC316RO2: io/hpmud/musb.c 603: invalid product id string ret=-1                       
    Nov 11 16:43:44 cmxpc psc_1310_series?serial=CN54TC316RO2: io/hpmud/musb.c 1058: unable to open hp:/usb/psc_1310_series?serial=CN54TC316RO2
    Two days ago I want to run my Chinese webcam, so I installed the newest gspca drivers. When I try to install vloopback driver I've got disagrees about versions (see my (MattPal) comment here. Maybe this is related with my printer problems? I thought that there is problem with all usb "subsystem", but my mouse, keyboard and Bluetooth dongle works perfectly.

    Thanks in advance, Matthew.

  2. #2
    Join Date
    May 2009
    Location
    Bulowice Nearby Cracow, Poland
    Posts
    30

    Default Re: 11.1 Unable to print - 5012 device communication error

    Ok, after a few minutes testing, I noticed that I can scan. But sometimes I must wait about half minute before scanimage/xsane starts.

    This is output from /var/log/messages:

    Code:
    Nov 12 02:22:51 cmxpc scanimage: io/hpmud/mlc.c 238: unable to read MlcReverseReply header: Resource temporarily unavailable bytesRead=0
    Nov 12 02:22:51 cmxpc scanimage: io/hpmud/mlc.c 347: invalid MLCInitReply retrying command...
    Nov 12 02:22:58 cmxpc scanimage: io/hpmud/mlc.c 238: unable to read MlcReverseReply header: Resource temporarily unavailable bytesRead=0
    Nov 12 02:22:58 cmxpc scanimage: io/hpmud/mlc.c 347: invalid MLCInitReply retrying command...
    Nov 12 02:23:49 cmxpc kernel: ppdev0: registered pardevice
    Nov 12 02:23:49 cmxpc xsane: io/hpmud/pp.c 627: unable to read device-id ret=-1
    Nov 12 02:23:49 cmxpc kernel: ppdev0: unregistered pardevice
    Nov 12 02:23:52 cmxpc xsane: io/hpmud/mlc.c 238: unable to read MlcReverseReply header: Zasoby chwilowo niedostępne bytesRead=0
    Nov 12 02:23:52 cmxpc xsane: io/hpmud/mlc.c 347: invalid MLCInitReply retrying command...
    Nov 12 02:24:01 cmxpc xsane: io/hpmud/mlc.c 238: unable to read MlcReverseReply header: Zasoby chwilowo niedostępne bytesRead=0
    Nov 12 02:24:01 cmxpc xsane: io/hpmud/mlc.c 347: invalid MLCInitReply retrying command...
    "Zasoby chwilowo niedostępne" is same to "Resource temporarily unavailable"
    So this is permission related or driver bug?

  3. #3
    Join Date
    May 2009
    Location
    Bulowice Nearby Cracow, Poland
    Posts
    30

    Default Re: 11.1 Unable to print - 5012 device communication error

    Solved, but my printer (/dev/bus/usb/003/003) must have 0666 instead 0644 chmod. But why? I'm in lp group, device also is. What else must be in lp? Cups daemon?

  4. #4

    Default Re: 11.1 Unable to print - 5012 device communication error

    I discovered that the hp-setup (no parameters) GUI and hp-toolbox both set the printer URI to “hp:/net/Photosmart_C6100_series?zc=HP547597” rather than to “hp:/net/Photosmart_C6100_series?ip=192.168.0.31” as it should be. On Lucid you can go to Mainmenu>System>Administration>Printing (system-config-printing if you need to install it with Synaptic) and change this. Right click on the printer icon, select Properties and edit the URI box. For the printer (not for a printer/fax) you can also set the URI to "socket://<your printer URL>:9100" and it will work. However, if you have a printer/fax you need to use “hp:/net/Photosmart_C6100_series?zc=HP547597”. Also the fax device (the icon Properties) must have a Make/Model of “HP Fax hpcups”. This cannot be changed with system-config-printing. The only way I found to get the fax to work was to use


    hp-setup -i 192.168.0.31


    or to use the
    Code:
    hp-toolbox
    GUI. The toolbox sets the URI wrong, but it can be corrected in system-config-printing. The Model/Make parameters are set correctly by toolbox. Note that my printer URL is 192.168.0.31. Yours will be different.


    I am about to try this same setup on Precise Pangolin 12.04.

  5. #5
    Join Date
    Jun 2008
    Location
    Groningen, Netherlands
    Posts
    19,644
    Blog Entries
    14

    Default Re: 11.1 Unable to print - 5012 device communication error

    Quote Originally Posted by wijnaldumwilliam View Post
    I discovered that the hp-setup (no parameters) GUI and hp-toolbox both set the printer URI to “hp:/net/Photosmart_C6100_series?zc=HP547597” rather than to “hp:/net/Photosmart_C6100_series?ip=192.168.0.31” as it should be. On Lucid you can go to Mainmenu>System>Administration>Printing (system-config-printing if you need to install it with Synaptic) and change this. Right click on the printer icon, select Properties and edit the URI box. For the printer (not for a printer/fax) you can also set the URI to "socket://<your printer URL>:9100" and it will work. However, if you have a printer/fax you need to use “hp:/net/Photosmart_C6100_series?zc=HP547597”. Also the fax device (the icon Properties) must have a Make/Model of “HP Fax hpcups”. This cannot be changed with system-config-printing. The only way I found to get the fax to work was to use


    hp-setup -i 192.168.0.31


    or to use the
    Code:
    hp-toolbox
    GUI. The toolbox sets the URI wrong, but it can be corrected in system-config-printing. The Model/Make parameters are set correctly by toolbox. Note that my printer URL is 192.168.0.31. Yours will be different.


    I am about to try this same setup on Precise Pangolin 12.04.
    Hi, welcome

    Did you notice you're replying to an almost 7 year old thread?
    And, that being able to send a fax is a nice feature, but requires people to be able to receive fax messages, which hardly anybody can these days?
    ° Appreciate my reply? Click the star and let me know why.

    ° Perfection is not gonna happen. No way.

    https://en.opensuse.org/openSUSE:Board#Members
    http://en.opensuse.org/User:Knurpht
    http://nl.opensuse.org/Gebruiker:Knurpht

  6. #6
    Join Date
    Jun 2008
    Location
    Auckland, NZ
    Posts
    20,171
    Blog Entries
    1

    Default Re: 11.1 Unable to print - 5012 device communication error

    Closing thread.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •