Device Node Assignment at Boot, Parallel Printer via USB adapter
I have a printer that is not getting a device node assigned at boot.
The printer is attached with a USB to Parallel (IEEE-1284) adapter cable. When I plug in the usb cable when the machine is running, the printer is assigned the device node: /dev/usb/lp0 I am guessing that during startup, the printer device is not detected since it is plugged in over an adapter cable which may be considered a device in itself? This is for a retail store, and we rely on the printer to pop the cash drawer open, so it kinda has to work without a "secret handshake" :) Unfortunately our workstations do not have Parallel ports. I would be happy to share terminal output, udev info, I'll write you a poem… but I could sure use a helping hand- I'm stumped! |
If you do:
dmesg | grep lp or dmesg | grep usb Does the kernel report finding anything relevant? (Like maybe the adapter?) I have a usb-to-parallel adapter, and it's always just worked as a printer -- the adapter itself isn't detected as a separate device or anything. |
I'll check the output of dmesg as soon as I am back in the store! I saved the `lsusb` output below, which is what started making me think the cable was considered a device, because of the name of the device. The device IS present in `lsusb` output after reboot, but the device node is not assigned until after unplugging and re-plugging the cable. Powering the machine off and on has no effect. Weird huh?
Code:
fingerprints@skylark:~$ lsusb |
Hmmm, it does mention a printer once, and it's vid & pid match the id of the device highlighted blue in the lsusb output I posted above... Do you think that tells us anything?
using `dmesg | grep lp` outputs a few hundred entries of the following line Code:
[32858.320354] usb 5-1: usbfs: interface 0 claimed by usblp while 'usb' sets config #1 and these entries appear consecutively in the middle, looks like is referring to the printer: Code:
[31717.820323] usblp 5-1:1.0: no reset_resume for driver usblp? |
Perhaps the procedure here:
https://wiki.archlinux.org/index.php...klisting_usblp would be useful? It sounds like there are two different conventions for talking to the printer: The old usblp driver way and the newer libusb way. But the two methods fight with each other, so the usblp modules have to be disabled so the libusb driver can talk to the printer. |
Might have to look at speeds of services starting up. Put in a huge delay for printing. It seems (maybe) that it has to wait until the usb is hotplugged.
|
All times are GMT -5. The time now is 02:06 AM. |