LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices

Reply
 
Search this Thread
Old 10-26-2012, 07:37 AM   #1
dwhb
Member
 
Registered: Jul 2012
Location: Down Under
Distribution: suSE but seriously considering other options
Posts: 45

Rep: Reputation: Disabled
HP printer successful driver install but no printer detected


USB printer together with all other external usb sticks/drives, CD & DVDs do not invoke Device Notifier. MyComputer also not displaying disk information even of the mounted hard disk.

Following is the hp -fix, reinstallation of driver and hp-setup log. My printer is single function (no fax or scan) and as far as I am aware, driver & plugin were successfully installed. Printer not detected could be tied in with MyComputer not displaying disk info and other removable drives not picked up?

daisyb@linux-dwdt:~> hp-check --fix

HP Linux Imaging and Printing System (ver. 3.12.10a)
Dependency/Version Check Utility ver. 15

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.

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).

Check types:
a. EXTERNALDEP - External Dependencies
b. GENERALDEP - General Dependencies (required both at compile and run
time)
c. COMPILEDEP - Compile time Dependencies
d. [All are run-time checks]
PYEXT SCANCONF QUEUES PERMISSION

Status Types:
OK
MISSING - Missing Dependency or Permission or Plug-in
INCOMPAT - Incompatible dependency-version or Plugin-version

Saving output in log file: /home/daisyb/hp-check.log

Initializing. Please wait...
/
** (process:3880): WARNING **: Trying to register gtype 'GMountMountFlags' as enum when in fact it is of type 'GFlags'

** (process:3880): WARNING **: Trying to register gtype 'GDriveStartFlags' as enum when in fact it is of type 'GFlags'

** (process:3880): WARNING **: Trying to register gtype 'GSocketMsgFlags' as enum when in fact it is of type 'GFlags'

---------------
| SYSTEM INFO |
---------------

Kernel: 3.4.11-2.16-desktop #1 SMP PREEMPT Wed Sep 26 17:05:00 UTC 2012 (259fc87) GNU/Linux
Host: linux-dwdt
Proc: 3.4.11-2.16-desktop #1 SMP PREEMPT Wed Sep 26 17:05:00 UTC 2012 (259fc87) GNU/Linux
Distribution: suse 12.2

-----------------------
| HPLIP CONFIGURATION |
-----------------------

HPLIP-Version: HPLIP 3.12.10a
HPLIP-Home: /usr/share/hplip
HPLIP-Installation: Auto installation is supported for suse distro 12.2 version

Current contents of '/etc/hp/hplip.conf' file:
# hplip.conf. Generated from hplip.conf.in by configure.

[hplip]
version=3.12.10a

[dirs]
home=/usr/share/hplip
run=/var/run
ppd=/usr/share/cups/model/HP
ppdbase=/usr/share/cups/model
doc=/usr/share/doc/hplip-3.12.10a
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
libusb01-build=no
pp-build=no
gui-build=yes
scanner-build=yes
fax-build=yes
dbus-build=yes
cups11-build=no
doc-build=yes
shadow-build=no
hpijs-install=no
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.12.10a
restricted-build=no
ui-toolkit=qt4
qt3=no
qt4=yes
policy-kit=no
hpijs-only-build=no
lite-build=no
udev-acl-rules=no
udev_sysfs_rules=no
hpcups-only-build=no
hpijs-only-build=no


Current contents of '/var/lib/hp/hplip.state' file:
[plugin]
installed = 1
eula = 1
version = 3.12.10a



Current contents of '~/.hplip/hplip.conf' file:
[upgrade]
notify_upgrade = true
last_upgraded_time = 1351184673
pending_upgrade_time = 0
latest_available_version = 3.12.10a

[scan_plugins]
bb_marvell.so = Present
bb_soapht.so = Present
bb_soap.so = Present

[fax_plugins]
fax_marvell.so = Present

[print_plugins]
lj.so = Present

[installation]
date_time = 26/10/12 16:05:03
version = 3.12.10a

[settings]
systray_visible = 0
systray_messages = 2

[last_used]
device_uri = "hp:/usb/HP_LaserJet_Professional_P1102w?serial=000000000Q91GJ7VSI1c"
printer_name =
working_dir = .

[commands]
scan = /usr/bin/xsane -V %SANE_URI%

[refresh]
rate = 30
enable = false
type = 1

[polling]
enable = false
interval = 5
device_list =

[fax]
voice_phone =
email_address =


<Package-name> <Package-Desc> <Required/Optional> <Min-Version> <Installed-Version> <Status> <Comment>

--------------------------
| External Dependencies |
--------------------------

gs Ghostscript REQUIRED 7.05 9.06 OK -
network Network-wget OPTIONAL - - OK -
dbus DBus REQUIRED - 1.5.12 OK -
scanimage Shell-Scanning OPTIONAL 1.0 1.0.22 OK -
policykit Admin-Policy-framework OPTIONAL - 0.104 OK -
xsane SANE-GUI OPTIONAL 0.9 0.998 OK -
cups CUPS REQUIRED 1.1 1.5.4 OK 'CUPS Scheduler is running'

-------------------------
| General Dependencies |
-------------------------

error: reportlab Python-PDF-Lib OPTIONAL 2.0 - MISSING 'reportlab needs to be installed'
libcrypto OpenSSL-Crypto-Lib REQUIRED - 1.0.1 OK -
pil Python-Image-Lib OPTIONAL - 1.1.7 OK -
pyqt4-dbus PyQt4-DBUS REQUIRED 4.0 4.9.1 OK -
libjpeg JPEG-Lib REQUIRED - - OK -
libpthread POSIX-Threads-Lib REQUIRED - 2.15 OK -
python-dbus Python-DBUS REQUIRED 0.80.0 1.0.0 OK -
python-devel Python-SDK REQUIRED 2.2 2.7.3 OK -
pyqt4 Python-Qt4 REQUIRED 4.0 4.9.1 OK -
cups-devel CUPS-SDK REQUIRED - 1.5.4 OK -
sane-devel SANE-SDK REQUIRED - 1.0.22 OK -
libusb USB-Lib REQUIRED - 1.0 OK -
sane Scan-Lib REQUIRED - 1.0.22 OK -
cups-image CUPS-Image-Lib REQUIRED - 1.5.4 OK -
libnetsnmp-devel SNMP-Networking-SDK REQUIRED 5.0.9 5.7.1 OK -
python-xml Python-XML-Lib REQUIRED - 2.0.0 OK -
python-notify Desktop-notifications OPTIONAL - - OK -

------------------------------
| Compile Time Dependencies |
------------------------------

gcc gcc-Compiler REQUIRED - 4.7.1 OK -
libtool Build-tools REQUIRED - 2.4.2 OK -
make GNU-Build-tools REQUIRED 3.0 3.82 OK -

----------------------
| Python Extentions |
----------------------

cupsext CUPS-Extension REQUIRED - 3.12.10a OK -
pcardext PhotoCard-Extension REQUIRED - 3.12.10a OK -
hpmudext IO-Extension REQUIRED - 3.12.10a OK -

-----------------------
| Scan Configuration |
-----------------------

hpaio HPLIP-SANE-Backend REQUIRED - 3.12.10a OK 'hpaio found in /etc/sane.d/dll.conf'
scanext Scan-SANE-Extension REQUIRED - 3.12.10a OK -

------------------------------
| DISCOVERED SCANNER DEVICES |
------------------------------

No Scanner found.

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

No devices found.

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


HP_LaserJet_Professional_P1102w
-------------------------------
Type: Printer
Device URI: hp:/usb/HP_LaserJet_Professional_P1102w?serial=000000000Q91GJ7VSI1c
PPD: /etc/cups/ppd/HP_LaserJet_Professional_P1102w.ppd
PPD Description: HP LaserJet Professional p1102w, hpcups 3.12.10a, requires proprietary plugin
Printer status: printer HP_LaserJet_Professional_P1102w disabled since Fri 26 Oct/usr/lib/cups/backend/hp failed
Required plug-in status: Installed
error: Unable to communicate with device (code=12): hp:/usb/HP_LaserJet_Professional_P1102w?serial=000000000Q91GJ7VSI1c
error: Device not found
error: Communication status: Failed


--------------
| PERMISSION |
--------------

groups user-groups Required - - OK users sys lp

USB HP_LaserJet_Professional_P1102w Required - - OK Node:'/dev/bus/usb/001/002' Perm:' root lp rw- rw- ---'

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

Missing Required Dependencies
-----------------------------
None

Missing Optional Dependencies
-----------------------------
None


Total Errors: 1
Total Warnings: 0


Done.
daisyb@linux-dwdt:~> system-config-printer
If 'system-config-printer' is not a typo you can use command-not-found to lookup the package that contains it, like this:
cnf system-config-printer
daisyb@linux-dwdt:~> su -c
su: option requires an argument -- 'c'
Try 'su --help' for more information.
daisyb@linux-dwdt:~> su -c
su: option requires an argument -- 'c'
Try 'su --help' for more information.
daisyb@linux-dwdt:~> su
Password:
linux-dwdt:/home/daisyb # hp-plugin

HP Linux Imaging and Printing System (ver. 3.12.10a)
Plugin Download and Install Utility ver. 2.1

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.

\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...10a-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.12.10a Plugin Self Extracting Archive.....................................................

HP Linux Imaging and Printing System (ver. 3.12.10a)
Plugin Installer ver. 3.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.

Plug-in version: 3.12.10a
Installed HPLIP version: 3.12.10a
Number of files to install: 48


Done.
Plug-in installation successful.

Done.
linux-dwdt:/home/daisyb # exit
exit
daisyb@linux-dwdt:~> hp-setup

HP Linux Imaging and Printing System (ver. 3.12.10a)
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.

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


Thanks
 
Old 10-26-2012, 09:49 AM   #2
etech3
Senior Member
 
Registered: Jul 2009
Location: Virginia
Distribution: Debian Stable Testing Sid Slackware CentOS
Posts: 1,055
Blog Entries: 2

Rep: Reputation: 44
Looks like it was found.

Did you try:
Code:
lpstat -p -d
and then:
Code:
lp FILE
To set your default printer:
Code:
lpoptions -d NAME OF PRINTER
 
Old 10-26-2012, 05:17 PM   #3
business_kid
Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware & Android
Posts: 6,142

Rep: Reputation: 526Reputation: 526Reputation: 526Reputation: 526Reputation: 526Reputation: 526
I have a HP P1005 printer, and never got any good of it until I junked hplip and system-config-printer and set up foo2zjs, which has excellent instructions on the site and good support in the forums.
 
Old 10-28-2012, 05:08 AM   #4
dwhb
Member
 
Registered: Jul 2012
Location: Down Under
Distribution: suSE but seriously considering other options
Posts: 45

Original Poster
Rep: Reputation: Disabled
Hi business_kid
How do you get rid of system-config-printer? hplip can be deleted from software management? when I do reinstall os, i will leave printer unplugged so it won't be automatically detected during automatic configuration?

sorry to ask silly questions, but i am more of a GUI user.

Thanks

Last edited by dwhb; 10-28-2012 at 05:10 AM.
 
Old 10-28-2012, 05:17 AM   #5
dwhb
Member
 
Registered: Jul 2012
Location: Down Under
Distribution: suSE but seriously considering other options
Posts: 45

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by etech3 View Post
Looks like it was found.

Did you try:
Code:
lpstat -p -d
and then:
Code:
lp FILE
To set your default printer:
Code:
lpoptions -d NAME OF PRINTER
This is the result:

