LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices


Reply
  Search this Thread
Old 09-17-2007, 03:18 PM   #1
mattp52
LQ Newbie
 
Registered: Jul 2007
Posts: 17

Rep: Reputation: 0
CentOS - Lost USB printer support with custom 2.6.22-1 kernel


My system no longer seems to recognise my USB printer and I suspect the problem crept in when I manually compiled a 2.6.22-1 kernel for my CentOS 4.4 distro. I copied the .config file defined in the most recent packaged kernel-devel install and haven't noticed any other issues running under it but I noticed some weirdness when looking in /proc/bus/usb/devices (hubs only, no printers mentioned) and /proc/bus/usb/drivers (directory doesn't exist).

Also I had to run 'modprobe usblp' to load this module and an attempt to run 'modprobe usbcore' resulted in the error "FATAL: Module usbcore not found."

The printer used to work fine (files still spool to CUPS over the network fine) but now I get "Printer is not connected" messages.

I originally posted this under a hardware issue but am more or less convinced it's something to do with the kernel now so more debugging info can be found at this post.

Hope someone can help. Thanks!
 
Old 09-17-2007, 06:06 PM   #2
mattp52
LQ Newbie
 
Registered: Jul 2007
Posts: 17

Original Poster
Rep: Reputation: 0
Some progress on this. After rebooting the server the harware configuration manager (kudzu) came up with an alert about a missing printer named 'Unknown' so I deleted the configuration. Once booted, I unplugged and replugged the printer then ran:

$> cat /proc/bus/usb/devices

This time a third listing appeared with Brother serial IDs so the system is seeing the printer but all driver listings were "Driver=(none)".

I ran modprobe usblp and then checked /proc/bus/usb/devices again and this time got:

Quote:
T: Bus=01 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#= 3 Spd=12 MxCh= 0
D: Ver= 1.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS= 8 #Cfgs= 1
P: Vendor=04f9 ProdID=0193 Rev= 1.00
S: SerialNumber=BROK6F254488
C:* #Ifs= 3 Cfg#= 1 Atr=c0 MxPwr= 2mA
I:* If#= 0 Alt= 0 #EPs= 2 Cls=07(print) Sub=01 Prot=02 Driver=usblp
E: Ad=01(O) Atr=02(Bulk) MxPS= 64 Ivl=0ms
E: Ad=82(I) Atr=02(Bulk) MxPS= 16 Ivl=0ms
I:* If#= 1 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=ff Prot=ff Driver=(none)
E: Ad=03(O) Atr=02(Bulk) MxPS= 16 Ivl=0ms
E: Ad=84(I) Atr=02(Bulk) MxPS= 64 Ivl=0ms
E: Ad=85(I) Atr=03(Int.) MxPS= 8 Ivl=100ms
I:* If#= 2 Alt= 0 #EPs= 2 Cls=08(stor.) Sub=06 Prot=50 Driver=(none)
E: Ad=08(O) Atr=02(Bulk) MxPS= 64 Ivl=0ms
E: Ad=89(I) Atr=02(Bulk) MxPS= 64 Ivl=0ms
So a driver has been assigned to the Brother! After restarting CUPs I can now send files to the spooler and they immediately show as "completed" but at least the printer is not giving "Printer not connected" errors.

I'm sending raw data to the queue and so far only one file has actually printed out of the printer (despite the completed message for all jobs sent in the queue. The file that printed had different info in the CUPs job list, of the form:

Quote:
smbprn.0000007 Remote Downlevel Document Microsoft Word Document - Document2
 
  


Reply



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
Recompile CentOS 4.4 Kernel for IPX Support jabobadilla Linux - Newbie 5 05-27-2007 04:25 AM
How to build MPPE support into custom linux kernel reddyl SUSE / openSUSE 2 01-20-2006 08:38 AM
Lost USB support on Red Hat Enterprise VanEs Linux - Newbie 1 10-14-2004 01:04 PM
custom install kernel with NTFS support gokul Fedora - Installation 6 02-10-2004 08:21 AM
help with sound support in custom kernel stevenhasty Slackware 3 08-16-2003 05:30 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat

All times are GMT -5. The time now is 01:52 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
Open Source Consulting | Domain Registration