SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
They've changed something on slackware-13.1 around hotplug and I'd love to know what. As part of installing foo2zjs - a printer driver for things that talk in zjs, a hp protocol, there's a
make install-hotplug step.
This makes a directory /etc/hotplug/usb and populates it with symlinks and a script. The script loads firmware and the symlinks refer to any printer it covers, so in fact it should bang in the firmware, but this is not happening on slackware-13.1
Now it's all probably done with hal, dbus, or some other "utilities" that nobody can get their head around. Can somebody tell the guys there we speak English, not xml :-/?
Last edited by business_kid; 09-27-2010 at 02:31 AM.
I'd love some help on this. It's not running the script in /etc/hotplug at all, afaict. Now I know hotplug was trailing edge technology, but I'm not sure what's going on in place of it.
I can bang a command into rc.local, but that does squat if I come along later with the printer. Ideally wherever it figures out there's now a printer online, I need to get it to send down a bit of firmware.
Well, I think that part of it would be handled by udev and another part by hald.
I think that /lib/udev/rules.d/70-printers.rules should give you an idea of what to do. You'd have to add your custom rule to /etc/udev/rules.d directory and use the RUN+= udev directive to run the command to send the firmware to the printer.
I haven't done any of this myself (hey, those who can, do, etc), but I think this would be the way to do it. :-)
No quick fixes here. Apparently /dev/usb/lp0 is more than a little reluctant to make an appearance. I tried a command like you suggested.
No dice. Did nothing or error > /dev/null.
So I got crude: in modprobe.d/printer.conf
install usblp = "/sbin/modprobe -i usblp && pause 10 && /usr/bin/cat /lib/firmware/sihpP1005.dl > /dev/usb/lp0"
That throws a number of firmware packages at the printer when I remove the module and plug plug in the printer. Can I improve on that?
Last edited by business_kid; 09-24-2010 at 10:37 AM.
The make install-hotplug script doesn't work because /lib/udev/rules.d/70-printers.rules is there. So I moved it somewhere else, ran make install-hotplug, then put the file back in place. It seems to work now, although I didn't do extensive testing.
In the foo2zjs directory there is a file hplj10xx.rules. In that file there are udev rules for the printers, like
Code:
#Own udev rule for HP Laserjet 1020
KERNEL=="lp*", SUBSYSTEMS=="usb", ATTRS{idVendor}=="03f0", \
ATTRS{product}=="HP LaserJet 1020", NAME="usb/%k", \
SYMLINK+="hplj1020-%n", MODE="0666", RUN+="/etc/hotplug/usb/hplj1020"
for HP LJ 1020 and this file goes into /etc/udev/rules.d. In fact I had this file already in place from my previous foo2zjs installation, but probably in the new version some symlinks etc. have changed and they were not fixed until I was able to run make install-hotplug.
Thanks.
I'm 'spoken for' today. I'll get to this and come back.
I have 2 installations - one with /lib/udev/rules.d/70-printers.rules and one without. I'll get to this later and report back
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.