LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-19-2009, 02:21 PM   #1
runbei
LQ Newbie
 
Registered: Apr 2006
Location: Mountain View, CA
Distribution: SuSE Linux 10
Posts: 18

Rep: Reputation: 0
USB printer doesn't initialize on first startup


I'm using a LaserJet 4 Plus connected via a USB cable, from Linux Mint Felicia. The printer driver doesn't see the printer unless I unplug and re-plug the cable. Is there a workaround for this? (Didn't find one with a forum search.) Thanks.
 
Old 01-19-2009, 02:59 PM   #2
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-14.2beta2 on Lenovo Thinkpad W520
Posts: 6,780

Rep: Reputation: 2117Reputation: 2117Reputation: 2117Reputation: 2117Reputation: 2117Reputation: 2117Reputation: 2117Reputation: 2117Reputation: 2117Reputation: 2117Reputation: 2117
Force loading of the driver at startup. Edit one of the initialization scripts (on my Slackware 12.2 it would be /etc/rc.d/rc.modules-<kernel_version> but on Mint I don't know which one you can use). Just add this line:
Code:
/sbin/modprobe <module_name>
To know the driver's name, after re-pluging the cable, either 'lsmod' (should be the first on the list) or 'dmesg|tail'.
 
Old 01-19-2009, 03:16 PM   #3
michaelk
Moderator
 
Registered: Aug 2002
Posts: 14,937

Rep: Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520
I assume you are using a USB parallel port adapter. As suggested is the adapter being recognized on start up? Look at the output of the dmesg command. Who is the manufacture of the adapter?
 
Old 01-19-2009, 06:24 PM   #4
runbei
LQ Newbie
 
Registered: Apr 2006
Location: Mountain View, CA
Distribution: SuSE Linux 10
Posts: 18

Original Poster
Rep: Reputation: 0
Michael and Didier - Thanks for the help. I'll take full advantage of my newbie status and post what appear to be the relevant brief sections of the dmesg output and ask for help interpreting it. Here goes -

Code:
[   19.521788] usblp0: USB Bidirectional printer dev 2 if 0 alt 1 proto 2 vid 0x067B pid 0x2305 
 [   19.521809] usbcore: registered new interface driver usblp 
 

 [ 9443.512075] usb 2-1: USB disconnect, address 2 
 [ 9443.516884] usblp0: removed 
 [ 9452.456035] usb 2-3: new full speed USB device using ohci_hcd and address 3 
 [ 9452.623265] usb 2-3: configuration #1 chosen from 1 choice 
 [ 9452.636714] usblp0: USB Bidirectional printer dev 3 if 0 alt 1 proto 2 vid 0x067B pid 0x2305 
 [13249.816072] usb 2-3: USB disconnect, address 3 
 [13249.820773] usblp0: removed 
 [13250.995574] usb 3-5: USB disconnect, address 4 
 [13252.820016] usb 2-2: new full speed USB device using ohci_hcd and address 4 
 [13253.012767] usb 2-2: configuration #1 chosen from 1 choice 
 [13253.020941] usblp0: USB Bidirectional printer dev 4 if 0 alt 1 proto 2 vid 0x067B pid 0x2305
Thanks again.

gb
 
Old 01-20-2009, 02:46 AM   #5
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-14.2beta2 on Lenovo Thinkpad W520
Posts: 6,780

Rep: Reputation: 2117Reputation: 2117Reputation: 2117Reputation: 2117Reputation: 2117Reputation: 2117Reputation: 2117Reputation: 2117Reputation: 2117Reputation: 2117Reputation: 2117
So the driver to use is usblp.

You can:
- before start up, check that your printer is plugged an running. Then, after start up, see if the module was automatically loaded:
Code:
lsmod|grep usblp
- if it was not (empty output), see in which start up script you could add this line:
Code:
/sbin/modprobe usblp
- one usblp is loaded, become root and check the output of:
Code:
lsusb
What surprises me is that in 'dmesg' output you don't see your printer's identification. Example given:
Code:
bash-3.1$ dmesg|tail
eth1: no IPv6 routers present
usb 1-3: new high speed USB device using ehci_hcd and address 3
usb 1-3: configuration #1 chosen from 1 choice
usb 1-3: New USB device found, idVendor=03f0, idProduct=1812
usb 1-3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
usb 1-3: Product: Officejet Pro K550
usb 1-3: Manufacturer: HP
usb 1-3: SerialNumber: MY5AL2105T
usblp0: USB Bidirectional printer dev 3 if 0 alt 0 proto 2 vid 0x03F0 pid 0x1812
usbcore: registered new interface driver usblp
bash-3.1$
To know more about your device (plugged in, running and with the usblp module loaded) you can issue:
Code:
cat /proc/usb/devices
Te relevant block of information will be the one which shows: Driver=usblp.
 
Old 01-20-2009, 01:05 PM   #6
runbei
LQ Newbie
 
Registered: Apr 2006
Location: Mountain View, CA
Distribution: SuSE Linux 10
Posts: 18

Original Poster
Rep: Reputation: 0
Thanks, Didier - will try it this evening. - George
 
Old 01-20-2009, 02:20 PM   #7
michaelk
Moderator
 
Registered: Aug 2002
Posts: 14,937

Rep: Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520
The LJ4 is parallel port printer so there will not be any info in /proc/usb/devices.
 
  


Reply


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
Interfaces eth0, eth1 fail to initialize on startup psteele555 Linux - Networking 7 06-20-2008 09:25 AM
ndiswrapper can't initialize my wifi usb device vicenterb Linux - Wireless Networking 4 04-06-2008 08:43 PM
Working interface fails to initialize on startup ja203 Linux - Wireless Networking 1 12-10-2006 02:12 PM
USB Printer fails to initialize after disabling ACPI DragonWisard Linux - Hardware 0 04-22-2006 12:46 AM
Netgear MA111 802.11b USB adapter failed to initialize on startup (RHL9) BTTF Man Linux - Hardware 0 06-19-2004 07:49 PM


All times are GMT -5. The time now is 09:26 PM.

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration