LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 09-23-2010, 02:31 AM   #1
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,289

Rep: Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322
Slackware-13.1 and foo2zjs


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.
 
Old 09-23-2010, 12:03 PM   #2
Richard Cranium
Senior Member
 
Registered: Apr 2009
Location: McKinney, Texas
Distribution: Slackware64 15.0
Posts: 3,858

Rep: Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225
It isn't clear if you are asking for help about something or venting.
 
Old 09-23-2010, 01:01 PM   #3
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,289

Original Poster
Rep: Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322
Sorry about that.

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.
 
Old 09-23-2010, 03:55 PM   #4
Richard Cranium
Senior Member
 
Registered: Apr 2009
Location: McKinney, Texas
Distribution: Slackware64 15.0
Posts: 3,858

Rep: Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225
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. :-)
 
Old 09-24-2010, 10:36 AM   #5
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,289

Original Poster
Rep: Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322
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.
 
Old 09-24-2010, 02:56 PM   #6
Richard Cranium
Senior Member
 
Registered: Apr 2009
Location: McKinney, Texas
Distribution: Slackware64 15.0
Posts: 3,858

Rep: Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225
Maybe you should look at http://www.reactivated.net/writing_u...l#external-run

You may have to write a wrapper script.


(OT: I wish the bleeping URL popup did NOT come with the http:// prefix filled in. That really interferes with X paste. Grr.)
 
Old 09-24-2010, 03:31 PM   #7
Ilgar
Senior Member
 
Registered: Jan 2005
Location: Istanbul, Turkey
Distribution: Slackware64 15.0, Slackwarearm 14.2
Posts: 1,157

Rep: Reputation: 237Reputation: 237Reputation: 237
Here is what I tried for my Laserjet 1020:

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.

Last edited by Ilgar; 09-24-2010 at 03:32 PM.
 
1 members found this post helpful.
Old 09-25-2010, 02:42 AM   #8
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,289

Original Poster
Rep: Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322
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
 
Old 09-27-2010, 02:33 AM   #9
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,289

Original Poster
Rep: Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322
Works for one of the boxes here - the 32 bit.
I think I'll need a closer investigation on 64 bits, but that's nothing new :-/.
 
  


Reply



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



Similar Threads
Thread Thread Starter Forum Replies Last Post
foo2zjs SolitudeSensus Linux - Software 1 07-22-2009 12:53 AM
Laserjet 1020 with Foo2zjs Not Printing sloik2000 Linux - Hardware 4 06-22-2007 10:04 PM
Help with Install of foo2zjs for HP 1020 Carpinus Ubuntu 1 08-22-2006 03:20 PM
Minolta MC 2300dl + foo2zjs driver = color images printed in black? J_Szucs Linux - Hardware 1 02-06-2006 02:30 AM
Tally 9316 Printer with foo2zjs Orkie Linux - Hardware 0 03-29-2005 12:10 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 03:58 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration