[SOLVED] Trouble installing HP 1102w with HP Device Manager
SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Trouble installing HP 1102w with HP Device Manager
I have Slackware 14.2 and KDE. I've used the 'HP Device Manager' (hplip) to install HP printers in the past with success. Today I tried installing a USB connected HP Laserjet Professional P 1102w. I clicked 'USB' on device discovery, and then got a dialog saying "Smart Install Device(s) Detected / Smart install is enabled in 'HP Laserjet Professional p 1102w device(s). Do you want to download and disable smart install to perform device functionalities?" My button options are 'Download and Disable' and 'Cancel'. When I tried 'Download and Disable', I got the message "Digial signature verification failed for the file /tmp/tmpXL_Kz ... Do you still want to run Smart Install disabler?" I clicked 'Yes', but got "Failed to disable smart install. Please refer to link https://developers.hp.com/hp-linux-imaging-and-printing for more information." That link appears to allow me to download a more recent version of hplip. Before I do that, I'm wondering if anyone else has run into this and what solution you took.
The problem is that your 1st link and the various links on the ubuntu page are old and they now all redirect to https://developers.hp.com/hp-linux-imaging-and-printing, including hplipopensource.com/hplip-web/smartinstall/SmartinstallDisable-Tool.run; none of which mention the disable tool.
The link https://developers.hp.com/hp-linux-i..._devices/index shows my HP 1102w as being supported by hplip as of version 3.12.6 and I am running version 3.16.5. So, it should work, but I cannot run that SmartinstallDisable bit.
Using HPLIP tool:
Run hp-doctor script. It will notify you whether there is a Smart Install device connected and prompt you for disabling the same.
However, as HPs no longer support this 'feature' I don't know whether this utility still can do this job. Worth a shot though.
In any case, AFAIU it appears as a mass storage device to the USB subsystem, so it might be possible to disable it with a suitable udev rule and eject command perhaps.
I also found a bug report and thread where it was found usb_modeswitch could be used, but you'd have to substirute for the product ID used by the 1018 model of course. YMMV...
I prefer to install my HP P2015 laserjet by using my web browser and navigate to:
localhost:631
This does not list the 1102w as a found printer.
Quote:
Originally Posted by gauchao
I have the same printer (HP LJ p1102) with Slack64 14.2 and it has always worked fine this way:
Run in a terminal window (as root)
and let hplip find out your printer and download the plugin.
I have just removed my device from CUPS and re-installed the printer under CLI and everything went fine.
Do you have CUPS running? CUPS is necessary here. [hplips 3.16.5]
Tried this as root. Same result as in my OP: "Failed to disable smart install. ...". CUPS is running. I wonder what is different about your setup if you've done this successfully using 14.2? Here's my CLI output:
Code:
# hp-setup
HP Linux Imaging and Printing System (ver. 3.16.5)
Printer/Fax Setup Utility ver. 9.0
Copyright (c) 2001-15 HP 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)
Receiving digital keys: /usr/bin/gpg --homedir /root/.hplip/.gnupg --no-permission-warning --keyserver pgp.mit.edu --recv-keys 0x4ABA2F66DBD5A95894910E0673D770CDA59047B9
error: Failed to disable smart install.
Please refer link 'http://hplipopensource.com/node/367' for more information
However, as HPs no longer support this 'feature' I don't know whether this utility still can do this job. Worth a shot though.
In any case, AFAIU it appears as a mass storage device to the USB subsystem, so it might be possible to disable it with a suitable udev rule and eject command perhaps.
I also found a bug report and thread where it was found usb_modeswitch could be used, but you'd have to substirute for the product ID used by the 1018 model of course. YMMV...
When I run hplip tool (hp-setup) there is no option on any menu tab or action for "hp-doctor".
Tried 3rd method:
Code:
3. Using Linux commands:
a. To detect Smart Install:
Run command "lsusb" in terminal to obtain USB ID's.
ex: $> lsusb
Bus 001 Device 004: ID 03f0:042a Hewlett-Packard
where,
Bus ID is 001
Device ID is 004
Run command "lsusb -s [[bus]:][devnumber] | grep bInterfaceClass"
ex: $> lsusb -s 001:004 | grep bInterfaceClass
If the output contains "8 Mass Storage". It means the device has the Smart Install service enabled and is detected as mass storage device.
My command 'lssub -s 002:002 | grep bInterfaceClass gave nothing.
Code:
# lsusb -s 002:002
Bus 002 Device 002: ID 03f0:102a Hewlett-Packard
Following these methods, there are the instructions:
Code:
To disable Smart Install:
Download SmartInstallDisable-Tool.run (Right-click the link and choose "Save Link As..." to save the file to your computer)
No link is provided to download this tool. My Internet searches have not turned up any such download.
I'll try your last suggestion link(s) tomorrow. Meanwhile, the 1st link's method #1 was to use the printer front-panel to disable SmartInstall. I'll try that in the morning.
Distribution: Debian /Jessie/Stretch/Sid, Linux Mint DE
Posts: 5,195
Rep:
The 1102w is a major PITA. I have not been able to access the web interface through USB. And any HP setup program I tried failed.
The best way I found is this. Run the HP installer in Windows (yuk!) Not in a VBox VM, but native, bare metal Windows (YUK!). Once you have gone to the silly printer unpacking instructions in the installer, say that you want to install the printer as network printer. Set up the wireless and assign a static IP.
Once you did that, the printer can be normally accessed from a web browser. Now you can install the printer in CUPS as a normal IP printer. If the 1102 is not listed, try a generic (older) HP monochrome printer. I don't recall if the 1102 supports Postscript. If not, use PCL5.
I should add to this that last month I had a bunch of 1102W printers where the wireless suddenly failed after years of service. One after another started to intermittently drop the wireless connection. Rendering the printer installable but unusable. Just a reminder in case you are not able to set up a reliable network connection.
The problem with running this printer in USB mode is that you do not have access to the web interface. And I am not even sure it works from Linux in USB mode.
Yes, if your printer has a front-panel, that's the first thing to try.
Unfortunately, there is no front panel.
Quote:
Originally Posted by jlinkels
The 1102w is a major PITA. I have not been able to access the web interface through USB. And any HP setup program I tried failed. ...
Boy, you ain't kidding!
I started to follow your advice. I moved the USB cable to a USB 2.0 since Windows 7 does not support USB3.0 and, when I powered on the printer, BEHOLD! I got a message, on Linux, saying that a plugin needed to be downloaded! I downloaded the plugin. Then ran hp-setup again and it found the printer! There was a ppd file for this printer, so I selected it, tested and that all worked! Not sure if the problem was the USB 2.0 versus 3.0, or if cups was not running (it was not auto-starting at boot time), or if I needed to hit the power button on the printer. Although I'm pretty sure I did have cups running and the printer powered on. USB 3.0 ...?
Next problem. I do need this on my Win7 VM. In fact, it would be OK to be on the VM only. Originally, I did have the 1102w listed as a printer on the WIN7 VM (it is an image restore). I tried to send a test page to the printer, but it just stayed in the queue, even with a spooler restart. So, I deleted the printer to try and install it again. Bad idea. Oddly, when I rebooted the WIN7, the test page printed! But alas, the printer is gone from selections.
I tried downloading 1102w driver and installing. That was going well, but the installation program is not able to detect the printer connected to the USB. I can't enable wireless since there is no wireless in the office.
I'll pursue trying to figure out why it doesn't see the printer connected to the USB (after all, it did print the test page to that printer on that USB port!). Meanwhile, I could try sharing this printer from Linux. I added the following to /etc/cups/cupsd.conf
To enable browsing (shared printer discovery), Avahi must be installed and running on the server. If you do not need printer discovery, Avahi is not required on either the server or the client.
To enable browsing, either select Share printers connected to this system in the web interface, or manually turn on Browsing and set the BrowseAddress:
/etc/cups/cupsd.conf
...
Browsing On
BrowseAddress 192.168.0.*:631
...
I don't have Avahi, is there a way for me to search/list shared printer? I could type in the URL of the printer? From a different workstation I can 'telnet 192.168.0.52 631' and get a connection.
My /etc/cups/printers.conf has
Code:
<Printer HP_LaserJet_Professional_P_1102w>
UUID urn:uuid:e79a6c46-1509-3459-5fc8-f05480a62641
Info HP_LaserJet_Professional_P_1102w
MakeModel HP LaserJet Professional P 1102w, hpcups 3.16.5, requires proprietary plugin
DeviceURI hp:/usb/HP_LaserJet_Professional_P_1102w?serial=000000000W400679PR1a
State Idle
StateTime 1514933098
ConfigTime 1514936576
Type 36876
Accepting Yes
Shared Yes
JobSheets none none
QuotaPeriod 0
PageLimit 0
KLimit 0
OpPolicy default
ErrorPolicy stop-printer
</Printer>
It does say "Shared Yes"
From a different Linux host I can see the printer:
Code:
# lpstat -h charmaine:631 -s
no system default destination
device for HP_LaserJet_Professional_P_1102w: hp:/usb/HP_LaserJet_Professional_P_1102w?serial=000000000W400679PR1a
I was able to configure the 1102w on a remote Linux using http://192.168.0.52:631/ipp, the printer name, and specifying the "HP LaserJet Professional P 1102w, hpcups 3.16.5, requires proprietary plugin" driver. The test page didn't print giving: "Paused - "The printer configuration is incorrect or the printer no longer exists."
1) Which versions of CUPS are in use for the server and clients?
2) Use nmap to scan for open ports on the server from a client machine. For example, I have a CUPS server with address 192.168.1.12....
Code:
~> nmap 192.168.1.12
Starting Nmap 6.47 ( http://nmap.org ) at 2018-01-03 16:27 NZDT
Nmap scan report for linux-54cw (192.168.1.12)
Host is up (0.022s latency).
Not shown: 997 closed ports
PORT STATE SERVICE
22/tcp open ssh
111/tcp open rpcbind
631/tcp open ipp
Nmap done: 1 IP address (1 host up) scanned in 1.76 seconds
3) My working server cupsd.conf is configured with
Code:
Port 631
You could try manually configuring a client machine with a CUPS printer URI of the form
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.