DaemonForums  

Go Back   DaemonForums > OpenBSD > OpenBSD General

OpenBSD General Other questions regarding OpenBSD which do not fit in any of the categories below.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 3 Weeks Ago
rehcla rehcla is offline
New User
 
Join Date: May 2016
Location: Imperium Romanum
Posts: 5
Default HP Laserjet Pro MFP M130fn

Hi all!

I have a problem adding a HP Laserjet Pro MFP M130fn... It is supported by HPLIP 3.17 (so I have to use OpenBSD Current) and works perfectly on Fedora and Opensuse with the setup I have... The printer gets recognized by OpenBSD correctly... but I cannot print!Status of the printer is shown correct, print jobs also show up on hp-systray and can be cancelled... The printer is connected via
USB! One difference to Linux is that the Installation of the PPD-Plugin is not triggerd via "hp-setup"!

Here are some logs from /var/log/messages:

Quote:
python2.7: io/hpmud/musb.c 427: Found interface conf=0, iface=1, altset=0, index=9
python2.7: io/hpmud/musb.c 389: Active kernel driver on interface=1 ret=-12
python2.7: io/hpmud/musb.c 535: claimed ff/4/1 interface
python2.7: io/hpmud/musb.c 561: released ff/4/1 interface
python2.7: io/hpmud/musb.c 975: removed HP-EWS-LEDM channel=23 clientCnt=0 channelCnt=0
HP_LaserJet_MFP_M129-M134: vfprintf %s NULL in "DEBUG: OUTFORMAT="%s", so output format will be %s "
hpcups: common/utils.c 189: unable to load library /usr/local/share/hplip/prnt/plugins/hbpl1.so: File not found
hp: prnt/backend/hp.c 919: ERROR: null print job total=0
hp-systray: [33919]: warning: /usr/local/share/hplip/plugin.spec file doesn't exists.
hp-systray: [33919]: warning: /usr/local/share/hplip/plugin.spec file doesn't exists.

Any advice?
Reply With Quote
  #2   (View Single Post)  
Old 3 Weeks Ago
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 5,670
Default

Hello, and welcome!

I have an HP Laserjet Pro in use on the home network - but wireless rather than USB connected. And while every model may have its own idiosyncracies, I'm using hplip, hp-systray, and other tools with it.

I'm at $DAYJOB so cannot check the collection of supporting packages right now, but will do so once I'm home -- which will be in approximately 8 or 9 hours.
Reply With Quote
  #3   (View Single Post)  
Old 3 Weeks Ago
rehcla rehcla is offline
New User
 
Join Date: May 2016
Location: Imperium Romanum
Posts: 5
Default

Hi jggimi,

Thank you for helping...
I did use the Laserjet successfully via Ethernet and USB under Linux.
I also tried Ethernet on OpenBSD, but failed as with USB... I did let it connected via USB to rule out PF Firewall as cause as I am not educated enough to mess around with PF rules

Greetings
Reply With Quote
  #4   (View Single Post)  
Old 3 Weeks Ago
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 5,670
Default

My apologies for the delay. My key packages installed for printing are:
  • hpijs - contains the .ppd file for my printer
  • hplip-gui - includes hplip as a dependency
  • gtk+2-cups and gtk+3-cups - print integration with GTK applications

I copied the applicable ppd file from the hpijs installation (/usr/local/share/foomatic/db/source/PPD/HP/hp-lj_300_400_color_m351_m451-ps.ppd.gz) and unpacked it, using it for initial provisioning with hp-setup.

I use hp-systray (installed with hplip-gui) as my key provisioning tool now, but I am certain I used hp-setup during the very first provisioning. As I'd installed hplip-gui, hp-setup ran as a GUI rather than as a console tool.
Reply With Quote
  #5   (View Single Post)  
Old 3 Weeks Ago
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 5,670
Default

One additional critical package for application integration with CUPS: dbus. I have its global messagebus daemon enabled and started before cupsd, and its local (session) bus started by .xsession/.xinitrc.
Reply With Quote
  #6   (View Single Post)  
Old 3 Weeks Ago
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 5,670
Default

And ... I have /usr/local/bin/python as a symbolic link to /usr/local/bin/python2.7. I had to do this for something, and it might have been for CUPS.
Reply With Quote
  #7   (View Single Post)  
Old 3 Weeks Ago
rehcla rehcla is offline
New User
 
Join Date: May 2016
Location: Imperium Romanum
Posts: 5
Default

Hi jggimi,

Quote:
hplip-gui - includes hplip as a dependency
was installed

Quote:
hpijs - contains the .ppd file for my printer
gtk+2-cups and gtk+3-cups - print integration with GTK applications
were missing

Quote:
/usr/local/share/foomatic/db/source/PPD/HP/
does not contain the right PPD, but:

Quote:
/etc/cups/ppd/ does contain:
HP_LaserJet_MFP_M129-M134.ppd
messagebus, cupsd are enabled and running.... Python link was created as advised by pkg_add !

So when I power on the printer, this happens:

Quote:
hp-systray: hp-systray[18077]: error: option -s not recognized
hp-upgrade: hp-upgrade[91866]: error: Failed to get latest version of HPLIP.
bsd: ulpt0 at uhub1 port 2 configuration 1 interface 0 "HP HP LaserJet MFP M129-M134" rev 2.00/1.00 addr 2
bsd: ulpt0: using bi-directional mode
bsd: ugen0 at uhub1 port 2 configuration 1 "HP HP LaserJet MFP M129-M134" rev 2.00/1.00 addr 2
When I start hplip-gui:

Quote:
python2.7: io/hpmud/musb.c 427: Found interface conf=0, iface=0, altset=0, index=1
python2.7: io/hpmud/musb.c 389: Active kernel driver on interface=0 ret=-12
python2.7: io/hpmud/musb.c 535: claimed 7/1/2 interface
python2.7: io/hpmud/musb.c 780: read actual device_id successfully fd=1 len=278
python2.7: io/hpmud/musb.c 561: released 7/1/2 interface
python2.7: io/hpmud/musb.c 427: Found interface conf=0, iface=0, altset=0, index=1
python2.7: io/hpmud/musb.c 389: Active kernel driver on interface=0 ret=-12
python2.7: io/hpmud/musb.c 535: claimed 7/1/2 interface
python2.7: io/hpmud/musb.c 780: read actual device_id successfully fd=1 len=278
python2.7: io/hpmud/musb.c 561: released 7/1/2 interface
python2.7: io/hpmud/musb.c 960: new HP-EWS-LEDM channel=23 clientCnt=1 channelCnt=1
python2.7: io/hpmud/musb.c 427: Found interface conf=0, iface=1, altset=0, index=9
python2.7: io/hpmud/musb.c 389: Active kernel driver on interface=1 ret=-12
python2.7: io/hpmud/musb.c 535: claimed ff/4/1 interface
python2.7: io/hpmud/musb.c 561: released ff/4/1 interface
python2.7: io/hpmud/musb.c 975: removed HP-EWS-LEDM channel=23 clientCnt=0 channelCnt=0
python2.7: io/hpmud/musb.c 960: new HP-EWS-LEDM channel=23 clientCnt=1 channelCnt=1
python2.7: io/hpmud/musb.c 427: Found interface conf=0, iface=1, altset=0, index=9
python2.7: io/hpmud/musb.c 389: Active kernel driver on interface=1 ret=-12
python2.7: io/hpmud/musb.c 535: claimed ff/4/1 interface
python2.7: io/hpmud/musb.c 561: released ff/4/1 interface
python2.7: io/hpmud/musb.c 975: removed HP-EWS-LEDM channel=23 clientCnt=0 channelCnt=0
python2.7: io/hpmud/musb.c 960: new HP-EWS-LEDM channel=23 clientCnt=1 channelCnt=1
python2.7: io/hpmud/musb.c 427: Found interface conf=0, iface=1, altset=0, index=9
python2.7: io/hpmud/musb.c 389: Active kernel driver on interface=1 ret=-12
python2.7: io/hpmud/musb.c 535: claimed ff/4/1 interface
python2.7: io/hpmud/musb.c 561: released ff/4/1 interface
python2.7: io/hpmud/musb.c 975: removed HP-EWS-LEDM channel=23 clientCnt=0 channelCnt=0
and when I try to print the test page:

Quote:
HP_LaserJet_MFP_M129-M134: vfprintf %s NULL in "DEBUG: OUTFORMAT="%s", so output format will be %s "
hpcups[5541]: common/utils.c 189: unable to load library /usr/local/share/hplip/prnt/plugins/hbpl1.so: File not found
hp[56324]: prnt/backend/hp.c 919: ERROR: null print job total=0
hp-systray: [37013]: warning: /usr/local/share/hplip/plugin.spec file doesn't exists.
hp-systray: [37013]: warning: /usr/local/share/hplip/plugin.spec file doesn't exists.
Reply With Quote
  #8   (View Single Post)  
Old 3 Weeks Ago
shep shep is offline
Rc.conf Instructor
 
Join Date: May 2008
Location: Dry and Dusty
Posts: 1,000
Default

At the end of the Package README.
Quote:
Plugin installation
===================
(req. hplip)

Some devices will not work properly without a corresponding proprietary
binary plugin. HPLIP plugins automated installation is not available on
OpenBSD but it can be installed manually by running the following as
root:
cd /tmp
ftp http://www.openprinting.org/download/printdriver/auxfiles/HP/plugins/hplip-${V}-plugin.run
/bin/sh ./hplip-${V}-plugin.run --keep 2>/dev/null
cd plugin_tmp && ${MODPY_BIN} ./plugin_install.py -i
Reply With Quote
  #9   (View Single Post)  
