Suse 12.1 is not detecting printer?

Hi,

I am not sure what sort of problem this is. It might not be anything to do with Suse. I have a newer machine and have just installed Suse 12.1. My printer HP Laserjet M1132 MFP is plugged in via a USB port.

Suse has not detected it. I have changed it with the port my USB hub was plugged into and it is still not detecting it. The machine is multiboot and I have had the opportunity to check out Mandriva and the printer is not detected.

The printer is quite new and was working with the old machine. I did have problems when I bought the printer, but it was detected by the machine.

Any thoughts gratefully received. Thank you.

Try navigating to Applications -->System → Configuration and select HP Device Manager
There is an USB configuration feature with the HP Toolbox.

If it’s not in the library, you can download the files from the hp.com printing website.

As a start, the following commands can be useful here. With your printer plugged in use the following commands and post what is reported:

lsusb
/usr/lib/cups/backend/usb

Proceeding from there, the HP config utility (run with root privileges) should detect the printer

su -c hp-setup

Report back.

BTW, if you find that the HP utility can’t find the CUPS server, then it may be necessary to manually start CUPS first, with

sudo /usr/sbin/rccups start

For openSUSE 12.1 onwards, and employing systemd, the following command can be used

sudo systemctl start cups.service

It is not usually necessary to have the CUPS daemon running at boot, as systemd uses udev/dbus to start the service automatically when needed. However, to start at boot, one can configure with

sudo systemctl enable cups.service
lsusb
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 003: ID 03f0:042a Hewlett-Packard 
Bus 002 Device 002: ID 05e3:0604 Genesys Logic, Inc. USB 1.1 Hub
Bus 002 Device 003: ID 058f:9360 Alcor Micro Corp. 8-in-1 Media Card Reader


/usr/lib/cups/backend/usb

Nothing happened? It just went back to the prompt.

Proceeding from there, the HP config utility (run with root privileges) should detect the printer

su -c hp-setup
 su -c hp-setup
Password: 

HP Linux Imaging and Printing System (ver. 3.11.10)
Printer/Fax Setup Utility ver. 9.0

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.

Searching... (bus=usb, search=(None), desc=0)
error: No devices found on bus: usb

Done.

Report back.[/QUOTE]

I am heartened to see

Bus 001 Device 003: ID 03f0:042a Hewlett-Packard

I presume my machine can see the printer?
I don’t know what happened to the second command? I am notorious for not typing what is seen so I did cut and paste the commands.

Regards

Nappy

