S
Sensucht94
Guest
Hi everybody,
Having bought a HPLaserjetP1102w, I'm now trying to make it work through print/hplip, instead of LPD, in order to have better support, more features, easy-to-use interface, etc....(also beacuse using lpd, I've never managed to make my old Epson perform really well if dealing with more complex files).
What I did:
1)I plugged my printer in via USB, and rebooted. dmesg reveals it's been detected, attached to /dev/ugen7.2 and that ulpt0 and unlpt0 have been correctly created.
[Localrules included already read/write permission for u(n)lpt* devices for wheel group, and my user has ownership and r/w permissions set in devfs.conf for them. I double checked that with
2)I installed hp-lip, ran
3)I received a warning about version being outdated. I doubt this would really affect the printer configuration (would it?)....anyway, I used
Also, hp-upgrade first revealed a common warning I'm getting with any of the commands from the hplip metaport:
Seems like HPLIP 3.17.9 (and possibly *.10?) isn't aware yet of FreeBSD 11.1-p1.
4) I started hp-setup over; since the program asked me to download the needed plugin, I installed print/hplip-plugin instead, which allowed the setup wizard to correctly detect my printer model, and to get through all the setup steps without errors.
I ran
5) I then used
I changed the permissions for it to 0666 and made it through.
Following, several errors regarding missing programs/libraries (like lsusb) prevented me from printing. I decided to run
They listed a river of missing dependencies, so
6) I decided to go look up for them on freshports and ended up installing the following ports:
sysutils/usbutils, lang/gcc, devel/libtool, devel/py-qt4-dbus, lang/python (I had already python3.6), print/py-reportlab, devel/py-notify, graphics/xsane,sysutils/policykit
Regarding my printer, hp-check told:
At this point printing request seemed to succeed, until I encountered an error saying:
7) So I tried to set it as default destination with:
And edited my /etc/printcap accordingly:
Now
After this, I got no more errors while running
8) Consequently, I decided to try printing the hp-check log file with
Could anyone suggest me what is that supposed to mean?
9) Performing hp-check once again shows far fewer errors, though it looks like several unresolved issues are left still (of the whole log I'm forwarding only issues, within respective sections):
So, there are some strange inconsistencies:
- I can assure Dbus is running well
- As I said above, I installed usbutils, and I have lsusb
- Same thing: I have installed Policykit already
- what about libpthread and make? Perhaps the program is asking for a GNU/Linux make.
At the moment I'm not able to reproduce one more the error, despite being presenting with it until a moment ago: when the printing job doesn't end with the error of which above, HPLIP complains about missing lsusb and QT4 support.
EDIT: Here it is:
Am I really expected to build all the py-qt4 metaport?
I really wish I got this working, so any suggestion/correction is really appreciated
Thank you
EDIT2: Solved by deinstalling HP-LIP and using FOSS driver from foo2zjs project as suggested with either CUPS+cups-filters or LPRng+foomatic-filters.
Having bought a HPLaserjetP1102w, I'm now trying to make it work through print/hplip, instead of LPD, in order to have better support, more features, easy-to-use interface, etc....(also beacuse using lpd, I've never managed to make my old Epson perform really well if dealing with more complex files).
What I did:
1)I plugged my printer in via USB, and rebooted. dmesg reveals it's been detected, attached to /dev/ugen7.2 and that ulpt0 and unlpt0 have been correctly created.
[Localrules included already read/write permission for u(n)lpt* devices for wheel group, and my user has ownership and r/w permissions set in devfs.conf for them. I double checked that with
ls -l
]2)I installed hp-lip, ran
hp-setup
.3)I received a warning about version being outdated. I doubt this would really affect the printer configuration (would it?)....anyway, I used
hp-upgrade --check -g
and found out latest version is 3.17.10, while the version in the ports' tree is 3.17.9; hp-upgrade
would then ask me to fetch the upgrade from their main site and build it manually. Since I'm aware installing updates which the system can't keep track of isn't a good idea, I didn't try it.Also, hp-upgrade first revealed a common warning I'm getting with any of the commands from the hplip metaport:
Code:
sh: lsb_release: not found
cat: /etc/issue: No such file or directory
warning: distro is not found in AUTH_TYPES
Seems like HPLIP 3.17.9 (and possibly *.10?) isn't aware yet of FreeBSD 11.1-p1.
4) I started hp-setup over; since the program asked me to download the needed plugin, I installed print/hplip-plugin instead, which allowed the setup wizard to correctly detect my printer model, and to get through all the setup steps without errors.
I ran
lpc status unlpt0
and got:
Code:
queuing is enabled
printing is enabled
no entries in spool area
printer idle
5) I then used
hp-testpage
to print a test, and started receiving some errors about printer's folder an ppd not being found.I changed the permissions for it to 0666 and made it through.
Following, several errors regarding missing programs/libraries (like lsusb) prevented me from printing. I decided to run
hp-check
and hp-doctor
They listed a river of missing dependencies, so
6) I decided to go look up for them on freshports and ended up installing the following ports:
sysutils/usbutils, lang/gcc, devel/libtool, devel/py-qt4-dbus, lang/python (I had already python3.6), print/py-reportlab, devel/py-notify, graphics/xsane,sysutils/policykit
Regarding my printer, hp-check told:
Code:
Required plug-in status: Installed
Communication status: Good
At this point printing request seemed to succeed, until I encountered an error saying:
Code:
lpr: HP_LaserJet_Professional_P_1102w printer not found
7) So I tried to set it as default destination with:
lsoptions -d HP_LaserJet_Professional_P_1102w
And edited my /etc/printcap accordingly:
Code:
HP_LaserJet_Professional_P_1102w:\
:lp=/dev/unlpt0:\
:sh:\
:mx#0:\
:sd=/var/spool/lpd/lp:\
:lf=/var/log/lpd-errs:
Now
lspstat -t
returns:
Code:
system default destination: HP_LaserJet_Professional_P_1102w
device for HP_LaserJet_Professional_P_1102w: hp:/usb/HP_LaserJet_Professional_P_1102w?serial=000000000W44J8KJPR1a
HP_LaserJet_Professional_P_1102w
is accepting requests since Mon 16 Oct 19:45:43 2017
printer HP_LaserJet_Professional_P_1102w is idle. enabled since Mon 16 Oct 19:45:43 2017
After this, I got no more errors while running
hp-testpage
, however, still nothing is printed.8) Consequently, I decided to try printing the hp-check log file with
hp-print
, and it returns the following issue:
Code:
QXcbConnection: XCB error: 3 (BadWindow), sequence: 688, resource id: 13567499, major code: 40 (TranslateCoords), minor code: 0
error: Print command failed with status code 1. lpr -P HP_LaserJet_Professional_P_1102w -o page-set=all "/usr/home/vins/hp-check.log"
Could anyone suggest me what is that supposed to mean?
9) Performing hp-check once again shows far fewer errors, though it looks like several unresolved issues are left still (of the whole log I'm forwarding only issues, within respective sections):
Code:
sh: lsb_release: not found
cat: /etc/issue: No such file or directory
warning: distro is not found in AUTH_TYPES
|ps: illegal argument: aux
-----------------------
| HPLIP CONFIGURATION |
-----------------------
warning: HPLIP-Installation: Auto installation is not supported for 0 distro version
warning: 0- version is not supported. Using 0-0 versions dependencies to verify and install...
--------------
| COMPILEDEP |
--------------
error: make make - GNU make utility to maintain groups of programs REQUIRED 3.0 - MISSING 'make needs to be installed'
------------------------
| General Dependencies |
------------------------
error: libpthread libpthread - POSIX threads library REQUIRED - - MISSING 'libpthread needs to be installed'
error: libusb libusb - USB library REQUIRED - 1.0 MISSING 'libusb needs to be installed'
-------------------------
| External Dependencies |
-------------------------
error: policykit PolicyKit - Administrative policy framework OPTIONAL - 0.113 MISSING 'policykit needs to be installed'
error: dbus DBus - Message bus system REQUIRED - 1.10.16 MISSING 'DBUS may not be installed or not running'
So, there are some strange inconsistencies:
- I can assure Dbus is running well
- As I said above, I installed usbutils, and I have lsusb
- Same thing: I have installed Policykit already
- what about libpthread and make? Perhaps the program is asking for a GNU/Linux make.
At the moment I'm not able to reproduce one more the error, despite being presenting with it until a moment ago: when the printing job doesn't end with the error of which above, HPLIP complains about missing lsusb and QT4 support.
EDIT: Here it is:
Code:
error: Unable to load Qt4 support. Is it installed?
Am I really expected to build all the py-qt4 metaport?
I really wish I got this working, so any suggestion/correction is really appreciated
Thank you
EDIT2: Solved by deinstalling HP-LIP and using FOSS driver from foo2zjs project as suggested with either CUPS+cups-filters or LPRng+foomatic-filters.
Last edited by a moderator: