Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Kernel 3.1 usb printer firmware load (Working)
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
armstrong360
n00b
n00b


Joined: 19 Oct 2007
Posts: 25

PostPosted: Sat Jan 07, 2012 2:09 am    Post subject: Kernel 3.1 usb printer firmware load (Working) Reply with quote

printing is such a pain sometimes!!! I have an HP1018 LaserJet printer. It is a usb printer. I have had it working on earlier kernels and cups! However after the upgrade to kernel 3.1 it has stopped functioning.

Linux version 3.1.6-gentoo (root@jimmy) (gcc version 4.5.3 (Gentoo 4.5.3-r1 p1.0, pie-0.4.5) ) #4 SMP PREEMPT Wed Jan 4 18:01:59 CST 2012

Earlier versions of the kernel used a module usblp for printing, with linux running, turning on / plugging in the printer triggered a udev rule that loads the printers firmware through /dev/usb/lp0.

Newer versions of cups have moved away from the usblp module (1.4.8> ??) and have a printer discovery via the sys file system. Anyone have any idea how firmware is suppose to get loaded into the printer?


Last edited by armstrong360 on Mon Jan 23, 2012 3:01 am; edited 1 time in total
Back to top
View user's profile Send private message
armstrong360
n00b
n00b


Joined: 19 Oct 2007
Posts: 25

PostPosted: Mon Jan 23, 2012 3:00 am    Post subject: Reply with quote

So my printer is back working again! Used cups 1.4.8-r1 with the driver from http://foo2zjs.rkkda.com/ The one in portage does not emerge correctly. I also used the usblp module from the kernel. The rule 70-printers.rules in /usr/lib/rules.d had to be move out of the way to install foo2zjs
Back to top
View user's profile Send private message
armstrong360
n00b
n00b


Joined: 19 Oct 2007
Posts: 25

PostPosted: Sun Apr 29, 2012 3:55 pm    Post subject: Reply with quote

Well another update and the printer quits again! I see that a few people have viewed this thread so it may be worth adding too it. >The source of the breakage this time was

app-admin/system-config-printer-common which installed a new 70-printer.rules in /lib/udev/rules this takes over from the foo2zjs rules in /etc/udev/rules.d. In the process of fixing it I ended up using cups 1.5 and no lpusb module. But I end up having to use a script to load the firmware.

#!/bin/sh
export DEVICE_URI='usb://HP/LaserJet%201018?serial=KP0EB82'
/usr/libexec/cups/backend/usb 1 1 1 1 '' /lib64/firmware/sihp1018.dl
Back to top
View user's profile Send private message
bartos
n00b
n00b


Joined: 05 Dec 2009
Posts: 4

PostPosted: Fri Jul 27, 2012 2:10 am    Post subject: Reply with quote

armstrong360 wrote:
So my printer is back working again! Used cups 1.4.8-r1 with the driver from http://foo2zjs.rkkda.com/ The one in portage does not emerge correctly. I also used the usblp module from the kernel. The rule 70-printers.rules in /usr/lib/rules.d had to be move out of the way to install foo2zjs


What does he mean " The rule 70-printers.rules in /usr/lib/rules.d had to be move out of the way"
I may need to do this
Back to top
View user's profile Send private message
armstrong360
n00b
n00b


Joined: 19 Oct 2007
Posts: 25

PostPosted: Wed Aug 08, 2012 2:22 am    Post subject: Reply with quote

70-printers.rules belongs to the package:
app-admin/system-config-printer-common

The current version of that package (and 70-printers.rules) will load the usblp kernel module BUT it will not load the firmware required onto the printer. The foo2zjs package, if installed properly, will put a rules file in /etc/udev/rules.d and a hotplug script in /etc/hotplug/usb. These two files will load the usblp kernel module and then load the firmware onto the printer. This works if cups is an earlier version 1.4.6 (I am unsure of the exact version). So if you are in this situation you will need to find the 70-printers.rules file and delete it (or move it so you can put it back if necessary) as it will have priority over the /etc/udev/rules.d.


Newer versions of cups ( I am using 1.5 ) do not want to use the usblp kernel module but use the sysfs to find the printer. Here the 70-printers.rules makes the printer visible, and sets up cups to use it BUT it does not load the firmware and neither can the hotplug script since the printer is no longer visible in the dev file system.

So I load the printer firmware manual using that script in one of my earlier posts.
Back to top
View user's profile Send private message
DirtyHairy
Guru
Guru


Joined: 03 Jul 2006
Posts: 599
Location: Würzburg, Deutschland

PostPosted: Wed Aug 08, 2012 7:31 am    Post subject: Reply with quote

Reading this I wonder: couldn't you write a udev rule which automatically runs the script for loading the firmware?
Back to top
View user's profile Send private message
armstrong360
n00b
n00b


Joined: 19 Oct 2007
Posts: 25

PostPosted: Wed Aug 08, 2012 2:04 pm    Post subject: Reply with quote

Yes writing a rule is what should be done. I guess I just haven't had the drive to do it. The configuration I have now works in a fashion that satisfies my needs, its not pretty, but it works.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware 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