LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   (usb)printer module not compiled.. What now ? (https://www.linuxquestions.org/questions/slackware-14/usb-printer-module-not-compiled-what-now-142766/)

Dark Carnival 02-05-2004 06:03 PM

(usb)printer module not compiled.. What now ?
 
So I got all working on 2.6.2 and I decide to print a page.. Nothing happens..
So I kill off cupsd and look under http://localhost:631

Wierd it says it can't find my printer. I try
modprobe printer

But it isn't there, even though it is in /etc/rc.d/rc.modules
as the module to load when wanting a usb printer on the system

So do I _have_ to find this option and recompile the entire kernel for this ? If yes then I don't see the big advantage of linux. Comeon, I am almost certain I should be able to compile the module and insert it like that, providing I have the sources for the kernel which I do.

Isn't there a way to do this ?

Thanks alot in advance. This is all I still need ;)

Dark Carnival 02-06-2004 12:50 AM

I've found that I already have USB printer support compiled in
please tell me what module to load thanks

IRIGHTI 02-06-2004 09:45 AM

Is it compiled as a module or a built in?

Dark Carnival 02-06-2004 11:00 AM

<M> USB PRINTER SUPPORT

IN other words. A module ;)

Dark Carnival 02-06-2004 02:36 PM

*bump* please do help me out here ? All I need to know is what module I need to modprobe for :(

IRIGHTI 02-06-2004 02:38 PM

try usblp so:

/sbin/modprobe usblp

Dark Carnival 02-06-2004 03:05 PM

Actually I was bored and went back into menuconfig and I saw the name of the module too under the help section (usblp)

I loaded it, but I can't seem to find it anywhere on the ports when I try to add a printer with the cups administration interface at port 631.....

Some help here ?

IRIGHTI 02-06-2004 03:11 PM

on the screen where it gives you the Name, Location, blah.

put (assuming you only have one printer) :

/dev/usblp0

that should do it. I did that and then followed the rest of the setup and it prints fine.

I should say though I have been running Slackware for 3-4 months and only got printing working yesterday. The only difference that I made is that I compiled support built in not as a module.

Dark Carnival 02-06-2004 04:02 PM

How can I edit this though ? It doesn't show up on that list where you usually point out where the printer is hiding....

UPDATE:
"Unable to open USB device "usb:/dev/usb/lp0": No such device"
Device URI: usb:/dev/usb/lp0

This comes from the webinterface. Did you misstype what you meant or were you really saying /dev/usblp0 ?As opposed to /dev/usb/lp0 as it is trying to here...

IRIGHTI 02-07-2004 12:29 AM

No that is what i typed in. After you enter that you should have been taken to a dropdown menu where you pick which printer to use. You must pick the "USB Printer #1" I'm pretty sure. Mine had the name of my printer next to it.

I don't know if you can just edit the info you might need to delete your printer in cups and readd it for it to work.

EDIT: I should have mentioned the /dev/usblp0 needs to be in the location box.

Dark Carnival 02-07-2004 05:11 AM

I know I loaded the printer module, I know I had my printer working on USB Printer #1 last time. But somehow it just won't work

Please surely some of you all had printer trouble after this kernel upgrade to 2.6.x ? (mine's 2.6.2 )

When I run dmesg before unplugging the printer, I see alot of wierd messages, not printer related. Then i plug it back in and run dmesg once more. Still the same lines. It doesn't do anything..

Are you sure you don't have more modules than me ? Anyone with a working USB printer please post the results of a lsmod...

glennardo 02-07-2004 08:50 AM

I have mine working...but it's built-in not "all" as a module, CONFIG_USB_ACM is the only one compiled as module.
I compile 2.6.1 with 2.4.22 config and maybe it looks bit different than yours, here :

#
# USB support
#
CONFIG_USB=y
# CONFIG_USB_DEBUG is not set

#
# Miscellaneous USB options
#
CONFIG_USB_DEVICEFS=y
# CONFIG_USB_BANDWIDTH is not set
# CONFIG_USB_DYNAMIC_MINORS is not set

#
# USB Host Controller Drivers
#
CONFIG_USB_EHCI_HCD=y
CONFIG_USB_OHCI_HCD=y
CONFIG_USB_UHCI_HCD=y

#
# USB Device Class drivers
#
# CONFIG_USB_AUDIO is not set
# CONFIG_USB_BLUETOOTH_TTY is not set
# CONFIG_USB_MIDI is not set
CONFIG_USB_ACM=m
CONFIG_USB_PRINTER=y
# CONFIG_USB_STORAGE is not set

#
# USB Human Interface Devices (HID)
#
CONFIG_USB_HID=y
CONFIG_USB_HIDINPUT=y
# CONFIG_HID_FF is not set
CONFIG_USB_HIDDEV=y
# CONFIG_USB_AIPTEK is not set
# CONFIG_USB_WACOM is not set
# CONFIG_USB_KBTAB is not set
# CONFIG_USB_POWERMATE is not set
# CONFIG_USB_XPAD is not set

#
# USB Imaging devices
#
# CONFIG_USB_MDC800 is not set
# CONFIG_USB_SCANNER is not set
# CONFIG_USB_MICROTEK is not set
# CONFIG_USB_HPUSBSCSI is not set

#
# USB Multimedia devices
#
# CONFIG_USB_DABUSB is not set

#
# Video4Linux support is needed for USB Multimedia device support
#

#
# USB Network adaptors
#
# CONFIG_USB_CATC is not set
# CONFIG_USB_KAWETH is not set
# CONFIG_USB_PEGASUS is not set
# CONFIG_USB_RTL8150 is not set
# CONFIG_USB_USBNET is not set

#
# USB port drivers
#
# CONFIG_USB_USS720 is not set

#
# USB Serial Converter support
#
# CONFIG_USB_SERIAL is not set

#
# USB Miscellaneous drivers
#
# CONFIG_USB_TIGL is not set
# CONFIG_USB_AUERSWALD is not set
# CONFIG_USB_RIO500 is not set
# CONFIG_USB_LEGOTOWER is not set
# CONFIG_USB_BRLVGER is not set
# CONFIG_USB_LCD is not set
# CONFIG_USB_TEST is not set
# CONFIG_USB_GADGET is not set

Dark Carnival 02-07-2004 09:07 AM

How in the world did you manage to compile the USB controller modules into the kernel ? I can only make it a module :(

UPDATE:
I *think* I am making a kernel with all 3 controllers (ohci, ehci and uhci) in the kernel itself. As well as the printer module (usblp)

I dearly hope that would resolve some problems....

glennardo 02-07-2004 09:23 AM

Well, try these:

/sbin/modprobe usb-ohci
/sbin/modprobe ehci-hcd
/sbin/modprobe usbcore
/sbin/modprobe printer

If you get any errors or something like "FATAL" or something ingore them first..try to install you printer again with cups, hope it helps.

Dark Carnival 02-07-2004 10:23 AM

FIXED!!!!

I went back into the kernelconfig compiled:
uhci-hcd
ohci-hcd
ehci-hcd
usblp

Right into the kernel... And it worked.. Weee =)

I dearly hope someone else with the same props reads, tries and gets it working as well.. GL :)

And lots of thanks to all who helped me =)


All times are GMT -5. The time now is 02:15 PM.