HP LaserJet P1005 / P1007 :  foo2zjs - foo2hp - foo2xqx - foo2lava - foo2qpdl - foo2oak
Support for linux printer drivers
The fastest message board... ever.
 
Some trouble in Slackware-13.1 [Solved]
Posted by: business_kid ()
Date: September 14, 2010 04:01AM

Hi.
Updated 2 machines here to slackware-13.1 and they both stopped printing to my P1005 laserjet. I have no /dev/usb/lp0. Getting them to print is simple.

modprobe lp # /dev/usb/lp0 appears
cat sihpP1005.dl > /dev/usb/lp0

and they work fine. Am I missing something in the config? I did travel carefully (wget, make, ./getweb, make install, make install-hotplug steps). Can I stick something in modprobe.d to sort this?



Edited 2 time(s). Last edit at 09/27/2010 02:28PM by rickrich.

Options: ReplyQuote
Re: Some trouble in Slackware-13.1
Posted by: rickrich ()
Date: September 14, 2010 05:53AM

What is the URI?

Options: ReplyQuote
Re: Some trouble in Slackware-13.1
Posted by: business_kid ()
Date: September 22, 2010 02:06PM

bash-4.1$ usb_printerid /dev/usb/lp0
GET_DEVICE_ID string:
MFG:Hewlett-Packard;MDL:HP LaserJet P1005;CMD:ACL;CLS:PRINTER;DES:HP LaserJet P1005;

No I made some progress. At boot, Slackware executes the first it finds of
1. /etc/rc.d/rc.modules.local
2. /etc/rc.d/rc.modules-kernel-version
3. /etc/rc.d/rc.modules

and then it considers the modules lo0aded. I had _Updated_ my kernel, because of a video regression, & I have 2.6.35.4-agp. It only had rc.modules-kernel-version, so it wasn't loading any modules. Now I have usblp autoloading, but still no firmware loads. dmesg |tail reports
usb 1-6: new high speed USB device using ehci_hcd and address 4
usb 1-6: New USB device found, idVendor=03f0, idProduct=3d17
usb 1-6: New USB device strings: Mfr=1, Product=2, SerialNumber=3
usb 1-6: Product: HP LaserJet P1005
usb 1-6: Manufacturer: Hewlett-Packard
usb 1-6: SerialNumber: BB08HLP
usblp0: USB Bidirectional printer dev 4 if 0 alt 0 proto 2 vid 0x03F0 pid 0x3D17
usb 1-6: usbfs: interface 0 claimed by usblp while 'usb' sets config #1
usblp0: removed
You have old & broken userspace please consider updating mesa
(This last is a harmless warning from ATI drivers - log spam)

rmmod & modprobe on usblp and I can load firmware. Strange.
bash-4.1$ usb_printerid /dev/usb/lp0
GET_DEVICE_ID string:
MFG:Hewlett-Packard;MDL:HP LaserJet P1005;CMD:HBS,PJL,ACL;CLS:PRINTER;DES:HP LaserJet P1005;FWVER:20090916;

Options: ReplyQuote
[SORTED]Re: Some trouble in Slackware-13.1
Posted by: business_kid ()
Date: September 27, 2010 03:48AM

Now this proved interesting.

I got an answer in linuxquestions that the make install-hotplug script does not behave in the presence of /lib/udev/rules.d/70-printers.rules. I gotthat file out of the way, ran make install-hotplug, and away we went on my 32 bit box. AFAICT, the 64 bit box does not have that file although it is the same distro and version. I'll examine that closer later. For the record, the offending 70-printers.rules simply reads

# Low-level USB device add trigger
ACTION=="add", SUBSYSTEM=="usb", ATTR{bInterfaceClass}=="07", ATTR{bInterfaceSubClass}=="01", RUN+="udev-configure-printer add %p"
# usblp device add trigger (needed when usblp is already loaded)
ACTION=="add", KERNEL=="lp*", RUN+="udev-configure-printer add %p"
# Low-level USB device remove trigger
ACTION=="remove", SUBSYSTEM=="usb", ENV{ID_USB_INTERFACES}=="*:0701*:*", RUN+="udev-configure-printer remove %p"

Hal is taking over from conf files for base hardware in slackware. No xorg.conf these days, and if you need to fiddle mouse or keyboard options, it's to /etc/hal/fdi/policy/ you should go and write a file for it.

The P1005 printer is working here with /lib/udev/ruled.d/70-printers.rules out altogether.

Options: ReplyQuote
Re: [SORTED]Some trouble in Slackware-13.1
Posted by: rickrich ()
Date: September 27, 2010 06:48AM

You shouldn't have package "system-config-printer-udev" installed AT ALL!

From the Makefile:
install-hotplug-test:
        ... snip ...
        @if test -r $(LIBUDEVDIR)/*-printers.rules; then \
            echo "      ***"; \
            echo "      *** Error: system-config-printer-udev is installed!"; \
            echo "      ***"; \
            echo "      *** Remove it with: (Fedora)"; \
            echo "      ***     # yum remove system-config-printer-udev"; \
            echo "      *** OR (Ubuntu, Debian)"; \
            echo "      ***     $$ sudo apt-get remove system-config-printer-udev"; \
            echo "      ***"; \
            exit 1; \
        fi



Edited 2 time(s). Last edit at 09/27/2010 07:10AM by rickrich.

Options: ReplyQuote


Sorry, only registered users may post in this forum.
This forum powered by Phorum.