Old 3 Weeks Ago
rehcla rehcla is offline
New User
 
Join Date: May 2016
Location: Imperium Romanum
Posts: 5
Default

Hi Shep,

Thank you for pointing me to the README and I will remember that in future

So the first few things work:

Quote:
cd /tmp

ftp http://www.openprinting.org/download...7.4-plugin.run
Requesting http://www.openprinting.org/download...7.4-plugin.run
100% |************************************************* *| 2011 KB 00:05
2059636 bytes received in 5.18 seconds (388.19 KB/s)

/bin/sh ./hplip-3.17.4-plugin.run --keep 2>/dev/null
Verifying archive integrity... All good.
Uncompressing HPLIP 3.17.4 Plugin Self Extracting Archive........................................... .....
but then:


Quote:
cd plugin_tmp && ${MODPY_BIN} ./plugin_install.py -i
ksh: ./plugin_install.py: cannot execute - Permission denied
here are the permissions for plugin_install.py:

Quote:
-rw-r--r-- 1 root wheel 8321 Apr 12 08:40 plugin_install.py
Greetings
Reply With Quote
Old 3 Weeks Ago
shep shep is offline
Rc.conf Instructor
 
Join Date: May 2008
Location: Dry and Dusty
Posts: 1,000
Default

I'm guessing that MODPY_BIN is the system python and a copypasta of the package message should give you python2.7 as the system python. You can check to see if there is a soft-link of /usr/local/bin/python -> /usr/local/bin/python2.7

From Gentoo HPLIP: HPLIP does not support python3
On my system, using 2.7 as the system python echo ${MODPY_BIN} comes up blank If you have python3 as the system pythonI think you can run plugin_install.py with
# /usr/local/bin/python2.7 plugin_install.py.
Reply With Quote
Old 3 Weeks Ago
rehcla rehcla is offline
New User
 
Join Date: May 2016
Location: Imperium Romanum
Posts: 5
Default

Next step forward

Quote:
Do you accept the license terms for the plug-in (y=yes*, n=no, q=quit) ? y
sh: lsb_release: not found
Plugin installation failed
error: Plugin installation failed
About the python thing... After installing OpenBSD Current with XFCE pkg_add adviced me to link python2.7 as the default python if I want it so.
And so I followed the instructions....

Quote:
lrwxr-xr-x 1 root wheel 29 May 29 01:29 2to3 -> /usr/local/bin/python2.7-2to3
lrwxr-xr-x 1 root wheel 24 May 29 01:28 python -> /usr/local/bin/python2.7
lrwxr-xr-x 1 root wheel 31 May 29 01:30 python-config -> /usr/local/bin/python2.7-config
-rwxr-xr-x 1 root bin 5768 May 25 00:44 python2.7
-rwxr-xr-x 1 root bin 101 May 25 00:45 python2.7-2to3
-rwxr-xr-x 1 root bin 1687 May 25 00:45 python2.7-config
-rwxr-xr-x 2 root bin 9936 May 25 00:46 python3.6
lrwxr-xr-x 1 root wheel 17 May 29 01:20 python3.6-config -> python3.6m-config
-rwxr-xr-x 2 root bin 9936 May 25 00:46 python3.6m
-rwxr-xr-x 1 root bin 3029 May 25 00:47 python3.6m-config

echo ${MODPY_BIN} stays also blank here

Last edited by rehcla; 3 Weeks Ago at 04:56 AM.
Reply With Quote
Old 3 Weeks Ago
shep shep is offline
Rc.conf Instructor
 
Join Date: May 2008
Location: Dry and Dusty
Posts: 1,000
Default

I'm not entitled, I own a Brother w/ postscript emulation, to rant about "man behind the curtain" software configuration interfaces but the python based configuration scripts are downloading, extracting and configuring either firmware or a binary blob.

These steps are only a challenge because they are buried in HP's code.

Python scripts are human readable, perhaps you can figure out what needs to happen in regards to the plugin installation. It is also possible that the "hp-setup" command might setup the environment in a way that allows this to complete.

There is an OpenBSD package for HP firmware that enables bi-directional printing.
ulpt(4). It is not clear to me from your error outputs that this is the issue but I do not think it would hurt to try.

If hp-setup does not work, I would consider this broken for plugin installation. HP will likely disavow OpenBSD support but the OpenBSD maintainer, Antoine Jacoutot, has a vested interest in this. ajacoutot<at>openbsd<dot>org. The ports mailing list ports@openbsd.org can get community exposure.

More on HP rockstar support.

Last edited by shep; 3 Weeks Ago at 07:55 AM. Reason: 1) added ulpt link 2) Gently obscured an email address
Reply With Quote
Reply

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Security HP Laserjet printer security problems J65nko News 0 30th November 2011 11:33 PM


All times are GMT. The time now is 11:58 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick