Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 36139 - hpoj and udev how to make it work
Summary: hpoj and udev how to make it work
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Printing Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-12-19 15:02 UTC by Derk W te Bokkel
Modified: 2003-12-22 07:46 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Derk W te Bokkel 2003-12-19 15:02:40 UTC
hpoj as is will not work as it can not find a usb printer
 in the expected spot as udev changes the device nameing convention
to /dev/lp[0-9]* etc .. instead of /dev/usb/usblp[0-9]* etc. or /dev/usb/lp[0-9]

I found that a simple modification of the /usr/sbin/ptal-init script is required just add an extra search string to the usb devices section.
"/dev/lp[0-9]*"  at lines .. 43 to 46

code fragment;

my @usbWildcards=(
	"/dev/usb/lp[0-9]*",
	"/dev/usblp[0-9]*",
	"/dev/lp[0-9]*"			# added line.
	);

also sent a note to hpoj-devel@list.sourceforge.net


Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Comment 1 Derk W te Bokkel 2003-12-19 15:15:58 UTC
upstream has not been notified as my e-mail bounced

Derk
Comment 2 Derk W te Bokkel 2003-12-19 17:45:26 UTC
another alternative is to create the symlink between lp0 and usblp0 or /dev/usb/lp0 but then you need to know exactly where the printer is. the first method is more general.

Derk

ps. upstream has now been notified as i fixed the e-mail address

hpoj-devel@lists.sourceforge.net
Comment 3 Heinrich Wendel (RETIRED) gentoo-dev 2003-12-22 07:46:13 UTC
thx, i added a patch in 0.91-r2 :)