(Suspend)HP Laserjet P1102w

 
root@christian:/home/christian # hp-probe -busb
warning: hp-probe should not be run as root/superuser.
As malavon observes, you are mixing packages and ports. That's a bad idea. Don't use make(1) in the /usr/ports tree. Use pkg install.

Also, you need to be root for much of this stuff, and you need to heed any specific warnings, like the one above.

I have to go out now, but will have a look at the rest of the trail a little later.

If you have access to Windows, try the printer on a Windows host. They are set up to work fairly easy on Windows.

[If you don't have Windows, you can download it, defer the licencing, install it on a USB stick, and do what you need.]
 
There are two options running in this thread. One is CUPS and the other is hplip. They are both capable of achieving a similar outcome.

For simplicity, I suggest you try the following as root:
Code:
sudo pkg install hplip-plugin
sudo pkg install hplip
hp-setup -b usb
Be sure to verify that each step has worked (I expect that hplip is already installed, and that's OK).
 
As malavon observes, you are mixing packages and ports. That's a bad idea. Don't use make(1) in the /usr/ports tree. Use pkg install.

Also, you need to be root for much of this stuff, and you need to heed any specific warnings, like the one above.

I have to go out now, but will have a look at the rest of the trail a little later.

If you have access to Windows, try the printer on a Windows host. They are set up to work fairly easy on Windows.

[If you don't have Windows, you can download it, defer the licencing, install it on a USB stick, and do what you need.]
I have windows desktop and the printer works fine, very easy setup. however I was hoping to eventually make my freebsd laptop a near daily driver. I am trying to learn FreeBSD as much as possible.
 
Honestly at this point I think I am gonna throw in the towel for my printer on freebsd. Is there any easier more compatible printer with freebsd anyone recommends?
I think that there is still some hope. These printers will work with Unix, but are difficult. Try the suggestion re hplip above.

Personally, I would only buy a laser printer, and only ones that had native support for PostScript. I have a HP LaserJet Pro4001DW. It works fine with FreeBSD and everything else. I know that Brother PostScript printers are highly regarded. They are a bit cheaper than HP.

These days, native support for both WiFi (e.g. for cell phone access) and the IPP protocol (most printer apps are moving to IPP) matter. Printing PDF is also desirable.
 
There are two options running in this thread. One is CUPS and the other is hplip. They are both capable of achieving a similar outcome.

For simplicity, I suggest you try the following as root:
Code:
sudo pkg install hplip-plugin
sudo pkg install hplip
hp-setup -b usb
Be sure to verify that each step has worked (I expect that hplip is already installed, and that's OK).
once i ran hp-setup -b usb i receive this:

root@christian:/home/christian # hp-setup -b usb

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

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

warning: Fax setup disabled - Python 2.3+ required.
Searching... (bus=usb, search=(None), desc=0)
error: Failed to connect to HPLIP site. Error code = 8
error: Failed to download http://hplip.sourceforge.net/hplip_web.conf.
error: Unable to load Qt4/Qt5 support. Is it installed?
Traceback (most recent call last):
File "/usr/local/share/hplip/ui5/setupdialog.py", line 1386, in NextButton_clicked
self.showDevicesPage()
File "/usr/local/share/hplip/ui5/setupdialog.py", line 556, in showDevicesPage
smart_install.disable(GUI_MODE, 'qt4')
File "/usr/local/share/hplip/base/smart_install.py", line 239, in disable
dialog.exec_()
AttributeError: 'NoneType' object has no attribute 'exec_'
Abort trap (core dumped)
 
I believe I asked earlier in regards to CUPS Web Admin Interface, I can access it on the web browser, and I login as root. I click add printer and i choose: HP Printer, however it asks for a connection, which i have no idea what to put in as connection address. I do not know the hostname or what its referring to.

This is very confusing to me, any help is much appreciated.
 
What hp-setup does is configure cups, which is easier than setting it up manually (at least from my experience). Am I right in thinking that you're not seeing a graphical window when you run hp-setup? Are you running it inside a graphical session or just from the console? It should show something like this, are you getting this?

1717286884315.png


If you're not getting anything graphical, tell us in which terminal you're running it, if you're root etc. In that case also check the output of pkg info -d hplip py39-qt5-pyqt to check for dependencies and if they're all installed. They should be of course, but the line "error: Unable to load Qt4/Qt5 support. Is it installed?" in your trace doesn't give me much confidence in that.

Just for completeness, although I wouldn't recommend switching printers just because you're not getting it configured in FreeBSD, I have used it before for an older OfficeJet and a LaserJet M479. Both were just a few clicks (networked). The only thing I'm not so sure about is changing the USB mode, I have no idea if HP will have expected that change.

You can check https://developers.hp.com/hp-linux-imaging-and-printing/supported_devices/index for supported printers, but you'll notice yours is there (although listed to require the "plugin"). Note that printing on FreeBSD isn't different from Linux, they're basically the same drivers etc. HP fully supports it.
 
What hp-setup does is configure cups, which is easier than setting it up manually (at least from my experience). Am I right in thinking that you're not seeing a graphical window when you run hp-setup? Are you running it inside a graphical session or just from the console? It should show something like this, are you getting this?

View attachment 19164

If you're not getting anything graphical, tell us in which terminal you're running it, if you're root etc. In that case also check the output of pkg info -d hplip py39-qt5-pyqt to check for dependencies and if they're all installed. They should be of course, but the line "error: Unable to load Qt4/Qt5 support. Is it installed?" in your trace doesn't give me much confidence in that.

Just for completeness, although I wouldn't recommend switching printers just because you're not getting it configured in FreeBSD, I have used it before for an older OfficeJet and a LaserJet M479. Both were just a few clicks (networked). The only thing I'm not so sure about is changing the USB mode, I have no idea if HP will have expected that change.

You can check https://developers.hp.com/hp-linux-imaging-and-printing/supported_devices/index for supported printers, but you'll notice yours is there (although listed to require the "plugin"). Note that printing on FreeBSD isn't different from Linux, they're basically the same drivers etc. HP fully supports it.
  1. when i run hp-setup i do receive that device discovery in a graphical window that comes up upon using hp-setup.

2.I ran the command pkg info -d hplip py39-qt5-pyqt and it returns back:
root@christian:/home/christian # pkg info -d hplip py39-qt5-pyqt
hplip-3.23.12:
py39-distro-1.9.0
cups-filters-1.28.17_3
cups-2.4.8
avahi-app-0.8_2
net-snmp-5.9.4_2,1
python39-3.9.18_2
sane-backends-1.2.1_5
py39-pillow-10.3.0
jpeg-turbo-3.0.2
py39-qt5-pyqt-5.15.10_1
py39-gobject3-3.42.2
py39-dbus-1.3.2
dbus-1.14.10_5,1
py39-qt5-pyqt-5.15.10_1:
qt5-x11extras-5.15.13p0
qt5-widgets-5.15.13p142
qt5-quick3d-5.15.13p1
qt5-gui-5.15.13p142
qt5-declarative-5.15.13p30
qt5-websockets-5.15.13p2
qt5-webchannel-5.15.13p3
qt5-xmlpatterns-5.15.13p0
qt5-xml-5.15.13p142
qt5-printsupport-5.15.13p142
qt5-network-5.15.13p142
qt5-multimedia-5.15.13p2
python39-3.9.18_2
qt5-svg-5.15.13p6
qt5-opengl-5.15.13p142
qt5-imageformats-5.15.13p7
libglvnd-1.7.0
qt5-testlib-5.15.13p142
qt5-remoteobjects-5.15.13p0
qt5-location-5.15.13p6
qt5-help-5.15.13p4
qt5-designer-5.15.13p4
qt5-dbus-5.15.13p142
qt5-core-5.15.13p142
qscintilla2-qt5-2.14.1
py39-sip-6.8.3,1
py39-PyQt-builder-1.15.4
py39-qt5-sip-12.13.0
py39-ply-3.11
py39-dbus-1.3.2
dbus-1.14.10_5,1
qt5-sql-5.15.13p142
qt5-serialport-5.15.13p0
qt5-sensors-5.15.13p0
qt5-connectivity-5.15.13p4
qt5-speech-5.15.13p1

I am under the impression they are installed.

3.running hp-setup(from konsole) i receive:
root@christian:/home/christian # hp-setup

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

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

warning: Fax setup disabled - Python 2.3+ required.
failed to authenticate magic 1
failed to load driver: iris
Searching... (bus=usb, search=(None), desc=0)
error: No devices found on bus: usb
 
It's not clear to me what you have installed from ports and what from packages, and which port installations have failed.

Please do the following, as root:
Code:
pkg delete hplip-plugin hplip
pkg install hplip-plugin hplip
If anything fails or produces an error message, we need to see it.

Once you know the packages are installed, you can try hp-setup -b usb again.
 
It's not clear to me what you have installed from ports and what from packages, and which port installations have failed.

Please do the following, as root:
Code:
pkg delete hplip-plugin hplip
pkg install hplip-plugin hplip
If anything fails or produces an error message, we need to see it.

Once you know the packages are installed, you can try hp-setup -b usb again.
root@christian:/home/christian # pkg delete hplip-plugin hplip
No packages matched for pattern 'hplip-plugin'

Checking integrity... done (0 conflicting)
Deinstallation has been requested for the following 1 packages (of 0 packages in the universe):

Installed packages to be REMOVED:
hplip: 3.23.12

Number of packages to be removed: 1

The operation will free 31 MiB.

Proceed with deinstalling packages? [y/N]: y
[1/1] Deinstalling hplip-3.23.12...
[1/1] Deleting files for hplip-3.23.12: 100%
==> Running trigger: gtk-update-icon-cache.ucl
Generating GTK icon cache for /usr/local/share/icons/hicolor
==> Running trigger: desktop-file-utils.ucl
Building cache database of MIME types
root@christian:/home/christian # pkg install hplip-plugin hplip
Updating FreeBSD repository catalogue...
FreeBSD repository is up to date.
All repositories are up to date.
pkg: No packages available to install matching 'hplip-plugin' have been found in the repositories
root@christian:/home/christian # pkg install hplip
Updating FreeBSD repository catalogue...
FreeBSD repository is up to date.
All repositories are up to date.
Checking integrity... done (0 conflicting)
The following 1 package(s) will be affected (of 0 checked):

New packages to be INSTALLED:
hplip: 3.23.12

Number of packages to be installed: 1

The process will require 31 MiB more space.

Proceed with this action? [y/N]: y
[1/1] Installing hplip-3.23.12...
[1/1] Extracting hplip-3.23.12: 100%
==> Running trigger: gtk-update-icon-cache.ucl
Generating GTK icon cache for /usr/local/share/icons/hicolor
==> Running trigger: desktop-file-utils.ucl
Building cache database of MIME types
root@christian:/home/christian # hp-setup -b usb

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

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

warning: Fax setup disabled - Python 2.3+ required.
Searching... (bus=usb, search=(None), desc=0)
error: Failed to connect to HPLIP site. Error code = 8
error: Failed to download http://hplip.sourceforge.net/hplip_web.conf.
error: Unable to load Qt4/Qt5 support. Is it installed?
Traceback (most recent call last):
File "/usr/local/share/hplip/ui5/setupdialog.py", line 1386, in NextButton_clicked
self.showDevicesPage()
File "/usr/local/share/hplip/ui5/setupdialog.py", line 556, in showDevicesPage
smart_install.disable(GUI_MODE, 'qt4')
File "/usr/local/share/hplip/base/smart_install.py", line 239, in disable
dialog.exec_()
AttributeError: 'NoneType' object has no attribute 'exec_'
Abort trap (core dumped)

This is the same exact error i keep getting.

Should i just wipe and re install FreeBSD to start fresh?
 
Thank you all for your help and willingness to troubleshoot with me. I did a fresh install of FreeBSD and nothing seemed to work starting from scratch, I’ve decided it’s best to stop trying and just use windows to print. I did my best to try and ask and research but either it’s not compatible or I’m too ignorant being new to FreeBSD.
 
The package manager, Tijl Coosemans, has advised:

There's no package for hplip-plugin because its licence does not allow redistribution. So you can run "pkg install hplip" and then you can install hplip-plugin from ports:
Code:
# cd /usr/ports/print/hplip-plugin
# make install clean
Then you can run "HP Device Manager" from the application menu of your desktop system.​
 
cdominguez_96 there are plenty of how-to-s on how to set up a CUPS printer (most easily, using its web administration interface).
If you install foo2zjs , just configure you printer like you would any other printer.
If you want to keep messing with "magic" HP commands, that's you choice.

P.S.
/usr/local/libexec/cups/backend/usb can be used to check if CUPS is going autodetect your USB printer.
 
Originally, I used hplip driver (from print/hplip-plugin), but several years ago I switched to print/foo2zjs, because I had grown tired of building the port (it's restricted, so there is no official package for it).
This [ pkg install hplip-plugin] is obviously not going to work as I explained in my post early in this thread.
You are entirely correct, which is quite usual, but your original point was somewhat obscure. I had to read it again several times to be sure of what you said.
If you want to keep messing with "magic" HP commands, that's you choice.
I suggested trying the "magic" HP commands because it seemed that a USB mode switch might be required, and I expected that a HP proprietary setup would manage that seamlessly (i.e. without more input from the forum -- which was already arduous).
 
cdominguez_96 there are plenty of how-to-s on how to set up a CUPS printer (most easily, using its web administration interface).
If you install foo2zjs , just configure you printer like you would any other printer.
If you want to keep messing with "magic" HP commands, that's you choice.

P.S.
/usr/local/libexec/cups/backend/usb can be used to check if CUPS is going autodetect your USB printer.
Good Day,

I installed foo2zjs and get up to 2) Go to tmp directory and run getweb script. # cd /tmp && getweb all from FreshPorts

and i receive:
root@cdom_96:/ # cd /tmp && getweb all
fetch: http://foo2zjs.rkkda.com/firmware/sihp1000.tar.gz: Host does not resolve
getweb: Couldn't download http://foo2zjs.rkkda.com/firmware/sihp1000.tar.gz

can you explain this more simply for someone new to FreeBSD to understand.

V/R
 
All I needed to do is to install the package.
Apparently, this printer does not require any firmware upload or anything like that.


I see that you solved the problem in a different way :)
It sorta worked out for the best because my dad needed a printer, and as most know this printer is older and works fine on windows. I felt it was time for an upgrade :)
 
Last update I received Brother HL-L2460DW and within the hour of setting it up I got it printing using cups web admin interface with brlaser v6
 
Back
Top