Summary: | net-print/foo2zjs-99999999: firmware not loaded into printers | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Dimitrije Zivkovic <dimitrije.ziv> |
Component: | Current packages | Assignee: | Printing Team <printing> |
Status: | UNCONFIRMED --- | ||
Severity: | minor | CC: | boxcars, dimitrije.ziv, ostroffjh, phajdan.jr, vityokster |
Priority: | Normal | Keywords: | PullRequest |
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
See Also: | https://github.com/gentoo/gentoo/pull/33695 | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
build log
build log |
Description
Dimitrije Zivkovic
2011-07-16 18:55:33 UTC
This affects HP LaserJet 1000/1005/1018/1020 and P1005/P1006/P1007/P1008/P1505 models. (Mine is a 1020.) The build needs `make install-hotplug` for the printers that have to have their firmware sent to them when they are connected. Maybe this could be a use flag? Or bring back the old FOO2ZJS_DEVICES variable? Please try syncing the portage tree and re-emerging foo2zjs. I have made some changes to the ebuild that should help but don't have the affected printers to test. Created attachment 280795 [details]
build log
The build failed for me. I'm attaching a log, will give you more info if it will help (but i'm in an extreme hurry now.) Thanks for working on this!
(In reply to comment #3) > The build failed for me. I'm attaching a log, will give you more info if it > will help (but i'm in an extreme hurry now.) Thanks for working on this! Ah, I updated dependencies. Should work now. (In reply to comment #4) > (In reply to comment #3) > > The build failed for me. > > Ah, I updated dependencies. Should work now. After installing vim, building foo2zjs worked - I guess this is the dependency you updated. I just reinstalled foo2zjs after your latest update to test. I have the what look like the right /etc/hotplug/usb/hplj* script and symlinks, but I don't see the udev rules that should call them. I will post back tomorrow after I get the chance to plug the printer in. Created attachment 282491 [details]
build log
(In reply to comment #5) Sorry it's taken me so long to get back -- I was unexpectedly AFK for a while. I did test back then (2011-07-24) and found the firmware wasn't being loaded. I tried to re-emerge foo2zjs today, and the build failed. I've just attached a build log, will post more info if wanted. I've had this problem of no firmware loading for an HP lj 1018, since about a month ago (not sure exactly what change caused it -- a cups upgrade?). Ok -- first thing for a successful compilation of foo2zjs was to follow the advice about removing an "alternative" incompatible printer-related file from /lib/udev/rules.d/*-printers.rules (part of system-config-printer-udev). (This warning comes from the foo2zjs Makefile, not the ebuild.) Having compiled and merged the ebuild, attempts at printing showed that the processing and removal from queue happened as usual, but nothing came out. No error in the logs or the CUPS interface. On connecting the printer's usb cable (after turning the printer off then on again to lose uploaded firmware) there was not the usual sound from the printer (a brief whirring and click). Manual loading of the firmware: cat /usr/share/foo2zjs/firmware/sihp1018.dl >/dev/usblp0 did give this sound from the printer, and printing then worked. I don't understand enough of udev to see how the foo2zjs firmware upload scripts (e.g. /etc/hotplug/usb/hplj1018 ) would get run in the default Gentoo ebuild. I suspect it doesn't, and that another file is needed in the ebuild. When I added a file /etc/udev/rules.d/71-foo2zjs-firmware.rules with a line as suggested in e.g. http://forums.fedoraforum.org/showthread.php?t=172284 : SUBSYSTEM=="usb", ATTR{dev}=="180:0", RUN+="/etc/hotplug/usb/hplj1018" then it worked to turn off the printer, turn on and get the firmware automatically. Would anyone care to confirm whether this helps, or whether there is any clear way in which the current ebuild and its dependencies would cause the firmware to be correctly uploaded? I was trying this from the source tarball, and finally gave up on that and installed from the ebuild. I still needed to use the udev rules from the tarball (with further modification) but it does seem to work now. |