daisyb@linux-dwdt:~> lpstat -p -d
printer HP_LaserJet_Professional_P1102w is idle. enabled since Sat 27 Oct 2012 00:18:41 CST
system default destination: HP_LaserJet_Professional_P1102w
daisyb@linux-dwdt:~> lp FILE
lp: Error - unable to access "FILE" - No such file or directory
daisyb@linux-dwdt:~> lpoptions -d HP_LASERJET_PROFESSIONAL_P1102W
auth-info-required=none copies=1 device-uri=hp:/usb/HP_LaserJet_Professional_P1102w?serial=000000000Q91GJ7VSI1c finishings=3 fitplot=true job-hold-until=no-hold job-priority=50 job-sheets=none,none marker-change-time=0 number-up=1 printer-commands=none printer-info='HP LaserJet Professional p1102w, with driver HP LaserJet Professional p1102w, hpcups 3.12.10a, requires proprietary plugin' printer-is-accepting-jobs=true printer-is-shared=true printer-location=/dev/sr2 printer-make-and-model='HP LaserJet Professional P 1102w, hpcups 3.12.10a, requires proprietary plugin' printer-state=3 printer-state-change-time=1351259321 printer-state-reasons=none printer-type=167948 printer-uri-supported=ipp://localhost:631/printers/HP_LaserJet_Professional_P1102w


Yet when hp-setup is run, the printer cannot be discovered! The plug-in was downloaded and successfully installed,so was the driver.

My Firefox has crashed since it auto update to 16.01. Cannot try with CUPS printer management tool.

Thanks
 
Old 10-28-2012, 05:23 AM   #6
Randicus Draco Albus
Member
 
Registered: May 2011
Location: Sitting in front of my computer.
Distribution: Debian
Posts: 964
Blog Entries: 2

Rep: Reputation: 245Reputation: 245Reputation: 245
Did you run
Code:
hp-setup
or
Code:
hp-setup -i
?
For me, installing an HP is simply down-loading the driver from HP's website and running hp-setup -i. Of course, setting up your printer may be more difficult than mine.
 
Old 10-28-2012, 05:41 AM   #7
dwhb
Member
 
Registered: Jul 2012
Location: Down Under
Distribution: suSE but seriously considering other options
Posts: 45

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Randicus Draco Albus View Post
Did you run
Code:
hp-setup
or
Code:
hp-setup -i
?
For me, installing an HP is simply down-loading the driver from HP's website and running hp-setup -i. Of course, setting up your printer may be more difficult than mine.
Yes, I ran hp-setup many times. I know for a fact that the plug-in was installed successfully because the key was accepted etc etc.

Running the hp-setup -i code returned following:
HP Linux Imaging and Printing System (ver. 3.12.10a)
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.

(Note: Defaults for each question are maked with a '*'. Press <enter> to accept the default.)


--------------------------------
| SELECT CONNECTION (I/O) TYPE |
--------------------------------

Num Connection Description
Type
-------- ---------- ----------------------------------------------------------
0* usb Universal Serial Bus (USB)
1 net Network/Ethernet/Wireless (direct connection or JetDirect)

Enter number 0...1 for connection type (q=quit, enter=usb*) ? 0

Using connection type: usb

error: No device selected/specified or that supports this functionality.
There was no problem in openSuSE11.4. This (plus a whole string of other problems) only happened after installing 12.2. My printer is only a cheapie USB plug&play printer B&W single function.

Regards

Last edited by dwhb; 10-28-2012 at 06:49 AM.
 
Old 10-28-2012, 05:58 AM   #8
Randicus Draco Albus
Member
 
Registered: May 2011
Location: Sitting in front of my computer.
Distribution: Debian
Posts: 964
Blog Entries: 2

Rep: Reputation: 245Reputation: 245Reputation: 245
I am no expert in such things, so I can only ask about simple things. Such as, did you add yourself to the lp and lpadmin groups? If not, as root, enter:
Code:
adduser <your_user_name> lp
Then enter:
Code:
adduser <your_user_name> lpadmin
I hope that helps.

Last edited by Randicus Draco Albus; 10-28-2012 at 05:59 AM.
 
Old 10-28-2012, 05:04 PM   #9
dwhb
Member
 
Registered: Jul 2012
Location: Down Under
Distribution: suSE but seriously considering other options
Posts: 45

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Randicus Draco Albus View Post
I am no expert in such things, so I can only ask about simple things. Such as, did you add yourself to the lp and lpadmin groups? If not, as root, enter:
Code:
adduser <your_user_name> lp
Then enter:
Code:
adduser <your_user_name> lpadmin
I hope that helps.
Yes, lp was added by hplip install anyway, but there's no such file as "lpadmin" running your 2nd code.
linux-dwdt:/home/daisyb # adduser <daisyb> lpadmin
bash: daisyb: No such file or directory
Thanks
 
Old 10-28-2012, 05:22 PM   #10
Randicus Draco Albus
Member
 
Registered: May 2011
Location: Sitting in front of my computer.
Distribution: Debian
Posts: 964
Blog Entries: 2

Rep: Reputation: 245Reputation: 245Reputation: 245
No lpadmin? That may or may not be a problem. I do not know and am not knowledgeable enough to give further suggestions. I am sure someone who can help will come along soon. Good luck.
 
Old 10-29-2012, 04:39 AM   #11
business_kid
Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware & Android
Posts: 6,142

Rep: Reputation: 526Reputation: 526Reputation: 526Reputation: 526Reputation: 526Reputation: 526
If you check the ownership of things
1. /dev/usb/lp0 or wherever the printer resides
2. Cups files
3. hplip files

You'll find out what groups you need. lpadmin IIRC is a Red Hat one.
 
Old 10-30-2012, 07:53 AM   #12
dwhb
Member
 
Registered: Jul 2012
Location: Down Under
Distribution: suSE but seriously considering other options
Posts: 45

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Randicus Draco Albus View Post
No lpadmin? That may or may not be a problem. I do not know and am not knowledgeable enough to give further suggestions. I am sure someone who can help will come along soon. Good luck.
The installation was so buggy I have reformatted. Do you know whether suse12.2 supports wireless printing? Haven't got to the stage of setting up printer yet but hopeful that a new install may solve the problem.
Thanks to everyone who have offered help. Much appreciated.

Last edited by dwhb; 10-30-2012 at 07:54 AM.
 
Old 10-31-2012, 04:51 AM   #13
business_kid
Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware & Android
Posts: 6,142

Rep: Reputation: 526Reputation: 526Reputation: 526Reputation: 526Reputation: 526Reputation: 526
Technically, everything (i.e. the linux base we all install in each distro) supports wireless printing. But it is such an Almighty PITA to set up that few would advertise it as a feature. Many users struggle with wireless - I did in the beginning. Are you trying to set this up over wifi?
 
Old 11-01-2012, 02:01 AM   #14
dwhb
Member
 
Registered: Jul 2012
Location: Down Under
Distribution: suSE but seriously considering other options
Posts: 45

Original Poster
Rep: Reputation: Disabled
yes. The new installation picked up the HP printer on auto config at first boot. Does that mean the printer & suse's network manager are communicating with each other??
 
Old 11-01-2012, 11:40 AM   #15
business_kid
Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware & Android
Posts: 6,142

Rep: Reputation: 526Reputation: 526Reputation: 526Reputation: 526Reputation: 526Reputation: 526
Glad to hear it. Connection implies communication. Of course, there was a material fact none of us knew about - it's actually a network printer. That may change the landscape. Try your luck, and read up on what you are trying to do. I'll leave you to it.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] HP PSC 1315 - Printer detected under CUPs but not working (hplip/hpijs driver) vharishankar Linux - Hardware 19 09-01-2009 02:26 PM
My printer won't work in Linux. Can I install Windows in a VM to use my printer? Caboose79 Linux - Hardware 5 07-14-2008 11:05 AM
Printer Driver (and printer) install errors. O4_SRT Linux - Hardware 5 03-07-2006 07:16 PM
how do i make redhat recognize my printer new printer driver Kilahchris Linux - General 2 03-04-2003 05:08 PM


All times are GMT -5. The time now is 11:08 PM.

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