LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 03-05-2023, 11:11 AM   #1
edorig
Member
 
Registered: Apr 2013
Location: France
Distribution: Slackware; Ubuntu
Posts: 134

Rep: Reputation: Disabled
HPLIP on Slackware 15.0


I have tried to setup an USB HP Laserjet Professional P1102w printer on Slackware 15.0 32 bit Intel using hp-setup, but everytime I used the program, I obtained an error message saying that no device could be found on port usb:
Using lsusb, I could detect the printer and find its bus and USB id. There were also entries under /sys/bus/usb/devices/1-2/uevent that matched lsusb output, but giving bus id and device id did not help with hp-setup.

Instead, I used directly
Code:
seamonkey http://localhost:631 
hp-plugin
to set up the print queue with hpcups as driver and download the HP proprietary plugin. I could successfully print a test page, and print
as a regular user with the web browser. But hp-setup kept indicating it could not find a printer.
I have found in /var/log/syslog the folllowing entries
Code:
hp-setup: io/hpmud/model.c 532: no HP_LaserJet_Professional_P1102w attributes found in /usr/share/hplip/data/models/models.dat 
Mar  4 17:48:05 sashimi hp-setup: io/hpmud/model.c 543: no HP_LaserJet_Professional_P1102w attributes found in /usr/share/hplip/data/models/unreleased/unreleased.dat 
Mar  4 17:48:05 sashimi hp-setup: io/hpmud/musb.c 2129: ignoring hp:/usb/HP_LaserJet_Professional_P1102w?serial=000000000Q91VDW2SI1c support=0 
Mar  4 17:48:05 sashimi hp-setup: hp-setup[3650]: error: No devices found on bus: usb
The file /usr/share/hplip/data/models/models.dat actually contains an entry
Code:
[hp_laserjet_professional_p1102w]
align-type=0
clean-type=0
color-cal-type=0
copy-type=0
embedded-server-type=0
fax-type=0
fw-download=False
icon=HP_LaserJet_1012.png
io-mfp-mode=6
io-mode=1
io-support=10
job-storage=0
linefeed-cal-type=0
model1=HP LaserJet Professional P1102w Printer
monitor-type=0
panel-check-type=0
pcard-type=0
plugin=1
plugin-reason=1
power-settings=0
pq-diag-type=0
r-type=0
so I don't understand what is the cause of the message in syslog.
The error log for CUPS contains
Code:
DEVICE_URI=usb://HP/LaserJet%20Professional%20P1102w?serial=000000000Q91VDW2SI1c
PID 3396 (/usr/lib/cups/filter/hpcups) exited with no errors.
So it looks like the HPLIP plugin and the driver are correctly configured
by CUPS, but for some reason, the hp-setup and all other HP utilities fail
to detect that.

On Ubuntu 18.04 LTS and Ubuntu 20.04 LTS, the same printer can be configured
with CUPS and a foo2zjs driver or hp-setup -i.

Is there some missing dependency in the HPLIP python code on Slackware 15.0 ?

Last edited by edorig; 03-05-2023 at 11:14 AM. Reason: CODE -> BOLD for clarity
 
Old 03-05-2023, 01:06 PM   #2
gauchao
Member
 
Registered: Dec 2009
Location: Veneto
Distribution: Slackware64
Posts: 366

Rep: Reputation: 143Reputation: 143
I have a laserjet P1102 (non wifi) under Slackware 64-current and 64-stable. Working fine here.

I install these printers by providing CUPS the respective PPD from foo2zjs and, next, runnig hp-toolbox as a regular user to install the proprietary plugins.

One problem I found with hplip 3.20.5 is that hplip uses to save the plugin in a wrong directory and then it searches for it in another, so I manually download the respective plugin from https://developershp.com/hp.linux-im...inting/plugins (for downloads). See here more info: https://developershp.com/hp-linux-im...ry_plugin.html.
 
3 members found this post helpful.
Old 03-05-2023, 09:05 PM   #3
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,400
Blog Entries: 28

Rep: Reputation: 6166Reputation: 6166Reputation: 6166Reputation: 6166Reputation: 6166Reputation: 6166Reputation: 6166Reputation: 6166Reputation: 6166Reputation: 6166Reputation: 6166
I have encountered an issue with HPLIP in --Current. It's not a big deal to me, so I haven't pursued it, but, when I try to set up my HP OfficeJet 6960, get the message below. The printer is on the wired network and has a static ip address and is maybe three or four years old.

I mention this simply in case it helps shed light on OP's issue.

Code:
Please enter a name for this print queue (m=use model name:'OfficeJet_6960'*, q=quit) ?y
Using queue name: OfficeJet_6960nt queue (m=use model name:'OfficeJet_6960'*, q=quit) ? 
Locating PPD file... Please wait.
error: No PPD found for model officejet_6960 using old algorithm.
error: Unable to find an appropriate PPD file.
Note that my Slackware is in a VM, but I have successfully set up this same printer in other VMs.

Last edited by frankbell; 03-05-2023 at 09:05 PM. Reason: typo
 
Old 03-05-2023, 11:18 PM   #4
TurboBlaze
Member
 
Registered: Jan 2018
Location: Russian Federation, Lipetsk region, Dankov
Distribution: Porteus
Posts: 196

Rep: Reputation: Disabled
And we have this issue too https://www.linuxquestions.org/quest...re-4175721614/
 
Old 03-07-2023, 12:58 PM   #5
edorig
Member
 
Registered: Apr 2013
Location: France
Distribution: Slackware; Ubuntu
Posts: 134

Original Poster
Rep: Reputation: Disabled
Thumbs up

Quote:
Originally Posted by gauchao View Post
I have a laserjet P1102 (non wifi) under Slackware 64-current and 64-stable. Working fine here.

I install these printers by providing CUPS the respective PPD from foo2zjs and, next, runnig hp-toolbox as a regular user to install the proprietary plugins.

One problem I found with hplip 3.20.5 is that hplip uses to save the plugin in a wrong directory and then it searches for it in another, so I manually download the respective plugin from https://developershp.com/hp.linux-im...inting/plugins (for downloads). See here more info: https://developershp.com/hp-linux-im...ry_plugin.html.
You have found the cause of the complaints of hp-plugin about the absence of plugin even after a successful download. I suspect that the cause of the messages in the /var/log/syslog is that the model.c is using
a case sensitive search in /usr/share/hplip/data/models/models.dat. On my system, it is possible to print
both as root and as a regular user using CUPS but hp-setup and hp-systray remain unable to detect the HP Printer. So, somehow, the plugin+hpcups is working as expected for CUPS, but HPLIP is unable to detect it.

I have tried the links you provided, but both of them give errors. I'll try to find them in the Wayback Machine to have some backup for the plugin.

I have also downloaded foo2zjs in case the plugin+hpcups method stops working.
@frankbell:
Code:
Locating PPD file... Please wait.
error: No PPD found for model officejet_6960 using old algorithm.
error: Unable to find an appropriate PPD file.
This is very similar to my issue with the HP printer. The file models.dat contains an [officejet_6960] entry. Maybe you have some error message in the /var/log/syslog as well.

Since I can print, I considered the issue solved for myself, but HPLIP is clearly buggy.
 
1 members found this post helpful.
Old 03-07-2023, 03:49 PM   #6
gauchao
Member
 
Registered: Dec 2009
Location: Veneto
Distribution: Slackware64
Posts: 366

Rep: Reputation: 143Reputation: 143
Yes, the direct link I sent you is not working today. I have googled "hplip plugin" and found this one, which is online right now. Inside it you can download the file/plugins according to your hplip-x.xx version (*-run and *-run.asc files), save them in a directory and point to them when asked by the hp-plugin or hp-toolbox script. See if the link below works for you.

https://developers.hp.com/hp-linux-i...inting/plugins
 
Old 03-18-2023, 12:09 PM   #7
edorig
Member
 
Registered: Apr 2013
Location: France
Distribution: Slackware; Ubuntu
Posts: 134

Original Poster
Rep: Reputation: Disabled
The link works for me, I have downloaded the plugin in case I need to redo the printer installation. There is a SlackBuild
script for an older version than 3.20.5 used in Slackware 15.0 at slackbuilds.org/repository/15.0/system/hplip-plugin. I should be able to adapt it for the more recent plugin.

Quote:
Originally Posted by gauchao View Post
Yes, the direct link I sent you is not working today. I have googled "hplip plugin" and found this one, which is online right now. Inside it you can download the file/plugins according to your hplip-x.xx version (*-run and *-run.asc files), save them in a directory and point to them when asked by the hp-plugin or hp-toolbox script. See if the link below works for you.

https://developers.hp.com/hp-linux-i...inting/plugins
 
1 members found this post helpful.
  


Reply



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
Updating hplip.3.16.5 to hplip 3.21.12 TheNutCase Slackware 2 02-02-2022 07:24 PM
Installing HPLIP-GUI on HPLIP 3.17.11 Linux Mint 17.3 laptop anon298 Linux - Software 1 02-26-2018 08:22 PM
[SOLVED] Upgrade hplip-3.9.4b to hplip-3.9.12 (32-bit and 64-bit) tronayne Slackware 8 02-27-2011 11:12 PM
HPlip woes on --current ; Sharing printer gets broken if the hplip gui is launched Old_Fogie Slackware 2 10-28-2010 10:23 AM
hplip 0.9.3 problems on Slackware 10.1 jmp1prs Slackware 34 03-05-2006 01:43 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

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

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration