Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Blogs > vik
User Name


Rate this Entry

hplip error: Unable to communicate with device (code=12)

Posted 12-18-2012 at 11:00 PM by vik
Updated 07-06-2013 at 11:16 AM by vik

I have a wireless networked HP printer and was getting this error: Unable to communicate with device (code=12). I ran hp-check, hp-setup, hp-plugin, etc. After a few days' worth of frustration, I've figured it out.

The key was this:
So after running
snmpwalk -Os -c public -v 1 ip.address.of.printer
I got this message: Timeout: No Response from ip.address.of.printer

Then I remembered that I had previously turned off SNMP discovery on the printer. All of my Windows computers were working fine with it off so no harm done, right? Well hplip on Linux needs it for some reason, even if you manually specify the IP address of the printer.
  • click on networking tab
  • click on SNMP in left pane
  • enable SNMP read-only access
  • try the snmpwalk command again
  • you should now see your printer, be able to print, etc.
Posted in Uncategorized
Views 5698 Comments 2
« Prev     Main     Next »
Total Comments 2


  1. Old Comment
    How do you determine the printer address idf hplip is unable to communicate with it.
    Posted 01-07-2013 at 01:17 AM by bayvista bayvista is offline
  2. Old Comment
    In this instance I had manually set the IP address of the printer, then afterwards turned off the SNMP service. If you need help setting up the IP this may help:
    Posted 01-16-2013 at 04:53 PM by vik vik is offline


All times are GMT -5. The time now is 03:46 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration