I'm using the foo2zjs driver from: http://foo2zjs.rkkda.com/ When any of the testing 0.5.7-0.5.7.1 Hal installed, it makes it impossible to use the printer. usb_printerid /dev/usb/lp0 reports: Error: Input/output error: GET_DEVICE_ID on '/dev/usb/lp0' And I can't print anything, since documents can't reach the printer. With the stable 0.5.5.1-r3 Hal works perfectly. I have tried different USE flags and cflags, with no success.
Created attachment 94707 [details] output with new hal
Created attachment 94708 [details] output with old hal
I ran 'hald --daemon=no --verbose=yes' and turned on, and then off my printer. So you can see the difference between the 2 hal versions. Hope, I could help something...
strangely enough I am using my in portage ebuild net-print/foo2zjs and it works fine for me. Please complain to where you got the driver from, thanks. # eix -e -c hal [I] sys-apps/hal (0.5.7.1): Hardware Abstraction Layer # usb_printerid /dev/usb/lp0 GET_DEVICE_ID string: MFG:Hewlett-Packard;MDL:hp LaserJet 1005 series;CMD:ZJS;CLS:PRINTER;DES:hp LaserJet 1005 series;FWVER:20021030;
And you have /etc/init.d/hald running? Cause, I've installed foo2zjs from portage (and uninstalled the older one before), and it gave tha same result...
what kernel version are you using? That is mine: Linux shuttle 2.6.18-rc2-git1 #1 SMP PREEMPT Sun Jul 23 23:47:43 CEST 2006 i686 AMD Athlon(tm) 64 X2 Dual Core Processor 3800+ AuthenticAMD GNU/Linux
My kernel is: 2.6.17-gentoo-r5 And you might not noticed, but your printer is a 1005, and mine is a 1020... Is hald running when you turn on your printer?
yes, it is. Want to try 2.6.18-rc4? :) imo this is definitely a kernel thing. This is an usb_printerid <-> kernel communication. The problem might be that hal is rendering your printer unuseable by writing something to the device that it should not write.
Tried 2.6.18_rc3-r7 git-sources with no success. But if i shutdown hald, then turn the printer on, and then start hald again, it wokrs perfectly... :-/
reassigning to gentopia so I do not get all mails twice. I suppose this has something to do with your local config. Can you try to start from scratch? Remove /etc/hal Or try on another machine? Not kernel related then I suppose.
I have tried anything (except the try on another machine), but still no success. I think the problem is the: 'Cannot do LPIOC_GET_DEVICE_ID on /dev/usb/lp0' in the output of hald --daemon=yes --verbose=yes. Can you look at this in your config? I have found another page, might be the same problem: http://lists.freedesktop.org/archives/hal/2004-September/000891.html
Are you sure you removed your old try with the upstream version completely? Make especially sure that you removed /etc/hotplug/usb/hp* This probably needs to be fixed in hal. Do you have USE=udev enabled?
Yes, i removed it. I have udev dbus and hal in my make.conf . I've noticed one more thing: if i remove the firmware from /lib/firmware, it can't load it, and hal's 'hald-printer-probe' can identify the printer. But after this, if i load firmware manually, everything works perfect.
Workaround: I have removed /usr/libexec/hald-printer-probe . Now everything works, but this is confusing... Should I report this issue to the Hal bugzilla?
yes, hal bugzilla please. And consult the foo2zjs author please. Thanks