Skip to contentSkip to conversation

udev, hotplug and usb printers

DISCUSSION Anes Lihovac 1 participant 1 message Apr 2, 2004

lore
Share & tools
lore
#0 lore raw

Hi

I have a problem to get my USB printer working with the above mentioned configuration. In the past when devfs was used I never faced problems.
Due to the fact that devfs had got obsolete I switched to udev. The problem is, that for some reason /dev/lp0 is disapearing after a reboot(but this is not always, just sometimes) and sometimes I can print, and then for some *&%$ing reason,now it does not work any more, and I have absolutly no clue where to start looking for the bug.

All the drivers I need a,re loaded, like
usblp, usbcore, the hcd's(ohci, uhci, and ehci) . cups is running and accepting jobs.
dmesg is showing this message for the printer when switched on

usb 2-1: USB disconnect, address 3
drivers/usb/class/usblp.c: usblp0: removed
usb 2-1: new full speed USB device using address 4 drivers/usb/class/usblp.c: usblp0: USB Bidirectional printer dev 4 if 0 alt 0 proto 2 vid 0x04A9 pid 0x106B

The command:
udevinfo -r -q name -p /sys/class/usb/lp0
gives me: device not found in database
One week back when I did this command I got /dev/lp0. This was with Kernel Version 2.6.3. Now that I am running 2.6.4 it seems not to work anymore, for some reason.

I recompiled hotplug and udev.

The version of udev and hotplug I use are:

hotplug: 20040105
udev: 0.23

One last thing to mention:

When hotplug is started I get this error:

cat: /sys//class/usb/lp0/bNumCofigurations: No such file or directory /etc/hotplug/usb.agent: line 144: [: too many arguments

So, if anyone can give me help on this, please do so.

Thanks in advance and best regards.
Anes

PS: Sorry for the long post.

-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel