Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] foo2zjs is missing Hp P10xx firmware files
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
JohnTheCoolingFan
n00b
n00b


Joined: 24 Jan 2024
Posts: 23

PostPosted: Tue May 28, 2024 9:31 am    Post subject: [SOLVED] foo2zjs is missing Hp P10xx firmware files Reply with quote

TL;DR: the firmware file is there but under foo2xqx (not foo2zjs) and the hotplug scripts and udev rules are broken right now, there is a pr to fix this

I've installed net-print/foo2zjs to be able to print using cups and without hplip (as in my personal opinion, it's a horrible piece of software), but I'm having problems with the printer not doing anything yet cups is reporting that everything is fine. I've selected foo2zjs's driver in printer's configuration in cups. I've also found some installation instructions from foo2zjs: https://github.com/koenkooi/foo2zjs/blob/master/INSTALL which suggests to use a command usb_printerid to check for firmware, and it reports no firmware being downloaded into the printer. I've re-built and re-merged the package in hopes it would do something. I wanted to try and download the firmware file myself using this command:
Code:
 cat /usr/share/foo2zjs/firmware/sihpP1005.dl > /dev/usb/lp0

Although the INSTALL file says that this should've happened during make install-hotplug, which is what the official ebuild is doing. The firmware file /usr/share/foo2xqx/firmware/sihpP1005.dl is missing from my system with net-print-foo2zjs-20200221 installed.

I am using hplip in the meantime for one-off prints, which works, but I really would like to get this working without it. Can somebody help me understand what goes wrong and maybe attempt a fix for the foo2zjs package?


Last edited by JohnTheCoolingFan on Sat Jun 01, 2024 2:30 pm; edited 3 times in total
Back to top
View user's profile Send private message
vthriller
n00b
n00b


Joined: 20 May 2024
Posts: 5

PostPosted: Tue May 28, 2024 10:47 am    Post subject: Reply with quote

File might be installed in a different place; you can try

Code:
grep sihpP1005 /var/db/pkg/net-print/foo2zjs*/CONTENTS


to see where it actually is, provided it is present in your system at all.
Back to top
View user's profile Send private message
JohnTheCoolingFan
n00b
n00b


Joined: 24 Jan 2024
Posts: 23

PostPosted: Tue May 28, 2024 11:42 am    Post subject: Reply with quote

vthriller wrote:
File might be installed in a different place; you can try

Code:
grep sihpP1005 /var/db/pkg/net-print/foo2zjs*/CONTENTS


to see where it actually is, provided it is present in your system at all.


Oh yes, that finds it, located at /usr/share/foo2xqx/firmware

And I've been using the foo2xqx driver... I'm a bit confused then on why it didn't upload the firmware by itself. I guess that needs a manual step for each poweroff of the printer.
Back to top
View user's profile Send private message
JohnTheCoolingFan
n00b
n00b


Joined: 24 Jan 2024
Posts: 23

PostPosted: Tue May 28, 2024 11:59 am    Post subject: Reply with quote

I've found what seems to be the cause of hotplug not working. The udev rules don't get installed and the symlinks at /etc/gotplug/usb/hplj* are broken as they point to locations under /var/tmp/portage

I can just hand-install what is needed for my printer, but I'm more interested in fixing the gentoo package/ebuild itself. Is that a good idea? Am I doing something that someone has already done? I don't know, but sounds interesting.

Ah, there is an open pull request that fixes that issue as well

A simple fix is:


UPD: this kinda works, the firmware gets uploaded, but then I can't find the lp0 device or any of the supposed symlinks the udev rules should make. And also if you use systemd, systemd-udevd will throw a soft error at the usage of NAME.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum