LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices

Reply
 
Search this Thread
Old 05-05-2011, 05:44 PM   #1
robbmac
LQ Newbie
 
Registered: Dec 2009
Posts: 8

Rep: Reputation: 0
Unhappy 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!
 
Old 05-06-2011, 01:42 AM   #2
plpl303a
Member
 
Registered: May 2011
Posts: 52

Rep: Reputation: 3
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.
 
Old 05-07-2011, 01:00 PM   #3
robbmac
LQ Newbie
 
Registered: Dec 2009
Posts: 8

Original Poster
Rep: Reputation: 0
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
Bus 005 Device 003: ID 093a:2510 Pixart Imaging, Inc. Hama Optical Mouse
Bus 005 Device 002: ID 067b:2305 Prolific Technology, Inc. PL2305 Parallel Port
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 002: ID 04ca:004b Lite-On Technology Corp. 
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 003: ID 0781:5530 SanDisk Corp. 
Bus 001 Device 002: ID 04f2:b18b Chicony Electronics Co., Ltd 
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
 
Old 05-13-2011, 03:23 PM   #4
robbmac
LQ Newbie
 
Registered: Dec 2009
Posts: 8

Original Poster
Rep: Reputation: 0
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
I wonder if that corresponds to the number of times I've unplugged it and plugged it back in
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?
[31717.820503] usblp0: removed
[31723.389669] usblp0: USB Bidirectional printer dev 2 if 0 alt 1 proto 2 vid 0x067B pid 0x2305
[31723.389923] Modules linked in: binfmt_misc ppdev snd_hda_codec_realtek fbcon tileblit font bitblit softcursor vga16fb vgastate snd_hda_intel snd_hda_codec snd_hwdep snd_pcm_oss snd_mixer_oss snd_pcm snd_seq_dummy snd_seq_oss snd_seq_midi snd_rawmidi snd_seq_midi_event snd_seq joydev snd_timer snd_seq_device i915 usbhid snd drm_kms_helper uvcvideo videodev hid usblp v4l1_compat psmouse serio_raw drm intel_agp soundcore atl1c rt3090sta(C) i2c_algo_bit video output snd_page_alloc agpgart lp parport
If this tells you anything else I could check on, I would appreciate the advice! Thanks a bunch for responding in the first place.
 
Old 05-13-2011, 09:04 PM   #5
plpl303a
Member
 
Registered: May 2011
Posts: 52

Rep: Reputation: 3
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.
 
Old 05-14-2011, 05:19 PM   #6
jefro
Guru
 
Registered: Mar 2008
Posts: 11,787

Rep: Reputation: 1449Reputation: 1449Reputation: 1449Reputation: 1449Reputation: 1449Reputation: 1449Reputation: 1449Reputation: 1449Reputation: 1449Reputation: 1449
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.
 
  


Reply

Tags
device, node, parallel, udev


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
problem printing with usb to parallel adapter with an hp 720c pernest Linux - Newbie 2 03-26-2010 09:07 AM
usb parallel printer adapter problem sidlo Linux - Hardware 1 09-19-2008 01:05 PM
USB device node - where is it? moistTowelette Linux - Hardware 3 08-13-2007 11:44 AM
usb-parallel port adapter al.basili Linux - Hardware 0 12-01-2005 01:56 PM
USB-Parallel Port Adapter FliesLikeABrick Linux - Hardware 6 09-29-2005 12:47 PM


All times are GMT -5. The time now is 10:55 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration