Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 144397 - net-print/foo2zjs doesn't work with sys-apps/hal-0.5.7.x
Summary: net-print/foo2zjs doesn't work with sys-apps/hal-0.5.7.x
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal
Assignee: Project Gentopia
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-08-19 03:10 UTC by Peter Avramucz
Modified: 2006-08-21 05:08 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
output with new hal (hald-0.5.7.1,5.11 KB, text/plain)
2006-08-20 09:57 UTC, Peter Avramucz
Details
output with old hal (hald-0.5.5.1-r3,4.60 KB, text/plain)
2006-08-20 09:57 UTC, Peter Avramucz
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Peter Avramucz 2006-08-19 03:10:34 UTC
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.
Comment 1 Peter Avramucz 2006-08-20 09:57:10 UTC
Created attachment 94707 [details]
output with new hal
Comment 2 Peter Avramucz 2006-08-20 09:57:34 UTC
Created attachment 94708 [details]
output with old hal
Comment 3 Peter Avramucz 2006-08-20 09:58:36 UTC
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...
Comment 4 Stefan Schweizer (RETIRED) gentoo-dev 2006-08-20 10:04:01 UTC
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;
Comment 5 Peter Avramucz 2006-08-20 12:24:50 UTC
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...
Comment 6 Stefan Schweizer (RETIRED) gentoo-dev 2006-08-20 12:47:25 UTC
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
Comment 7 Peter Avramucz 2006-08-20 12:50:50 UTC
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?
Comment 8 Stefan Schweizer (RETIRED) gentoo-dev 2006-08-20 13:00:05 UTC
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.
Comment 9 Peter Avramucz 2006-08-20 15:33:12 UTC
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... :-/
Comment 10 Stefan Schweizer (RETIRED) gentoo-dev 2006-08-20 15:35:34 UTC
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.
Comment 11 Peter Avramucz 2006-08-20 16:49:16 UTC
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
Comment 12 Stefan Schweizer (RETIRED) gentoo-dev 2006-08-20 17:29:38 UTC
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?
Comment 13 Peter Avramucz 2006-08-20 23:55:48 UTC
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.
Comment 14 Peter Avramucz 2006-08-21 03:19:01 UTC
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?
Comment 15 Stefan Schweizer (RETIRED) gentoo-dev 2006-08-21 05:08:15 UTC
yes, hal bugzilla please. And consult the foo2zjs author please. Thanks