Sorry Romanator](http://forums.opensuse.org/members/romanator.html)
http://forums.opensuse.org/images/novell/user-offline.pngI am not sure I understand the last line. Your first line took me to Device Discovery the radio button for Universal Serial Bus (USB) was already ticked, but after ok it still says ‘no devices found’.

Thank you.

Suse has not detected it. I have changed it with the port my USB hub was plugged into and it is still not detecting it. The machine is multiboot and I have had the opportunity to check out Mandriva and the printer is not detected.

If you’ve connected the printer via a hub, change it so that the printer is directly connected to one of the PC’s USB ports.

What do the following commands report?

systemctl status cups.service
su -c 'hp-check -t'

Sorry, I am not being clear. The printer is plugged directly in the back of the computer. I also have a USB hub plugged in beside it which is working. I did swap them over, just to check that I hadn’t put the printer in a port that was not working. So the printer is plugged directly into the back of the computer in a different USB, but I know that port is working as the USB hub was working in it before.

What do the following commands report?

systemctl status cups.service
systemctl status cups.service
cups.service - LSB: CUPS printer daemon
          Loaded: loaded (/etc/init.d/cups)
          Active: active (running) since Sun, 26 Aug 2012 17:38:53 +0100; 5h 0min ago
         Process: 897 ExecStart=/etc/init.d/cups start (code=exited, status=0/SUCCESS)
          CGroup: name=systemd:/system/cups.service
                  └ 1116 /usr/sbin/cupsd -C /etc/cups/cupsd.conf


su -c 'hp-check -t'
su -c 'hp-check -t'
Password: 

HP Linux Imaging and Printing System (ver. 3.11.10)
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 linux-8pq5 3.1.10-1.16-default #1 SMP Wed Jun 27 05:21:40 UTC 2012 (d016078) i686 athlon i386 GNU/Linux

Distribution:
suse 12.1

Checking Python version...
OK, version 2.7.2 installed

Checking PyQt 4.x version...
OK, version 4.8.5 installed.

Checking for CUPS...
Status: scheduler is running
Version: 1.5.0
error_log is set to level: warn

Checking for dbus/python-dbus...
dbus daemon is running.
python-dbus version: 0.83.2


------------------------------------
| 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 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...
error: NOT FOUND! This is a REQUIRED dependency. Please make sure that this dependency is installed before installing or running HPLIP.

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...
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: PIL - Python Imaging Library (required for commandline scanning with hp-scan)...
warning: NOT FOUND! This is an OPTIONAL/RUNTIME ONLY dependency. Some HPLIP functionality may not function properly.

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...
warning: NOT FOUND! This is an OPTIONAL/RUNTIME ONLY dependency. Some HPLIP functionality may not function properly.

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...
warning: NOT FOUND! This is an OPTIONAL/RUNTIME ONLY dependency. Some HPLIP functionality may not function properly.

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...
warning: NOT FOUND! This is an OPTIONAL/RUNTIME ONLY dependency. Some HPLIP functionality may not function properly.


----------------------
| HPLIP INSTALLATION |
----------------------


Currently installed HPLIP version...
HPLIP 3.11.10 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.11.10

[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
hpijs-install=yes
foomatic-drv-install=no
foomatic-ppd-install=yes
foomatic-rip-hplip-install=no
hpcups-install=yes
cups-drv-install=no
cups-ppd-install=yes
internal-tag=3.11.10
restricted-build=no
ui-toolkit=qt4
qt3=no
qt4=yes
policy-kit=no
hpijs-only-build=no
lite-build=no
udev-acl-rules=no
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: No such file or directory

--------------------------
| DISCOVERED USB DEVICES |
--------------------------

No devices found.

---------------------------------
| INSTALLED CUPS PRINTER QUEUES |
---------------------------------

 
lpstat
------
Type: Unknown
Device URI: No destinations added.


----------------------
| 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 0x42a at 001:003: 
    Device URI: hp:/usb/HP_LaserJet_Professional_M1132_MFP?serial=000000000QH4RWPZSI1c
    Device node: /dev/bus/usb/001/003
    Mode: 0664
getfacl: Removing leading '/' from absolute path names
# file: dev/bus/usb/001/003
# owner: root
# group: lp
user::rw-
user:janet:rw-
group::rw-
mask::rw-
other::r--



---------------
| USER GROUPS |
---------------

root


-----------
| SUMMARY |
-----------

error: 17 errors and/or warnings.

Please refer to the installation instructions at:
http://hplip.sourceforge.net/install/index.html


Done.


This is a good sign



Checking for permissions of USB attached printers...  HP Device 0x42a at 001:003:      Device URI: hp:/usb/HP_LaserJet_Professional_M1132_MFP?serial=000000000QH4RWPZSI1c     Device node: /dev/bus/usb/001/003     Mode: 0664 getfacl: Removing leading '/' from absolute path names # file: dev/bus/usb/001/003 # owner: root # group: lp user::rw- user:janet:rw- group::rw- mask::rw- other::r-- 

HPLIP site does mention that a plugin is required before printing is possible, although I don’t know why hp-setup cannot proceed with the configuration.

Driver Plugin Information:

This printer REQUIRES a downloadable driver plug-in. Use hp-setup to install the printer, and to download and install the plug-in. In general, required driver plugins are required for printing support. Driver plug-ins are released under a proprietary (non-open) license and are not part of the HPLIP tarball release.

HP Linux Imaging and Printing

Maybe try starting with downloading and installling the required plug-in first

su -c hp-plugin

then run ‘hp-setup’ again.

su -c hp-plugin
Password: 

HP Linux Imaging and Printing System (ver. 3.11.10)
Plugin Download and Install Utility ver. 2.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.

/Checking for network connection...
Downloading configuration file from: http://hplip.sf.net/plugin.conf
Checking for network connection...
Downloading plug-in from: http://www.openprinting.org/download/printdriver/auxfiles/HP/plugins/hplip-3.11.10-plugin.run
Receiving digital keys: /usr/bin/gpg --no-permission-warning --keyserver pgp.mit.edu --recv-keys 0xA59047B9
Verifying archive integrity... All good.
Uncompressing HPLIP 3.11.10 Plugin Self Extracting Archive.........................................

HP Linux Imaging and Printing System (ver. 3.11.10)
Plugin Installer ver. 3.0

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.

Plug-in version: 3.11.10
Installed HPLIP version: 3.11.10
Number of files to install: 36


Done.
 Plug-in installation successful. 

Done.


then run ‘hp-setup’ again.

hp-setup

HP Linux Imaging and Printing System (ver. 3.11.10)
Printer/Fax Setup Utility ver. 9.0

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.

Searching... (bus=usb, search=(None), desc=0)
error: No devices found on bus: usb
Searching... (bus=usb, search=(None), desc=0)
error: No devices found on bus: usb

Done.


When I purchased the printer it didn’t work, because it didn’t have a plugin. See here:
http://forums.opensuse.org/english/get-technical-help-here/hardware/476256-laserjet-professional-m1132-mfp-hpcups-3-11-5-requires-proprietary-plugin.html
However this time, it is saying it is not detecting it, although it appears it can see my printer

USB attached printers…

HP Device 0x42a at 001:003:      Device URI: hp:/usb/HP_LaserJet_Professional_M1132_MFP?serial=000000000QH4RWPZSI1c 

Thank you for persevering with it. I find it frustrating as it is my first laser printer and the whole family really like it and we have only had it for a couple of months. Could it be a hardware issue with the new machine?

Regards

Nappy501

Have downloaded and installed the foo2xqx driver? http://foo2xqx.rkkda.com/

Printer: HP LaserJet Pro M1132 MFP | OpenPrinting - The Linux Foundation

Add these lines to your .bashrc file:

LD_LIBRARY_PATH=/usr/lib64/:$LD_LIBRARY_PATH
export LD_LIBRARY_PATH

Have you tried running all commands by logging as Root account?

                 Have you tried running all commands by logging as **Root** account?                 

Not necessary, and bad practice! The commands can be executed with root privileges, while logged in to the DE as a regular user.

Well, the lsusb and hp-check output suggest that the problem is not with the printer or USB subsystem. I’d be tempted to consider upgrading to the latest HPLIP version via

HP Linux Imaging and Printing

Thank you, but no. It still says ‘no devices detected’. I have noticed that under ‘hp-setup’ there is an advanced option where you can carry out a ‘manual search’. I am going to see if I can work out how to enter the correct information for a manual search.

I am really gutted. I thought we had got there. I entered ‘001:003’ in the manual search. The device was found, but when I ticked the box for a test print, I received the error

hp-setup

HP Linux Imaging and Printing System (ver. 3.12.6)
Printer/Fax Setup Utility ver. 9.0

Copyright (c) 2001-14 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.

error: No devices found on bus: usb
error: No devices found on bus: usb
Found device: hp:/usb/HP_LaserJet_Professional_M1132_MFP?serial=000000000QH4RWPZSI1c
error:  The printer you are trying to setup requires a binary driver plug-in and it failed to install.  Please check your internet connection and try again.  Visit  http://hplipopensource.com  for more infomation. 
error: Unable to communicate with device (code=12): hp:/usb/HP_LaserJet_Professional_M1132_MFP?serial=000000000QH4RWPZSI1c
error:  Unable to print to printer.  Please check device and try again.

Done.

But I thought the plugin was set up. When I visited HP Linux Imaging and Printing, it talked about installing hplip. Well I thought I had just upgraded to 3.12.6. However when I check in YAST, it said I had 3.11.10-3.1.2. So I tried to install the newest hplip again and got this.

INSTALL MISSING OPTIONAL DEPENDENCIES
-------------------------------------
warning: There are 1 missing OPTIONAL dependencies.
note: Installation of dependencies requires an active internet connection.
warning: Missing OPTIONAL dependency for option 'gui_qt4': python-notify (Python libnotify - Python bindings for the libnotify Desktop notifications)           
 

CHECKING FOR NETWORK CONNECTION
-------------------------------
Network connection present.


RUNNING PRE-PACKAGE COMMANDS
----------------------------
su -c "zypper refresh" (Pre-depend step 1)
OK


DEPENDENCY AND CONFLICT RESOLUTION
----------------------------------
Running 'su -c "zypper --non-interactive --no-gpg-checks in --auto-agree-with-licenses python-notify"'
Please wait, this may take several minutes...
HPLIP-3.12.6 exists, this may conflict with the new one being installed.
Do you want to ('i'= Remove and Install, 'o'= Overwrite*, 'q'= Quit)?   :q
error: User Exit


As you can see I stopped the installation as it is saying it is already there.
When I googled this “Unable to communicate with device (code=12)” I got this: [Bug 572982] Unable to communicate with device (code=12): hp:/usb/photos](http://lists.opensuse.org/opensuse-bugs/2010-01/msg04256.html) from 2010 and there is some reference to this on Ubuntu, but I don’t understand it.

Well I thought I had just upgraded to 3.12.6. However when I check in YAST, it said I had 3.11.10-3.1.2. So I tried to install the newest hplip again and got this.

That is because YaST only knows about RPM packages. When you upgraded hplip, it was via an executable .run file. (The RPM database is not up with the play).

Try using “dmesg | less” (without the quotes) and look for the USB connection and also hp-probe.

At this point you may have to contact the HP printing tech. support. They are very familiar with their software.

I have included more commands that you can use.

**
Using command line tools**

HPLIP includes many command line tools. Most of these features are available from the hp-toolbox. However you can run the commands separately or at the command line with many different variables and options.

If you run the command with -h you will get help on using the application.

hp-align - performs the align cartridges function (certain printers only)

**hp-check **- checks the system for the current status of HPLIP

hp-clean - performs the clean cartridges function. (certain printers only)

hp-colorcal - perform the color cartridge function. (certain printers only)

hp-fab - opens the fax address book

hp-firmware - downloads the firmware to the printer (if supported)

hp-info - display printer information and status

hp-levels - displays the current ink cartridge level

hp-makecopies - starts the make copies application (certain printers only)

hp-makeuri - creates device URI’s for use with cups

hp-print - starts the hplip print application

hp-probe - discovers attached usb, parallel, and network printers

hp-scan - starts the hplip scan utility (interactive only no GUI)

**hp-sendfax **- starts the send fax application (certain printers only)

hp-setup - used to configure and install a printer or another printer queue

**hp-systray **- starts the hplip systray tool, this is started automatically when hp-toolbox is run

hp-testpage - sends a test page to the printer

hp-timedate - sets the time and date on the printer (certain printers only)

hp-toolbox - starts the hp device manager application used to access most of the hplip tools

**hp-unload **- used to access the printer photo cards, not all printers are supported (certain printers only)

When I googled this “Unable to communicate with device (code=12)” I got this: [Bug 572982] Unable to communicate with device (code=12): hp:/usb/photos](http://lists.opensuse.org/opensuse-bugs/2010-01/msg04256.html) from 2010 and there is some reference to this on Ubuntu, but I don’t understand it.

I only had time to skim read it, but I note the last suggestion about being a member of the ‘users’ group as well as the ‘lp’ group. For reference, here’s my user membership

:~> groups
users lp uucp dialout cdrom video games