LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   usblp0 no device found (https://www.linuxquestions.org/questions/linux-newbie-8/usblp0-no-device-found-142348/)

marzojl 02-04-2004 04:58 PM

usblp0 no device found
 
i upgraded my kernel from 2.4.22-1.2115.nptl to 2.6.1 and i'm using the fedora distro. before i could print fine, but after the upgrade it says in the printer config. window "unable to open usb device "usb:/dev/usb/lp0: no such device" appears. i don't know what is wrong. also i tried to apply the patch for 2.6.1 and a whole bunch of weird symbols appeared. the command i used for that was patch -p0 < patch-file-name-here.

any help will be appreciated. thanks.

hw-tph 02-04-2004 06:04 PM

So, do you have the usb printer module loaded?

Håkan

marzojl 02-04-2004 09:49 PM

i didn't know i had to, since before i upgraded to the new kernel it was working, i didn't think that i would have to add something that was there before i upgraded. is that something that i have to do, where can i find out if i do have it so i could load it? is there a way to keep the configuration of the old kernel because when i upgraded i typed "make config" and that had a big list where i had to make choices and i might have messed up in that process. i just picked the defaults because i wasn't sure.

urka58 02-05-2004 05:31 PM

Go to the console and check whatever modules are running by
lsmod command.
If configured you should have an output with a line like usb_printer or similar.
Also check /etc/rc.d/rc.modules (as I odn't know what disto are you using it may be a little different) looking for any occourence of usb_printer option and uncomment that line if available. If present the module will be available at next boot.
If it doesn't work or you do not find anything of the above I suggest you compile the kernel again with the usb_printer module configured.
Let me suggest you using "make xconfig" or "make menuconfig" instead of the boring "make config"
Hope this helps
Ciao

questionasker 02-05-2004 10:59 PM

re-run the printer setup utility.
there is a gui for it in kde

marzojl 02-06-2004 09:35 PM

when i type lsmod, the usb_printer module is not present. i don't have a file named rc.modules in the /etc/rc.d directory so i don't know where else to look for it. i re-ran the printer setup utility with no luck. i am running the fedora distro with kernel 2.6.2. thanks again for your help

marzojl 02-06-2004 09:37 PM

by the way, i did recompile the kernel and i did make sure that the usblp module was included and compiled. i tried finding it, but i don't know how to load it. i figured the make modules and make modules_install thing would take care of it, but it didn't

spony 07-22-2004 01:18 PM

spony
 
I had the problem: "Unable to open USB device "usb:/dev/usb/lp0": No such device"

Turns out i had compiled the kernel with the wrong usb access specification. I use "make menuconfig" to configure my kernel since it is much more handy then the arbitrary. In menuconfig (2.6.5 kernel) it's located here:

Device Drivers > USB Support >

Here you'll find "OHCI HCD Support" and "UHCI HCD Support". Supposivly you can only use one of the two, so don't select both. I compiled OHCI directly into the kernel... if you do it as a module remember to load them ie. "insmod [modname]". Also in the same directory is "USB Printer Support", I'd make sure to have that one selected also.

- spony


All times are GMT -5. The time now is 07:53 PM.